Print a summary of errors by category, and the total.
(self)
| 759 | self.errors_by_category[category] += 1 |
| 760 | |
| 761 | def PrintErrorCounts(self): |
| 762 | """Print a summary of errors by category, and the total.""" |
| 763 | for category, count in iteritems(self.errors_by_category): |
| 764 | sys.stderr.write('Category \'%s\' errors found: %d\n' % |
| 765 | (category, count)) |
| 766 | sys.stderr.write('Total errors found: %d\n' % self.error_count) |
| 767 | |
| 768 | _cpplint_state = _CppLintState() |
| 769 |