-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
85 lines (83 loc) · 1.46 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
linters:
enable:
- stylecheck
- interfacer
- unconvert
- goconst
- goconst
- gocyclo
- gocognit
- asciicheck
- gofmt
- goimports
- maligned
- depguard
- misspell
- lll
- unparam
- dogsled
- nakedret
- prealloc
- scopelint
- gocritic
- gochecknoinits
- funlen
- whitespace
- wsl
- goprintffuncname
- gomnd
- gomodguard
- testpackage
- nestif
- exportloopref
- exhaustive
- nolintlint
- godot
- goerr113
- godox
- bodyclose
- cyclop
- dupl
- durationcheck
- errorlint
# - exhaustivestruct
- forbidigo
- gci
- gochecknoglobals
- gofumpt
- goheader
- golint
- gosec
- ifshort
- makezero
- nlreturn
- noctx
- paralleltest
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- thelper
- tparallel
# - wrapcheck
linters-settings:
funlen:
lines: 85
statements: 45
cyclop:
# the maximal code complexity to report
max-complexity: 13
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude lll issues for test files
- path: _test\.go
linters:
- lll
# Exclude lll issues specific comment
- source: "// - code: https://github.com/runatlantis/atlantis"
linters:
- lll
- source: "// https://github.com/runatlantis"
linters:
- lll