-
Notifications
You must be signed in to change notification settings - Fork 25
/
.golangci.yaml
77 lines (77 loc) · 1.34 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
run:
timeout: 5m
tests: false
skip-dirs:
- api/gen/
modules-download-mode: readonly
allow-parallel-runners: true
allow-serial-runners: true
go: "1.21"
linters-settings:
goimports:
local-prefixes: github.com/fluxninja
staticcheck:
checks:
- all
govet:
enable-all: true
disable:
- fieldalignment
gocritic:
disabled-checks:
- captLocal
- singleCaseSwitch
- ifElseChain
- exitAfterDefer
gosec:
exclude-generated: true
severity: medium
confidence: medium
godot:
period: true
capital: true
revive:
rules:
- name: exported
arguments:
- checkPrivateReceivers
- disableStutteringCheck
misspell:
locale: US
stylecheck:
dot-import-whitelist:
- github.com/onsi/ginkgo/v2
- github.com/onsi/gomega
linters:
enable:
- gocritic
- gofumpt
- gosec
- godot
- revive
- errchkjson
- misspell
- stylecheck
- promlinter
- importas
disable:
# unmaintained
- deadcode
- varcheck
- structcheck
- nilerr
- wastedassign
issues:
include:
- EXC0012
- EXC0014
exclude-rules:
- path: "(.+)test_helpers.go"
linters:
- unused
- path: "cmd/*"
linters:
- revive
- path: "plugins/*"
linters:
- revive