Skip to content

Commit 398fd59

Browse files
Bump golangci/golangci-lint-action from 6.5.2 to 7.0.0 (#1327)
* Bump golangci/golangci-lint-action from 6.5.2 to 7.0.0 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.5.2 to 7.0.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@55c2c14...1481404) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Update .golangci.yml --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daisuke Maki <[email protected]>
1 parent 16a85dc commit 398fd59

File tree

2 files changed

+83
-70
lines changed

2 files changed

+83
-70
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
1010
with:
1111
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
1313
- name: Run go vet
1414
run: |
1515
go vet ./...

.golangci.yml

Lines changed: 82 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,114 @@
1-
linters-settings:
2-
govet:
3-
enable-all: true
4-
disable:
5-
- shadow
6-
- fieldalignment
7-
1+
version: "2"
82
linters:
9-
enable-all: true
3+
default: all
104
disable:
115
- cyclop
126
- depguard
137
- dupl
14-
- exhaustive
15-
- errorlint
168
- err113
9+
- errorlint
10+
- exhaustive
1711
- funlen
18-
- gci
1912
- gochecknoglobals
2013
- gochecknoinits
2114
- gocognit
2215
- gocritic
2316
- gocyclo
2417
- godot
2518
- godox
26-
- gofumpt
27-
- gomnd
2819
- gosec
20+
- gosmopolitan
2921
- govet
30-
- inamedparam # oh, sod off
31-
- ireturn # No, I _LIKE_ returning interfaces
22+
- inamedparam
23+
- ireturn
3224
- lll
33-
- maintidx # Do this in code review
25+
- maintidx
3426
- makezero
3527
- mnd
3628
- nakedret
3729
- nestif
3830
- nlreturn
39-
- nonamedreturns # visit this back later
31+
- nonamedreturns
4032
- paralleltest
4133
- perfsprint
4234
- recvcheck
35+
- staticcheck
4336
- tagliatelle
44-
- testifylint # TODO: revisit when we have the chance
37+
- testifylint
4538
- testpackage
46-
- thelper # Tests are fine
47-
- varnamelen # Short names are ok
39+
- thelper
40+
- varnamelen
4841
- wrapcheck
4942
- 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$
51102
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.
97103
max-issues-per-linter: 0
98-
99-
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
100104
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$

0 commit comments

Comments
 (0)