Add ruleset packs, linter, fixtures, and JSON schema

This commit is contained in:
2025-12-31 22:21:43 -05:00
parent dddac108fe
commit 21bb7cae5a
16 changed files with 475 additions and 174 deletions

19
rulesets/decode.toml Normal file
View File

@@ -0,0 +1,19 @@
[[rule]]
id = "INVALID_DATA_FOUND"
domain = "decode"
severity = "high"
confidence = 0.7
fix_tier = "reencode"
stop_scan = false
patterns = ["(?i)Invalid data found when processing input"]
notes = "Decoder encountered invalid data; may indicate corruption."
[[rule]]
id = "FILE_ENDED_PREMATURELY"
domain = "decode"
severity = "high"
confidence = 0.7
fix_tier = "reencode"
stop_scan = false
patterns = ["(?i)File ended prematurely"]
notes = "File appears truncated."