2019-12-22 01:17:18 +05:00
|
|
|
run:
|
|
|
|
deadline: 5m
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
# Because globals might exist, but according to our codestyle they
|
|
|
|
# should be lowercased and considered as unexported.
|
|
|
|
- gochecknoglobals
|
|
|
|
# While it might be useful it'll create more problems that will solve.
|
|
|
|
- gocritic
|
|
|
|
# Complains about main() lengths, which isn't an issue.
|
|
|
|
- funlen
|
2020-02-29 22:41:06 +05:00
|
|
|
# Magic numbers everywhere and we can't get rid of them.
|
|
|
|
- gomnd
|
2021-06-14 23:48:34 +05:00
|
|
|
# This linter MIGHT BE good, but who decided that I want keepFor in
|
|
|
|
# JSON instead of keep_for for KeepFor field?
|
|
|
|
- tagliatelle
|
2022-06-26 22:26:39 +05:00
|
|
|
# Deprecated.
|
|
|
|
- exhaustivestruct
|
2019-12-22 01:17:18 +05:00
|
|
|
linters-settings:
|
|
|
|
lll:
|
|
|
|
line-length: 420
|
2020-02-29 22:41:06 +05:00
|
|
|
gocognit:
|
|
|
|
min-complexity: 50
|
2019-12-22 01:17:18 +05:00
|
|
|
gocyclo:
|
|
|
|
min-complexity: 40
|
2021-06-15 00:11:58 +05:00
|
|
|
cyclop:
|
|
|
|
max-complexity: 40
|
2021-06-14 23:48:34 +05:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
# There will be some ToDos.
|
|
|
|
- linters:
|
|
|
|
- godox
|
|
|
|
text: "TODO"
|