File tree Expand file tree Collapse file tree 2 files changed +53
-62
lines changed Expand file tree Collapse file tree 2 files changed +53
-62
lines changed Original file line number Diff line number Diff line change 22
22
go-version : ' 1.24.1'
23
23
24
24
- name : Install golangci-lint
25
- run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.7
25
+ run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.0.2
26
26
27
27
- name : Build
28
28
run : go build -v ./...
Original file line number Diff line number Diff line change 1
- # https://golangci-lint.run/usage/quick-start/
2
- run :
3
- timeout : 1m
4
- build-tags :
1
+ version : " 2"
5
2
linters :
6
- # https://golangci-lint.run/usage/linters/
7
-
8
3
enable :
9
- - errcheck
10
- - gosimple
11
- - govet
12
- - ineffassign
13
- - staticcheck
14
- - typecheck
15
- - unused
16
4
- asasalint
17
5
- asciicheck
18
6
- bidichk
19
- # - bodyclose
20
7
- canonicalheader
21
8
- containedctx
22
9
- contextcheck
23
10
- copyloopvar
24
11
- cyclop
25
12
- decorder
26
- # - depguard
27
13
- dogsled
28
14
- durationcheck
29
- # - dupword
30
- - errchkjson
31
15
- err113
16
+ - errchkjson
32
17
- errname
33
18
- errorlint
34
19
- exhaustive
35
20
- fatcontext
36
- # - forbidigo
37
- # - forcetypeassert
38
- - gci
39
21
- ginkgolinter
40
22
- gocheckcompilerdirectives
41
23
- gochecksumtype
@@ -45,34 +27,24 @@ linters:
45
27
- gocyclo
46
28
- godot
47
29
- godox
48
- - err113
49
- - gofmt
50
- - gofumpt
51
30
- goheader
52
- - goimports
53
31
- gomoddirectives
54
32
- gomodguard
55
- # - goprintffuncname
56
- # - gosec
57
33
- gosmopolitan
58
34
- grouper
59
35
- importas
60
36
- interfacebloat
61
37
- intrange
62
- # - lll
63
38
- loggercheck
64
39
- makezero
65
40
- mirror
66
41
- misspell
67
- # - mnd
68
42
- musttag
69
43
- nakedret
70
- # - nestif
71
44
- nilerr
72
45
- nilnesserr
73
46
- nilnil
74
47
- nlreturn
75
- # - noctx
76
48
- nolintlint
77
49
- nonamedreturns
78
50
- perfsprint
@@ -86,45 +58,64 @@ linters:
86
58
- rowserrcheck
87
59
- sloglint
88
60
- spancheck
89
- - stylecheck
90
61
- sqlclosecheck
91
- - stylecheck
62
+ - staticcheck
92
63
- tagalign
93
64
- tagliatelle
94
65
- testifylint
95
66
- unconvert
96
67
- unparam
97
68
- usestdlibvars
98
- # - varnamelen
99
69
- wastedassign
100
70
- whitespace
101
71
- wrapcheck
102
72
- zerologlint
103
-
104
- linters-settings :
105
- cyclop :
106
- max-complexity : 25
107
- issues :
108
- exclude-rules :
109
- - path : c2/sslshell/sslshellserver.go
110
- linters :
111
- - staticcheck
112
- text : SA1019
113
- - path : c2/httpservefile/httpservefile.go
114
- linters :
115
- - staticcheck
116
- text : SA1019
117
- - path : httphelper.go
118
- linters :
119
- - staticcheck
120
- text : SA1019
121
- - path : c2/shelltunnel/shelltunnel.go
122
- linters :
123
- - staticcheck
124
- text : SA1019
125
- - path : cli/commandline_test.go
126
- linters :
127
- - staticcheck
128
- text : SA1019
129
- exclude-files :
130
- - protocol/mikrotik/msg.go
73
+ settings :
74
+ cyclop :
75
+ max-complexity : 25
76
+ exclusions :
77
+ generated : lax
78
+ presets :
79
+ - comments
80
+ - common-false-positives
81
+ - legacy
82
+ - std-error-handling
83
+ rules :
84
+ - linters :
85
+ - staticcheck
86
+ path : c2/sslshell/sslshellserver.go
87
+ text : SA1019
88
+ - linters :
89
+ - staticcheck
90
+ path : c2/httpservefile/httpservefile.go
91
+ text : SA1019
92
+ - linters :
93
+ - staticcheck
94
+ path : httphelper.go
95
+ text : SA1019
96
+ - linters :
97
+ - staticcheck
98
+ path : c2/shelltunnel/shelltunnel.go
99
+ text : SA1019
100
+ - linters :
101
+ - staticcheck
102
+ path : cli/commandline_test.go
103
+ text : SA1019
104
+ paths :
105
+ - protocol/mikrotik/msg.go
106
+ - third_party$
107
+ - builtin$
108
+ - examples$
109
+ formatters :
110
+ enable :
111
+ - gci
112
+ - gofmt
113
+ - gofumpt
114
+ - goimports
115
+ exclusions :
116
+ generated : lax
117
+ paths :
118
+ - protocol/mikrotik/msg.go
119
+ - third_party$
120
+ - builtin$
121
+ - examples$
You can’t perform that action at this time.
0 commit comments