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

Method PrintErrorCounts

tools/cpplint.py:1534–1539  ·  view source on GitHub ↗

Print a summary of errors by category, and the total.

(self)

Source from the content-addressed store, hash-verified

1532 self.errors_by_category[category] += 1
1533
1534 def PrintErrorCounts(self):
1535 """Print a summary of errors by category, and the total."""
1536 for category, count in sorted(dict.items(self.errors_by_category)):
1537 self.PrintInfo(f"Category '{category}' errors found: {count}\n")
1538 if self.error_count > 0:
1539 self.PrintInfo(f"Total errors found: {self.error_count}\n")
1540
1541 def PrintInfo(self, message):
1542 # _quiet does not represent --quiet flag.

Callers 1

mainFunction · 0.80

Calls 3

PrintInfoMethod · 0.95
sortedFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected