-
Notifications
You must be signed in to change notification settings - Fork 7
/
.golangci.yml
63 lines (63 loc) · 1.36 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
linters:
enable-all: true
disable:
- cyclop
- deadcode
- depguard
- dupl
- dupword
- exhaustive
- exhaustivestruct
- exhaustruct
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goerr113
- golint
- gomnd
- ifshort
- interfacer
- ireturn
- makezero
- maligned
- musttag
- nlreturn
- nosnakecase
- paralleltest
- prealloc
- scopelint
- structcheck
- testpackage
- varcheck
- varnamelen
- wastedassign
- wsl
linters-settings:
goconst:
min-occurrences: 4
gocritic:
disabled-checks:
- singleCaseSwitch
lll:
line-length: 150
maintidx:
under: 15
nestif:
min-complexity: 10
revive:
rules:
- name: var-naming
arguments:
- ["ID"]
stylecheck:
initialisms: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS"]
issues:
exclude-rules:
- path: 'example_test\.go'
text: 'rewrite if-else to switch statement'
- path: '(.+)_test\.go'
text: 'Use of weak random number generator'
- path: '(.+)_test\.go'
linters:
- lll