forked from microsoft/retina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
53 lines (53 loc) · 893 Bytes
/
.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
issues:
max-same-issues: 0
max-issues-per-linter: 0
new-from-rev: origin/main
exclude-rules:
# some type names are caps/underscore to map OS primitive types
- path: pkg/metrics/types_windows.go
linters:
- revive
- gomnd
- var-naming
- path: pkg/metrics/types_linux.go
linters:
- revive
- gomnd
- var-naming
linters:
presets:
- bugs
- error
- format
- performance
- unused
disable:
- maligned
- scopelint
- gci
enable:
- exportloopref
- goconst
- gocritic
- gocyclo
- gofmt
- gomnd
- goprintffuncname
- gosimple
- lll
- misspell
- nakedret
- promlinter
- revive
linters-settings:
gocritic:
enabled-tags:
- "diagnostic"
- "style"
- "performance"
disabled-checks:
- "hugeParam"
govet:
check-shadowing: true
lll:
line-length: 200