2020-11-12 23:42:39 +01:00
|
|
|
run:
|
|
|
|
tests: false
|
2021-09-12 09:18:15 +02:00
|
|
|
modules-download-mode: readonly
|
2020-11-12 23:42:39 +01:00
|
|
|
|
|
|
|
issues:
|
2021-09-12 09:18:15 +02:00
|
|
|
# The linter has a default list of ignorable errors. Turning this on will enable that list.
|
|
|
|
exclude-use-default: false
|
|
|
|
|
|
|
|
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
|
2020-11-12 23:42:39 +01:00
|
|
|
max-issues-per-linter: 0
|
2021-09-12 09:18:15 +02:00
|
|
|
|
|
|
|
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
2020-11-12 23:42:39 +01:00
|
|
|
max-same-issues: 0
|
|
|
|
|
2021-09-12 09:18:15 +02:00
|
|
|
exclude:
|
|
|
|
- Subprocess launch(ed with variable|ing should be audited)
|
|
|
|
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
|
|
|
|
- G307 # Allow closing files as a defer without checking error.
|
|
|
|
- composite literal uses unkeyed fields
|
|
|
|
|
2020-11-12 23:42:39 +01:00
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- bodyclose
|
|
|
|
- dupl
|
2021-09-12 09:18:15 +02:00
|
|
|
- errcheck
|
2020-11-12 23:42:39 +01:00
|
|
|
- exportloopref
|
|
|
|
- goconst
|
|
|
|
- godot
|
|
|
|
- godox
|
|
|
|
- goimports
|
|
|
|
- goprintffuncname
|
|
|
|
- gosec
|
2021-09-12 09:18:15 +02:00
|
|
|
- govet
|
2020-11-12 23:42:39 +01:00
|
|
|
- misspell
|
|
|
|
- prealloc
|
2021-09-12 09:18:15 +02:00
|
|
|
- revive
|
2020-11-12 23:42:39 +01:00
|
|
|
- rowserrcheck
|
|
|
|
- sqlclosecheck
|
2021-09-12 09:18:15 +02:00
|
|
|
- staticcheck
|
2020-11-12 23:42:39 +01:00
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- whitespace
|
2021-07-20 08:37:06 +02:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
disable:
|
2021-09-12 09:18:15 +02:00
|
|
|
- composite
|