-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yaml
48 lines (47 loc) · 842 Bytes
/
.golangci.yaml
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
linters:
enable:
- gofmt
- gocyclo
- bidichk
- decorder
- dupword
- errname
- errorlint
- godot
- gosec
- makezero
- misspell
- nilnil
- noctx
- bodyclose
- prealloc
- predeclared
- stylecheck
- tenv
- unparam
- whitespace
- asasalint
- asciicheck
- containedctx
- contextcheck
- durationcheck
- gochecknoglobals
- goconst
- gocritic
- nestif
- nilerr
- sloglint
- wrapcheck
linters-settings:
gocyclo:
min-complexity: 15
govet:
check-shadowing: true
gosec:
excludes:
- G501 # excluded md5 usage error, because it is used only for non-vulnerable hashes for simplicity
- G401 # same as above
output:
format: colored-line-number
print-issued-lines: false
print-linter-name: true