pub fn scan(settings: &Settings, file: &str, bytes: &[u8]) -> Vec<Finding>Expand description
Every finding for one file, ordered for reading.
bytes rather than &str because two of the four decisions are made on
bytes: a file’s SIZE is a byte count, and whether a file is text at all is
git’s NUL heuristic. Converting first would answer both questions wrongly
for exactly the files where they matter.