Skip to content

Commit 475b23f

Browse files
committed
feat(linter): add codespell linter
Add the codespell linter which uses a dictionary of common misspellings and ignores unknown words. Signed-off-by: Roger Luethi <[email protected]>
1 parent a175a7a commit 475b23f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+588
-17
lines changed

.automation/generated/linter-helps.json

Lines changed: 127 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.automation/generated/linter-links-previews.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@
8484
"image": "https://opengraph.githubassets.com/bf0d187aea6f03a804178458080b2be18a5fd1bf8d8cc353ff3150743aae9805/greglook/cljstyle",
8585
"title": "GitHub - greglook/cljstyle: A tool for formatting Clojure code"
8686
},
87+
"codespell": {
88+
"description": "codespell checks code and documentation for common misspellings.",
89+
"image": null,
90+
"title": "codespell-project/codespell: check code for common misspellings"
91+
},
8792
"coffeelint": {
8893
"description": "\n CoffeeLint is a style checker that helps keep\n CoffeeScript\n code clean and consistent. CoffeeScript does a great job at\n insulating programmers from many of\n JavaScript's bad parts, but it won't help enforce a consistent style\n across a code base. CoffeeLint can help with that.\n ",
8994
"image": null,
@@ -639,4 +644,4 @@
639644
"image": "https://avatars3.githubusercontent.com/u/5244945?s=400&v=4",
640645
"title": "adrienverge/yamllint"
641646
}
642-
}
647+
}

.automation/generated/linter-versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"clippy": "0.1.90",
1616
"clj-kondo": "2025.09.22",
1717
"cljstyle": "0.17.642",
18+
"codespell": "2.4.1",
1819
"coffeelint": "5.2.11",
1920
"cppcheck": "2.14.2",
2021
"cpplint": "2.0.2",

.automation/generated/linters_matrix.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"spell_proselint",
104104
"spell_vale",
105105
"spell_lychee",
106+
"spell_codespell",
106107
"sql_sqlfluff",
107108
"sql_tsqllint",
108109
"swift_swiftlint",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
abandonded Dockefile
2+
abberivated acadamy
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
abandonded Dockefile
2+
abberivated acadamy
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
abandoned Dockerfile
2+
abbreviated academy

.cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
"citeyear",
7777
"ckKXNNNXkc",
7878
"cloneable-readable",
79+
"codespell",
80+
"codespellrc",
7981
"crcr",
8082
"cyclonedx",
8183
"dKNNXXO",

.mega-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ DISABLE_ERRORS_LINTERS:
2525
- REPOSITORY_DEVSKIM
2626
- REPOSITORY_GRYPE
2727
- REPOSITORY_SEMGREP
28+
- SPELL_CODESPELL
2829
- SPELL_LYCHEE
2930
- YAML_YAMLLINT
3031
PRINT_ALL_FILES: false

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1212

1313
- New linters
1414
- Add [Robocop](https://github.com/MarketSquare/robotframework-robocop) linter, by @bdovaz in <https://github.com/oxsecurity/megalinter/pull/6232>
15+
- Add [codespell](https://github.com/codespell-project/codespell)
1516

1617
- Disabled linters
1718

0 commit comments

Comments
 (0)