(self)
| 852 | """Maintains module-wide state..""" |
| 853 | |
| 854 | def __init__(self): |
| 855 | self.verbose_level = 1 # global setting. |
| 856 | self.error_count = 0 # global count of reported errors |
| 857 | # filters to apply when emitting error messages |
| 858 | self.filters = _DEFAULT_FILTERS[:] |
| 859 | # backup of filter list. Used to restore the state after each file. |
| 860 | self._filters_backup = self.filters[:] |
| 861 | self.counting = 'total' # In what way are we counting errors? |
| 862 | self.errors_by_category = {} # string to int dict storing error counts |
| 863 | |
| 864 | # output format: |
| 865 | # "emacs" - format that emacs can parse (default) |
| 866 | # "vs7" - format that Microsoft Visual Studio 7 can parse |
| 867 | self.output_format = 'emacs' |
| 868 | |
| 869 | def SetOutputFormat(self, output_format): |
| 870 | """Sets the output format for errors.""" |
nothing calls this directly
no outgoing calls
no test coverage detected