• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python checkers.BaseChecker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中pylint.checkers.BaseChecker的典型用法代码示例。如果您正苦于以下问题:Python BaseChecker类的具体用法?Python BaseChecker怎么用?Python BaseChecker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了BaseChecker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

    def __init__(self, linter):
        """
        Change function of processing blank lines in pep8.

        @param linter: current C{PyLinter} object.
        """
        BaseChecker.__init__(self, linter)
        self.pep8Enabled = self.linter.option_value("pep8")
开发者ID:jml,项目名称:twistedchecker,代码行数:8,代码来源:pep8format.py


示例2: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     self.stats = None
     self._returns = None
     self._branches = None
     self._used_ifaces = None
     self._ifaces = None
     self._stmts = 0
开发者ID:ArthurChiao,项目名称:vim_awesome,代码行数:8,代码来源:design_analysis.py


示例3: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     self.stats = None
     self.import_graph = None
     self.__int_dep_info = self.__ext_dep_info = None
     self.reports = (
         ("RP0401", "External dependencies", self.report_external_dependencies),
         ("RP0402", "Modules dependencies graph", self.report_dependencies_graph),
     )
开发者ID:OFFIS-Automation,项目名称:Framework,代码行数:9,代码来源:imports.py


示例4: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     self.stats = None
     self.import_graph = None
     self.__int_dep_info = self.__ext_dep_info = None
     self.reports = (('RP0401', 'External dependencies',
                      self.report_external_dependencies),
                     ('RP0402', 'Modules dependencies graph',
                      self.report_dependencies_graph),
                     )
开发者ID:dellis23,项目名称:vim-stuffs,代码行数:10,代码来源:imports.py


示例5: __init__

    def __init__(self, linter=None):
        # To avoid PyLints deprecation about a missing symbolic name and
        # because I don't want to add descriptions, let's make the descriptions
        # equal to the messages.
        if self.msgs is None:
            self.msgs = {}

        for code, (message, symbolic) in self._msgs.iteritems():
            self.msgs[code] = (message, symbolic, message)

        BaseChecker.__init__(self, linter=linter)
开发者ID:Ambahm,项目名称:assignment_testing,代码行数:11,代码来源:pep8.py


示例6: set_option

    def set_option(self, optname, value, action=None, optdict=None):
        """method called to set an option (registered in the options list)

        overridden to report options setting to Similar
        """
        BaseChecker.set_option(self, optname, value, action, optdict)
        if optname == 'min-similarity-lines':
            self.min_lines = self.config.min_similarity_lines
        elif optname == 'ignore-comments':
            self.ignore_comments = self.config.ignore_comments
        elif optname == 'ignore-docstrings':
            self.ignore_docstrings = self.config.ignore_docstrings
开发者ID:imcj,项目名称:pybbs,代码行数:12,代码来源:similar.py


示例7: __init__

    def __init__(self, linter=None):
        BaseChecker.__init__(self, linter)
        self.stats = None
        self.import_graph = None
        self._imports_stack = []
        self._first_non_import_node = None
        self._module_pkg = {}  # mapping of modules to the pkg they belong in
        self.reports = (
            ("RP0401", "External dependencies", self._report_external_dependencies),
            ("RP0402", "Modules dependencies graph", self._report_dependencies_graph),
        )

        self._site_packages = self._compute_site_packages()
开发者ID:aluoch-sheila,项目名称:NEIGHBOURHOOD,代码行数:13,代码来源:imports.py


示例8: __init__

    def __init__(self, linter=None):
        BaseChecker.__init__(self, linter)
        self.stats = None
        self.import_graph = None
        self._imports_stack = []
        self._first_non_import_node = None
        self.__int_dep_info = self.__ext_dep_info = None
        self.reports = (
            ("RP0401", "External dependencies", self._report_external_dependencies),
            ("RP0402", "Modules dependencies graph", self._report_dependencies_graph),
        )

        self._site_packages = self._compute_site_packages()
开发者ID:PyCQA,项目名称:pylint,代码行数:13,代码来源:imports.py


示例9: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     Similar.__init__(self, min_lines=4,
                      ignore_comments=True, ignore_docstrings=True)
     self.stats = None
开发者ID:BearDrinkbeer,项目名称:python-mode,代码行数:5,代码来源:similar.py


示例10: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     self._to_consume = None
     self._checking_mod_attr = None
开发者ID:173210,项目名称:depot_tools,代码行数:4,代码来源:variables.py


示例11: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     self._accessed = []
     self._first_attrs = []
     self._meth_could_be_func = None
开发者ID:willemneal,项目名称:Docky,代码行数:5,代码来源:classes.py


示例12: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
开发者ID:atodorov,项目名称:pocketlint,代码行数:2,代码来源:markup.py


示例13: __init__

 def __init__(self, linter):
     BaseChecker.__init__(self, linter)
     self.stats = None
     self._returns = None
开发者ID:facuman,项目名称:environment,代码行数:4,代码来源:base.py


示例14: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     self.generated_members = list(self.config.generated_members)
     if self.config.zope:
         self.generated_members.extend(('REQUEST', 'acl_users', 'aq_parent'))
开发者ID:facuman,项目名称:environment,代码行数:5,代码来源:typecheck.py


示例15: __init__

 def __init__(self, linter=None):
     BaseChecker.__init__(self, linter)
     self._rpython = True
开发者ID:bmcharek,项目名称:opendata101-workshops,代码行数:3,代码来源:rpython.py



注:本文中的pylint.checkers.BaseChecker类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python checkers.BaseTokenChecker类代码示例发布时间:2022-05-25
下一篇:
Python checkers.initialize函数代码示例发布时间:2022-05-25
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap