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

Method AddGlobalSuppression

tools/cpplint.py:1032–1034  ·  view source on GitHub ↗

Add a suppression for `category` which is suppressed for the whole file

(self, category)

Source from the content-addressed store, hash-verified

1030 return self._open_block_suppression.begin if self._open_block_suppression else -1
1031
1032 def AddGlobalSuppression(self, category):
1033 """Add a suppression for `category` which is suppressed for the whole file"""
1034 self._AddSuppression(category, self.LineRange(0, math.inf))
1035
1036 def AddLineSuppression(self, category, linenum):
1037 """Add a suppression for `category` which is suppressed only on `linenum`"""

Callers 1

Calls 1

_AddSuppressionMethod · 0.95

Tested by

no test coverage detected