Skip to content

Commit c7a0b1a

Browse files
deps(actions): bump golangci/golangci-lint-action from 6 to 7 (#57)
* deps(actions): 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]> * ci(fix): Migrate from v1 to v2 golangci-lint config Signed-off-by: Dave Henderson <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Dave Henderson <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dave Henderson <[email protected]>
1 parent 0c001dc commit c7a0b1a

File tree

3 files changed

+41
-36
lines changed

3 files changed

+41
-36
lines changed

.github/dependabot.yml

-6
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@ updates:
44
directory: "/"
55
schedule:
66
interval: weekly
7-
day: saturday
8-
time: "02:00"
9-
timezone: Canada/Eastern
107
open-pull-requests-limit: 10
118
commit-message:
129
prefix: deps(go)
1310
- package-ecosystem: github-actions
1411
directory: "/"
1512
schedule:
1613
interval: weekly
17-
day: saturday
18-
time: "02:00"
19-
timezone: Canada/Eastern
2014
open-pull-requests-limit: 10
2115
commit-message:
2216
prefix: deps(actions)

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
go-version-file: 'go.mod'
3535
- name: golangci-lint
36-
uses: golangci/golangci-lint-action@v6
36+
uses: golangci/golangci-lint-action@v7
3737
with:
3838
version: latest
3939
args: --verbose --max-same-issues=0 --max-issues-per-linter=0

.golangci.yml

+40-29
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,77 @@
1-
linters-settings:
2-
govet:
3-
enable-all: true
4-
gocyclo:
5-
min-complexity: 10
6-
dupl:
7-
threshold: 100
8-
goconst:
9-
min-len: 2
10-
min-occurrences: 4
11-
lll:
12-
line-length: 140
13-
nolintlint:
14-
allow-unused: false # report any unused nolint directives
15-
require-explanation: false # don't require an explanation for nolint directives
16-
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
17-
1+
version: "2"
182
linters:
19-
disable-all: true
3+
default: none
204
enable:
215
- asciicheck
226
- bodyclose
237
- copyloopvar
24-
# - dogsled
258
- dupl
269
- errcheck
2710
- exhaustive
2811
- funlen
29-
- gci
3012
- gochecknoglobals
3113
- gochecknoinits
3214
- gocognit
3315
- goconst
3416
- gocritic
3517
- gocyclo
3618
- godox
37-
- gofmt
38-
# - gofumpt
3919
- goheader
40-
- goimports
41-
# - gomnd
4220
- gomodguard
4321
- goprintffuncname
4422
- gosec
45-
- gosimple
4623
- govet
4724
- ineffassign
4825
- lll
4926
- misspell
5027
- nakedret
5128
- nestif
52-
# - nlreturn
5329
- noctx
5430
- nolintlint
5531
- prealloc
5632
- revive
5733
- rowserrcheck
5834
- sqlclosecheck
5935
- staticcheck
60-
- stylecheck
61-
- typecheck
6236
- unconvert
6337
- unparam
6438
- unused
6539
- whitespace
66-
# - wsl
40+
settings:
41+
dupl:
42+
threshold: 100
43+
goconst:
44+
min-len: 2
45+
min-occurrences: 4
46+
gocyclo:
47+
min-complexity: 10
48+
govet:
49+
enable-all: true
50+
lll:
51+
line-length: 140
52+
nolintlint:
53+
require-explanation: false
54+
require-specific: false
55+
allow-unused: false
56+
exclusions:
57+
generated: lax
58+
presets:
59+
- comments
60+
- common-false-positives
61+
- legacy
62+
- std-error-handling
63+
paths:
64+
- third_party$
65+
- builtin$
66+
- examples$
67+
formatters:
68+
enable:
69+
- gci
70+
- gofmt
71+
- goimports
72+
exclusions:
73+
generated: lax
74+
paths:
75+
- third_party$
76+
- builtin$
77+
- examples$

0 commit comments

Comments
 (0)