Run a lightweight policy scan to catch common high-risk patterns in code and scripts.
target_path (required): file or directory to scan.fail_on (optional): severity threshold for non-zero exit. One of critical, high, medium, low.json_output (optional): print raw JSON output.scripts/policy_check.py on the target path.critical and high items first.python3 scripts/policy_check.py "<target_path>"
python3 scripts/policy_check.py "<target_path>" --json
python3 scripts/policy_check.py "<target_path>" --fail-on high
file:line, rule id, and reason.共 1 个版本