Repository navigation
fix(rules): ignore callers that the same diff deletes in index-breaking-change - #795
Merged
Merged
Conversation
…ng-change Closes #794.
This was referenced Nov 17, 2026
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
index-breaking-change(scan_breaking_changesinsrc/engine/index_scanner.rs) now drops, from the callers it counts, those whose call site is one of the lines the diff removes (matched by file and old line number; a deleted file contributes all its lines). The removal is reported only if a caller remains, and the message then counts and names only the remaining ones.Why
The index predates the change, so a helper deleted together with its only caller was reported as "breaks 1 caller", a major finding that blocks the Cora Review check and the commit gate. The staged diff of the dead-code cleanup (#790) hit exactly that:
read_yaml_configandwrite_yaml_configwere flagged for callers the same diff deletes. Closes #794.Testing
develop) had 2 major findings before this change and none after.cargo test --features tree-sitter: 1556 passed, 0 failed;cargo fmt --all -- --checkand clippy with-D warningsclean; Cora review of the staged diff: no findings.