Skip to content

Commit 837ed65

Browse files
henrybarretogustavosbarreto
authored andcommitted
fix(golangci): remove warning abount deprecations
The configuration option `output.uniq-by-line` was deprecated, so `issues.uniq-by-line` should be used. Beyond that,`output.format` is also deprecated, and `output.formats` is the alternative. The linter 'exportloopref' since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
1 parent 053485f commit 837ed65

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.golangci.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
output:
2-
format: colored-line-number
2+
formats:
3+
- format: colored-line-number
34
print-issued-lines: true
45
print-linter-name: true
5-
uniq-by-line: true
66
sort-results: true
77

8+
issues:
9+
uniq-by-line: true
10+
811
linters:
912
disable-all: true
1013
enable:
@@ -13,7 +16,7 @@ linters:
1316
- gosimple
1417
- govet
1518
- ineffassign
16-
- exportloopref
19+
- copyloopvar
1720
- staticcheck
1821
- unconvert
1922
- unused

0 commit comments

Comments
 (0)