2025-04-03 06:55:12 -07:00
|
|
|
version: "2"
|
2020-02-27 02:59:02 -08:00
|
|
|
linters:
|
|
|
|
enable:
|
2024-02-16 00:41:06 -08:00
|
|
|
- depguard
|
2023-06-21 01:07:30 -07:00
|
|
|
- misspell
|
2021-10-27 02:01:15 -07:00
|
|
|
- revive
|
2025-04-03 06:55:12 -07:00
|
|
|
settings:
|
|
|
|
depguard:
|
|
|
|
rules:
|
|
|
|
no_exec_policy:
|
|
|
|
files:
|
|
|
|
- '!$test'
|
|
|
|
deny:
|
|
|
|
- pkg: os/exec
|
|
|
|
desc: Using os/exec to run sub processes it not allowed by policy
|
|
|
|
errcheck:
|
2025-04-03 06:55:12 -07:00
|
|
|
# Used in HTTP handlers, any error is handled by the server itself.
|
2025-04-03 06:55:12 -07:00
|
|
|
exclude-functions:
|
|
|
|
- (net/http.ResponseWriter).Write
|
|
|
|
revive:
|
|
|
|
rules:
|
|
|
|
- name: unused-parameter
|
|
|
|
severity: warning
|
|
|
|
disabled: true
|
|
|
|
exclusions:
|
|
|
|
generated: lax
|
|
|
|
presets:
|
|
|
|
- comments
|
|
|
|
- common-false-positives
|
|
|
|
- legacy
|
|
|
|
- std-error-handling
|
2023-07-18 01:46:59 -07:00
|
|
|
rules:
|
2025-04-03 06:55:12 -07:00
|
|
|
- linters:
|
|
|
|
- errcheck
|
|
|
|
path: _test.go
|
|
|
|
paths:
|
|
|
|
- third_party$
|
|
|
|
- builtin$
|
|
|
|
- examples$
|
|
|
|
formatters:
|
|
|
|
enable:
|
|
|
|
- goimports
|
|
|
|
exclusions:
|
|
|
|
generated: lax
|
|
|
|
paths:
|
|
|
|
- third_party$
|
|
|
|
- builtin$
|
|
|
|
- examples$
|