-
Notifications
You must be signed in to change notification settings - Fork 6
/
.golangci.yml
65 lines (62 loc) · 1.37 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
linters:
enable-all: true
disable:
# deprecated
- golint
- interfacer
- maligned
- scopelint
# less useful
- cyclop
- exhaustivestruct
- exhaustruct
- forbidigo
- funlen
- gci
- gochecknoglobals
- gomnd
- ireturn
- nolintlint
- varnamelen
- depguard
- dupword
- testpackage
- godox
linters-settings:
misspell:
ignore-words:
- strat
nlreturn:
block-size: 2
exhaustive:
default-signifies-exhaustive: true
gosec:
excludes:
- G104 # Duplicated errcheck checks
- G404 # Use of math/rand for RNG
wrapcheck:
ignoreSigs:
- .Errorf(
- errors.New(
- errors.Unwrap(
- .Apply(
revive:
rules:
- name: unused-parameter
severity: warning
disabled: true
arguments:
- allowRegex: "^_"
issues:
exclude-rules:
# False positive: https://github.com/kunwardeep/paralleltest/issues/8.
- linters:
- paralleltest
text: "does not use range value in test Run"
- linters:
- errcheck
text: "Error return value of .(tcp|ip|udp).SerializeTo. is not checked"
exclude:
# these should be self-documenting
- "exported const ((TCP|IPv4)(Field|Flag|Option).*|IPFieldVersion) should (have comment|be of the form)"
- "do not define dynamic errors, use wrapped static errors instead:"