Skip to content

Commit

Permalink
Fix double percent symbol in report output
Browse files Browse the repository at this point in the history
"%%" was required to render a "%" before we switched to f-strings.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
  • Loading branch information
Pennycook committed Mar 12, 2024
1 parent 2500ea9 commit 4b348e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codebasin/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def summary(setmap):
cd = divergence(setmap)
unused = (setmap[frozenset()] / total_count) * 100.0
lines += [f"Code Divergence: {cd:.2f}"]
lines += [f"Unused Code (%%): {unused:.2f}"]
lines += [f"Unused Code (%): {unused:.2f}"]
lines += [f"Total SLOC: {total_count}"]

return "\n".join(lines)
Expand Down

0 comments on commit 4b348e5

Please sign in to comment.