Simplify warn.py and output of warning count table and tablerow.

* Use a loop to initialize empty 'members' and 'option' of warnpatterns.
* Create severity.{color,columnheader,header} from an attributes list.
* Compute totalbyproject and totalbyseverity from a constructor.
* Skip all-zero rows and columns in the warning count table.
* Remove redundant spaces and newlines in tablerow output.

Test: run through build.log files
Change-Id: I4d3fa4ecd92e1afab91d85b7535d03f8696e83d8
This commit is contained in:
Chih-Hung Hsieh 2016-09-22 13:43:12 -07:00
parent 52eafee87a
commit 99459fc0d0
1 changed files with 287 additions and 595 deletions

File diff suppressed because it is too large Load Diff