Module filter

Module filter 

Source
Expand description

File filtering using layered blocklist/allowlist/heuristics.

Determines which files should be processed for codemap extraction.

Enums§

FilterError
Errors that can occur during file filtering.
FilterResult
Result of filtering a file.
Language
Supported programming languages for codemap extraction.
RejectReason
Reason why a file was rejected.

Functions§

detect_language
Detect language from file path based on extension.
is_binary
Check if content contains binary data (null bytes).
is_blocklisted
Check if an extension is blocklisted.
is_blocklisted_filename
Check if a filename is blocklisted.
is_generated
Check if content appears to be generated.
is_minified
Check if content appears to be minified (very long lines). Uses early exit - returns as soon as a long line is found.
passes_extension_filter
Check if a path passes basic extension filtering (no content check).
should_process
Determine if a file should be processed for codemap extraction.