feat(config-audit): HKV flags verbose hook output (v5 M5) [skip-docs]
Static heuristic — counts console.log / process.stdout.write lines per referenced hook script. > 50 → low CA-HKV-NNN finding. New fixtures: - hooks-verbose/ (61 verbose lines → triggers) - hooks-quiet/ (5 lines → no finding) 580 → 582 tests, all green.
This commit is contained in:
parent
7181862644
commit
910567d661
6 changed files with 153 additions and 0 deletions
7
plugins/config-audit/tests/fixtures/hooks-quiet/hooks/scripts/quiet.mjs
vendored
Normal file
7
plugins/config-audit/tests/fixtures/hooks-quiet/hooks/scripts/quiet.mjs
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
// Quiet hook
|
||||
console.log("step 0");
|
||||
console.log("step 1");
|
||||
console.log("step 2");
|
||||
console.log("step 3");
|
||||
console.log("step 4");
|
||||
Loading…
Add table
Add a link
Reference in a new issue