@@ -195,6 +195,7 @@ $ golangci-lint help linters
195195Disabled by default linters:
196196bodyclose: checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
197197depguard: 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]
198199dupl: Tool for code clone detection [fast: true, auto-fix: false]
199200funlen: Tool for detection of long functions [fast: true, auto-fix: false]
200201gochecknoglobals: Checks that no globals are present in Go code [fast: true, auto-fix: false]
@@ -454,6 +455,7 @@ golangci-lint help linters
454455- [misspell](https://github.com/client9/misspell) - Finds commonly misspelled English words in comments
455456- [lll](https://github.com/walle/lll) - Reports long lines
456457- [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())
457459- [nakedret](https://github.com/alexkohler/nakedret) - Finds naked returns in functions greater than a specified function length
458460- [prealloc](https://github.com/alexkohler/prealloc) - Finds slice declarations that could potentially be preallocated
459461- [scopelint](https://github.com/kyoh86/scopelint) - Scopelint checks for unpinned variables in go programs
@@ -783,6 +785,9 @@ linters-settings:
783785 - NOTE
784786 - OPTIMIZE # marks code that should be optimized before merging
785787 - 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
786791
787792linters:
788793 enable:
@@ -916,6 +921,7 @@ linters:
916921 - bodyclose
917922 - deadcode
918923 - depguard
924+ # - dogsled - TODO: enable it when golangci.com will support it.
919925 - dupl
920926 - errcheck
921927 # - funlen - TODO: enable it when golangci.com will support it.
0 commit comments