Skip to content

Commit 79a2bec

Browse files
committed
migrate golangci-lint config to v2 format
1 parent e191cf9 commit 79a2bec

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
- name: golangci-lint
2424
uses: golangci/[email protected]
2525
with:
26-
verify: false # disable verifying the configuration since golangci is currently introducing breaking changes in the configuration
26+
verify: true
2727

.golangci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
version: "2"
12
run:
23
timeout: 5m
34
tests: false
5+
linters:
6+
exclusions:
7+
generated: lax
8+
presets:
9+
- comments
10+
- common-false-positives
11+
- legacy
12+
- std-error-handling
13+
paths:
14+
- third_party$
15+
- builtin$
16+
- examples$
17+
formatters:
18+
exclusions:
19+
generated: lax
20+
paths:
21+
- third_party$
22+
- builtin$
23+
- examples$

0 commit comments

Comments
 (0)