ignore
Manage .gdlignore exclusion patterns — add, remove, list, or detect patterns to exclude from GDL bridge scanning
/greppable:ignore — Manage Bridge Exclusion Patterns
Subcommands
/greppable:ignore add [format:]<pattern>
Append a pattern to .gdlignore. Creates the file with header comments if it doesn't exist.
- Example:
/greppable:ignore add gdlc:components/ui/ - Example:
/greppable:ignore add **/*.stories.tsx
/greppable:ignore remove <pattern>
Remove a matching line from .gdlignore. Match is exact (including any format prefix).
/greppable:ignore list
Show current .gdlignore contents grouped by scope:
- All bridges (unprefixed patterns)
- Per-format sections (grouped by prefix)
If no .gdlignore exists, say so and suggest /greppable:ignore detect.
/greppable:ignore detect
Run prescan detection for UI frameworks and generated code:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-prescan.sh" . --json
Parse suggested_exclusions from JSON output. For each suggestion, show the pattern and reason, then ask the user whether to add it. If the user confirms, write to .gdlignore.
After Any Edit
Run lint validation on the file:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-lint.sh" .gdlignore
File Format Reference
- Lines starting with
#are comments - Blank lines are ignored
pattern(no prefix) applies to all bridgesgdlc:patternapplies only to code map scanninggdlu:patternapplies only to document indexing- Trailing
/means directory-only match *matches within a path segment,**matches across segments- Leading
/means root-relative (only matches at project root)