codespell: fix typos surfaced on master; whitelist hask#84
Open
torwager wants to merge 1 commit into
Open
Conversation
The codespell gate (merged via #53) was red on master because newer code (merged via #53/#70/#79) contained typos the original sweep never saw. Fix real comment typos: exlude->exclude, meaninful->meaningful (canlab_pattern_similarity.m); INTIALIZE->INITIALIZE (hansen_neurotransmitter_maps.m); and saggital/immmediately/iamges/waht/ sigificant/Treshold in the vendored walkthrough snapshot scripts (Unit_tests/walkthroughs/private/canlab_help_*.m). All are in comments. Whitelist 'hask' -- an intentional "has key" anonymous-function helper in canlab_colormap.m and @fmridisplay/render_layer_surfaces.m. codespell now exits clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the codespell CI check pass on
master.The codespell gate landed via #53, but the check went red on
masterbecause newer code merged via #53/#70/#79 contained typos the original sweep never saw (28 findings).Fixes (all in
%comment / display text — no code behavior change):exlude→exclude,meaninful→meaningful—canlab_pattern_similarity.mINTIALIZE→INITIALIZE—hansen_neurotransmitter_maps.msaggital→sagittal,immmediately→immediately,iamges→images,waht→what,sigificant→significant,Treshold→Threshold— vendored walkthrough snapshot scripts (Unit_tests/walkthroughs/private/canlab_help_*.m)Whitelist:
hask→ added to.codespellrcignore-words-list. It's an intentional "has key" anonymous-function helper (hask = @(k) any(strcmp(args,k))) incanlab_colormap.mand@fmridisplay/render_layer_surfaces.m— a variable name, not a typo.codespellnow exits 0 locally (0 findings). Verified the diff touches only comment lines; thesaggitalhits were all comments anyway (and@fmridisplay/montage.maccepts both'saggital'and'sagittal'as keywords, so even keyword uses would be safe).Note: the same typos exist in the upstream originals of these walkthrough scripts in
CANlab_help_examples; this PR only fixes the snapshot copies vendored into CanlabCore that codespell scans.🤖 Generated with Claude Code