File tree Expand file tree Collapse file tree 4 files changed +13
-16
lines changed Expand file tree Collapse file tree 4 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 47
47
check-latest : true
48
48
cache : true
49
49
50
- - uses : golangci/golangci-lint-action@v4 .0.0
50
+ - uses : golangci/golangci-lint-action@v8 .0.0
51
51
with :
52
52
version : latest
53
53
args : --verbose
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ version : " 2"
16
+
15
17
run :
16
- deadline : 5m
18
+ timeout : 5m
19
+
20
+ formatters :
21
+ enable :
22
+ - gofmt
23
+ - goimports
17
24
18
25
linters :
19
- disable-all : true
26
+ default : none
20
27
enable :
21
28
# - bodyclose
22
- # - deadcode ! deprecated since v1.49.0; replaced by 'unused'
23
29
# - depguard
24
30
# - dogsled
25
31
# - dupl
@@ -30,28 +36,19 @@ linters:
30
36
- goconst
31
37
- gocritic
32
38
# - gocyclo
33
- - gofmt
34
- - goimports
35
- # - gomnd
36
39
# - goprintffuncname
37
40
- gosec
38
- - gosimple
39
41
- govet
40
42
- ineffassign
41
43
# - lll
42
44
- misspell
45
+ # - mnd
43
46
# - nakedret
44
47
# - noctx
45
48
- nolintlint
46
49
# - rowserrcheck
47
- # - scopelint
48
50
- staticcheck
49
- # - structcheck ! deprecated since v1.49.0; replaced by 'unused'
50
- - stylecheck
51
- # - typecheck
52
51
- unconvert
53
52
# - unparam
54
53
- unused
55
- # - varcheck ! deprecated since v1.49.0; replaced by 'unused'
56
54
# - whitespace
57
- fast : false
Original file line number Diff line number Diff line change @@ -2926,7 +2926,7 @@ func TestHelpFuncExecuted(t *testing.T) {
2926
2926
helpText := "Long description"
2927
2927
2928
2928
// Create a context that will be unique, not just the background context
2929
- //nolint:golint, staticcheck // We can safely use a basic type as key in tests.
2929
+ //nolint:staticcheck // We can safely use a basic type as key in tests.
2930
2930
executionCtx := context .WithValue (context .Background (), "testKey" , "123" )
2931
2931
2932
2932
child := & Command {Use : "child" , Run : emptyRun }
Original file line number Diff line number Diff line change @@ -1297,7 +1297,7 @@ func TestValidArgsFuncCmdContext(t *testing.T) {
1297
1297
}
1298
1298
rootCmd .AddCommand (childCmd )
1299
1299
1300
- //nolint:golint, staticcheck // We can safely use a basic type as key in tests.
1300
+ //nolint:staticcheck // We can safely use a basic type as key in tests.
1301
1301
ctx := context .WithValue (context .Background (), "testKey" , "123" )
1302
1302
1303
1303
// Test completing an empty string on the childCmd
You can’t perform that action at this time.
0 commit comments