Print a summary of errors by category, and the total.
(self)
| 956 | self.errors_by_category[category] += 1 |
| 957 | |
| 958 | def PrintErrorCounts(self): |
| 959 | """Print a summary of errors by category, and the total.""" |
| 960 | for category, count in self.errors_by_category.iteritems(): |
| 961 | sys.stderr.write('Category \'%s\' errors found: %d\n' % |
| 962 | (category, count)) |
| 963 | sys.stdout.write('Total errors found: %d\n' % self.error_count) |
| 964 | |
| 965 | _cpplint_state = _CppLintState() |
| 966 |