commit | 99459fc0d0a29ab96c5a3362d0ea9a30c0535b25 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Sep 22 13:43:12 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Thu Sep 22 15:15:43 2016 -0700 |
tree | 1d2aa8a32a22625b8c1240b3dd8486ffeb5606c7 | |
parent | 52eafee87acaeab1b955b4979b7f91db6bc1c026 [diff] |
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