fix(files): prune dependency dirs in expandFileGlobs before fast-glob traversal#410
Draft
dcramer wants to merge 4 commits into
Draft
fix(files): prune dependency dirs in expandFileGlobs before fast-glob traversal#410dcramer wants to merge 4 commits into
dcramer wants to merge 4 commits into
@sentry/warden / warden
completed
Jun 16, 2026 in 0s
1 issue
Low
User negation overrides for dot directories (`.next`, `.nuxt`, `.cache`) are silently ineffective - `packages/warden/src/cli/files.ts:27-31`
The three dot-prefixed entries in BUILTIN_PRUNE_DIRECTORY_PATTERNS (**/.next/**, **/.nuxt/**, **/.cache/**) are redundant with dot: false in the fast-glob call, so removing them from the ignore list via a user negation (e.g. !.next/**) has no effect — fast-glob still skips dot directories entirely, silently defeating the documented override.
2 skills analyzed
| Skill | Findings | Duration | Cost |
|---|---|---|---|
| security-review | 0 | 3.6s | $0.02 |
| code-review | 1 | 9m 50s | $1.71 |
⏱ 9m 54s · 863.9k in / 58.5k out · $1.73
Loading