-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.golangci.yml
55 lines (47 loc) · 889 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
49
50
51
52
53
54
55
# Golangci-lint documentation: https://golangci-lint.run/
# Analysis running options
run:
# Disable tests to avoid redundancy with test workflow
tests: false
# Dirs to ignore
skip-dirs:
- internal/terraform
issues:
# Maximum issues count per one linter
max-issues-per-linter: 0
# Maximum count of issues with the same text
max-same-issues: 0
# Configuration of specific linters
linters-settings:
gocyclo:
min-complexity: 20
govet:
check-shadowing: true
misspell:
locale: US
lll:
line-length: 140
linters:
enable:
- deadcode
- dupl
- errcheck
- exportloopref
- goconst
- gocyclo
- godox
- gofmt
- goimports
- golint
- govet
- lll
- maligned
- misspell
- prealloc
- rowserrcheck
- structcheck
- unconvert
- unparam
- unused
- varcheck
- whitespace