MCPcopy Create free account
hub / github.com/alibaba/GraphScope / IncrementErrorCount

Method IncrementErrorCount

analytical_engine/misc/cpplint.py:1339–1347  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

1337 self.errors_by_category = {}
1338
1339 def IncrementErrorCount(self, category):
1340 """Bumps the module's error statistic."""
1341 self.error_count += 1
1342 if self.counting in ('toplevel', 'detailed'):
1343 if self.counting != 'detailed':
1344 category = category.split('/')[0]
1345 if category not in self.errors_by_category:
1346 self.errors_by_category[category] = 0
1347 self.errors_by_category[category] += 1
1348
1349 def PrintErrorCounts(self):
1350 """Print a summary of errors by category, and the total."""

Callers 1

ErrorFunction · 0.80

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected