2020-02-27 02:59:02 -08:00
|
|
|
linters:
|
|
|
|
enable:
|
2024-02-16 00:41:06 -08:00
|
|
|
- depguard
|
2024-11-10 02:58:03 -08:00
|
|
|
- goimports
|
2023-06-21 01:07:30 -07:00
|
|
|
- misspell
|
2021-10-27 02:01:15 -07:00
|
|
|
- revive
|
2020-02-27 02:59:02 -08:00
|
|
|
|
2019-05-06 06:42:50 -07:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2021-09-29 11:12:14 -07:00
|
|
|
- path: _test.go
|
|
|
|
linters:
|
|
|
|
- errcheck
|
2019-05-06 06:42:50 -07:00
|
|
|
|
|
|
|
linters-settings:
|
2024-02-16 00:41:06 -08:00
|
|
|
depguard:
|
|
|
|
rules:
|
|
|
|
no_exec_policy:
|
|
|
|
files:
|
|
|
|
- "!$test"
|
|
|
|
deny:
|
|
|
|
- pkg: "os/exec"
|
|
|
|
desc: "Using os/exec to run sub processes it not allowed by policy"
|
2019-05-06 06:42:50 -07:00
|
|
|
errcheck:
|
2023-06-21 01:07:30 -07:00
|
|
|
exclude-functions:
|
|
|
|
# Used in HTTP handlers, any error is handled by the server itself.
|
|
|
|
- (net/http.ResponseWriter).Write
|
2023-07-18 01:46:59 -07:00
|
|
|
revive:
|
|
|
|
rules:
|
|
|
|
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
|
|
|
|
- name: unused-parameter
|
|
|
|
severity: warning
|
|
|
|
disabled: true
|