@@ -17,9 +17,6 @@ output:
1717 # print linter name in the end of issue text, default is true
1818 print-linter-name : true
1919
20- # make issues output unique by line, default is true
21- uniq-by-line : true
22-
2320# This section provides the configuration for which linters
2421# golangci will execute. Several of them were disabled by
2522# default but we've opted to enable them.
@@ -31,10 +28,10 @@ linters:
3128 - bidichk # checks for dangerous unicode character sequences
3229 - bodyclose # checks whether HTTP response body is closed successfully
3330 - contextcheck # check the function whether use a non-inherited context
31+ - copyloopvar # detects places where loop variables are copied
3432 - dupl # code clone detection
3533 - errcheck # checks for unchecked errors
3634 - errorlint # find misuses of errors
37- - exportloopref # check for exported loop vars
3835 - funlen # detects long functions
3936 - gci # consistent import order
4037 - goconst # finds repeated strings that could be replaced by a constant
@@ -76,6 +73,7 @@ linters:
7673 # - errname - unused
7774 # - exhaustive - unused
7875 # - exhaustivestruct - style preference
76+ # - exportloopref - check for exported loop vars
7977 # - forbidigo - unused
8078 # - forcetypeassert - unused
8179 # - gochecknoinits - unused
@@ -154,6 +152,7 @@ linters-settings:
154152# will report the issues it finds.
155153issues :
156154 # Excluding configuration per-path, per-linter, per-text and per-source
155+ uniq-by-line : true
157156 exclude-rules :
158157 # prevent linters from running on *_test.go files
159158 - path : _test\.go
@@ -166,3 +165,4 @@ issues:
166165 - testdata
167166 - helm
168167 - config-example
168+ - config
0 commit comments