feat(config): Add entryPoints globs that root whole files as entry points - #37
Merged
Merged
Conversation
…ints A new top-level entryPoints config field takes glob patterns (resolved against the config file's own directory, with the same rules as ignore globs) naming files to treat as entry points. Every declaration in a matching file becomes a root, so the file and everything it references count as used — the file-level counterpart to roots, and unlike an ignore glob it keeps the file's references alive instead of only hiding the file's own findings. A pattern that matches no file at all surfaces as a note, the same way an unmatched --root does, so a stale path can't silently drop the protection it promised. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GktmvEmkYosc2hG9XEebjP
CI's cargo-deny advisories check fails because bisync — a transitive dependency of gix-protocol 0.64 — has had every version yanked from crates.io. No 0.64.x release exists without it, so the fix is the gix 0.87.1 line, where gix-protocol 0.65.1 dropped the dependency. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GktmvEmkYosc2hG9XEebjP
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.
A new top-level entryPoints config field takes glob patterns (resolved
against the config file's own directory, with the same rules as ignore
globs) naming files to treat as entry points. Every declaration in a
matching file becomes a root, so the file and everything it references
count as used — the file-level counterpart to roots, and unlike an
ignore glob it keeps the file's references alive instead of only hiding
the file's own findings.
A pattern that matches no file at all surfaces as a note, the same way
an unmatched --root does, so a stale path can't silently drop the
protection it promised.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01GktmvEmkYosc2hG9XEebjP