-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
57 lines (52 loc) · 1.4 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
run:
go: '1.19'
# Which dirs to skip: issues from them won't be reported.
# Can use regexp here: `generated.*`, regexp is applied on full path.
skip-dirs:
- api
- mocks
linters:
enable-all: true
disable:
# Deprecated
- deadcode
- exhaustivestruct
- ifshort
- interfacer
- maligned
- nosnakecase
- golint
- scopelint
- structcheck
- varcheck
- ireturn
# Unwanted
- exhaustruct # prefer default initialization and brevity
- gofmt # replaced by gofumpt
- goimports # replaced by gci
- paralleltest # requires special care
linters-settings:
exhaustive:
default-signifies-exhaustive: true
gci:
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- prefix(github.com/Wattpad) # All Wattpad imports
gofumpt:
lang-version: "1.19"
extra-rules: false
lll:
line-length: 132
tab-width: 4
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- bodyclose
- containedctx # test suite may want to track context
- forcetypeassert
- gomnd
- wrapcheck # we don't need to wrap errors in tests