Skip to content

Commit 2b3a589

Browse files
Update the linter version. (kubernetes-sigs#2275)
1 parent a7a1ec9 commit 2b3a589

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.golangci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,35 @@ issues:
77
exclude-rules:
88
- linters: [gosec]
99
path: "test/e2e/*"
10+
11+
linters-settings:
12+
govet:
13+
enable=fieldalignment: true
14+
revive:
15+
rules:
16+
- name: if-return
17+
disabled: true
18+
1019
linters:
1120
disable-all: true
1221
enable:
1322
- deadcode
1423
- dupl
1524
- errcheck
25+
- exportloopref
1626
- goconst
1727
- gocyclo
1828
- gofmt
1929
- goimports
20-
- golint
2130
- gosec
2231
- gosimple
2332
- govet
2433
- ineffassign
25-
- interfacer
2634
- lll
27-
- maligned
2835
- misspell
2936
- nakedret
3037
- prealloc
31-
- scopelint
38+
- revive
3239
- staticcheck
3340
- structcheck
3441
- typecheck

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
8282
golangci-lint:
8383
@[ -f $(GOLANGCI_LINT) ] || { \
8484
set -e ;\
85-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.37.1 ;\
85+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.41.1 ;\
8686
}
8787

8888
.PHONY: apidiff

0 commit comments

Comments
 (0)