2020-11-29 03:22:39 +05:00
|
|
|
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
|
2022-06-29 13:00:38 +05:00
|
|
|
# Structs will contain some context.Context.
|
|
|
|
- containedctx
|
|
|
|
# Deprecated
|
|
|
|
- exhaustivestruct
|
2020-11-29 03:22:39 +05:00
|
|
|
linters-settings:
|
|
|
|
lll:
|
|
|
|
line-length: 120
|
2021-11-21 14:45:09 +05:00
|
|
|
cyclop:
|
|
|
|
max-complexity: 40
|
2020-11-29 05:44:21 +05:00
|
|
|
gocognit:
|
|
|
|
min-complexity: 40
|
2020-12-24 13:48:00 +05:00
|
|
|
funlen:
|
|
|
|
lines: 200
|
2020-12-24 23:33:24 +05:00
|
|
|
statements: 100
|
2020-12-24 13:48:00 +05:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
# There will be some ToDos.
|
|
|
|
- linters:
|
|
|
|
- godox
|
|
|
|
text: "TODO"
|