本文整理匯總了Python中pylint.reporters.BaseReporter類的典型用法代碼示例。如果您正苦於以下問題:Python BaseReporter類的具體用法?Python BaseReporter怎麽用?Python BaseReporter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了BaseReporter類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: set_output
def set_output(self, output=None):
"""set output stream
messages buffered for old output is processed first"""
if self.out and self.msgs:
self._display(Section())
BaseReporter.set_output(self, output)
示例2: __init__
def __init__(self, output=sys.stdout):
"""
Initiate the the base reporter.
@param output: output stream
"""
BaseReporter.__init__(self, output)
示例3: __init__
def __init__(self, gui, output=sys.stdout):
"""init"""
BaseReporter.__init__(self, output)
self.msgs = []
self.gui = gui
示例4: __init__
def __init__(self, output=sys.stdout):
BaseReporter.__init__(self, output)
self.msgs = []
# Add placeholders for title and parsed messages
self.header = None
self.msgargs = []
示例5: __init__
def __init__(self, output=sys.stdout):
BaseReporter.__init__(self, output)
self.messages = []
示例6: __init__
def __init__(self, output=sys.stdout):
BaseReporter.__init__(self, output)
self._modules = {}
示例7: __init__
def __init__(self, output=None):
BaseReporter.__init__(self, output)
self._modules = set()
self._template = None
示例8: __init__
def __init__(self, message_store):
BaseReporter.__init__(self, output=None)
self._message_store = message_store
self._messages = []
示例9: __init__
def __init__(self, output=None):
BaseReporter.__init__(self, output)
self.current_module = None
self.data = []
示例10: __init__
def __init__(self, output=None):
BaseReporter.__init__(self, output)
self._modules = {}
示例11: __init__
def __init__(self, linter, output=None):
BaseReporter.__init__(self, output)
self.m_linter = linter
self.m_data = {}
示例12: __init__
def __init__(self, output=None):
BaseReporter.__init__(self, output)
示例13: __init__
def __init__(self, root, output=sys.stdout):
BaseReporter.__init__(self, output)
# messages is in the following format:
# filepath : { msgid : [ (lineno, msg) ] }
self.root = root
self.messages = defaultdict(lambda : defaultdict(list))