Testing
The test suite validates every shipped rule with 100% coverage:
What the tests verify
bad_– triggers every single shipped ruleexample. yml clean_– produces zero findings (false-positive check)example. yml multi_– 6-file role fixture that exercises cross-file taint, role-task AST parsing, and deterministic finding counts across a realistic layoutexample_ bad/ multi_– 6-file hardened role fixture, zero findings expected (multi-file false-positive guard)example_ clean/ - No duplicate pattern IDs across all YAML files
- All regexes compile without errors
- Category field matches filename for every pattern
- CLI behaviours – format inference from
–outputextension, per-file report mode,–outputoverwrite protection, smart default output directory