diff --git a/metrics.py b/metrics.py index ddd0bb4..147065e 100644 --- a/metrics.py +++ b/metrics.py @@ -75,6 +75,20 @@ class Metrics(Outputable): for i in sorted(set([(j, i) for (i, j) in metrics_logic.eloc.items()]), reverse = True): print(i[1] + " (" + str(i[0]) + " eloc)") + def output_html(self): + metrics_logic = MetricsLogic() + metrics_xml = "
" + __metrics_missing_info_text__ + ".
" + else: + metrics_xml += "" + __eloc_info_text__ + ".
" + for i in sorted(set([(j, i) for (i, j) in metrics_logic.eloc.items()]), reverse = True): + metrics_xml += "" + i[1] + " (" + str(i[0]) + " eloc)
" + + metrics_xml += "