-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
56 lines (52 loc) · 1.03 KB
/
Copy path.golangci.yml
File metadata and controls
56 lines (52 loc) · 1.03 KB
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
version: "2"
linters:
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- misspell
- gosec
- revive
- wrapcheck
settings:
revive:
enable-all-rules: true
rules:
- name: package-comments
disabled: true
- name: cognitive-complexity
disabled: true
- name: cyclomatic
disabled: true
- name: function-length
disabled: true
- name: line-length-limit
arguments: [120]
- name: add-constant
arguments:
- max-lit-count: "3"
allow-strs: '"","%w: %s"'
allow-ints: "0,1,2,10,30,64,100"
allow-floats: "0.0,0.,1.0,1.,2.0,2."
errcheck:
check-type-assertions: true
exclude-functions:
- fmt.Fprintln
- fmt.Fprintf
formatters:
enable:
- gofmt
- gofumpt
- goimports
- golines
settings:
golines:
max-len: 120
issues:
fix: true
run:
concurrency: 4
timeout: 1m
tests: false