Skip to content

Commit a34c0bc

Browse files
committed
[chore] bump version of golangci-lint to 2.1.6
1 parent 7c13500 commit a34c0bc

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: golangci-lint
4242
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4343
with:
44-
version: v1.63.4
44+
version: v2.1.6
4545
- name: Check 'go mod tidy' makes no changes
4646
run: |
4747
go mod tidy

.golangci.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
1+
version: "2"
12
run:
23
timeout: 6m
34
issues-exit-code: 1
45
linters:
5-
disable-all: true
6+
default: none
67
enable:
78
- gocritic
8-
- goimports
99
- govet
1010
- misspell
11-
- unused
1211
- unconvert
12+
- unused
13+
exclusions:
14+
generated: lax
15+
presets:
16+
- comments
17+
- common-false-positives
18+
- legacy
19+
- std-error-handling
20+
paths:
21+
- third_party$
22+
- builtin$
23+
- examples$
1324
issues:
1425
new: true
26+
formatters:
27+
enable:
28+
- goimports
29+
exclusions:
30+
generated: lax
31+
warn-unused: true
32+
paths:
33+
- third_party$
34+
- builtin$
35+
- examples$

0 commit comments

Comments
 (0)