Skip to main content

hook_script

Function hook_script 

Source
pub fn hook_script(scanner: Scanner) -> String
Expand description

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.