Expand description
Provides standalone functions for file filtering logic.
These functions are used by the discovery stage to determine which files should be included in the processing pipeline. They are exposed publicly to allow for their use in other contexts.
Functions§
- check_
process_ last - Checks if a file’s relative path matches any of the
-z/--lastglob patterns. - is_
file_ type - Checks if the metadata belongs to a regular file.
- is_
likely_ text - Checks if the file content is likely text-based by reading its head.
- is_
likely_ text_ from_ buffer - Checks if a byte buffer is likely text-based.
- is_
lockfile - Checks if a path corresponds to a common lockfile name or path suffix.
- passes_
extension_ filters - Checks if a path passes the include/exclude extension filters defined in
Config. - passes_
size_ filter - Checks if the file’s size is within the configured limit.