-
Notifications
You must be signed in to change notification settings - Fork 13
/
.golangci.yml
97 lines (94 loc) · 1.61 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
94
95
96
97
run:
go: "1.23"
timeout: 15m0s
skip-dirs-use-default: true
fast: false
linters-settings:
revive:
rules:
- name: indent-error-flow
- name: var-naming
- name: increment-decrement
lll:
line-length: 135
wsl:
strict-append: false
gocognit:
min-complexity: 36
gofmt:
simplify: true
funlen:
lines: 175
statements: 85
unused:
check-exported: true
go: "1.23"
stylecheck:
dot-import-whitelist:
- github.com/onsi/gomega
- github.com/onsi/ginkgo/v2
# https://staticcheck.io/docs/options#checks
checks: [ "all", "-ST1001"]
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- contextcheck
- durationcheck
- errcheck
- errname
- errorlint
- exhaustive
- forcetypeassert
- funlen
- gochecknoinits
- gocognit
- gocritic
- gocyclo
- godot
# - godox
- gofmt
- goheader
- goimports
- gomodguard
- goprintffuncname
- gosimple
- govet
- importas
- ineffassign
- ireturn
- lll
- makezero
- misspell
- nakedret
- nilnil
- noctx
- nolintlint
- predeclared
- promlinter
- revive
- rowserrcheck
- staticcheck
- stylecheck
- tenv
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- varnamelen
- wastedassign
- wsl
- nlreturn
output:
formats: colored-line-number
issues:
max-issues-per-linter: 0
max-same-issues: 0
new: false
include:
- EXC0002 # disable excluding of issues about comments from golint
exclude-files:
- test/tools.go