Skip to content

Commit 8e2bbdb

Browse files
build(deps): bump golangci/golangci-lint-action from 6 to 7 (#705)
* build(deps): bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v6...v7) --- 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]> * golangci-lint migrate --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]>
1 parent d1039b2 commit 8e2bbdb

File tree

2 files changed

+72
-62
lines changed

2 files changed

+72
-62
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
go-version: stable
1818

1919
- name: golangci-lint
20-
uses: golangci/golangci-lint-action@v6
20+
uses: golangci/golangci-lint-action@v7
2121
with:
2222
version: latest
2323

.golangci.yml

Lines changed: 71 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,85 @@
1+
version: "2"
12
run:
23
tests: false
3-
4-
linters-settings:
5-
errcheck:
6-
check-type-assertions: true
7-
check-blank: true
8-
9-
govet:
10-
enable:
11-
- atomicalign
12-
- shadow
13-
enable-all: false
14-
disable-all: false
15-
gocyclo:
16-
min-complexity: 30
17-
gocognit:
18-
min-complexity: 30
19-
dupl:
20-
threshold: 100
21-
224
linters:
23-
enable-all: true
5+
default: all
246
disable:
25-
# deprecated linters
26-
- exportloopref
27-
####################
28-
29-
# conflicted with go fmt
30-
- nolintlint
31-
32-
# workaround to avoid linter failures of getting malformed json
33-
- musttag
34-
35-
- err113
36-
377
- bodyclose
388
- contextcheck
39-
- nilerr
40-
- noctx
41-
- rowserrcheck
42-
- sqlclosecheck
43-
- tparallel
9+
- cyclop
10+
- depguard
11+
- dupl
12+
- durationcheck
13+
- err113
14+
- errcheck
4415
- errname
16+
- errorlint
17+
- exhaustive
18+
- exhaustruct
4519
- forcetypeassert
20+
- gochecknoglobals
21+
- gochecknoinits
4622
- gocyclo
47-
- unparam
48-
- nakedret
49-
- lll
50-
- dupl
23+
- godot
5124
- gosec
52-
- gochecknoinits
53-
- gochecknoglobals
54-
- exhaustruct
25+
- inamedparam
26+
- lll
27+
- musttag
28+
- nakedret
29+
- nilerr
30+
- nlreturn
31+
- noctx
32+
- nolintlint
5533
- nonamedreturns
56-
- errcheck
34+
- perfsprint
35+
- recvcheck
36+
- rowserrcheck
37+
- sqlclosecheck
5738
- staticcheck
58-
- stylecheck
59-
- wsl
60-
- varnamelen
39+
- tagalign
6140
- tagliatelle
62-
- nlreturn
63-
- wrapcheck
41+
- tparallel
42+
- unparam
43+
- varnamelen
6444
- wastedassign
65-
- durationcheck
66-
- errorlint
67-
- cyclop
68-
- godot
69-
- exhaustive
70-
- depguard
71-
- tagalign
72-
- inamedparam
73-
- perfsprint
74-
- recvcheck
75-
fast: false
45+
- wrapcheck
46+
- wsl
47+
settings:
48+
dupl:
49+
threshold: 100
50+
errcheck:
51+
check-type-assertions: true
52+
check-blank: true
53+
gocognit:
54+
min-complexity: 30
55+
gocyclo:
56+
min-complexity: 30
57+
govet:
58+
enable:
59+
- atomicalign
60+
- shadow
61+
enable-all: false
62+
disable-all: false
63+
exclusions:
64+
generated: lax
65+
presets:
66+
- comments
67+
- common-false-positives
68+
- legacy
69+
- std-error-handling
70+
paths:
71+
- third_party$
72+
- builtin$
73+
- examples$
74+
formatters:
75+
enable:
76+
- gci
77+
- gofmt
78+
- gofumpt
79+
- goimports
80+
exclusions:
81+
generated: lax
82+
paths:
83+
- third_party$
84+
- builtin$
85+
- examples$

0 commit comments

Comments
 (0)