-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
61 lines (55 loc) · 1.17 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
run:
timeout: 30s
linters-settings:
govet:
enable-all: true
errcheck:
# Report all unchecked errors
check-type-assertions: true
check-blank: true
staticcheck:
checks:
# Use a common set of staticcheck checks
- SA*
- ST*
- S1000
- S1001
gocyclo:
min-complexity: 15 # Set a minimum complexity threshold
depguard:
rules:
prevent_redundant_packages:
list-mode: lax # allow unless explicitely denied
files:
- $all
- "!$test"
allow:
- $gostd
deny:
- pkg: github.com/pkg/errors
desc: "Avoid using pkg/errors; use standard library errors instead."
linters:
enable:
- govet
- errcheck
- staticcheck
- gosimple
- gocyclo
- depguard
- ineffassign
- unused
- typecheck
- unconvert
- misspell
- gofmt
- gosec
# - dupl #fix later. it fails with false positives in tests files
# Enable fast linters (these run quickly and catch common issues)
fast: true
# Configure issues output
#issues:
# Configure the output format
output:
color: always
formats: colored-line-number
sort: path