MCPcopy Index your code
hub / github.com/nodejs/node / IncrementErrorCount

Method IncrementErrorCount

tools/cpplint.py:1524–1532  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

1522 self.errors_by_category = {}
1523
1524 def IncrementErrorCount(self, category):
1525 """Bumps the module's error statistic."""
1526 self.error_count += 1
1527 if self.counting in ("toplevel", "detailed"):
1528 if self.counting != "detailed":
1529 category = category.split("/")[0]
1530 if category not in self.errors_by_category:
1531 self.errors_by_category[category] = 0
1532 self.errors_by_category[category] += 1
1533
1534 def PrintErrorCounts(self):
1535 """Print a summary of errors by category, and the total."""

Callers 1

ErrorFunction · 0.80

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected