Skip to content

Commit ebe5e2a

Browse files
1911860538huangzw
andauthored
fix(golangci.yml): move fiximports to goimports section and replace exportloopref with copyloopvar (#4167)
Co-authored-by: huangzw <[email protected]>
1 parent 733ee09 commit ebe5e2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.golangci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ linters:
77
- durationcheck
88
- errcheck
99
- errorlint
10-
- exportloopref
10+
- copyloopvar
1111
- gci
1212
- gofmt
1313
- goimports
@@ -39,10 +39,11 @@ linters-settings:
3939
perfsprint:
4040
err-error: true
4141
errorf: true
42-
fiximports: true
4342
int-conversion: true
4443
sprintf1: true
4544
strconcat: true
45+
goimports:
46+
fiximports: true
4647
testifylint:
4748
enable-all: true
4849

0 commit comments

Comments
 (0)