Print a summary of errors by category, and the total.
(self)
| 1358 | self.errors_by_category[category] += 1 |
| 1359 | |
| 1360 | def PrintErrorCounts(self): |
| 1361 | """Print a summary of errors by category, and the total.""" |
| 1362 | for category, count in sorted(iteritems(self.errors_by_category)): |
| 1363 | self.PrintInfo('Category \'%s\' errors found: %d\n' % |
| 1364 | (category, count)) |
| 1365 | if self.error_count > 0: |
| 1366 | self.PrintInfo('Total errors found: %d\n' % self.error_count) |
| 1367 | |
| 1368 | def PrintInfo(self, message): |
| 1369 | # _quiet does not represent --quiet flag. |