forked from haproxytech/client-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
43 lines (39 loc) · 798 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
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 25
maligned:
suggest-new: true
dupl:
threshold: 200
goconst:
min-len: 2
min-occurrences: 2
linters:
enable:
- gocritic
- stylecheck
- goimports
- gosec
- unconvert
disable:
- maligned
- prealloc
- gochecknoglobals
issues:
exclude-rules:
- linters:
- stylecheck
text: "ST1003:"
run:
skip-dirs:
- test
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.17.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"