Repository navigation
feat(review): carry rule_id on ReviewIssue; cora-ignore and ignore.rules match ids (#597) - #602
Merged
Merged
Conversation
…les match ids (#597) 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
ReviewIssuegainsrule_id: Option<String>(serde(default, skip_serializing_if = none)) and a non-serializedalso_matches: Vec<String>.merge_rule_findingspopulatesrule_idfrom the scanner finding; index-scanner findings getindex-unused-import/index-dead-code.cora-ignore: <x>suppresses when<x>equals the title, the rule id, or an alias (exact, case-insensitive).ignore.ruleskeeps substring-on-title/type and additionally matches ids exactly.also_matches, so a marker naming the scanner rule still suppresses it.(rule: id)in pretty output,(id)in compact,rule_idin JSON,properties.coraRuleIdin SARIF. Docs and CHANGELOG updated.Why
Scanner findings lost their id in merge, so
cora-ignore:could only match titles, and a marker naming the scanner rule did nothing when an LLM issue displaced the finding. Follow-up to #554.Testing
ignore.rules, merge-dedup edge case (end to end throughmerge_rule_findings+apply), old JSON withoutrule_iddeserializes,rule_idserialized only when present and aliases never.cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo testall green.Closes #597
🤖 Generated with Claude Code