Skip to content

codespell: fix typos surfaced on master; whitelist hask#84

Open
torwager wants to merge 1 commit into
masterfrom
fix/codespell-green
Open

codespell: fix typos surfaced on master; whitelist hask#84
torwager wants to merge 1 commit into
masterfrom
fix/codespell-green

Conversation

@torwager

Copy link
Copy Markdown
Contributor

Makes the codespell CI check pass on master.

The codespell gate landed via #53, but the check went red on master because 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):

  • exludeexclude, meaninfulmeaningfulcanlab_pattern_similarity.m
  • INTIALIZEINITIALIZEhansen_neurotransmitter_maps.m
  • saggitalsagittal, immmediatelyimmediately, iamgesimages, wahtwhat, sigificantsignificant, TresholdThreshold — vendored walkthrough snapshot scripts (Unit_tests/walkthroughs/private/canlab_help_*.m)

Whitelist:

  • hask → added to .codespellrc ignore-words-list. It's an intentional "has key" anonymous-function helper (hask = @(k) any(strcmp(args,k))) in canlab_colormap.m and @fmridisplay/render_layer_surfaces.m — a variable name, not a typo.

codespell now exits 0 locally (0 findings). Verified the diff touches only comment lines; the saggital hits were all comments anyway (and @fmridisplay/montage.m accepts 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

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant