-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yaml
62 lines (59 loc) · 1.55 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
linters:
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable-all: true
disable:
- contextcheck # too many false-positives
- depguard # no need
- ireturn # no need
- funlen # we tend to have long funlens, who cares?
- goimports # unused
- gochecknoglobals # we currently make use of globals
- godot # petty linter
- gomoddirectives # not needed
- gofumpt # false positives
- mnd # too many false-positives
- nonamedreturns # we like named returns
- nilnil # we like (nil, nil) sometimes
- nosprintfhostport # little benefits
- varnamelen # we accept this
- wrapcheck # does not matter to us
- wsl # too aggressive
- exportloopref # deprecated
- tagalign # too many false-positives
# TODOs: #865
- cyclop # TODO
- dupl # TODO
- exhaustruct # TODO
- gci # TODO
- gocognit # TODO
- gocyclo # TODO
- godox # TODO
- nestif # TODO
- nlreturn # TODO
- paralleltest # TODO
- protogetter # TODO
- revive # TODO
- testpackage # TODO
linters-settings:
goconst:
ignore-tests: true
min-occurrences: 2
ignore-strings: '(true|false)' # regex
tagliatelle:
case:
use-field-name: true
rules:
json: snake
yaml: camel
xml: snake
toml: snake
bson: snake
avro: snake
mapstructure: snake
env: upperSnake
envconfig: upperSnake
overrides:
- pkg: user-svc/internal/hwkc
rules:
json: camel