forked from percona/dbaas-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
43 lines (36 loc) · 980 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
---
# Almost all linters; some of them are optional.
linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages:
# use "github.com/pkg/errors" instead
- errors
# use "github.com/golang/protobuf/proto" instead
- github.com/gogo/protobuf/proto
# use "gopkg.in/yaml.v3" instead
- gopkg.in/yaml.v2
goimports:
local-prefixes: github.com/percona-platform/dbaas-api
lll:
line-length: 120
tab-width: 4
unused:
check-exported: false
unparam:
check-exported: true
linters:
enable-all: true
disable:
- gomnd # too annoying
- wsl # too annoying
issues:
exclude-use-default: false
exclude-rules:
- path: _test\.go
linters:
- funlen # tests may be long
- lll # tests contain long lines
- unused # very annoying false positive: https://github.com/golangci/golangci-lint/issues/791
- testpackage # senseless