本文整理汇总了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))