-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.golangci.yaml
42 lines (41 loc) · 1.15 KB
/
.golangci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
linters-settings:
nlreturn:
block-size: 2
godot:
scope: toplevel
exclude:
- "^fixme:"
- "^todo:"
- "^ -"
wsl:
enforce-err-cuddling: true
tagliatelle:
case:
rules:
json: snake
linters:
enable-all: true
disable:
- ifshort # deprecated
- nosnakecase # deprecated
- interfacer # deprecated
- deadcode # deprecated
- exhaustivestruct # deprecated
- varcheck # deprecated
- structcheck # deprecated
- maligned # deprecated
- scopelint # deprecated
- golint # deprecated
- rowserrcheck # https://github.com/golangci/golangci-lint/issues/2649
- sqlclosecheck # https://github.com/golangci/golangci-lint/issues/2649
- wastedassign # https://github.com/golangci/golangci-lint/issues/2649
- gomnd # we use status code numbers and for our use case it's not practical
- godox # we have TODOs at this stage of the project, enable in future
- forbidigo # we use things like fmt.Printf for debugging, enable in future
- gci # conflicts with goimports
- gofumpt # conflicts with goimports
- depguard
- testpackage
- funlen
- lll
fast: true