-
Notifications
You must be signed in to change notification settings - Fork 5
/
.golangci.yml
63 lines (61 loc) · 1.55 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:
concurrency: 4
timeout: 5m
issues-exit-code: 1
tests: true
skip-files:
- versionware/example/releases/embed.go
linters-settings:
gci:
local-prefixes: github.com/snyk/vervet
gocritic:
disabled-checks:
- singleCaseSwitch
- ifElseChain
forbidigo:
# Forbid the following identifiers (identifiers are written using regexp):
forbid:
- ^print.*$
- 'fmt\.Print.*'
- 'ginkgo\.It\("should'
# ST1001: Dot imports that aren’t in external test packages are discouraged.
stylecheck:
checks: [ "all", "-ST1003"]
linters:
enable:
- asciicheck
- bidichk
- contextcheck
- dogsled
- durationcheck
- errname
# - errorlint - Good to have linter but potential to introduce breaking changes.
# - exhaustive - Causes too much noise at the moment.
- gci
- gocritic
- goconst
- godot
- gofmt
- goimports
- gocyclo
# - gosec - Good to have linter but potential to introduce breaking changes.
# - forbidigo - Good to have linter but potential to introduce breaking changes.
- lll
- misspell
- nakedret
# - nestif - Good to have linter but potential to introduce breaking changes.
# - nilerr - Good to have linter but potential to introduce breaking changes.
- nilnil
# - noctx - Good to have linter but potential to introduce breaking changes.
- nolintlint
- prealloc
- promlinter
- stylecheck
- staticcheck
- tenv
- thelper
- tparallel
- unconvert
- unparam
- wastedassign
- whitespace