-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
69 lines (69 loc) · 1.04 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
64
65
66
67
68
69
linters:
presets:
- bugs
- comment
- complexity
- error
- format
- metalinter
- performance
- sql
- unused
enable:
- gomoddirectives
- asciicheck
- dogsled
- dupl
- forcetypeassert
- gochecknoglobals
- gochecknoinits
- goconst
- godox
- goprintffuncname
- gosimple
- lll
- makezero
- nakedret
- nolintlint
- predeclared
- stylecheck
- thelper
- tparallel
- unconvert
- whitespace
- wastedassign
- tparallel
disable:
- scopelint
- funlen
- maligned
linters-settings:
dogsled:
max-blank-identifiers: 3
errorlint:
errorf: true
godot:
scope: declarations
goimports:
local-prefixes: github.com/selectel/dbaas-go
gomoddirectives:
replace-local: true
retract-allow-no-explanation: false
govet:
enable:
- fieldalignment
lll:
tab-width: 4
dupl:
threshold: 500
revive:
severity: error
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- path: _test\.go
linters:
- goerr113
- forcetypeassert
- gosec