File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
run :
2
2
timeout : 5m
3
- go : ' 1.23.2'
4
3
5
4
linters :
6
5
disable-all : true
7
6
enable :
8
7
# - containedctx
9
8
# - contextcheck
10
- # - depguard
9
+ - depguard
11
10
- errcheck
12
11
# - errchkjson
13
12
# - errname
@@ -39,11 +38,12 @@ linters:
39
38
40
39
linters-settings :
41
40
depguard :
42
- list-type : blacklist
43
- packages :
44
- - k8s.io/kubernetes
45
- packages-with-error-messages :
46
- k8s.io/kubernetes : " do not use k8s.io/kubernetes directly"
41
+ rules :
42
+ prevent_kubernetes_dependency :
43
+ list-mode : lax # allow unless explicitly denied
44
+ deny :
45
+ - pkg : k8s.io/kubernetes
46
+ desc : " do not use k8s.io/kubernetes directly"
47
47
errcheck :
48
48
exclude-functions :
49
49
- encoding/json.Marshal
@@ -83,12 +83,13 @@ linters-settings:
83
83
- performance
84
84
- style
85
85
gofumpt :
86
- lang-version : " 1.23.2"
87
86
extra-rules : true
88
87
lll :
89
88
line-length : 150
90
89
91
90
issues :
91
+ exclude-dirs :
92
+ - tilt_modules
92
93
exclude-rules :
93
94
# ignore errcheck for code under a /test folder
94
95
- path : " test/*"
Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ vet: ## Run go vet against code
110
110
go vet ./...
111
111
112
112
lint : # # Run linters against code
113
- @go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.0
114
- golangci-lint run --out-format=github-actions --timeout 600s --skip-files " tilt_modules "
113
+ @go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2
114
+ golangci-lint run --out-format=colored-line-number --timeout 600s
115
115
@go install github.com/yoheimuta/protolint/cmd/protolint@latest
116
116
protolint lint -config_path=.protolint.yaml ./api
117
117
You can’t perform that action at this time.
0 commit comments