743fbe9d5c
Revive's `exported` check forced doc comments on every exported symbol — that conflicts with the project's policy of only writing comments when the "why" is non-obvious. Keep `var-naming`, `unused-parameter`, and `early-return` for signal that doesn't mandate prose.
29 lines
583 B
YAML
29 lines
583 B
YAML
run:
|
|
timeout: 5m
|
|
tests: true
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- unused
|
|
- gofmt
|
|
- goimports
|
|
- revive
|
|
|
|
linters-settings:
|
|
revive:
|
|
# Intentionally narrow: we skip `exported` (no doc-comment requirement) per
|
|
# the project's no-boilerplate-comment policy. Re-enable if the public API
|
|
# surface grows to the point where documentation lives alongside it.
|
|
rules:
|
|
- name: var-naming
|
|
- name: unused-parameter
|
|
- name: early-return
|
|
|
|
issues:
|
|
exclude-use-default: false
|