Skip to content

Commit d789dce

Browse files
author
nchika
committed
Migrate
1 parent 904119a commit d789dce

File tree

1 file changed

+52
-44
lines changed

1 file changed

+52
-44
lines changed

.golangci.yml

+52-44
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
1+
version: "2"
12
run:
2-
timeout: "10m"
33
go: "1.24"
4-
5-
issues:
6-
exclude:
7-
- fmt.Fprintf
8-
- fmt.Fprintln
9-
- fmt.Fprint
10-
- fmt.Printf
11-
- buf.WriteByte
12-
- buf.WriteRune
13-
- Close
14-
exclude-use-default: false
15-
exclude-rules:
16-
- path: ".*_test\\.go"
17-
linters:
18-
- goconst
19-
- linters:
20-
- errcheck
21-
source: "defer"
22-
max-same-issues: 0
23-
244
linters:
25-
enable: # Alphabetic order
5+
enable:
266
- asciicheck
277
- bidichk
288
- bodyclose
@@ -32,7 +12,6 @@ linters:
3212
- decorder
3313
- dogsled
3414
- durationcheck
35-
- errcheck
3615
- errchkjson
3716
- errname
3817
- errorlint
@@ -43,17 +22,12 @@ linters:
4322
- gochecknoinits
4423
- goconst
4524
- gocritic
46-
- gofmt
47-
- goimports
4825
- gomoddirectives
49-
- gosimple
50-
- govet
51-
- ineffassign
5226
- interfacebloat
5327
- intrange
5428
- makezero
55-
- misspell
5629
- mirror
30+
- misspell
5731
- nakedret
5832
- nilerr
5933
- noctx
@@ -68,25 +42,59 @@ linters:
6842
- sloglint
6943
- sqlclosecheck
7044
- staticcheck
71-
- stylecheck
7245
- tagliatelle
73-
- tenv
7446
- thelper
75-
- typecheck
7647
- unconvert
7748
- unparam
78-
- unused
7949
- usestdlibvars
8050
- wastedassign
8151
- whitespace
82-
83-
linters-settings:
84-
errcheck:
85-
check-type-assertions: true
86-
check-blank: true
87-
disable-default-exclusions: false
88-
tagliatelle:
89-
case:
90-
use-field-name: true
91-
rules:
92-
json: snake
52+
settings:
53+
errcheck:
54+
disable-default-exclusions: false
55+
check-type-assertions: true
56+
check-blank: true
57+
tagliatelle:
58+
case:
59+
rules:
60+
json: snake
61+
use-field-name: true
62+
exclusions:
63+
generated: lax
64+
rules:
65+
- linters:
66+
- goconst
67+
path: .*_test\.go
68+
- linters:
69+
- errcheck
70+
source: defer
71+
- path: (.+)\.go$
72+
text: fmt.Fprintf
73+
- path: (.+)\.go$
74+
text: fmt.Fprintln
75+
- path: (.+)\.go$
76+
text: fmt.Fprint
77+
- path: (.+)\.go$
78+
text: fmt.Printf
79+
- path: (.+)\.go$
80+
text: buf.WriteByte
81+
- path: (.+)\.go$
82+
text: buf.WriteRune
83+
- path: (.+)\.go$
84+
text: Close
85+
paths:
86+
- third_party$
87+
- builtin$
88+
- examples$
89+
issues:
90+
max-same-issues: 0
91+
formatters:
92+
enable:
93+
- gofmt
94+
- goimports
95+
exclusions:
96+
generated: lax
97+
paths:
98+
- third_party$
99+
- builtin$
100+
- examples$

0 commit comments

Comments
 (0)