-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yml
More file actions
53 lines (50 loc) · 838 Bytes
/
.golangci.yml
File metadata and controls
53 lines (50 loc) · 838 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
51
52
53
run:
timeout: 5m
linters:
enable:
- gofmt
- golint
- govet
- errcheck
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- typecheck
- gosec
- gocyclo
- dupl
- misspell
- unparam
- unconvert
- goconst
- gocognit
- asciicheck
- gofumpt
- goimports
- revive
linters-settings:
gocyclo:
min-complexity: 15
goconst:
min-len: 2
min-occurrences: 2
misspell:
locale: US
revive:
confidence: 0.8
enable-all-rules: false
rules:
- name: exported
arguments:
- checkPrivateReceivers
- sayRepetitiveInsteadOfStutters
issues:
exclude-use-default: false
exclude:
# for "revive" linter
- "should have comment"
- "comment on exported"