Skip to content

Commit db7cddf

Browse files
versatamai2012
authored andcommitted
cppcheck-htmlreport: Fix premature end of loop in statistics output (danmar#2313)
This issue and also a fix has been reported by Lionel Gimbert in the forum: https://sourceforge.net/p/cppcheck/discussion/development/thread/d18fb312ee/ All credit goes to him.
1 parent 8b2903d commit db7cddf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

htmlreport/cppcheck-htmlreport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ if __name__ == '__main__':
685685
continue
686686
# don't print "0 style" etc, if no style warnings were found
687687
if (_sum == 0):
688-
break
688+
continue
689689
except KeyError:
690690
continue
691691
stats_file.write("<p>Top 10 files for " + sev + " severity, total findings: " + str(_sum) + "</br>\n")

0 commit comments

Comments
 (0)