File tree Expand file tree Collapse file tree 3 files changed +35
-20
lines changed Expand file tree Collapse file tree 3 files changed +35
-20
lines changed Original file line number Diff line number Diff line change 1- run :
2- timeout : 7m
3-
1+ version : " 2"
42linters :
5- disable-all : true
3+ default : none
64 enable :
75 - bodyclose
86 - copyloopvar
@@ -11,27 +9,44 @@ linters:
119 - errcheck
1210 - gocritic
1311 - gocyclo
14- - gofmt
15- - goimports
16- - gosec
1712 - goprintffuncname
18- - gosimple
13+ - gosec
1914 - govet
2015 - ineffassign
2116 - misspell
2217 - nakedret
2318 - nolintlint
2419 - revive
2520 - staticcheck
26- - stylecheck
27- - typecheck
2821 - unconvert
2922 - unused
3023 - whitespace
31-
32- linters-settings :
33- goimports :
34- local-prefixes : sigs.k8s.io/custom-metrics-apiserver
35- misspell :
36- ignore-words :
37- - " creater" # Cf. e.g. https://pkg.go.dev/k8s.io/apimachinery@v0.24.3/pkg/runtime#ObjectCreater
24+ settings :
25+ misspell :
26+ ignore-rules :
27+ - creater
28+ exclusions :
29+ generated : lax
30+ presets :
31+ - comments
32+ - common-false-positives
33+ - legacy
34+ - std-error-handling
35+ paths :
36+ - third_party$
37+ - builtin$
38+ - examples$
39+ formatters :
40+ enable :
41+ - gofmt
42+ - goimports
43+ settings :
44+ goimports :
45+ local-prefixes :
46+ - sigs.k8s.io/custom-metrics-apiserver
47+ exclusions :
48+ generated : lax
49+ paths :
50+ - third_party$
51+ - builtin$
52+ - examples$
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ GOPATH:=$(shell go env GOPATH)
77
88VERSION? =latest
99
10- GOLANGCI_VERSION: =1.64.8
10+ GOLANGCI_VERSION: =2.1.6
1111
1212.PHONY : all
1313all : build-test-adapter
@@ -48,7 +48,7 @@ build-test-adapter: update-generated
4848# Format and lint
4949# ---------------
5050
51- HAS_GOLANGCI_VERSION: =$(shell $(GOPATH ) /bin/golangci-lint version --format= short)
51+ HAS_GOLANGCI_VERSION: =$(shell $(GOPATH ) /bin/golangci-lint version --short)
5252.PHONY : golangci
5353golangci :
5454ifneq ($(HAS_GOLANGCI_VERSION ) , $(GOLANGCI_VERSION ) )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module sigs.k8s.io/custom-metrics-apiserver
22
33go 1.24.0
44
5- toolchain go1.24.2
5+ toolchain go1.24.3
66
77require (
88github.com/emicklei/go-restful/v3 v3.12.2
You can’t perform that action at this time.
0 commit comments