-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
99 lines (79 loc) · 1.81 KB
/
.golangci.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
linters:
enable-all: true
disable:
- execinquery # Deprecated
- exportloopref # Deprecated
- gomnd # Deprecated
- depguard # By design
- exhaustruct # By design
- tagliatelle # By design
issues:
fix: true
linters-settings:
decorder:
disable-init-func-first-check: false
errcheck:
check-type-assertions: true
check-blank: true
exclude-functions:
- encoding/json.Marshal
- encoding/json.MarshalIndent
errchkjson:
check-error-free-encoding: true
gci:
sections:
- standard
- default
- localmodule
custom-order: true
gocognit:
min-complexity: 10
gocritic:
enable-all: true
gocyclo:
min-complexity: 10
gofmt:
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
- pattern: 'a[b:len(a)]'
replacement: 'a[b:]'
govet:
enable-all: true
disable:
- fieldalignment # Premature optimization
grouper:
const-require-single-const: true
import-require-single-import: true
var-require-single-var: true
mnd:
ignored-numbers:
- '2'
revive:
enable-all-rules: true
rules:
- name: add-constant
disabled: true # Duplicates goconst and mnd
- name: cognitive-complexity
disabled: true # Duplicates gocognit
- name: line-length-limit
disabled: true # Duplicates lll
testifylint:
enable-all: true
usestdlibvars:
time-month: true
time-layout: true
crypto-hash: true
default-rpc-path: true
sql-isolation-level: true
tls-signature-scheme: true
constant-kind: true
unconvert:
safe: true
unparam:
check-exported: true
unused:
field-writes-are-uses: false
exported-fields-are-used: false
parameters-are-used: false
local-variables-are-used: false