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

Method _AddSuppression

tools/cpplint.py:1023–1026  ·  view source on GitHub ↗
(self, category, line_range)

Source from the content-addressed store, hash-verified

1021 self._open_block_suppression = None
1022
1023 def _AddSuppression(self, category, line_range):
1024 suppressed = self._suppressions[category]
1025 if not (suppressed and suppressed[-1].ContainsRange(line_range)):
1026 suppressed.append(line_range)
1027
1028 def GetOpenBlockStart(self):
1029 """:return: The start of the current open block or `-1` if there is not an open block"""

Callers 3

AddGlobalSuppressionMethod · 0.95
AddLineSuppressionMethod · 0.95
StartBlockSuppressionMethod · 0.95

Calls 2

ContainsRangeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected