-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.golangci.yml
64 lines (59 loc) · 1.57 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
project_name: ld-find-code-refs
run:
deadline: 120s
tests: false
linters:
enable-all: true
disable:
- golint
- stylecheck
- gochecknoglobals
- lll
- errcheck
- interfacer
- tagliatelle
- varnamelen
- nonamedreturns
- nlreturn # re-enable this after fixing all cases
- gomnd # re-enable this after fixing all cases
- nosnakecase
- ifshort # re-enable
- nilerr #re-enable
- goerr113
- exhaustivestruct
- exhaustruct
- exhaustive
- godot
- wsl #fix
- gocognit
- revive
- errname
- cyclop
- gofumpt # fix
- gci
- nestif # fix
- gosec
- gocritic
- depguard
- tagalign
- nilnil
fast: false
linter-settings:
goimports:
local-prefixes: github.com/launchdarkly,gopkg.in/launchdarkly
issues:
exclude:
- "error returned from external package is unwrapped"
- "error returned from interface method should be wrapped"
- "comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error" # should fix
- "comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error" # should fix
- "non-wrapping format verb for fmt.Errorf. Use `%w` to format errors" # should fix
- "append to slice `projectKeys` with non-zero initialized length"
exclude-rules:
# Exclude some `staticcheck` messages.
- linters:
- staticcheck
text: "SA5011" # fix
exclude-use-default: false
max-same-issues: 1000
max-per-linter: 1000