mirror of
https://github.com/mandiant/capa.git
synced 2025-12-05 20:40:05 -08:00
lint: log the failed example+rule (#2661)
* lint: log the failed example+rule * Update scripts/lint.py Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com> * fix lint --------- Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>
This commit is contained in:
@@ -406,6 +406,7 @@ class DoesntMatchExample(Lint):
|
||||
return True
|
||||
|
||||
if rule.name not in capabilities:
|
||||
logger.info('rule "%s" does not match for sample %s', rule.name, example_id)
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user