Print a summary of errors by category, and the total.
(self)
| 933 | self.errors_by_category[category] += 1 |
| 934 | |
| 935 | def PrintErrorCounts(self): |
| 936 | """Print a summary of errors by category, and the total.""" |
| 937 | for category, count in self.errors_by_category.items(): |
| 938 | sys.stderr.write('Category \'%s\' errors found: %d\n' % |
| 939 | (category, count)) |
| 940 | sys.stdout.write('Total errors found: %d\n' % self.error_count) |
| 941 | |
| 942 | _cpplint_state = _CppLintState() |
| 943 |