MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / __init__

Method __init__

util/cpplint.py:854–867  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected