Skip to content

Add codespell support with configuration and fixes#1671

Open
yarikoptic wants to merge 5 commits intochef:mainfrom
yarikoptic:enh-codespell
Open

Add codespell support with configuration and fixes#1671
yarikoptic wants to merge 5 commits intochef:mainfrom
yarikoptic:enh-codespell

Conversation

@yarikoptic
Copy link

Add codespell configuration and fix existing typos.

More about codespell: https://github.com/codespell-project/codespell

I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.

CI workflow has 'permissions' set only to 'read' so also should be safe.

Changes

Configuration & Infrastructure

  • Added .codespellrc configuration with skip patterns for .git, .npm, .cache, .local
  • Created GitHub Actions workflow to check spelling on push/PRs to main

Typo Fixes

Ambiguous typos fixed manually (5 fixes with context review):

  • widnows -> windows (CHANGELOG.md - "windows builds", not "widows")
  • miror -> mirror (CHANGELOG.md - "package mirror", not "minor")
  • doesnt -> doesn't (windows/cleanup.ps1 - contraction)
  • thats -> that's (windows/remove-apps.ps1 x2 - contraction)

Non-ambiguous typos fixed automatically (21 fixes in 7 files):
Common fixes include: compatable -> compatible (x4), seperated -> separated (x4), administraor -> administrator (x2), Sucessfully -> Successfully (x2), plus compatability, Porposal, metdata, intead, incomming, specfic, polularity, belogs, neccesary

Historical Context

This project has had 20 prior commits fixing typos manually, demonstrating the value of automated spell-checking.

Testing

Codespell passes with zero errors after all fixes.


🤖 Generated with Claude Code and love to typos free code

@yarikoptic yarikoptic requested review from a team and Stromweld as code owners March 4, 2026 14:07
@Stromweld
Copy link
Collaborator

All commits need to be signed off and this should be in the ci-lint.yml workflow file as another job.

}

Write-Host 'Run Cleanmgr only if on workstation. Server edition doesnt have cleanmgr.'
Write-Host 'Run Cleanmgr only if on workstation. Server edition doesn''t have cleanmgr.'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Write-Host 'Run Cleanmgr only if on workstation. Server edition doesn''t have cleanmgr.'
Write-Host 'Run Cleanmgr only if on workstation. Server edition doesn't have cleanmgr.'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ATM I do not have windows box to test on -- note that it is within single quotes, so I thought that claude chose '' as an escaped version of a single ' within quotes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarikoptic and others added 5 commits March 4, 2026 10:58
Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
- widnows -> windows (CHANGELOG.md:249) - "windows builds", not "widows"
- miror -> mirror (CHANGELOG.md:1222) - "package mirror", not "minor"
- doesnt -> doesn't (windows/cleanup.ps1:16) - contraction
- thats -> that's (windows/remove-apps.ps1:52,63) - contraction

Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
Co-Authored-By: Claude Code 2.1.63 / Claude Opus 4.6 <noreply@anthropic.com>
Fixed typos (codespell -w):
- compatability -> compatibility (CHANGELOG.md)
- compatable -> compatible (CHANGELOG.md x4)
- Porposal -> Proposal (CHANGELOG.md)
- metdata -> metadata (CHANGELOG.md)
- intead -> instead (CHANGELOG.md)
- seperated -> separated (README.md x2, lib/bento/cli.rb x2)
- incomming -> incoming (README.md)
- specfic -> specific (lib/bento/cli.rb)
- polularity -> popularity (debian/preseed.cfg)
- belogs -> belongs (suse/vagrant_group_suse.sh)
- neccesary -> necessary (windows/cleanup.ps1)
- administraor -> administrator (windows/remove-one-drive-and-teams.ps1 x2)
- Sucessfully -> Successfully (windows/remove-one-drive-and-teams.ps1 x2)

Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
Co-Authored-By: Claude Code 2.1.63 / Claude Opus 4.6 <noreply@anthropic.com>
Also add push/PR triggers to ci-lint.yml alongside the existing weekly schedule.

Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
Co-Authored-By: Claude Code 2.1.63 / Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2026

@yarikoptic
Copy link
Author

All commits need to be signed off and this should be in the ci-lint.yml workflow file as another job.

signed'off and added annotation for commits co-authored-by claude for full(er) disclosure.

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.

2 participants