|
Kaleidoscope
|


Public Member Functions | |
| def | __init__ (self) |
| def | SetOutputFormat (self, output_format) |
| def | SetVerboseLevel (self, level) |
| def | SetCountingStyle (self, counting_style) |
| def | SetFilters (self, filters) |
| def | AddFilters (self, filters) |
| def | BackupFilters (self) |
| def | RestoreFilters (self) |
| def | ResetErrorCounts (self) |
| def | IncrementErrorCount (self, category) |
| def | PrintErrorCounts (self) |
| def | PrintInfo (self, message) |
| def | PrintError (self, message) |
| def | AddJUnitFailure (self, filename, linenum, message, category, confidence) |
| def | FormatJUnitXML (self) |
Public Attributes | |
| verbose_level | |
| error_count | |
| filters | |
| counting | |
| errors_by_category | |
| output_format | |
Maintains module-wide state..
| def cpplint._CppLintState.__init__ | ( | self | ) |
| def cpplint._CppLintState.AddFilters | ( | self, | |
| filters | |||
| ) |
Adds more filters to the existing list of error-message filters.
| def cpplint._CppLintState.AddJUnitFailure | ( | self, | |
| filename, | |||
| linenum, | |||
| message, | |||
| category, | |||
| confidence | |||
| ) |
| def cpplint._CppLintState.BackupFilters | ( | self | ) |
Saves the current filter list to backup storage.
| def cpplint._CppLintState.FormatJUnitXML | ( | self | ) |
| def cpplint._CppLintState.IncrementErrorCount | ( | self, | |
| category | |||
| ) |
Bumps the module's error statistic.
| def cpplint._CppLintState.PrintError | ( | self, | |
| message | |||
| ) |
| def cpplint._CppLintState.PrintErrorCounts | ( | self | ) |
Print a summary of errors by category, and the total.
| def cpplint._CppLintState.PrintInfo | ( | self, | |
| message | |||
| ) |
| def cpplint._CppLintState.ResetErrorCounts | ( | self | ) |
Sets the module's error statistic back to zero.
| def cpplint._CppLintState.RestoreFilters | ( | self | ) |
Restores filters previously backed up.
| def cpplint._CppLintState.SetCountingStyle | ( | self, | |
| counting_style | |||
| ) |
Sets the module's counting options.
| def cpplint._CppLintState.SetFilters | ( | self, | |
| filters | |||
| ) |
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"
| def cpplint._CppLintState.SetOutputFormat | ( | self, | |
| output_format | |||
| ) |
Sets the output format for errors.
| def cpplint._CppLintState.SetVerboseLevel | ( | self, | |
| level | |||
| ) |
Sets the module's verbosity, and returns the previous setting.
| cpplint._CppLintState.counting |
| cpplint._CppLintState.error_count |
| cpplint._CppLintState.errors_by_category |
| cpplint._CppLintState.filters |
| cpplint._CppLintState.output_format |
| cpplint._CppLintState.verbose_level |
1.8.13