Skip to content

refactor(linter): remove Finding.RuleID, engine assigns rule ID#3

Merged
nozaq merged 1 commit into
mainfrom
simplify-finding
Jul 12, 2026
Merged

refactor(linter): remove Finding.RuleID, engine assigns rule ID#3
nozaq merged 1 commit into
mainfrom
simplify-finding

Conversation

@nozaq

@nozaq nozaq commented Jul 12, 2026

Copy link
Copy Markdown
Member

The engine already knows which rule produced a finding, so having every rule stuff RuleID: r.ID() into each Finding was redundant boilerplate (33 call sites) and a source of bugs if a rule ever returned the wrong ID. Finding now carries only Message and Offset; Lint attaches the rule ID when building the Issue and when checking ignore directives.

The engine already knows which rule produced a finding, so having every
rule stuff RuleID: r.ID() into each Finding was redundant boilerplate
(33 call sites) and a source of bugs if a rule ever returned the wrong
ID. Finding now carries only Message and Offset; Lint attaches the rule
ID when building the Issue and when checking ignore directives.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@nozaq nozaq merged commit a51b6a3 into main Jul 12, 2026
8 checks passed
@nozaq nozaq deleted the simplify-finding branch July 12, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant