-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
52 lines (48 loc) · 1.02 KB
/
Copy path.golangci.yml
File metadata and controls
52 lines (48 loc) · 1.02 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
version: "2"
run:
timeout: 5m
modules-download-mode: readonly
allow-parallel-runners: true
tests: false
formatters:
enable:
- gci
- gofumpt
- goimports
issues:
max-issues-per-linter: 0
max-same-issues: 0
uniq-by-line: false
new: false
fix: false
linters:
default: all
disable:
- nonamedreturns
settings:
govet:
enable-all: true
staticcheck:
checks: ["all"]
gomoddirectives:
replace-local: true
errcheck:
check-type-assertions: true
check-blank: true
exclude-functions:
- (io.Closer).Close
decorder:
# declaration order
# Default: types before constants before variables before functions
disable-dec-order-check: false
disable-init-func-first-check: false
disable-dec-num-check: false
disable-type-dec-num-check: false
disable-const-dec-num-check: false
disable-var-dec-num-check: false
gosec:
config:
global:
audit: true
whitespace:
multi-if: true