forked from project-machine/disko
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
54 lines (52 loc) · 914 Bytes
/
.golangci.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
linters-settings:
wsl:
allow-cuddle-declarations: true
funlen:
lines: 80
statements: 60
linters:
# you can see what is disabled with: golangci-lint linters
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exhaustive
- exportloopref
- funlen
- gochecknoglobals
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- wsl
issues:
exclude-rules:
- linters: ["gocritic"]
text: "ifElseChain:"
# test files can have globals
- linters: ["gochecknoglobals"]
path: _test.go