Skip to content

Commit 50da0a3

Browse files
committed
more explicit linting
1 parent cb9de92 commit 50da0a3

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: "2"
2+
run:
3+
tests: true
4+
linters:
5+
enable:
6+
- asciicheck
7+
- bidichk
8+
- gocheckcompilerdirectives
9+
- misspell
10+
- rowserrcheck
11+
- sqlclosecheck
12+
- forbidigo
13+
disable:
14+
- gochecknoglobals
15+
- prealloc
16+
- wsl
17+
exclusions:
18+
generated: lax
19+
presets:
20+
- comments
21+
- common-false-positives
22+
- legacy
23+
- std-error-handling
24+
paths:
25+
- third_party$
26+
- builtin$
27+
- examples$
28+
rules:
29+
- path: cmd
30+
linters:
31+
- forbidigo
32+
settings:
33+
forbidigo:
34+
forbid:
35+
- pattern: ^(fmt\.Print(|f|ln))$
36+
formatters:
37+
enable:
38+
- gofmt
39+
exclusions:
40+
generated: lax
41+
paths:
42+
- third_party$
43+
- builtin$
44+
- examples$

0 commit comments

Comments
 (0)