mirror of
https://github.com/mandiant/capa.git
synced 2026-06-12 19:11:32 -07:00
bfa09f817b
When rule.meta lacks a "scopes" key, rule.meta.get("scopes") returns None
and "static"/"dynamic" not in None raises TypeError, crashing lint_rule.
Add isinstance(scopes, dict) guard so both checks return False (no violation)
when scopes is absent, letting MissingScopes report the real problem.