Repository navigation
Conversation
Reopens the deferred content predicates for a migration project whose facade files keep their paths, so no glob expresses the category at any one commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A refinement may carry content, one Rust regex tested against the lines the counter classifies as code, so categories that paths cannot express (such as TypeScript façades over a Kotlin implementation) stay measurable. explain names the matching line, and summary.policy_entries reports content_unmatched for the files a content refinement's globs matched but its expression did not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…port their misses faithfully file_records now takes the root its paths are relative to, so no entry point skips content. Code lines are tested in place and only the matching one is copied, capped at 200 characters. Line classes use the counter's own configuration. A glob that matched a file's path counts as used, and verbose notes blame the content expression instead of the glob. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds an optional
contentregex to[[refinements]], tested only against the lines Tokei classifies as code. It is for categories that paths cannot express, such as TypeScript façades that keep their path after a module is ported to Kotlin.This implements the Required scope of
docs/proposals/content-refinements.md. The proposal staysdraftfor your decision; merging would accept it. Open in the proposal: whether the deferred entry's agent A/B applies when the consumers are people tracking a migration, whether to bundle the companion items (decided_by,except_entries), and whether to addcontent_absent.explainshows the matching line, capped at 200 characters.summary.policy_entries[].content_unmatchedreports files an entry's globs matched but its content did not, and the verbose notes name the expression rather than the glob.contentread no extra file.Verification:
cargo test --lockedpasses (517 integration tests), plus fmt, clippy, the file-size and doc-index gates.1b46809, among them content being skipped by the publicfile_recordswrapper and globs misreported as unused.main(ratio 1.00); with one refinement over all production source, 1.31 times as long, on a loaded machine. Details are in the proposal.🤖 Generated with Claude Code