Skip to content

Commit

Permalink
Merge pull request #972 from mandiant/feature-many-rule-paths-meta
Browse files Browse the repository at this point in the history
render: meta: display rule paths on separate lines
  • Loading branch information
williballenthin authored Apr 6, 2022
2 parents 57d2df4 + fccca82 commit 05f7ac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capa/render/verbose.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def render_meta(ostream, doc):
("arch", doc["meta"]["analysis"]["arch"]),
("extractor", doc["meta"]["analysis"]["extractor"]),
("base address", hex(doc["meta"]["analysis"]["base_address"])),
("rules", ", ".join(doc["meta"]["analysis"]["rules"])),
("rules", "\n".join(doc["meta"]["analysis"]["rules"])),
("function count", len(doc["meta"]["analysis"]["feature_counts"]["functions"])),
("library function count", len(doc["meta"]["analysis"]["library_functions"])),
(
Expand All @@ -71,6 +71,7 @@ def render_meta(ostream, doc):
+ sum(doc["meta"]["analysis"]["feature_counts"]["functions"].values()),
),
]

ostream.writeln(tabulate.tabulate(rows, tablefmt="plain"))


Expand Down

0 comments on commit 05f7ac0

Please sign in to comment.