[Pydev-cvs] org.python.pydev/PySrc/ThirdParty/logilab/pylint __init__.py,1.4,1.5 PKG-INFO,1.4,1.5 __
Brought to you by:
fabioz
Update of /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/pylint In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8113/PySrc/ThirdParty/logilab/pylint Modified Files: __init__.py PKG-INFO __pkginfo__.py interfaces.py ChangeLog setup.py lint.py utils.py gui.py config.py Log Message: New pylint version integrated Index: lint.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/pylint/lint.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** lint.py 16 Feb 2005 16:45:42 -0000 1.7 --- lint.py 24 Feb 2005 18:28:47 -0000 1.8 *************** *** 1,4 **** ! # Copyright (c) 2002-2005 Sylvain Thenault (sy...@lo...). ! # Copyright (c) 2002-2005 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:co...@lo... # --- 1,4 ---- ! # Copyright (c) 2003-2005 Sylvain Thenault (the...@gm...). ! # Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:co...@lo... # *************** *** 40,48 **** from logilab.pylint.checkers import utils import re import tokenize from os.path import dirname, basename, splitext, exists, isdir, join, normpath ! from logilab.common.configuration import OptionsManagerMixIn from logilab.common.astng import ASTNGManager from logilab.common.modutils import modpath_from_file, get_module_files, \ --- 40,50 ---- from logilab.pylint.checkers import utils + import sys + import os import re import tokenize from os.path import dirname, basename, splitext, exists, isdir, join, normpath ! from logilab.common.configuration import OptionsManagerMixIn, check_yn from logilab.common.astng import ASTNGManager from logilab.common.modutils import modpath_from_file, get_module_files, \ *************** *** 58,62 **** from logilab.pylint.checkers import BaseRawChecker, EmptyReport, \ table_lines_from_stats ! from logilab.pylint.reporters.text import TextReporter from logilab.pylint import config --- 60,66 ---- from logilab.pylint.checkers import BaseRawChecker, EmptyReport, \ table_lines_from_stats ! from logilab.pylint.reporters.text import TextReporter, TextReporter2, \ ! ColorizedTextReporter ! from logilab.pylint.reporters.html import HTMLReporter from logilab.pylint import config *************** *** 65,68 **** --- 69,75 ---- OPTION_RGX = re.compile('#*\s*pylint:(.*)') + REPORTER_OPT_MAP = {'html': HTMLReporter, + 'parseable': TextReporter2, + 'color': ColorizedTextReporter} # Python Linter class ######################################################### *************** *** 274,295 **** if value: meth = self._options_methods[opt_name] ! for _id in value: meth(_id) - else: - value = () - elif opt_name == 'html': - if value: - from logilab.pylint.reporters.html import HTMLReporter - self.set_reporter(HTMLReporter()) - elif opt_name == 'parseable': - if value: - from logilab.pylint.reporters.text import TextReporter2 - self.set_reporter(TextReporter2()) - elif opt_name == 'color': - if value: - from logilab.pylint.reporters.text import ColorizedTextReporter - self.set_reporter(ColorizedTextReporter()) elif opt_name == 'cache-size': self.manager.set_cache_size(int(value)) BaseRawChecker.set_option(self, opt_name, value, action, opt_dict) --- 281,290 ---- if value: meth = self._options_methods[opt_name] ! for _id in get_csv(value): meth(_id) elif opt_name == 'cache-size': self.manager.set_cache_size(int(value)) + elif opt_name in REPORTER_OPT_MAP and check_yn(None, opt_name, value): + self.set_reporter(REPORTER_OPT_MAP[opt_name]()) BaseRawChecker.set_option(self, opt_name, value, action, opt_dict) Index: __pkginfo__.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/pylint/__pkginfo__.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** __pkginfo__.py 16 Feb 2005 16:45:37 -0000 1.4 --- __pkginfo__.py 24 Feb 2005 18:28:47 -0000 1.5 *************** *** 22,30 **** modname = 'pylint' ! numversion = (0, 6, 2) version = '.'.join([str(num) for num in numversion]) license = 'GPL' ! copyright = '''Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE). http://www.logilab.fr/ -- mailto:co...@lo...''' --- 22,31 ---- modname = 'pylint' ! numversion = (0, 6, 3) version = '.'.join([str(num) for num in numversion]) license = 'GPL' ! copyright = '''Copyright (c) 2003-2005 Sylvain Thenault (the...@gm...). ! Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE). http://www.logilab.fr/ -- mailto:co...@lo...''' Index: ChangeLog =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/pylint/ChangeLog,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ChangeLog 16 Feb 2005 16:45:42 -0000 1.4 --- ChangeLog 24 Feb 2005 18:28:47 -0000 1.5 *************** *** 2,5 **** --- 2,14 ---- ==================== + -- + * fix scope problem which may cause false positive and true negative + on E0602 + + * fix problem with some options such as disable-msg causing error when + they are coming from the configuration file + + + 2005-02-16 -- 0.6.2 * fix false positive on E0201 ("access to undefined member") with Index: PKG-INFO =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/pylint/PKG-INFO,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PKG-INFO 16 Feb 2005 16:45:37 -0000 1.4 --- PKG-INFO 24 Feb 2005 18:28:47 -0000 1.5 *************** *** 1,5 **** Metadata-Version: 1.0 Name: pylint ! Version: 0.6.2 Summary: python code static checker Home-page: http://www.logilab.org/projects/pylint --- 1,5 ---- Metadata-Version: 1.0 Name: pylint ! Version: 0.6.3 Summary: python code static checker Home-page: http://www.logilab.org/projects/pylint Index: utils.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/pylint/utils.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** utils.py 16 Feb 2005 16:45:37 -0000 1.2 --- utils.py 24 Feb 2005 18:28:47 -0000 1.3 *************** *** 1,4 **** ! # Copyright (c) 2002-2005 Sylvain Thenault (sy...@lo...). ! # Copyright (c) 2002-2005 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:co...@lo... # --- 1,4 ---- ! # Copyright (c) 2003-2005 Sylvain Thenault (the...@gm...). ! # Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:co...@lo... # *************** *** 21,24 **** --- 21,26 ---- __revision__ = "$Id$" + from os import linesep + from logilab.common.astng import Module from logilab.common.textutils import normalize_text *************** *** 254,258 **** print 'Description' print '~~~~~~~~~~~' ! print checker.__doc__ if not checker.msgs: continue --- 256,261 ---- print 'Description' print '~~~~~~~~~~~' ! print linesep.join([line.strip() for line in checker.__doc__.splitlines()]) ! print if not checker.msgs: continue |