-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.golangci.yaml
104 lines (101 loc) · 2.3 KB
/
.golangci.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
linters:
disable-all: true
enable:
- bodyclose
# TODO(mem): - containedctx
# TODO(mem):- contextcheck
# TODO(mem): - cyclop
- decorder
# - depguard
- dogsled
# TODO(mem): - dupl
- dupword
- durationcheck
- errchkjson
- errcheck
- errname
# TODO(mem): - errorlint
# TODO(mem): - exhaustive
- gocheckcompilerdirectives
# - TODO(mem): gochecknoglobals
- gochecknoinits
- goconst
- gocritic
# - gocognit
- gocyclo
- gofmt
# - gofumpt
- goimports
# - golint
# TODO(mem): - gomnd
- goprintffuncname
# - gosec
- gosmopolitan
- grouper
- gosimple
- govet
# TODO(mem): fails because we are runnig in a container?: - importas
- ineffassign
- interfacebloat
# TODO(mem): - ireturn
# - lll
- loggercheck
# TODO(mem): - maintidx
- mirror
- misspell
# TODO(mem): fails because it's trying to run `go list all`?: - musttag
- nakedret
- nestif
# TODO(mem): - noctx
- nolintlint
- nosprintfhostport
# TODO(mem): - paralleltest
# TODO(mem): - prealloc
# TODO(mem): - promlinter
- reassign
# TODO(mem): - revive
- rowserrcheck
- sqlclosecheck
- staticcheck
# TODO(mem): - tagalign
- testableexamples
# TODO(mem): - thelper
- typecheck
- unconvert
# TODO(mem): - unparam
# TODO(mem): - varnamelen
- wastedassign
- unused
- whitespace
# TODO(mem): - wsl
- zerologlint
linters-settings:
goconst:
ignore-tests: false
min-len: 5
min-occurrences: 5
gocyclo:
min-complexity: 20
rowserrcheck:
packages:
- github.com/jmoiron/sqlx
gocritic:
enabled-checks:
# This augments the default checks.
- ruleguard
- stringXbytes
settings:
ruleguard:
rules: "internal/rules/rules.go"
importas:
no-unaliased: true
no-extra-aliases: true
alias:
- pkg: github.com/grafana/synthetic-monitoring-agent/pkg/pb/synthetic_monitoring
alias: sm
- pkg: github.com/prometheus/client_model/go
alias: dto
issues:
exclude:
- "(func|method|type|var|struct field|func parameter|method parameter) [^ ]+ should be .*"