Skip to content

fix: skip blank ignore and exclude patterns - #324

Closed
vibgrate-team wants to merge 1 commit into
mainfrom
cursor/skip-blank-ignore-patterns-61d3
Closed

vibgrate-team wants to merge 1 commit into
mainfrom
cursor/skip-blank-ignore-patterns-61d3

Conversation

@vibgrate-team

@vibgrate-team vibgrate-team commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

vg build and vg scan treated an empty or whitespace-only ignore or exclude pattern as a match for every path. A blank --exclude value, a blank exclude entry in project config, or a .gitignore line that is only a carriage return made the walk skip the whole project, so the repo looked empty.

Those entries are now skipped. A real pattern written next to a blank one still applies, on both the build discovery walk and the scan walk.

Related issues

Fixes #279

Checklist

  • pnpm test passes
  • pnpm lint is clean
  • pnpm typecheck is clean
  • Docs updated (README / DOCS / ARCHITECTURE) where behavior changed
  • Determinism preserved — identical input still produces identical graph.json / report output (content-hashed IDs, stable sorts; no time, randomness, or filesystem-order dependence)
  • No proprietary or internal references — public, Apache-2.0 content only
  • Commits use Conventional Commits and are signed off (git commit -s, DCO)

Notes for reviewers

Blank patterns are dropped before they are compiled. Tests cover an empty exclude, a whitespace-only exclude, a carriage-return-only ignore file, and a real pattern beside a blank one, for both discovery and the scan walk.

Open in Web Open in Cursor 

Empty and whitespace-only exclude values, config excludes, and ignore
lines were compiled into a match-all rule, so vg build and vg scan
walked nothing. Those entries are now skipped. A real pattern beside a
blank one still applies.

Fixes #279

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: empty or whitespace-only ignore patterns must not match the entire tree

2 participants