Bumps the module's error statistic.
(self, category)
| 749 | self.errors_by_category = {} |
| 750 | |
| 751 | def IncrementErrorCount(self, category): |
| 752 | """Bumps the module's error statistic.""" |
| 753 | self.error_count += 1 |
| 754 | if self.counting in ('toplevel', 'detailed'): |
| 755 | if self.counting != 'detailed': |
| 756 | category = category.split('/')[0] |
| 757 | if category not in self.errors_by_category: |
| 758 | self.errors_by_category[category] = 0 |
| 759 | self.errors_by_category[category] += 1 |
| 760 | |
| 761 | def PrintErrorCounts(self): |
| 762 | """Print a summary of errors by category, and the total.""" |