File tree 4 files changed +21
-106
lines changed
4 files changed +21
-106
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 63
63
uses : golangci/golangci-lint-action@v6
64
64
with :
65
65
version : latest
66
+ only-new-issues : true
Original file line number Diff line number Diff line change 1
- output :
2
- # Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
3
- format : colored-line-number
4
- # All available settings of specific linters.
1
+ # Options for analysis running.
2
+ run :
3
+ timeout : 3m
4
+
5
+ linters : # https://golangci-lint.run/usage/linters/
6
+ disable-all : true
7
+ enable :
8
+ - gosimple
9
+ - govet
10
+ - ineffassign
11
+ - staticcheck
12
+ - unused
13
+ - unconvert
14
+ - goimports
15
+ - gofumpt
16
+
5
17
# Refer to https://golangci-lint.run/usage/linters
6
18
linters-settings :
7
19
gofumpt :
@@ -11,22 +23,7 @@ linters-settings:
11
23
goimports :
12
24
# Put imports beginning with prefix after 3rd-party packages.
13
25
# It's a comma-separated list of prefixes.
14
- local-prefixes : github.com/cloudwego/kitex
15
- govet :
16
- # Disable analyzers by name.
17
- # Run `go tool vet help` to see all analyzers.
18
- disable :
19
- - stdmethods
20
- linters :
21
- enable :
22
- - gofumpt
23
- - goimports
24
- - gofmt
25
- disable :
26
- - errcheck
27
- - typecheck
28
- - deadcode
29
- - varcheck
30
- - staticcheck
26
+ local-prefixes : github.com/cloudwego/netpoll
27
+
31
28
issues :
32
- exclude-use-default : true
29
+ exclude-use-default : true
Original file line number Diff line number Diff line change 1
1
# Typo check: https://github.com/crate-ci/typos
2
2
3
3
[files ]
4
- extend-exclude = [" go.sum" ]
4
+ extend-exclude = [" go.mod " , " go. sum" ]
5
5
6
6
[default .extend-identifiers ]
7
7
# *sigh* this just isn't worth the cost of fixing
You can’t perform that action at this time.
0 commit comments