File tree Expand file tree Collapse file tree 2 files changed +83
-70
lines changed Expand file tree Collapse file tree 2 files changed +83
-70
lines changed Original file line number Diff line number Diff line change 9
9
- uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
10
10
with :
11
11
go-version-file : " go.mod"
12
- - uses : golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
12
+ - uses : golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
13
13
- name : Run go vet
14
14
run : |
15
15
go vet ./...
Original file line number Diff line number Diff line change 1
- linters-settings :
2
- govet :
3
- enable-all : true
4
- disable :
5
- - shadow
6
- - fieldalignment
7
-
1
+ version : " 2"
8
2
linters :
9
- enable-all : true
3
+ default : all
10
4
disable :
11
5
- cyclop
12
6
- depguard
13
7
- dupl
14
- - exhaustive
15
- - errorlint
16
8
- err113
9
+ - errorlint
10
+ - exhaustive
17
11
- funlen
18
- - gci
19
12
- gochecknoglobals
20
13
- gochecknoinits
21
14
- gocognit
22
15
- gocritic
23
16
- gocyclo
24
17
- godot
25
18
- godox
26
- - gofumpt
27
- - gomnd
28
19
- gosec
20
+ - gosmopolitan
29
21
- govet
30
- - inamedparam # oh, sod off
31
- - ireturn # No, I _LIKE_ returning interfaces
22
+ - inamedparam
23
+ - ireturn
32
24
- lll
33
- - maintidx # Do this in code review
25
+ - maintidx
34
26
- makezero
35
27
- mnd
36
28
- nakedret
37
29
- nestif
38
30
- nlreturn
39
- - nonamedreturns # visit this back later
31
+ - nonamedreturns
40
32
- paralleltest
41
33
- perfsprint
42
34
- recvcheck
35
+ - staticcheck
43
36
- tagliatelle
44
- - testifylint # TODO: revisit when we have the chance
37
+ - testifylint
45
38
- testpackage
46
- - thelper # Tests are fine
47
- - varnamelen # Short names are ok
39
+ - thelper
40
+ - varnamelen
48
41
- wrapcheck
49
42
- wsl
50
-
43
+ settings :
44
+ govet :
45
+ disable :
46
+ - shadow
47
+ - fieldalignment
48
+ enable-all : true
49
+ exclusions :
50
+ generated : lax
51
+ presets :
52
+ - comments
53
+ - common-false-positives
54
+ - legacy
55
+ - std-error-handling
56
+ rules :
57
+ - linters :
58
+ - staticcheck
59
+ path : /*.go
60
+ text : ' ST1003: should not use underscores in package names'
61
+ - linters :
62
+ - revive
63
+ path : /*.go
64
+ text : don't use an underscore in package name
65
+ - linters :
66
+ - staticcheck
67
+ text : SA1019
68
+ - linters :
69
+ - contextcheck
70
+ - exhaustruct
71
+ path : /*.go
72
+ - linters :
73
+ - errcheck
74
+ path : /main.go
75
+ - linters :
76
+ - errcheck
77
+ path : internal/codegen/codegen.go
78
+ - linters :
79
+ - errcheck
80
+ - errchkjson
81
+ - forcetypeassert
82
+ path : internal/jwxtest/jwxtest.go
83
+ - linters :
84
+ - errcheck
85
+ - errchkjson
86
+ - forcetypeassert
87
+ path : /*_test.go
88
+ - linters :
89
+ - forbidigo
90
+ path : /*_example_test.go
91
+ - linters :
92
+ - forbidigo
93
+ path : cmd/jwx/jwx.go
94
+ - linters :
95
+ - revive
96
+ path : /*_test.go
97
+ text : ' var-naming: '
98
+ paths :
99
+ - third_party$
100
+ - builtin$
101
+ - examples$
51
102
issues :
52
- exclude-rules :
53
- # not needed
54
- - path : /*.go
55
- text : " ST1003: should not use underscores in package names"
56
- linters :
57
- - stylecheck
58
- - path : /*.go
59
- text : " don't use an underscore in package name"
60
- linters :
61
- - revive
62
- - linters :
63
- - staticcheck
64
- text : ' SA1019'
65
- - path : /*.go
66
- linters :
67
- - contextcheck
68
- - exhaustruct
69
- - path : /main.go
70
- linters :
71
- - errcheck
72
- - path : internal/codegen/codegen.go
73
- linters :
74
- - errcheck
75
- - path : internal/jwxtest/jwxtest.go
76
- linters :
77
- - errcheck
78
- - errchkjson
79
- - forcetypeassert
80
- - path : /*_test.go
81
- linters :
82
- - errcheck
83
- - errchkjson
84
- - forcetypeassert
85
- - path : /*_example_test.go
86
- linters :
87
- - forbidigo
88
- - path : cmd/jwx/jwx.go
89
- linters :
90
- - forbidigo
91
- - path : /*_test.go
92
- text : " var-naming: "
93
- linters :
94
- - revive
95
-
96
- # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
97
103
max-issues-per-linter : 0
98
-
99
- # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
100
104
max-same-issues : 0
101
-
105
+ formatters :
106
+ enable :
107
+ - gofmt
108
+ - goimports
109
+ exclusions :
110
+ generated : lax
111
+ paths :
112
+ - third_party$
113
+ - builtin$
114
+ - examples$
You can’t perform that action at this time.
0 commit comments