-
Notifications
You must be signed in to change notification settings - Fork 18
/
.golangci.yml
45 lines (38 loc) · 964 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
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
- errcheck
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- lll
- staticcheck
- typecheck
- unused
linters-settings:
gocyclo:
# default is 30.
min-complexity: 20
goimports:
# to be edited by the template
local-prefixes:
"github.com/mendersoftware/#CI_PROJECT_NAME#"
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