File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 22
22
steps :
23
23
- uses : actions/checkout@v2
24
24
- name : Run golangci-lint
25
- uses : golangci/golangci-lint-action@v2
25
+ uses : golangci/golangci-lint-action@v6
26
26
with :
27
27
version : latest
28
28
only-new-issues : false
29
- args : --timeout 2m --config .golangci.yaml
29
+ args : --timeout 2m --config .golangci.yaml
Original file line number Diff line number Diff line change 1
1
linters-settings :
2
2
govet :
3
- check-shadowing : true
3
+ shadow : true
4
4
golint :
5
5
min-confidence : 0
6
6
maligned :
@@ -16,36 +16,30 @@ linters:
16
16
disable-all : true
17
17
enable :
18
18
- bodyclose
19
- - deadcode
20
- - depguard
21
19
- dogsled
22
20
- dupl
23
21
- errcheck
24
22
- goconst
25
23
- gocritic
26
24
- gofmt
27
25
- goimports
28
- - golint
26
+ - revive
29
27
- goprintffuncname
30
28
- gosec
31
29
- gosimple
32
30
- govet
33
31
- ineffassign
34
- - interfacer
35
32
- misspell
36
33
- nolintlint
37
34
- rowserrcheck
38
- - scopelint
39
35
- staticcheck
40
- - structcheck
41
36
- stylecheck
42
37
- typecheck
43
38
- unconvert
44
39
- unparam
45
40
- unused
46
- - varcheck
47
41
- whitespace
48
- - maligned
42
+ - exportloopref
49
43
50
44
service :
51
45
golangci-lint-version : 1.33.x
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ func NewCmdInit() *cobra.Command {
12
12
cmd := & cobra.Command {
13
13
Use : "init [flags]" ,
14
14
Short : "Initialize daje on your system" ,
15
- RunE : func (cmd * cobra.Command , args []string ) error {
15
+ RunE : func (cmd * cobra.Command , args []string ) error { //nolint:all
16
16
return submitAction ()
17
17
},
18
18
}
You can’t perform that action at this time.
0 commit comments