MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / AddFilters

Method AddFilters

engine/3rdparty/tinyobjloader/deps/cpplint.py:807–816  ·  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

805 self.AddFilters(filters)
806
807 def AddFilters(self, filters):
808 """ Adds more filters to the existing list of error-message filters. """
809 for filt in filters.split(','):
810 clean_filt = filt.strip()
811 if clean_filt:
812 self.filters.append(clean_filt)
813 for filt in self.filters:
814 if not (filt.startswith('+') or filt.startswith('-')):
815 raise ValueError('Every filter in --filters must start with + or -'
816 ' (%s does not)' % filt)
817
818 def BackupFilters(self):
819 """ Saves the current filter list to backup storage."""

Callers 2

SetFiltersMethod · 0.95
_AddFiltersFunction · 0.80

Calls 2

splitMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected