Skip to main content

Module exclusions

Module exclusions 

Source
Expand description

Centralized exclusion constants and helpers for file traversal.

All directory walkers, grep invocations, and file-operation tools should reference these constants instead of maintaining their own skip lists.

Constants§

DEFAULT_EXCLUDED_DIRS
Directories skipped by default during workspace traversal.
DEFAULT_IGNORE_GLOBS
Glob patterns passed to ripgrep (or other search back-ends) to exclude noisy vendor/build directories from results.
SENSITIVE_FILES
Sensitive files that must never be exposed in listings, search results, or the TUI file palette. These contain secrets, credentials, or environment-specific configuration.

Functions§

is_sensitive_file
Returns true if name matches any entry in SENSITIVE_FILES or starts with .env. (catches all dotenv variants).