Bumps the module's error statistic.
(self, category)
| 923 | self.errors_by_category = {} |
| 924 | |
| 925 | def IncrementErrorCount(self, category): |
| 926 | """Bumps the module's error statistic.""" |
| 927 | self.error_count += 1 |
| 928 | if self.counting in ('toplevel', 'detailed'): |
| 929 | if self.counting != 'detailed': |
| 930 | category = category.split('/')[0] |
| 931 | if category not in self.errors_by_category: |
| 932 | self.errors_by_category[category] = 0 |
| 933 | self.errors_by_category[category] += 1 |
| 934 | |
| 935 | def PrintErrorCounts(self): |
| 936 | """Print a summary of errors by category, and the total.""" |