Print a summary of errors by category, and the total.
(self)
| 1343 | self.errors_by_category[category] += 1 |
| 1344 | |
| 1345 | def PrintErrorCounts(self): |
| 1346 | """Print a summary of errors by category, and the total.""" |
| 1347 | for category, count in sorted(iteritems(self.errors_by_category)): |
| 1348 | self.PrintInfo('Category \'%s\' errors found: %d\n' % |
| 1349 | (category, count)) |
| 1350 | if self.error_count > 0: |
| 1351 | self.PrintInfo('Total errors found: %d\n' % self.error_count) |
| 1352 | |
| 1353 | def PrintInfo(self, message): |
| 1354 | # _quiet does not represent --quiet flag. |