Heavy-Tools / phases /phase3_static.py
lexicalspace's picture
Update phases/phase3_static.py
8117458 verified
raw
history blame contribute delete
336 Bytes
import json
from analyzers.rule_matcher import match_rule
def static_scan(rules):
all_findings = []
for rule in rules["rules"]:
result = match_rule(rule)
all_findings.extend(result)
with open("artifacts/rule_findings.json", "w") as f:
json.dump(all_findings, f, indent=2)
return all_findings