summaryrefslogtreecommitdiff
path: root/pylint/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix a crash which occurred when old visit methods are encounteredClaudiu Popa2015-11-301-8/+8
| | | | | | | | | | in plugin modules. If a plugin uses an old visit method (visit_class for instance), this can lead to a crash in pylint's base checkers, because the logic in the PylintASTWalker assumes that all checkers have a visit_class / leave_class method. The patch fixes this by looking for both names. Closes issue #711.
* Fix new import related errors in pylint's codebase.Claudiu Popa2015-11-251-1/+1
|
* Fix instances of unneeded-not in pylint's codebase.Claudiu Popa2015-11-251-2/+1
|
* Add ChangeLog entry for too-many-nested-blocks and fix the errors in pylint.Claudiu Popa2015-11-041-23/+26
|
* Obsolete options are not present by default in the generated configuration file.Claudiu Popa2015-10-201-1/+2
| | | | Closes issue #632.
* Decode the docstring before attempting to parse it with the spelling checkerClaudiu Popa2015-10-161-4/+4
| | | | | Also, the patch changes calls to str() in the list of html reporter's messages only for the objects which aren't already unicode or byte strings.
* Rename the variable to fix an undefined-loop-variable false positive.Claudiu Popa2015-10-101-2/+2
|
* --enable=all can now be used. Closes issue #142.Claudiu Popa2015-10-101-0/+8
|
* Grammar fix.Claudiu Popa2015-09-231-1/+1
|
* Bring logilab-common's ureports into pylint.reporters.Claudiu Popa2015-09-051-2/+1
| | | | | | | | With this change, we moved away from depending on logilab-common, having in Pylint all the components that were used from logilab-common. The API should be considered an implementation detail and can change at some point in the future. Closes issue #621.
* Bring parts of logilab.common.configuration and logilab.common.optik_ext ↵Claudiu Popa2015-09-011-3/+91
| | | | | | | | | | | | | | | | | into pylint.config The reason behind this is that we can better control the behaviour of the underlying configuration modules, such as the case for undefined options or for quickly fixing other bugs. Another side effect of this change is that it gets us closer to the moment where we will not be dependent on logilab.common anymore, which will definitely make our pytest users happy. Some parts were copied almost verbatim from logilab.common.configuration and logilab.common.optik_ext and pylint.config will definitely need a refactoring and reengineering for abstracting the configuration, so that we won't use optparse anymore, but that's subject for another patch.
* Use the new node names for the visit and leave methodsClaudiu Popa2015-08-261-0/+10
| | | | | Also, emit a PendingDeprecationWarning if the old names are still used, this support being removed in pylint 2.0.
* Remove trailing whitespaces and other pylint related issues.Claudiu Popa2015-08-251-3/+3
|
* Update pylint to use the new astroid AST names and methodsClaudiu Popa2015-08-251-4/+37
| | | | | | | Also improve a couple of imports and added support for the old visit_ names. Priority will have the old visit_ names, such as visit_discard over visit_expr, visit_callfunc over visit_call etc.
* Update the deprecation message to reflect the fact that the options are ↵Claudiu Popa2015-08-201-2/+2
| | | | *obsoleted*.
* Remove ignored-builtin-module since it's not useful.Claudiu Popa2015-08-201-1/+0
|
* Fix pylint warnings for the code imported from logilab-common.Claudiu Popa2015-08-181-15/+8
|
* Merged in The-Compiler/pylint/no-logilab-common (pull request #264)Claudiu Popa2015-08-181-3/+61
|\ | | | | | | [WIP] Get rid of logilab.common
| * Get rid of logilab.common.interface.Florian Bruhin2015-07-261-2/+1
| |
| * Get rid of logilab.common.optik_ext and logilab.common.textutils.Florian Bruhin2015-07-261-1/+60
| |
* | The --zope flag is deprecated and it is slated for removal in Pylint 1.6.Claudiu Popa2015-08-111-1/+3
| | | | | | | | | | | | | | | | The reason behind this removal is the fact that it's a specialized flag and there are solutions for the original problem: use --generated-members with the members that causes problems when using Zope or add AST transforms tailored to the zope project. Closes issue #570.
* | Remove trailing whitespace.Claudiu Popa2015-07-311-1/+1
| |
* | --generate-rcfile generates by default human readable symbols for the ↵Claudiu Popa2015-07-311-2/+14
|/ | | | --disable option. Closes issue #608.
* Make ignore-iface-methods a noop option, mark it as deprecated.Claudiu Popa2015-05-051-0/+16
|
* MergeSimu Toni2015-03-281-1/+1
|\
| * Start with 0 statements in PylintASTWalker.Claudiu Popa2015-03-281-1/+1
| |
* | issue-422 solved some pylint warnings when running pylint on pylint code baseSimu Toni2015-03-281-1/+1
|/
* Allow ending a pragma control with a semicolon.Claudiu Popa2015-03-231-1/+4
| | | | | | In this way, users can continue a pragma control with a reason for why it is used, as in `# pylint: disable=old-style-class;reason=...`. Closes issue #449.
* Make the --py3k flag commutative with the -E flag.Claudiu Popa2015-02-281-0/+5
| | | | | Also, this patch fixes the leaks of error messages from the Python 3 checker when the errors mode was activated. Closes issue #437.
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-0/+919