File tree Expand file tree Collapse file tree 4 files changed +65
-57
lines changed Expand file tree Collapse file tree 4 files changed +65
-57
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ jobs:
28
28
go-version : stable
29
29
cache : false
30
30
- name : golangci-lint
31
- uses : golangci/golangci-lint-action@v3
31
+ uses : golangci/golangci-lint-action@v8
32
32
with :
33
33
# Require: The version of golangci-lint to use.
34
34
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
35
35
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
36
- version : v1.60
36
+ version : v2.1.6
37
37
args : --timeout=30m
Original file line number Diff line number Diff line change 1
- # options for analysis running
1
+ version : " 2 "
2
2
run :
3
3
modules-download-mode : mod
4
- linters-settings :
5
- depguard :
6
- # Rules to apply.
7
- # Default: Only allow $gostd in all files.
8
- rules :
9
- # Name of a rule.
10
- main :
11
- # List of file globs that will match this list of settings to compare against.
12
- # Default: $all
13
- files :
14
- - " !**/*_a _file.go"
15
- # List of allowed packages.
16
- allow :
17
- - $gostd
18
- - k8s.io/apiextensions-apiserver
19
- - k8s.io/apimachinery
20
- - k8s.io/client-go/kubernetes
21
- - k8s.io/client-go/rest
22
- - k8s.io/api/core/v1
23
- - k8s.io/klog/v2
24
- - github.com/cert-manager/cert-manager
25
- - github.com/transip/gotransip/v6
26
- - github.com/demeesterdev/cert-manager-webhook-transip/transip
27
- # Packages that are not allowed where the value is a suggestion.
28
- misspell :
29
- locale : US
30
- goimports :
31
- local-prefixes : github.com/golangci/golangci-lint
32
- gocritic :
33
- enabled-tags :
34
- - performance
35
- - style
36
- - experimental
37
- disabled-checks :
38
- - whyNoLint
39
- - wrapperFunc
40
- revive :
41
- rules :
42
- - name : var-naming
43
- disabled : true
44
-
45
4
linters :
46
- disable-all : true
5
+ default : none
47
6
enable :
48
7
- bodyclose
49
8
- depguard
50
9
- dogsled
51
10
- dupl
52
11
- errcheck
53
- - exportloopref
54
12
- exhaustive
55
13
- funlen
56
14
- goconst
57
15
- gocritic
58
16
- gocyclo
59
- - gofmt
60
- - goimports
61
17
- goprintffuncname
62
18
- gosec
63
- - gosimple
64
19
- govet
65
20
- ineffassign
66
21
- lll
@@ -71,13 +26,66 @@ linters:
71
26
- revive
72
27
- rowserrcheck
73
28
- staticcheck
74
- - typecheck
75
29
- unconvert
76
30
- unparam
77
31
- unused
78
32
- whitespace
79
-
80
- issues :
81
- exclude-rules :
82
- - path : main_test\.go
83
- text : " may want to remove commented-out code"
33
+ settings :
34
+ depguard :
35
+ rules :
36
+ main :
37
+ files :
38
+ - ' !**/*_a _file.go'
39
+ allow :
40
+ - $gostd
41
+ - k8s.io/apiextensions-apiserver
42
+ - k8s.io/apimachinery
43
+ - k8s.io/client-go/kubernetes
44
+ - k8s.io/client-go/rest
45
+ - k8s.io/api/core/v1
46
+ - k8s.io/klog/v2
47
+ - github.com/cert-manager/cert-manager
48
+ - github.com/transip/gotransip/v6
49
+ - github.com/demeesterdev/cert-manager-webhook-transip/transip
50
+ gocritic :
51
+ disabled-checks :
52
+ - whyNoLint
53
+ - wrapperFunc
54
+ enabled-tags :
55
+ - performance
56
+ - style
57
+ - experimental
58
+ misspell :
59
+ locale : US
60
+ revive :
61
+ rules :
62
+ - name : var-naming
63
+ disabled : true
64
+ exclusions :
65
+ generated : lax
66
+ presets :
67
+ - comments
68
+ - common-false-positives
69
+ - legacy
70
+ - std-error-handling
71
+ rules :
72
+ - path : main_test\.go
73
+ text : may want to remove commented-out code
74
+ paths :
75
+ - third_party$
76
+ - builtin$
77
+ - examples$
78
+ formatters :
79
+ enable :
80
+ - gofmt
81
+ - goimports
82
+ settings :
83
+ goimports :
84
+ local-prefixes :
85
+ - github.com/golangci/golangci-lint
86
+ exclusions :
87
+ generated : lax
88
+ paths :
89
+ - third_party$
90
+ - builtin$
91
+ - examples$
Original file line number Diff line number Diff line change 25
25
files : (?!values.schema.json)
26
26
- id : trailing-whitespace
27
27
- repo : https://github.com/golangci/golangci-lint
28
- rev : v1.59.1
28
+ rev : v2.1.6
29
29
hooks :
30
30
- id : golangci-lint-config-verify
31
31
- id : golangci-lint
Original file line number Diff line number Diff line change 1
- FROM golang:1.22.6 -alpine3.20 AS build_deps
1
+ FROM golang:1.24.3 -alpine3.21 AS build_deps
2
2
3
3
RUN apk add --no-cache git
4
4
You can’t perform that action at this time.
0 commit comments