metricator/.golangci.yml
Stanislav N. aka pztrn dc1287dae8
All checks were successful
continuous-integration/drone/push Build is passing
Make linters happy and disable deprecated exhaustivestruct.
2022-06-29 13:00:38 +05:00

33 lines
642 B
YAML

run:
deadline: 5m
linters:
enable-all: true
disable:
# While it might be useful it'll create more problems that will solve.
- gocritic
# Magic numbers might be everywhere. Disabled for now.
- gomnd
# Why? WHY? WHY _test???
- testpackage
# Structs will contain some context.Context.
- containedctx
# Deprecated
- exhaustivestruct
linters-settings:
lll:
line-length: 120
cyclop:
max-complexity: 40
gocognit:
min-complexity: 40
funlen:
lines: 200
statements: 100
issues:
exclude-rules:
# There will be some ToDos.
- linters:
- godox
text: "TODO"