-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
80 lines (76 loc) · 1.3 KB
/
.golangci.yml
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
run:
concurrency: 12
deadline: 5m
issues-exit-code: 1
tests: true
build-tags:
- darwin
skip-dirs:
- "cmd"
skip-files:
- ".*\\.pb\\.go"
- ".*(.|_)gen\\.go"
modules-download-mode: readonly
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
# exclude: .errcheckignore
goconst:
min-len: 3
min-occurrences: 3
gofmt:
simplify: true
goimports:
local-prefixes: github.com/go-darwin/apfs
golint:
min-confidence: 0.3
gocritic:
enabled-tags:
- diagnostic
- style
- performance
- experimental
- opinionated
disabled-checks:
- dupImport
maligned:
suggest-new: true
misspell:
locale: US
nakedret:
max-func-lines: 30
prealloc:
simple: true
range-loops: true
for-loops: false
unparam:
algo: cha
check-exported: true
unused:
check-exported: false
linters:
enable:
enable-all: true
disable:
- gochecknoglobals
- gochecknoinits
- gocyclo
- golint
- gosec
- govet
- lll
- nakedret
- scopelint
fast: true
issues:
exclude-rules:
- path: "_test.go"
linters:
- dupl
- errcheck
- gocritic
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true