-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
59 lines (53 loc) · 1.27 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
# This file contains all available configuration options
# with their default values.
# options for analysis running
run:
go: 1.22.5
# include test files or not, default is true
tests: true
timeout: 5m
# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: false
#issue:
# exclude-use-default: false
linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- goimports
- typecheck
- gofmt
- misspell
- nestif
- sqlclosecheck
- gosec
disable-all: true
#em, not sure it's needed for every lint though... I'll check it later :)
linters-settings:
gosec:
# Available rules: https://github.com/securego/gosec#available-rules
excludes:
- G404
nestif:
min-complexity: 8
issues:
exclude-dirs:
- pkg/kubernetes/fabric
- testing/mocks
max-same-issues: 0
max-issues-per-linter: 0
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some staticcheck messages
- linters:
- staticcheck
text: "SA1019:"
# Exclude some linters from running on tests files.
# - path: \.go
# linters:
# - typecheck