MCPcopy Index your code
hub / github.com/cpplint/cpplint / AddFilters

Method AddFilters

cpplint.py:1455–1464  ·  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

1453 self.AddFilters(filters)
1454
1455 def AddFilters(self, filters):
1456 """Adds more filters to the existing list of error-message filters."""
1457 for filt in filters.split(","):
1458 clean_filt = filt.strip()
1459 if clean_filt:
1460 self.filters.append(clean_filt)
1461 for filt in self.filters:
1462 if not filt.startswith(("+", "-")):
1463 msg = f"Every filter in --filters must start with + or - ({filt} does not)"
1464 raise ValueError(msg)
1465
1466 def BackupFilters(self):
1467 """Saves the current filter list to backup storage."""

Callers 3

SetFiltersMethod · 0.95
_AddFiltersFunction · 0.80

Calls

no outgoing calls

Tested by 1