forked from arch-go/arch-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
85 lines (82 loc) · 1.79 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
# Options for analysis running.
run:
timeout: 5m
modules-download-mode: readonly
linters:
enable-all: true
disable:
- dupl
- wrapcheck
- ireturn
- exhaustruct
- testpackage
- paralleltest
- nolintlint
- tparallel
- depguard
- zerologlint
- forbidigo
- mnd
- err113
# depricated
- gomnd
- execinquery
issues:
exclude-rules:
- path: '(.+)_test\.go'
linters:
- funlen
- maintidx
- cyclop
- gocognit
- err113
- lll
- errcheck
- canonicalheader
- mnd
- musttag
linters-settings:
exhaustive:
ignore-enum-members: "POT.+"
default-signifies-exhaustive: true
tagliatelle:
# Check the struck tag name case.
case:
rules:
# Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`
json: camel
yaml: camel
gci:
no-inline-comments: true
no-prefix-comments: true
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- prefix(github.com/arch-go/arch-go) # Groups all imports with the specified Prefix.
varnamelen:
min-name-length: 2
ignore-type-assert-ok: true
ignore-map-index-ok: true
ignore-chan-recv-ok: true
ignore-names:
- err
ignore-decls:
- t testing.T
- i int
- T any
- m map[string]int
- d time.Duration
- w io.Writer
- r io.Reader
- f *os.File
goconst:
ignore-tests: true
cyclop:
max-complexity: 11
funlen:
lines: 80
mnd:
ignored-functions:
- '^make'
- '^math\.'
- '^time\.*'