Repository navigation
fix(review): alias a scanner finding only onto a same-topic LLM issue - #611
Merged
Merged
Conversation
…#609) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
merge_rule_findingsnow 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 scanbehaves 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