MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / SetFilters

Method SetFilters

util/cpplint.py:883–899  ·  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. Raises: ValueE

(self, filters)

Source from the content-addressed store, hash-verified

881 self.counting = counting_style
882
883 def SetFilters(self, filters):
884 """Sets the error-message filters.
885
886 These filters are applied when deciding whether to emit a given
887 error message.
888
889 Args:
890 filters: A string of comma-separated filters (eg "+whitespace/indent").
891 Each filter should start with + or -; else we die.
892
893 Raises:
894 ValueError: The comma-separated filters did not all start with '+' or '-'.
895 E.g. "-,+whitespace,-whitespace/indent,whitespace/badfilter"
896 """
897 # Default filters always have less priority than the flag ones.
898 self.filters = _DEFAULT_FILTERS[:]
899 self.AddFilters(filters)
900
901 def AddFilters(self, filters):
902 """ 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