MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / AddFilters

Method AddFilters

steps/cpplint.py:1326–1335  ·  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

1324 self.AddFilters(filters)
1325
1326 def AddFilters(self, filters):
1327 """ Adds more filters to the existing list of error-message filters. """
1328 for filt in filters.split(','):
1329 clean_filt = filt.strip()
1330 if clean_filt:
1331 self.filters.append(clean_filt)
1332 for filt in self.filters:
1333 if not (filt.startswith('+') or filt.startswith('-')):
1334 raise ValueError('Every filter in --filters must start with + or -'
1335 ' (%s does not)' % filt)
1336
1337 def BackupFilters(self):
1338 """ Saves the current filter list to backup storage."""

Callers 2

SetFiltersMethod · 0.95
_AddFiltersFunction · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected