Skip to content

Commit 991f5ec

Browse files
dependabot[bot]savmesweatybridge
authored
chore(deps): bump golangci/golangci-lint-action from 6 to 8 (#234)
* chore(deps): bump golangci/golangci-lint-action from 6 to 8 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 8. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v6...v8) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * chore: update golangci-lint config (#240) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Savanovich <[email protected]> Co-authored-by: Han Qiao <[email protected]>
1 parent f8cf4f4 commit 991f5ec

File tree

2 files changed

+35
-11
lines changed

2 files changed

+35
-11
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- run: go mod download
3333
- run: go build -v .
3434
- name: Run linters
35-
uses: golangci/golangci-lint-action@v6
35+
uses: golangci/golangci-lint-action@v8
3636
with:
3737
version: latest
3838

.golangci.yml

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
# Visit https://golangci-lint.run/ for usage documentation
2-
# and information on other useful linters
3-
issues:
4-
max-per-linter: 0
5-
max-same-issues: 0
6-
1+
version: "2"
72
linters:
8-
disable-all: true
93
enable:
4+
- dupl
5+
- gosec
6+
- nakedret
7+
- whitespace
108
- durationcheck
119
- errcheck
1210
- copyloopvar
1311
- forcetypeassert
1412
- godot
15-
- gofmt
16-
- gosimple
1713
- ineffassign
1814
- makezero
1915
- misspell
@@ -24,4 +20,32 @@ linters:
2420
- unconvert
2521
- unparam
2622
- unused
27-
- govet
23+
- govet
24+
settings:
25+
dupl:
26+
threshold: 250
27+
exclusions:
28+
generated: lax
29+
rules:
30+
- text: 'ST1003:'
31+
linters:
32+
- staticcheck
33+
presets:
34+
- comments
35+
- common-false-positives
36+
- legacy
37+
- std-error-handling
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$
42+
formatters:
43+
enable:
44+
- gofmt
45+
- goimports
46+
exclusions:
47+
generated: lax
48+
paths:
49+
- third_party$
50+
- builtin$
51+
- examples$

0 commit comments

Comments
 (0)