@@ -195,6 +195,7 @@ $ golangci-lint help linters
195
195
Disabled by default linters:
196
196
bodyclose: checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
197
197
depguard: Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
198
+ dogsled: Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f ()) [fast: true, auto-fix: false]
198
199
dupl: Tool for code clone detection [fast: true, auto-fix: false]
199
200
funlen: Tool for detection of long functions [fast: true, auto-fix: false]
200
201
gochecknoglobals: Checks that no globals are present in Go code [fast: true, auto-fix: false]
@@ -454,6 +455,7 @@ golangci-lint help linters
454
455
- [misspell](https://github.com/client9/misspell) - Finds commonly misspelled English words in comments
455
456
- [lll](https://github.com/walle/lll) - Reports long lines
456
457
- [unparam](https://github.com/mvdan/unparam) - Reports unused function parameters
458
+ - [dogsled](https://github.com/alexkohler/dogsled) - Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f())
457
459
- [nakedret](https://github.com/alexkohler/nakedret) - Finds naked returns in functions greater than a specified function length
458
460
- [prealloc](https://github.com/alexkohler/prealloc) - Finds slice declarations that could potentially be preallocated
459
461
- [scopelint](https://github.com/kyoh86/scopelint) - Scopelint checks for unpinned variables in go programs
@@ -783,6 +785,9 @@ linters-settings:
783
785
- NOTE
784
786
- OPTIMIZE # marks code that should be optimized before merging
785
787
- HACK # marks hack-arounds that should be removed before merging
788
+ dogsled:
789
+ # checks assignments with too many blank identifiers; default is 2
790
+ max-blank-identifiers: 2
786
791
787
792
linters:
788
793
enable:
@@ -916,6 +921,7 @@ linters:
916
921
- bodyclose
917
922
- deadcode
918
923
- depguard
924
+ # - dogsled - TODO: enable it when golangci.com will support it.
919
925
- dupl
920
926
- errcheck
921
927
# - funlen - TODO: enable it when golangci.com will support it.
0 commit comments