-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
50 lines (46 loc) · 781 Bytes
/
Copy path.golangci.yml
File metadata and controls
50 lines (46 loc) · 781 Bytes
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
# More info on config here: https://github.com/golangci/golangci-lint#config-file
version: "2"
run:
timeout: 10s
tests: true
output:
formats:
text:
path: stdout
print-linter-name: true
colors: true
linters:
default: none
enable:
- unused
- govet
- errcheck
- ineffassign
- dupl
- goconst
- gosec
- gocritic
- staticcheck
exclusions:
presets:
- comments
- std-error-handling
rules:
- linters:
- staticcheck
text: "ST1003"
- linters:
- staticcheck
text: "ST1000"
settings:
govet:
enable:
- shadow
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
formatters:
enable:
- goimports