MCPcopy Create free account
hub / github.com/apache/mesos / AddFilters

Method AddFilters

support/cpplint.py:924–933  ·  view source on GitHub ↗

Adds more filters to the existing list of error-message filters.

(self, filters)

Source from the content-addressed store, hash-verified

922 self.AddFilters(filters)
923
924 def AddFilters(self, filters):
925 """ Adds more filters to the existing list of error-message filters. """
926 for filt in filters.split(','):
927 clean_filt = filt.strip()
928 if clean_filt:
929 self.filters.append(clean_filt)
930 for filt in self.filters:
931 if not (filt.startswith('+') or filt.startswith('-')):
932 raise ValueError('Every filter in --filters must start with + or -'
933 ' (%s does not)' % filt)
934
935 def BackupFilters(self):
936 """ Saves the current filter list to backup storage."""

Callers 2

SetFiltersMethod · 0.95
_AddFiltersFunction · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected