Sort warnings with most frequent first.

Change-Id: Id608c20d065bec83dcb2993658cc743d5e9dcb46
This commit is contained in:
Ian Rogers 2016-05-10 09:34:29 -07:00
parent af14b921af
commit 2f4ce82d13
1 changed files with 3 additions and 0 deletions

View File

@ -874,6 +874,9 @@ for line in infile:
# dump the html output to stdout
dumphtmlprologue('Warnings for ' + platformversion + ' - ' + targetproduct + ' - ' + targetvariant)
dumpstats()
# sort table based on number of members once dumpstats has deduplicated the
# members.
warnpatterns.sort(reverse=True, key=lambda i: len(i['members']))
dumptoc()
dumpseverity(severity.FIXMENOW)
dumpseverity(severity.HIGH)