-
Notifications
You must be signed in to change notification settings - Fork 7
/
.golangci.yml
65 lines (59 loc) · 1.8 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
run:
deadline: 8m
# which dirs to skip: issues from them won't be reported;
# can use regexp here: generated.*, regexp is applied on full path;
# default value is empty list, but default dirs are skipped independently
# from this option's value (see skip-dirs-use-default).
#skip-dirs:
# funcs.go and template.go are skipped because they weren't changed,
# and still cause issues. I suspect that the upstream code was never
# linted. Additionally, the exec_test.go and multi_test.go are
# excluded as those issues stem from existing upstream lint issues.
skip-files:
- internal/pkg/text/template/exec_test.go
- internal/pkg/text/template/multi_test.go
- internal/pkg/text/template/funcs.go
- internal/pkg/text/template/template.go
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
#skip-dirs-use-default: true
linters:
enable:
- lll
- vet
- gofmt
- golint
- structcheck
- unconvert
- deadcode
- goconst
- unused
- gosimple
- varcheck
- misspell
- gocyclo
- vetshadow
- megacheck
- stylecheck
- govet
disable:
- typecheck
- ineffassign
- errcheck
- interfacer
- unparam
- nakedret
- prealloc
- scopelint
- gocritic
issues:
exclude-use-default: true
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true
# make issues output unique by line, default is true
uniq-by-line: true