pub fn scan_file(
abs_path: &Path,
rel_path: &Path,
regex: &Regex,
config: &Config,
today: NaiveDate,
) -> Result<Vec<Fuse>>Expand description
Scan a single file and return all fuses found.
abs_path is used for reading; rel_path is stored in the Fuse for display.
Binary files (detected via null-byte check) return an empty vec.
Non-UTF-8 bytes in text files are replaced with U+FFFD; because binary
files are rejected first, this replacement is a deliberate convenience for
mixed-encoding text rather than a lossy fallback.