-
Notifications
You must be signed in to change notification settings - Fork 11
/
.golangci.yml
48 lines (41 loc) · 1007 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
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
# Skip linting _test.go files
tests: false
# Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: true
linters:
enable:
- bodyclose
- deadcode
- errcheck
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- lll
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
linters-settings:
gocyclo:
# default is 30.
min-complexity: 20
goimports:
# to be edited by the template
local-prefixes:
"github.com/mendersoftware/deviceconfig"
lll:
# max line length, lines longer will be reported. Default is 120.
line-length: 100
# tab width in spaces. Default to 1.
tab-width: 4