-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
63 lines (56 loc) · 1.57 KB
/
.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
54
55
56
57
58
59
60
61
62
63
run:
timeout: 5m
linters:
enable:
- asciicheck
- bidichk
- copyloopvar
- errorlint
- gocritic
# - gofmt # we are using gofumpt instead
- gofumpt
- goimports
- makezero
- misspell
- nolintlint
- perfsprint
- prealloc
- testifylint
- unconvert
- usestdlibvars
- wastedassign
- wrapcheck
linters-settings:
goconst:
# Ignore test files.
# Default: false
ignore-tests: true
goimports:
# A comma-separated list of prefixes, which, if set, checks import paths
# with the given prefixes are grouped after 3rd-party packages.
# Default: ""
local-prefixes: "github.com/dsh2dsh/check_syncthing"
nolintlint:
# Enable to require an explanation of nonzero length after each nolint directive.
# Default: false
require-explanation: true
# Enable to require nolint directives to mention the specific linter being suppressed.
# Default: false
require-specific: true
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#receiver-naming
- name: receiver-naming
disabled: true
wrapcheck:
# An array of glob patterns which, if any match the package of the function
# returning the error, will skip wrapcheck analysis for this error. This is
# useful for broadly ignoring packages and/or subpackages from wrapcheck
# analysis. There are no defaults for this value.
ignorePackageGlobs:
- "github.com/dsh2dsh/check_syncthing/*"
issues:
exclude-rules:
- path: _test\.go
linters:
- wrapcheck