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

Method AddGlobalSuppression

cpplint.py:1001–1003  ·  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

999 return self._open_block_suppression.begin if self._open_block_suppression else -1
1000
1001 def AddGlobalSuppression(self, category):
1002 """Add a suppression for `category` which is suppressed for the whole file"""
1003 self._AddSuppression(category, self.LineRange(0, math.inf))
1004
1005 def AddLineSuppression(self, category, linenum):
1006 """Add a suppression for `category` which is suppressed only on `linenum`"""

Callers 1

Calls 1

_AddSuppressionMethod · 0.95

Tested by

no test coverage detected