File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 26
26
- name : Run static checks
27
27
uses : golangci/golangci-lint-action@23faadfdeb23a6f9e511beaba149bb123b5b145a
28
28
with :
29
- version : v1.55.2
29
+ version : v1.58.1
30
30
# use our .golangci.yml and configure output to be logged in the GHA, in addition to annotating the commit.
31
31
# see https://github.com/golangci/golangci-lint-action/issues/119#issuecomment-981090648 for output
32
32
args : --config=.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number
Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ linters:
11
11
- bidichk
12
12
- bodyclose
13
13
- contextcheck
14
+ - copyloopvar
14
15
- decorder
15
16
- dupword
16
17
- durationcheck
18
+ - err113
17
19
- errchkjson
18
20
- errname
19
21
- gocheckcompilerdirectives
20
22
- gocritic
21
- - goerr113
22
23
- gofmt
23
24
- goheader
24
25
- goimports
@@ -29,6 +30,7 @@ linters:
29
30
- importas
30
31
- ineffassign
31
32
- interfacebloat
33
+ - intrange
32
34
- makezero
33
35
- mirror
34
36
- misspell
@@ -40,9 +42,11 @@ linters:
40
42
- perfsprint
41
43
- predeclared
42
44
- promlinter
45
+ - protogetter
43
46
- reassign
44
47
- revive
45
48
- rowserrcheck
49
+ - sloglint
46
50
- sqlclosecheck
47
51
- staticcheck
48
52
- tagalign
@@ -72,11 +76,25 @@ linters-settings:
72
76
disable :
73
77
- fieldalignment
74
78
- shadow
79
+ importas :
80
+ no-unaliased : true
81
+ alias :
82
+ - pkg : github.com/cilium/cilium/api/v1/flow
83
+ alias : flowpb
84
+ - pkg : github.com/cilium/cilium/api/v1/observer
85
+ alias : observerpb
86
+ - pkg : github.com/cilium/cilium/api/v1/relay
87
+ alias : relaypb
88
+ - pkg : github.com/cilium/fake/flow
89
+ alias : fakeflow
90
+ perfsprint :
91
+ strconcat : false
75
92
revive :
76
93
rules :
77
94
- name : package-comments
78
95
disabled : true
79
-
96
+ sloglint :
97
+ static-msg : true
80
98
issues :
81
99
# Default rules exclude Go doc comments check, which is rather unfortunate.
82
100
# In order to enable Go doc checks, defaults rules have to be disabled.
@@ -86,5 +104,5 @@ issues:
86
104
- Potential file inclusion via variable # EXC0010 gosec: False positive is triggered by 'src, err := io.ReadFile(filename)'
87
105
88
106
exclude-rules :
89
- - linters : [goerr113 ]
107
+ - linters : [err113 ]
90
108
text : " do not define dynamic errors, use wrapped static errors instead"
You can’t perform that action at this time.
0 commit comments