MCPcopy Index your code
hub / github.com/cpplint/cpplint / IncrementErrorCount

Method IncrementErrorCount

cpplint.py:1479–1487  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

1477 self.errors_by_category = {}
1478
1479 def IncrementErrorCount(self, category):
1480 """Bumps the module's error statistic."""
1481 self.error_count += 1
1482 if self.counting in ("toplevel", "detailed"):
1483 if self.counting != "detailed":
1484 category = category.split("/")[0]
1485 if category not in self.errors_by_category:
1486 self.errors_by_category[category] = 0
1487 self.errors_by_category[category] += 1
1488
1489 def PrintErrorCounts(self):
1490 """Print a summary of errors by category, and the total."""

Callers 1

ErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected