MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / AddFilters

Method AddFilters

src/tests/coding/cpplint.py:1311–1320  ·  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

1309 self.AddFilters(filters)
1310
1311 def AddFilters(self, filters):
1312 """ Adds more filters to the existing list of error-message filters. """
1313 for filt in filters.split(','):
1314 clean_filt = filt.strip()
1315 if clean_filt:
1316 self.filters.append(clean_filt)
1317 for filt in self.filters:
1318 if not (filt.startswith('+') or filt.startswith('-')):
1319 raise ValueError('Every filter in --filters must start with + or -'
1320 ' (%s does not)' % filt)
1321
1322 def BackupFilters(self):
1323 """ Saves the current filter list to backup storage."""

Callers 2

SetFiltersMethod · 0.95
_AddFiltersFunction · 0.80

Calls 2

splitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected