Skip to content

Commit f9f8986

Browse files
ideashipnvuillam
andauthored
feat(linter): add codespell linter (#6256)
Add the codespell linter which uses a dictionary of common misspellings and ignores unknown words. Signed-off-by: Roger Luethi <roger.luethi@bisdn.de> Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com>
1 parent 020d253 commit f9f8986

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

+586
-16
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
"image": null,
100100
"title": "Get Started | Salesforce Code Analyzer | Salesforce Developers"
101101
},
102+
"codespell": {
103+
"description": "check code for common misspellings. Contribute to codespell-project/codespell development by creating an account on GitHub.",
104+
"image": "https://opengraph.githubassets.com/2f992303e04813e06167ef6cddbddee9e42a1c184cf4dfc73922232ab7c45b11/codespell-project/codespell",
105+
"title": "GitHub - codespell-project/codespell: check code for common misspellings"
106+
},
102107
"coffeelint": {
103108
"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 ",
104109
"image": null,

.automation/generated/linter-versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"code-analyzer-apex": "5.6.1",
1919
"code-analyzer-aura": "5.6.1",
2020
"code-analyzer-lwc": "5.6.1",
21+
"codespell": "2.4.1",
2122
"coffeelint": "5.2.11",
2223
"cppcheck": "2.14.2",
2324
"cpplint": "2.0.2",

.automation/generated/linters_matrix.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"spell_proselint",
108108
"spell_vale",
109109
"spell_lychee",
110+
"spell_codespell",
110111
"sql_sqlfluff",
111112
"sql_tsqllint",
112113
"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
@@ -11,6 +11,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1111
- Core
1212

1313
- New linters
14+
- Add [codespell](https://github.com/codespell-project/codespell)
1415

1516
- Disabled linters
1617

0 commit comments

Comments
 (0)