@@ -113,6 +113,7 @@ goimports: Goimports does everything that gofmt does. Additionally it checks unu
113
113
maligned: Tool to detect Go structs that would take less memory if their fields were sorted [fast: false]
114
114
megacheck: 3 sub-linters in one: unused, gosimple and staticcheck [fast: false]
115
115
depguard: Go linter that checks if package imports are in a list of acceptable packages [fast: false]
116
+ misspell: Finds commonly misspelled English words in comments [fast: true]
116
117
```
117
118
118
119
Pass ` -E/--enable ` to enable linter and ` -D/--disable ` to disable:
@@ -218,6 +219,7 @@ golangci-lint linters
218
219
- [ maligned] ( https://github.com/mdempsky/maligned ) - Tool to detect Go structs that would take less memory if their fields were sorted
219
220
- [ megacheck] ( https://github.com/dominikh/go-tools/tree/master/cmd/megacheck ) - 3 sub-linters in one: unused, gosimple and staticcheck
220
221
- [ depguard] ( https://github.com/OpenPeeDeeP/depguard ) - Go linter that checks if package imports are in a list of acceptable packages
222
+ - [ misspell] ( https://github.com/client9/misspell ) - Finds commonly misspelled English words in comments
221
223
222
224
# Configuration
223
225
The config file has lower priority than command-line options. If the same bool/string/int option is provided on the command-line
@@ -415,6 +417,11 @@ linters-settings:
415
417
include-go-root : false
416
418
packages :
417
419
- github.com/davecgh/go-spew/spew
420
+ misspell :
421
+ # Correct spellings using locale preferences for US or UK.
422
+ # Default is to use a neutral variety of English.
423
+ # Setting locale to US will correct the British spelling of 'colour' to 'color'.
424
+ locale : US
418
425
419
426
linters :
420
427
enable :
@@ -487,6 +494,8 @@ linters-settings:
487
494
# logging is allowed only by logutils.Log, logrus
488
495
# is allowed to use only in logutils package
489
496
- github.com/sirupsen/logrus
497
+ misspell :
498
+ locale : US
490
499
491
500
linters :
492
501
enable-all : true
@@ -591,6 +600,7 @@ Thanks to developers and authors of used linters:
591
600
- [remyoudompheng](https://github.com/remyoudompheng)
592
601
- [alecthomas](https://github.com/alecthomas)
593
602
- [OpenPeeDeeP](https://github.com/OpenPeeDeeP)
603
+ - [client9](https://github.com/client9)
594
604
595
605
# Future Plans
596
606
1. Upstream all changes of forked linters.
0 commit comments