-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
50 lines (42 loc) · 1.04 KB
/
.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
run:
tests: true
output:
print-issued-lines: true
linters:
enable:
- bodyclose
- exhaustive
- exportloopref
- goconst
- gocritic
- goerr113
- goimports
- golint
- gosimple
- govet
- nakedret
- rowserrcheck
- staticcheck
- unconvert
- whitespace
issues:
exclude-rules:
- path: _test.go
linters:
- errcheck
linters-settings:
govet:
enable-all: true
errcheck:
exclude: scripts/errcheck_excludes.txt
whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
exhaustive:
# indicates that switch statements are to be considered exhaustive if a
# 'default' case is present, even if all enum members aren't listed in the
# switch
# default-signifies-exhaustive: false
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
max-func-lines: 1