-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
93 lines (91 loc) · 1.66 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
81
82
83
84
85
86
87
88
89
90
91
92
93
linters-settings:
goimports:
local-prefixes: github.com/danielnetop/notesnook-to-standardnotes
dupl:
threshold: 100
errcheck:
check-type-assertions: true
check-blank: true
exhaustive:
check-generated: false
default-signifies-exhaustive: true
funlen:
lines: 80
statements: 40
gocognit:
min-complexity: 15
nestif:
min-complexity: 4
goconst:
min-len: 3
min-occurrences: 3
gocyclo:
min-complexity: 15
godot:
capital: true
gofmt:
simplify: true
govet:
check-shadowing: false
lll:
line-length: 120
tab-width: 1
misspell:
locale: US
nakedret:
max-func-lines: 20
nolintlint:
allow-unused: false
require-explanation: true
require-specific: true
whitespace:
multi-if: false
multi-func: false
wsl:
allow-assign-and-call: true
force-err-cuddling: true
gofumpt:
lang-version: "1.18"
extra-rules: false
linters:
# Enable extra linters besides the default ones
enable:
- bodyclose
- dogsled
- errcheck
- exhaustive
- funlen
- gocognit
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- exportloopref
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
- wsl
- unused
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- lll
- funlen