Print a summary of errors by category, and the total.
(self)
| 1487 | self.errors_by_category[category] += 1 |
| 1488 | |
| 1489 | def PrintErrorCounts(self): |
| 1490 | """Print a summary of errors by category, and the total.""" |
| 1491 | for category, count in sorted(dict.items(self.errors_by_category)): |
| 1492 | self.PrintInfo(f"Category '{category}' errors found: {count}\n") |
| 1493 | if self.error_count > 0: |
| 1494 | self.PrintInfo(f"Total errors found: {self.error_count}\n") |
| 1495 | |
| 1496 | def PrintInfo(self, message): |
| 1497 | # _quiet does not represent --quiet flag. |