Skip to content

Commit 2eb9688

Browse files
authored
move to golangci unused (#672)
1 parent eb6146a commit 2eb9688

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

files/common/config/.golangci-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
service:
99
# When updating this, also update the version stored in docker/build-tools/Dockerfile in the istio/tools repo.
10-
golangci-lint-version: 1.38.x # use the fixed version to not introduce new linters unexpectedly
10+
golangci-lint-version: 1.49.x # use the fixed version to not introduce new linters unexpectedly
1111
run:
1212
# timeout for analysis, e.g. 30s, 5m, default is 1m
1313
deadline: 20m

files/common/config/.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
service:
99
# When updating this, also update the version stored in docker/build-tools/Dockerfile in the istio/tools repo.
10-
golangci-lint-version: 1.38.x # use the fixed version to not introduce new linters unexpectedly
10+
golangci-lint-version: 1.49.x # use the fixed version to not introduce new linters unexpectedly
1111
run:
1212
# timeout for analysis, e.g. 30s, 5m, default is 1m
1313
deadline: 20m
@@ -34,7 +34,6 @@ run:
3434
linters:
3535
disable-all: true
3636
enable:
37-
- deadcode
3837
- errcheck
3938
- exportloopref
4039
- gocritic
@@ -47,12 +46,11 @@ linters:
4746
- lll
4847
- misspell
4948
- staticcheck
50-
- structcheck
5149
- stylecheck
5250
- typecheck
5351
- unconvert
5452
- unparam
55-
- varcheck
53+
- unused
5654
- gci
5755
fast: false
5856

0 commit comments

Comments
 (0)