-
Notifications
You must be signed in to change notification settings - Fork 25
/
.golangci.yml
95 lines (76 loc) · 2.3 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
run:
concurrency: 4
timeout: 1m
# exit code when at least one issue was found
issues-exit-code: 1
# include test files
tests: true
build-tags:
# which dirs to skip: issues from them won't be reported;
skip-dirs:
# enables skipping of default directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# which files to skip: they will be analyzed, but issues from them won't be
# reported.
skip-files:
# disallow multiple parallel golangci-lint instances
allow-parallel-runners: false
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate
format: colored-line-number
# print lines of code with issue
print-issued-lines: true
# print linter name in the end of issue text
print-linter-name: true
# make issues output unique by line
uniq-by-line: true
linters-settings:
errcheck:
# do not report about not checking errors in type assertions: `a :=
# b.(MyStruct)`
check-type-assertions: false
# do not report about assignment of errors to blank identifier: `num, _ :=
# strconv.Atoi(numStr)`
check-blank: false
# path to a file containing a list of functions to exclude from checking
# see https://github.com/kisielk/errcheck#excluding-functions for details
exclude: .errcheck-excludes
govet:
# report about shadowed variables
check-shadowing: true
# settings per analyzer
settings:
# run `go tool vet help` to see all analyzers
printf:
# run `go tool vet help printf` to see available settings for `printf`
# analyzer
funcs:
- (github.com/grailbio/base/log).Fatal
- (github.com/grailbio/base/log).Output
- (github.com/grailbio/base/log).Outputf
- (github.com/grailbio/base/log).Panic
- (github.com/grailbio/base/log).Panicf
- (github.com/grailbio/base/log).Print
- (github.com/grailbio/base/log).Printf
unused:
# do not report unused exported identifiers
check-exported: false
misspell:
locale: US
linters:
disable-all: true
fast: false
enable:
- deadcode
- goimports
- gosimple
- govet
- errcheck
- ineffassign
- misspell
- staticcheck
- structcheck
- typecheck
- unused
- varcheck