Skip to content

Commit b38231d

Browse files
committed
Adjust codespell file exclusions to support projects containing multiple Go modules
The "codespell" tool is used to check for the presence of commonly misspelled words in the project files. Since we don't have control over their content, automatically generated files should be excluded from such checks for efficiency and to avoid false positives. This includes the `go.mod` and `go.sum` Go module metadata files. Projects may contain multiple Go modules in subfolders of the repository, each with their own metadata files. Previously, the codespell configuration only excluded `go.mod` and `go.sum` in the root of the repository.
1 parent a2d4d14 commit b38231d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[codespell]
44
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
55
ignore-words-list = ,
6-
skip = ./.git,./.licenses,__pycache__,node_modules,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock
6+
skip = ./.git,./.licenses,__pycache__,go.mod,go.sum,node_modules,./package-lock.json,./poetry.lock,./yarn.lock
77
builtin = clear,informal,en-GB_to_en-US
88
check-filenames =
99
check-hidden =

0 commit comments

Comments
 (0)