Skip to content

Commit f77ae77

Browse files
committed
Upgrade golangci-lint
like #159 Signed-off-by: Friedrich Gonzalez <[email protected]>
1 parent ad5c15b commit f77ae77

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
go-version-file: .go-version
3333
cache: true
3434
- name: Golangci-lint
35-
uses: golangci/golangci-lint-action@v6.5.1
35+
uses: golangci/golangci-lint-action@v8.0.0

.golangci.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1+
version: "2"
12
linters:
23
enable:
3-
- goimports
44
- misspell
55
- revive
6-
7-
issues:
8-
exclude-rules:
9-
- path: _test.go
10-
linters:
11-
- errcheck
6+
exclusions:
7+
generated: lax
8+
presets:
9+
- comments
10+
- common-false-positives
11+
- legacy
12+
- std-error-handling
13+
rules:
14+
- linters:
15+
- errcheck
16+
path: _test.go
17+
paths:
18+
- third_party$
19+
- builtin$
20+
- examples$
21+
formatters:
22+
enable:
23+
- goimports
24+
exclusions:
25+
generated: lax
26+
paths:
27+
- third_party$
28+
- builtin$
29+
- examples$

0 commit comments

Comments
 (0)