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

Method SetFilters

tools/cpplint.py:1477–1493  ·  view source on GitHub ↗

Sets the error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A string of comma-separated filters (eg "+whitespace/indent"). Each filter should start with + or -; else we die.

(self, filters)

Source from the content-addressed store, hash-verified

1475 self.counting = counting_style
1476
1477 def SetFilters(self, filters):
1478 """Sets the error-message filters.
1479
1480 These filters are applied when deciding whether to emit a given
1481 error message.
1482
1483 Args:
1484 filters: A string of comma-separated filters (eg "+whitespace/indent").
1485 Each filter should start with + or -; else we die.
1486
1487 Raises:
1488 ValueError: The comma-separated filters did not all start with '+' or '-'.
1489 E.g. "-,+whitespace,-whitespace/indent,whitespace/badfilter"
1490 """
1491 # Default filters always have less priority than the flag ones.
1492 self.filters = _DEFAULT_FILTERS[:]
1493 self.AddFilters(filters)
1494
1495 def AddFilters(self, filters):
1496 """Adds more filters to the existing list of error-message filters."""

Callers 1

_SetFiltersFunction · 0.80

Calls 1

AddFiltersMethod · 0.95

Tested by

no test coverage detected