summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Restore compatibility with Python 2.6.cpopa2014-07-241-6/+12
|
* go back to dependency on astroid 1.1 since it breaks tox tests, even when ↵Sylvain Th?nault2014-07-241-2/+2
| | | | configured to grab astroid from hg :(
* fix issue #203, we should not let ImportError propagate from the import checkerSylvain Th?nault2014-07-232-1/+8
|
* import modutils from astroid, it has been backported thereSylvain Th?nault2014-07-235-7/+7
|
* Merged in PCManticore/pylint/metaclass_undefined (pull request #111)Claudiu Popa2014-07-235-7/+28
|\ | | | | | | Emit 'undefined-variable' for undefined names used as metaclasses with Python 3 `metaclass=` syntax.
| * Merged logilab/pylint into defaultClaudiu Popa2014-07-232-7/+5
| |\
| | * stop having ASTWalker as BaseChecker base class, it's not used anymore (and ↵Sylvain Th?nault2014-07-231-3/+1
| | | | | | | | | | | | for a while)
| | * Don't use set comprehension.cpopa2014-07-231-4/+4
| | |
| * | Don't emit 'unused-variable' when assigning to a nonlocal. Closes issue #275.cpopa2014-07-233-0/+23
| |/
* | Remove check_messages, so that leave_module can be called if ↵cpopa2014-07-231-1/+0
| | | | | | | | 'undefined-variable' is disabled.
* | Merge with default.cpopa2014-07-2249-86/+1429
|\ \ | |/
| * Definition order is considered for classes, function arguments and ↵cpopa2014-07-216-4/+134
| | | | | | | | annotations. Closes issue #257.
| * Fix an 'unused-variable' false positive, where the variable is assigned ↵cpopa2014-07-174-4/+67
| | | | | | | | through an import. Closes issue #196.
| * Don't emit 'no-name-in-module' for ignored modules. Closes issue #223.cpopa2014-07-125-2/+47
| |
| * Remove extra spaces.Alexandru Coman2014-07-112-1/+1
| |
| * Checkers respect priority now. Close issue #229.Alexandru Coman2014-07-112-1/+7
| |
| * Fix test for Python 2.cpopa2014-07-101-1/+1
| |
| * Add 'assigning-non-slot' warning, which detects assignments to attributes ↵cpopa2014-07-104-1/+95
| | | | | | | | not defined in slots.
| * Fix a false positive regarding W0511. Closes issue #149.Alexandru Coman2014-07-094-3/+9
| |
| * Code refactoring.Alexandru Coman2014-07-091-7/+6
| |
| * Fixing Issue #149 (W0511 false positive)Alexandru Coman2014-07-093-17/+23
| |
| * Give credit to recent contributor. Also, fix the news entry from the ChangeLog.cpopa2014-07-082-1/+4
| |
| * Merged in davidshea/pylint/list-index-checker (pull request #119)Claudiu Popa2014-07-080-0/+0
| |\ | | | | | | | | | Emit an error when a list index is a non-integer type
| * \ Merge upstream default into list-index-checkerDavid Shea2014-07-086-0/+425
| |\ \ | | |/ | |/|
| | * Rearrange the sequence and slice index tests for better clarityDavid Shea2014-07-084-77/+90
| | |
| | * Move the sequence_types set to the global levelDavid Shea2014-07-081-3/+4
| | |
| | * Skip the check for whether node is a Slice in visit_slice.David Shea2014-07-081-3/+0
| | | | | | | | | | | | It would actually be pretty weird if the node weren't a Slice in this case.
| | * Fix a typo in a commentDavid Shea2014-07-081-1/+1
| | |
| | * Skip sequence index checks on types that do not resolve to an Instance or aDavid Shea2014-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | Class. This avoids a crash on types that do not implement getattr, such as UnboundMethod.
| | * Correct problems with checking extended slice syntax.David Shea2014-07-073-2/+27
| | | | | | | | | | | | | | | Fix a crash triggered by visit_index events on ExtSlice objects, and emit an error when extslice syntax is used with builtin sequence types.
| | * Correct the sequence index check for set and delete operations.David Shea2014-07-073-11/+97
| | | | | | | | | | | | Usage of an index does not always imply __getitem__.
| | * Correct the use of root()David Shea2014-07-071-1/+1
| | |
| | * Clean up some stylistic issues in the sequence and slice index type checks.David Shea2014-07-075-46/+43
| | |
| | * Expand the description for invalid-sequence-index to match the check.David Shea2014-07-071-1/+2
| | |
| | * Remove the types import since it is no longer usedDavid Shea2014-07-061-1/+0
| | |
| | * Merge upstream default into list-index-checkerDavid Shea2014-07-066-0/+306
| | |\
| | | * Check for invalid indices used with subclasses of sequence types.David Shea2014-07-063-4/+63
| | | |
| | | * Correct a typo: indicies -> indicesDavid Shea2014-07-061-1/+1
| | | |
| | | * Expand and correct the types used in the index and slice checks.David Shea2014-07-068-61/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for invalid index types used with all builtin sequence types. Allow slice objects and instances with __index__ to be used as indices. Check for __index__ implemented in bases of an instance. Remove the astroid types from the error messages and correct the wording. Use .pytype() instead of .name to check types to avoid problems with custom types defining names that conflict with the bulitin types. Use type(None) instead of types.NoneType to avoid python 3 incompatibilities. Handle None returned by safe_infer.
| | | * Add a changelog entry for list and slice type checksDavid Shea2014-07-031-0/+2
| | | |
| | | * Add a check for invalid types used as slice indices.David Shea2014-07-033-0/+84
| | | |
| | | * Add tests for list index type checking and clean up the conditionalDavid Shea2014-07-033-10/+54
| | | |
| | | * Emit an error when a list index is a non-integer typeDavid Shea2014-07-011-0/+23
| | | |
| | | * Created new branch list-index-checkerDavid Shea2014-07-010-0/+0
| | | |
| * | | Fix a false positive with unbalanced iterable unpacking, when encountering ↵cpopa2014-07-083-4/+22
| |/ / | | | | | | | | | starred nodes. Closes issue #273.
| * | Fix test issues.cpopa2014-07-021-22/+22
| | |
| * | Emit 'not-callable' when calling properties. Closes issue #268.cpopa2014-07-024-3/+112
| |/
| * Remove trailing whitespace.cpopa2014-07-011-1/+1
| |
| * Emit attribute-defined-outside-init for all cases, not just for the last ↵cpopa2014-07-014-21/+36
| | | | | | | | assignment. Closes issue #262.
| * Merged in bare_except (pull request #2)Claudiu Popa2014-06-278-8/+22
| |\ | | | | | | | | | Issue broad-except and bare-except even if the number of except handlers is different than 1. Closes issue #113