class documentation
class _CppLintState(object):
Maintains module-wide state..
| Method | __init__ |
Undocumented |
| Method | |
Adds more filters to the existing list of error-message filters. |
| Method | |
Saves the current filter list to backup storage. |
| Method | |
Bumps the module's error statistic. |
| Method | |
Print a summary of errors by category, and the total. |
| Method | |
Sets the module's error statistic back to zero. |
| Method | |
Restores filters previously backed up. |
| Method | |
Sets the module's counting options. |
| Method | |
Sets the error-message filters. |
| Method | |
Sets the output format for errors. |
| Method | |
Sets the module's quiet settings, and returns the previous setting. |
| Method | |
Sets the module's verbosity, and returns the previous setting. |
| Instance Variable | counting |
Undocumented |
| Instance Variable | error |
Undocumented |
| Instance Variable | errors |
Undocumented |
| Instance Variable | filters |
Undocumented |
| Instance Variable | output |
Undocumented |
| Instance Variable | quiet |
Undocumented |
| Instance Variable | verbose |
Undocumented |
| Instance Variable | _filters |
Undocumented |
Sets the error-message filters.
These filters are applied when deciding whether to emit a given error message.
- Args:
- filters: A string of comma-separated filters (eg "+whitespace/indent").
- Each filter should start with + or -; else we die.
- Raises:
- ValueError: The comma-separated filters did not all start with '+' or '-'.
- E.g. "-,+whitespace,-whitespace/indent,whitespace/badfilter"