pub fn hook_script(scanner: Scanner) -> String
The git pre-commit hook script for scanner. Scans only the staged diff, exits non-zero on a finding (which aborts the commit), and fails closed when the scanner binary is absent.
pre-commit
scanner