Skip to content

fix(review): alias a scanner finding only onto a same-topic LLM issue - #611

Merged
ajianaz merged 1 commit into
developfrom
fix/alias-related-only-609
Oct 9, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/alias-related-only-609

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

What

merge_rule_findings now merges a scanner finding into an LLM issue on the same line only when they share a topic word (secret family folded: password/key/token/credential/secret; generic review vocabulary ignored). The alias goes to the related issue, not the first one. Unrelated findings on the same line are both reported.

Why

A cora-ignore: naming a scanner rule hid the first LLM issue on that line whatever it was about, e.g. an SQL-injection finding next to // cora-ignore: sec-hardcoded-secret (#609), contradicting the documented guarantee that a marker cannot hide more than it names.

Testing

New unit tests (same-topic wording for the secret family, unrelated issue not absorbed/aliased, alias lands on the related issue, marker leaves the SQL-injection finding). Two existing tests used an unrelated LLM title and were updated to a realistic one. fmt, clippy -D warnings, full suite green (1118). Local binary with the real LLM: a marker naming the secret rule suppresses the secret finding but the SQL-injection finding on the same line stays; cora scan behaves the same.

Behaviour note: an unrelated scanner finding on a line that already has an LLM issue is now reported too (previously dropped).

Closes #609

🤖 Generated with Claude Code

@ajianaz
ajianaz merged commit d2d58e3 into develop Oct 9, 2026
14 checks passed
@ajianaz
ajianaz deleted the fix/alias-related-only-609 branch October 16, 2026 00:43
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.

fix(review): cora-ignore naming a scanner rule can hide an unrelated LLM finding on the same line

1 participant