@@ -113,6 +113,7 @@ goimports: Goimports does everything that gofmt does. Additionally it checks unu
113113maligned: Tool to detect Go structs that would take less memory if their fields were sorted [fast: false]
114114megacheck: 3 sub-linters in one: unused, gosimple and staticcheck [fast: false]
115115depguard: 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]
116117```
117118
118119Pass ` -E/--enable ` to enable linter and ` -D/--disable ` to disable:
@@ -218,6 +219,7 @@ golangci-lint linters
218219- [ maligned] ( https://github.com/mdempsky/maligned ) - Tool to detect Go structs that would take less memory if their fields were sorted
219220- [ megacheck] ( https://github.com/dominikh/go-tools/tree/master/cmd/megacheck ) - 3 sub-linters in one: unused, gosimple and staticcheck
220221- [ 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
221223
222224# Configuration
223225The 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:
415417 include-go-root : false
416418 packages :
417419 - 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
418425
419426linters :
420427 enable :
@@ -487,6 +494,8 @@ linters-settings:
487494 # logging is allowed only by logutils.Log, logrus
488495 # is allowed to use only in logutils package
489496 - github.com/sirupsen/logrus
497+ misspell :
498+ locale : US
490499
491500linters :
492501 enable-all : true
@@ -591,6 +600,7 @@ Thanks to developers and authors of used linters:
591600- [remyoudompheng](https://github.com/remyoudompheng)
592601- [alecthomas](https://github.com/alecthomas)
593602- [OpenPeeDeeP](https://github.com/OpenPeeDeeP)
603+ - [client9](https://github.com/client9)
594604
595605# Future Plans
5966061. Upstream all changes of forked linters.
0 commit comments