Bumps the module's error statistic.
(self, category)
| 946 | self.errors_by_category = {} |
| 947 | |
| 948 | def IncrementErrorCount(self, category): |
| 949 | """Bumps the module's error statistic.""" |
| 950 | self.error_count += 1 |
| 951 | if self.counting in ('toplevel', 'detailed'): |
| 952 | if self.counting != 'detailed': |
| 953 | category = category.split('/')[0] |
| 954 | if category not in self.errors_by_category: |
| 955 | self.errors_by_category[category] = 0 |
| 956 | self.errors_by_category[category] += 1 |
| 957 | |
| 958 | def PrintErrorCounts(self): |
| 959 | """Print a summary of errors by category, and the total.""" |