File tree Expand file tree Collapse file tree 4 files changed +40
-21
lines changed Expand file tree Collapse file tree 4 files changed +40
-21
lines changed Original file line number Diff line number Diff line change 1
- linters-settings :
2
- custom :
3
- kubeapilinter :
4
- type : " module"
5
- description : kubeapilinter is the Kube-API-Linter and lints Kube like APIs based on API conventions and best practices.
6
- settings :
7
- linters :
8
- enable :
9
- - " maxlength"
10
- - " nobools"
11
- - " nomaps"
12
- - " statussubresource"
13
- lintersConfig :
14
- conditions :
15
- isFirstField : Warn
16
- useProtobuf : Ignore
17
- usePatchStrategy : Ignore
1
+ version : " 2"
18
2
linters :
19
- disable-all : true
3
+ default : none
20
4
enable :
21
5
- kubeapilinter
6
+ settings :
7
+ custom :
8
+ kubeapilinter :
9
+ type : module
10
+ description : kubeapilinter is the Kube-API-Linter and lints Kube like APIs based on API conventions and best practices.
11
+ settings :
12
+ linters :
13
+ enable :
14
+ - maxlength
15
+ - nobools
16
+ - nomaps
17
+ - statussubresource
18
+ lintersConfig :
19
+ conditions :
20
+ isFirstField : Warn
21
+ usePatchStrategy : Ignore
22
+ useProtobuf : Ignore
23
+ exclusions :
24
+ generated : lax
25
+ presets :
26
+ - comments
27
+ - common-false-positives
28
+ - legacy
29
+ - std-error-handling
30
+ paths :
31
+ - third_party$
32
+ - builtin$
33
+ - examples$
22
34
issues :
23
35
# We have a lot of existing issues.
24
36
# Want to make sure that those adding new fields have an
25
37
# opportunity to fix them when running the linter locally.
26
38
max-issues-per-linter : 1000
39
+ formatters :
40
+ exclusions :
41
+ generated : lax
42
+ paths :
43
+ - third_party$
44
+ - builtin$
45
+ - examples$
Original file line number Diff line number Diff line change 1
- version : v1.64.8
1
+ version : v2.1.6
2
2
name : golangci-kube-api-linter
3
3
destination : ./bin
4
4
plugins :
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ $(OUTPUT_DIR)/go-to-protobuf: $(OUTPUT_DIR)/vendor-version
105
105
go build -mod=vendor -o $(OUTPUT_DIR ) /go-to-protobuf ./vendor/k8s.io/code-generator/cmd/go-to-protobuf
106
106
107
107
$(OUTPUT_DIR ) /golangci-lint : $(OUTPUT_DIR ) /vendor-version
108
- go build -mod=vendor -o $(OUTPUT_DIR ) /golangci-lint ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
108
+ go build -mod=vendor -o $(OUTPUT_DIR ) /golangci-lint ./vendor/github.com/golangci/golangci-lint/v2/ cmd/golangci-lint
109
109
110
110
# The golangci-lint custom command relies on finding a module, this uses a workaround to init the go.mod in the kal directory.
111
111
$(OUTPUT_DIR ) /golangci-kube-api-linter : $(OUTPUT_DIR ) /vendor-version $(OUTPUT_DIR ) /golangci-lint
Original file line number Diff line number Diff line change 7
7
_ "github.com/gogo/protobuf/gogoproto"
8
8
_ "github.com/gogo/protobuf/proto"
9
9
_ "github.com/gogo/protobuf/sortkeys"
10
- _ "github.com/golangci/golangci-lint/cmd/golangci-lint"
10
+ _ "github.com/golangci/golangci-lint/v2/ cmd/golangci-lint"
11
11
_ "github.com/mikefarah/yq/v4"
12
12
_ "github.com/vmware-archive/yaml-patch/cmd/yaml-patch"
13
13
_ "k8s.io/code-generator"
You can’t perform that action at this time.
0 commit comments