Skip to main contentModule scanner
Source - ScanResult
- Result of a full scan run.
- build_regex
- Build the fuse-matching regex from the config’s trigger list.
- is_binary
- Detect binary files by looking for null bytes in the first 8 KB.
- scan
- Core scanner: walks
root, respects config, and returns all found fuses. - scan_content
- Scan a string (file content) for fuses. Exposed separately for unit testing.
- scan_file
- Scan a single file and return all fuses found.
- scan_str
- Convenience: scan a string with a freshly built regex.
Useful for testing, benchmarking, and one-off scanning without a filesystem walk.