mirror of
https://github.com/mandiant/capa.git
synced 2025-12-19 10:42:31 -08:00
@@ -180,7 +180,11 @@ class DoesntMatchExample(Lint):
|
||||
if not ctx["is_thorough"]:
|
||||
return False
|
||||
|
||||
for example in rule.meta.get("examples", []):
|
||||
examples = rule.meta.get("examples", [])
|
||||
if not examples:
|
||||
return False
|
||||
|
||||
for example in examples:
|
||||
example_id = example.partition(":")[0]
|
||||
try:
|
||||
path = ctx["samples"][example_id]
|
||||
|
||||
Reference in New Issue
Block a user