File tree 2 files changed +67
-31
lines changed
2 files changed +67
-31
lines changed Original file line number Diff line number Diff line change 9
9
10
10
permissions :
11
11
contents : read
12
- pull-requests : read
13
12
14
13
jobs :
15
14
golangci :
21
20
with :
22
21
go-version : 1.23.x
23
22
- name : golangci-lint
24
- uses : golangci/golangci-lint-action@v6
25
- with :
26
- only-new-issues : ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
23
+ uses : golangci/golangci-lint-action@v7
Original file line number Diff line number Diff line change 1
- issues :
2
- exclude-dirs :
3
- - docs
4
- max-issues-per-linter : 0
5
- max-same-issues : 0
1
+ version : " 2"
2
+ run :
3
+ issues-exit-code : 1
4
+ tests : false
6
5
linters :
7
- disable :
8
- - depguard
9
6
enable :
10
- - errcheck
11
- - gosimple
12
- - govet
13
- - ineffassign
14
- - staticcheck
15
- - unused
16
- # Defaults above ours below
7
+ - asasalint
8
+ - asciicheck
9
+ - bidichk
10
+ - bodyclose
11
+ - contextcheck
17
12
- copyloopvar
13
+ - durationcheck
14
+ - errchkjson
15
+ - errorlint
16
+ - exhaustive
17
+ - fatcontext
18
+ - gocheckcompilerdirectives
19
+ - gochecksumtype
20
+ - gomodguard
21
+ - gosec
22
+ - gosmopolitan
23
+ - loggercheck
24
+ - makezero
25
+ - musttag
26
+ - nilerr
27
+ - nilnesserr
28
+ - noctx
29
+ - perfsprint
30
+ - prealloc
31
+ - protogetter
32
+ - reassign
33
+ - recvcheck
34
+ - rowserrcheck
35
+ - spancheck
36
+ - sqlclosecheck
37
+ - testifylint
38
+ - unparam
18
39
- usestdlibvars
19
40
- whitespace
20
- presets :
21
- - bugs
22
- - format
23
- - import
24
- - performance
25
- - unused
26
- # linters-settings:
27
- # errcheck:
28
- # check-type-assertions: true
29
- run :
30
- issues-exit-code : 1
31
- tests : false
32
- timeout : 10m
41
+ - zerologlint
42
+ disable :
43
+ - depguard
44
+ exclusions :
45
+ generated : lax
46
+ presets :
47
+ - comments
48
+ - common-false-positives
49
+ - legacy
50
+ - std-error-handling
51
+ paths :
52
+ - docs
53
+ - third_party$
54
+ - builtin$
55
+ - examples$
56
+ issues :
57
+ max-issues-per-linter : 0
58
+ max-same-issues : 0
59
+ formatters :
60
+ enable :
61
+ - gci
62
+ - gofmt
63
+ - gofumpt
64
+ - goimports
65
+ exclusions :
66
+ generated : lax
67
+ paths :
68
+ - docs
69
+ - third_party$
70
+ - builtin$
71
+ - examples$
You can’t perform that action at this time.
0 commit comments