-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
49 lines (49 loc) · 916 Bytes
/
.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
linters:
# Disable all linters.
# Default: false
disable-all: true
enable:
- dupl
- errcheck
- forcetypeassert
- gofmt
- goimports
- gomodguard
- gosimple
- govet
# - ireturn
- lll
- misspell
- nilerr
- nilnil
- nolintlint
- predeclared
- stylecheck
- typecheck
- unparam
- unused
# # Enable presets.
# # https://golangci-lint.run/usage/linters
# presets:
# - bugs
# - comment
# - complexity
# - error
# - format
# - import
# - metalinter
# - module
# - performance
# - sql
# - style
# - test
# - unused
# Run only fast linters from enabled linters set (first run won't be fast)
# Default: false
fast: true
issues:
# new-from-rev: origin/dev # report only new issues with reference to dev branch
exclude-rules:
- path: _test\.go
linters:
- dupl