Skip to content

Commit 6f4f7be

Browse files
committed
golangci-lint: replace exportloopref linter with copyloopvar
We were getting an error: WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar. ERRO [linters_context] exportloopref: This linter is fully inactivated: it will not produce any reports.
1 parent 596fdaa commit 6f4f7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ linters:
55
- asciicheck
66
- bidichk
77
- bodyclose
8+
- copyloopvar
89
- cyclop
910
# - depguard
1011
- dogsled
1112
- dupword
1213
- durationcheck
1314
- errcheck
14-
- exportloopref
1515
- forbidigo
1616
- gci
1717
- goconst

0 commit comments

Comments
 (0)