| id | 2606141911 |
|---|---|
| title | Remove deprecated engine wrappers for checker and lint |
| status | ✅ |
| summary | internal/engine/check.go and runner.go hold deprecated thin wrappers over internal/checker and internal/lint. No production caller remains. Remove the wrappers, update the one test caller, and fix stale comments. |
| model | haiku |
| depends-on |
Closes audit entry "tax — deprecated wrappers
remain in internal/engine" from the
2026-06-14 audit.
Delete the deprecated forwarding functions from
internal/engine and update every call site.
The wrappers and their intended replacements:
engine.ConfigureRule→checker.ConfigureRule(internal/engine/check.go)engine.CheckRules→checker.CheckRules(internal/engine/check.go)engine.DedupeDiagnostics→lint.DedupeDiagnostics(internal/engine/runner.go)
- Delete
ConfigureRuleandCheckRulesfrominternal/engine/check.go. - Delete
DedupeDiagnosticsfrominternal/engine/runner.go. - Update the call in
internal/engine/bench_test.gofromengine.DedupeDiagnosticstolint.DedupeDiagnostics. - Update comments in
internal/export/export.goandinternal/fix/fix.gothat referenceengine.ConfigureRule,engine.CheckRules, andengine.DedupeDiagnosticsto use the current package names. - Run
go test ./...andgo tool golangci-lint run.
-
internal/engine/check.goexports noConfigureRuleorCheckRulessymbol. -
internal/engine/runner.goexports noDedupeDiagnosticssymbol. - No file references
engine.DedupeDiagnosticsin production or test code. - Stale comments updated.
- All tests pass:
go test ./... -
go tool golangci-lint runreports no issues.