summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Announce the move to github in the readme file.HEADmasterClaudiu Popa2015-12-101-57/+2
|
* Change the attribute check for using hasattr instead of looking explicitly ↵Claudiu Popa2015-12-081-1/+1
| | | | into __dict__.
* Give a nice error message when Graphviz is not installed. Closes issue #168.Emile Anclin2015-12-082-0/+20
|
* Use the new .ctx attribute for subscripts for detecting in which context the ↵Claudiu Popa2015-12-081-25/+9
| | | | node was used. Closes issue #705.
* Merged in jakirkham/pylint/issue_538_pt2 (pull request #315)Claudiu Popa2015-12-0717-70/+224
|\ | | | | | | Add another check of the current working directory for `.pylintrc`.
| * Allow statements in if or try blocks containing imports.Laura M?dioni2015-12-024-8/+39
| | | | | | | | Closes issue #714
| * Move the construction of generated_members into open.Claudiu Popa2015-12-071-10/+10
| |
| * Added a new error, 'relative-beyond-top-level'.Claudiu Popa2015-12-065-10/+57
| | | | | | | | | | | | | | This is emitted when a relative import was attempted beyond the top level package. For instance, if a package has X levels, trying to climb X + n levels with a relative import, as in `from ..stuff import Stuff`, will result in an error. Closes issue #588.
| * Make pylint work with new astroid exceptions, AstroidImportError and ↵Claudiu Popa2015-12-065-23/+19
| | | | | | | | AstroidSyntaxError.
| * Don't emit super-on-old-class on classes with unknown bases.Claudiu Popa2015-12-064-23/+23
| | | | | | | | | | | | The change also removes the confidence handling for super-on-old-class, which isn't used enough to merit its existence. Closes issue #721.
| * Accept only functions and methods for the deprecated-method checker.Claudiu Popa2015-12-033-3/+83
| | | | | | | | | | This prevents a crash which can occur when an object doesn't have .qname() method after the inference.
* | pylint/config.py: Add another check of the current working directory for ↵issue_538_pt2John Kirkham2015-12-021-0/+2
|/ | | | `.pylintrc`.
* Disable persistence for test_self.Claudiu Popa2015-12-021-0/+1
|
* Try to register the else-if checker explicitly instead on relying on path ↵Claudiu Popa2015-12-021-4/+2
| | | | assumptions.
* Remove import which was imported twice.Claudiu Popa2015-12-011-1/+1
|
* Don't emit import-self and cyclic-import for relative imports of modules ↵Claudiu Popa2015-12-016-4/+40
| | | | | | | | | | | | | | | | | with the same name as the package itself. The problem was partially the fault of astroid.modutils.get_module_part, in combination with a given context file. The function returned 'dummy' as the module part for the string `dummy.dummy.Dummy`, which is in fact true, since the first dummy is the package and the second dummy is the module from where Dummy gets loaded. But get_module_part has no way to know this semantic inference, that the second dummy is a relative import inside the first one. As such, it's better to just skip the check if the condition of being relative inside a __init__.py file is found, since there's no way to load itself in that case. Closes issues #708 and #706.
* Refactor things through the imports checkerClaudiu Popa2015-12-014-67/+92
| | | | | | | | This patch transforms some public functions / methods to private and moves some blocks of code into their own functions. Through the latter, a couple of new messages are now emitted even though the module couldn't be imported, such as reimported, which doesn't make sense to not emit in this case.
* Add else-if-used rule functional testLaura M?dioni2015-11-302-0/+75
|
* fix elif-used ruleLaura M?dioni2015-11-301-18/+4
| | | | The bug was introduced when porting the rule from pylint core to an extension
* Add changelog entry for 0c2ba76Claudiu Popa2015-11-301-0/+9
|
* Fix a crash which occurred when old visit methods are encounteredClaudiu Popa2015-11-303-9/+29
| | | | | | | | | | 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.
* Don't emit unsubscriptable-object if the node is found inside an abstract ↵Claudiu Popa2015-11-302-0/+28
| | | | class. Closes #685.
* Add wrong-import-position to check_messages's decorator arguments for ↵Claudiu Popa2015-11-304-2/+38
| | | | | | | | | | ImportChecker.leave_module This fixes an esoteric bug which occurs when ungrouped-imports and wrong-import-order are disabled and pylint is executed on multiple files. What happens is that without wrong-import-position in check_messages, leave_module will never be called, which means that the first non-import node from other files might leak into the current file, leading to wrong-import-position being emitted by pylint.
* Don't use .iteritems, it doesn't exist on Python 3. Change some variable ↵Claudiu Popa2015-11-291-11/+8
| | | | names and the name of the builtins module.
* pylint extension to check for use of "else if" instead of "elsif"Laura M?dioni2015-11-271-0/+76
| | | | related to issue #673
* Add some more comments about the limitations of this ruleLaura M?dioni2015-11-242-3/+10
| | | | related to issue #674
* Drop printLaura M?dioni2015-11-241-2/+0
| | | | related to issue #674
* Use a stack of dictionaries instead of 3 dictsLaura M?dioni2015-11-243-30/+25
| | | | | | | - This way it works with embedded classes and functions - Update the tests accordingly related to issue #674
* Remove test on str.split() since there is no support for inference on split ↵Laura M?dioni2015-11-242-11/+5
| | | | | | for now related to issue #674
* check if the type of a variable is redefined (at a function, class or module ↵Laura M?dioni2015-10-308-5/+149
| | | | | | scope) related to issue #674
* Added a new warning, 'unsupported-delete-operation'Claudiu Popa2015-11-265-21/+154
| | | | | It is emitted when item deletion is tried on an object which doesn't have this ability. Closes issue #592.
* Added a new warning, 'unsupported-assignment-operation'Claudiu Popa2015-11-265-9/+162
| | | | | This is emitted when item assignment is tried on an object which doesn't have this ability. Closes issue #591.
* Simplify the protocol methods, by using a common function.Claudiu Popa2015-11-261-41/+12
|
* Ignore multiple comparisons in unneeded-not ruleLaura M?dioni2015-11-252-0/+7
| | | | related to issue #703
* Make some imports external instead of considering them localClaudiu Popa2015-11-251-3/+3
| | | | | | | | | The assumption that a module which can't be imported is local rather than external isn't always correct, since the implementation of the astroid's import system should always find a module which is local in the current package, while it isn't necessary true that it can find always external modules, which just might be missing.
* Change the variable name to something more suggestiveClaudiu Popa2015-11-251-6/+7
|
* Fix some docstrings and the Python 3 testsClaudiu Popa2015-11-255-8/+10
|
* Add ChangeLog entry for issue #692.Claudiu Popa2015-11-251-1/+11
|
* Fix new import related errors in pylint's codebase.Claudiu Popa2015-11-2520-45/+51
|
* Improve a bit wrong-import-position code and add commentsLaura M?dioni2015-11-241-7/+11
| | | | related to issue #692
* Simplify a bit the algorithm checking for ungrouped importsLaura M?dioni2015-11-241-12/+8
| | | | related to issue #692
* Remove a chunk of code that was never executedLaura M?dioni2015-11-231-3/+0
| | | | related to issue #692
* Factorize code in _record_import methodLaura M?dioni2015-11-231-9/+13
| | | | related to issue #692
* slightly change wrong-import-position message and add forgotten functional testLaura M?dioni2015-11-123-2/+26
| | | | related to issue #692
* Check imports are located at the top of the module (right after docstring ↵Laura M?dioni2015-11-1042-63/+104
| | | | | | and comments) related to issue #692
* Check imports are ordered (standard, 3rd party, local) and grouped by packageLaura M?dioni2015-11-0914-10/+132
| | | | related to issue #692
* Add ChangeLog entry for issue #670.Claudiu Popa2015-11-251-0/+4
|
* Fix instances of unneeded-not in pylint's codebase.Claudiu Popa2015-11-258-9/+8
|
* Add is to the checked operatorsLaura M?dioni2015-11-243-1/+4
|
* Fix crash with 'in' operator on unneeded-notLaura M?dioni2015-10-293-2/+9
|