-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.golangci.yml
More file actions
59 lines (56 loc) · 1.28 KB
/
Copy path.golangci.yml
File metadata and controls
59 lines (56 loc) · 1.28 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
57
58
59
version: "2"
run:
timeout: 5m
tests: true
linters:
disable:
- dupl
- errcheck
- goconst
- gosec
- revive
enable:
# - gocyclo # Disabled for now: high complexity acceptable during bootstrap
- misspell
- unconvert
- unparam
settings:
dupl:
threshold: 100
errcheck:
check-type-assertions: false
check-blank: false
exclude-files:
- ".*_test\\.go$"
exclude-functions:
- (*database/sql.DB).Close
- (*database/sql.Rows).Close
- (*database/sql.Tx).Rollback
goconst:
min-len: 3
min-occurrences: 3
gocyclo:
min-complexity: 15
misspell:
locale: US
revive:
rules:
- name: var-naming
- name: exported
issues:
exclude-rules:
- path: _test\.go
linters:
- gosec
- revive
- text: "var-naming: avoid meaningless package names"
- text: "exported.*VCStorage.*stutters"
- text: "G201: SQL string formatting"
- text: "G301: Expect directory permissions"
- text: "G204: Subprocess launched"
- text: "G115: integer overflow conversion"
- text: "G304.*file inclusion via variable"
- path: (export|sync|init)\.go
text: "G302|G306.*0644"
- path: cmd/vc/main\.go
text: "G302"