File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 55# ########################
66# ########################
77
8- # https://raw.githubusercontent.com/super-linter/super-linter/main/.github/linters/. golangci.yml
9-
8+ # configure golangci-lint
9+ # see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
1010issues :
1111 exclude-rules :
1212 - path : _test\.go
@@ -22,13 +22,20 @@ linters:
2222 - goconst
2323 - goimports
2424 - gocritic
25+ - govet
2526 - revive
26- - shadow # Added shadow linter
2727linters-settings :
2828 errcheck :
29- # report about assignment of errors to blank identifier
29+ # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
3030 # default is false: such cases aren't reported by default.
3131 check-blank : true
32+ govet :
33+ enable :
34+ # report about shadowed variables
35+ - shadowing
3236 gocyclo :
3337 # minimal code complexity to report, 30 by default
34- min-complexity : 20
38+ min-complexity : 18
39+ maligned :
40+ # print struct with more effective memory layout or not, false by default
41+ suggest-new : true
You can’t perform that action at this time.
0 commit comments