Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 66bcc79

Browse files
author
Lorenz Kästle
committed
Migrate golangci-lint to v2
1 parent 8fcd271 commit 66bcc79

File tree

2 files changed

+50
-14
lines changed

2 files changed

+50
-14
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
- name: golangci-lint
1818
uses: golangci/golangci-lint-action@v7
1919
with:
20-
version: v1.63.4
20+
version: v2.0.2

.golangci.yml

Lines changed: 49 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,50 @@
1-
run:
2-
timeout: 5m
3-
4-
issues:
5-
exclude-files:
6-
- '(.+)_test\.go'
7-
1+
version: "2"
82
linters:
9-
disable-all: false
10-
presets:
11-
- bugs
12-
- unused
13-
# - style
14-
fast: false
3+
enable:
4+
- asasalint
5+
- asciicheck
6+
- bidichk
7+
- bodyclose
8+
- contextcheck
9+
- durationcheck
10+
- errchkjson
11+
- errorlint
12+
- exhaustive
13+
- gocheckcompilerdirectives
14+
- gochecksumtype
15+
- gosec
16+
- gosmopolitan
17+
- loggercheck
18+
- makezero
19+
- musttag
20+
- nilerr
21+
- nilnesserr
22+
- noctx
23+
- protogetter
24+
- reassign
25+
- recvcheck
26+
- rowserrcheck
27+
- spancheck
28+
- sqlclosecheck
29+
- testifylint
30+
- unparam
31+
- zerologlint
32+
exclusions:
33+
generated: lax
34+
presets:
35+
- comments
36+
- common-false-positives
37+
- legacy
38+
- std-error-handling
39+
paths:
40+
- (.+)_test\.go
41+
- third_party$
42+
- builtin$
43+
- examples$
44+
formatters:
45+
exclusions:
46+
generated: lax
47+
paths:
48+
- third_party$
49+
- builtin$
50+
- examples$

0 commit comments

Comments
 (0)