You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@printf " \e[36mcheck\e[0m Run the test suite (unit tests and golangci-lint).\n"
213
218
@printf " \e[36mrun-golangci-lint\e[0m Install and run golangci-lint. Installing is used in CI, but you should probably install golangci-lint using your package manager.\n"
214
219
@printf " \e[36mrun-shellcheck\e[0m Install and run shellcheck. Installing is used in CI, but you should probably install shellcheck using your package manager.\n"
220
+
@printf " \e[36mrun-typos\e[0m Check for spelling errors using typos.\n"
215
221
@printf " \e[36mbuild/cover.out\e[0m Run tests and generate coverage report.\n"
216
222
@printf " \e[36mbuild/cover.html\e[0m Generate an HTML file with source code annotations from the coverage report.\n"
217
223
@printf " \e[36mcheck-addlicense\e[0m Check license headers in all non-vendored .go files with addlicense.\n"
Copy file name to clipboardExpand all lines: README.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,8 +82,8 @@ The config file has the following sections:
82
82
*[renovate](#renovate)
83
83
*[reuse](#reuse)
84
84
*[shellCheck](#shellCheck)
85
-
*[spellCheck](#spellcheck)
86
85
*[testPackages](#testpackages)
86
+
*[typos](#typos)
87
87
*[variables](#variables)
88
88
*[verbatim](#verbatim)
89
89
*[githubWorkflow](#githubworkflow)
@@ -473,18 +473,23 @@ Whether to run [`ShellCheck`](https://www.shellcheck.net/) on all shell scripts
473
473
474
474
`opts`specifies additional options to pass to `shellcheck`. The `-e` option can be used to ignore specific shellcheck warnings.
475
475
476
-
### `spellCheck`
476
+
### `typos`
477
477
478
478
```yaml
479
-
spellCheck:
480
-
ignoreWords:
481
-
- example
482
-
- exampleTwo
479
+
typos:
480
+
enabled: true
481
+
extendExcludes:
482
+
- internal/compress/constants.go
483
+
- internal/compress/testdata/
484
+
extendWords:
485
+
- reenforced: reenforced # do not correct to the semantically different word "reinforced"
483
486
```
484
487
485
-
`golangci-lint`(if `golangciLint.createConfig` is `true`) and the spell check GitHub workflow (`githubWorkflow.spellCheck`) use [`misspell`][misspell] to check for spelling errors.
488
+
Whether to run [`typos`](https://github.com/crate-ci/typos) to check for spelling mistakes.
489
+
490
+
`typos.extendExcludes`maps to typos `files.extend-excludes` and allows to exclude some files or paths from spell checking.
486
491
487
-
If `spellCheck.ignoreWords` is defined then both `golangci-lint` and spell check workflow will give this word list to `misspell` so that they can be ignored during its checks.
492
+
`typos.extendWords`maps to typos `default.extend-words` and allows to add custom word mappings to the dictionary. The key is hereby the wrong spelling and the value the correct spelling.
Copy file name to clipboardExpand all lines: internal/golangcilint/golangci.yaml.tmpl
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,6 @@ linters:
56
56
- ineffassign
57
57
- intrange
58
58
- iotamixing
59
-
- misspell
60
59
- modernize
61
60
- nilerr
62
61
- nolintlint
@@ -160,13 +159,6 @@ linters:
160
159
# omitzero requires removing omitempty tags in kubernetes api struct types which are nested, which is intepreted by controller-gen and breaks the CRDs.
0 commit comments