mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
Update scripts/show-unused-features.py
Co-authored-by: Willi Ballenthin <wballenthin@google.com>
This commit is contained in:
@@ -97,7 +97,7 @@ def print_unused_features(feature_map: typing.Counter[Feature], rules_feature_se
|
||||
continue
|
||||
unused_features.append((count, get_colored(str(feature))))
|
||||
unused_features = [
|
||||
(get_colored(str(count)), feature) for count, feature in sorted(unused_features, key=lambda x: x[0])
|
||||
(str(count), feature) for count, feature in sorted(unused_features, key=lambda x: x[0])
|
||||
]
|
||||
print("\n")
|
||||
print(tabulate.tabulate(unused_features, headers=["Count", "Feature"], tablefmt="plain"))
|
||||
|
||||
Reference in New Issue
Block a user