-
Notifications
You must be signed in to change notification settings - Fork 25
/
.golangci.yml
63 lines (61 loc) · 1.61 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
run:
skip-dirs:
- test/includes
skip-files:
- pkg/parser/parser.go # generated
timeout: 10m
linters:
enable-all: false
enable:
- megacheck
- govet
- gocyclo
- unused
- gofmt
- revive
- misspell
- exportloopref
- nolintlint
disable-all: false
disable:
- maligned
- prealloc
- scopelint
- golint
- asasalint
presets:
- bugs
- unused
fast: false
linters-settings:
revive:
# Enable all available rules.
# Default: false
# enable-all-rules: true
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#dot-imports
- name: dot-imports
disabled: true
exhaustive:
# check switch statements in generated files also
check-generated: false
# indicates that switch statements are to be considered exhaustive if a
# 'default' case is present, even if all enum members aren't listed in the
# switch
default-signifies-exhaustive: true
nolintlint:
# Disable to ensure that all nolint directives actually have an effect.
# Default: false
allow-unused: false
# Disable to ensure that nolint directives don't have a leading space.
# Default: true
allow-leading-space: false
# Exclude following linters from requiring an explanation.
# Default: []
allow-no-explanation: []
# Enable to require an explanation of nonzero length after each nolint directive.
# Default: false
require-explanation: false
# Enable to require nolint directives to mention the specific linter being suppressed.
# Default: false
require-specific: true