summaryrefslogtreecommitdiff
path: root/pylint/checkers
Commit message (Collapse)AuthorAgeFilesLines
* Use a simpler/faster private/special method regexpfunction_regexpCosmin Poieana2015-05-081-1/+1
|
* MergeCosmin Poieana2015-05-087-162/+112
|\
| * Fix unidiomatic-typecheck.Claudiu Popa2015-05-071-1/+1
| |
| * Remove unused imports.Claudiu Popa2015-05-072-2/+1
| |
| * Make ignore-iface-methods a noop option, mark it as deprecated.Claudiu Popa2015-05-051-15/+5
| |
| * Remove the rest of interface checks.Claudiu Popa2015-05-051-74/+4
| | | | | | | | | | | | | | The removed checks are interface-is-not-class, missing-interface-method, unresolved-interface. The reason is that its better to start recommending ABCs instead of the old Zope era of interfaces.
| * Remove interface-not-implemented warning. Closes issue #532.Claudiu Popa2015-05-052-29/+2
| |
| * Remove obsolete function, it was never used.Claudiu Popa2015-05-031-7/+0
| |
| * Add two new warnings, duplicate-bases and inconsistent-mro.Claudiu Popa2015-05-031-1/+21
| | | | | | | | | | | | duplicate-bases is emitted when a class has the same bases listed more than once in its bases definition, while inconsistent-mro is emitted when no sane mro hierarchy can be determined. Closes issue #526.
| * Fix some typos, rename _module_hierarchy to _qualified_names.Claudiu Popa2015-05-021-5/+5
| |
| * Make fix for #223 more readable; add a test and a ChangeLog line.James Morgensen2015-05-011-3/+18
| |
| * Fix issue #223 (ignored_modules should apply to import errors too). The fix ↵James Morgensen2015-04-301-2/+5
| | | | | | | | will ignore import errors caused by attempting to import any name which is or is a subpackage of a module listed in ignored_modules.
| * Remove trailing whitespace.Claudiu Popa2015-04-251-1/+1
| |
| * Lookup in the implicit metaclass when checking for no-member.Claudiu Popa2015-04-251-1/+1
| | | | | | | | | | | | If the class in question has an implicit metaclass, which is True for new style classes, then we can look into in when we are doing a dot access on it. Closes issue #438.
| * Don't emit no-member for classes with unknown bases.Claudiu Popa2015-04-241-3/+4
| | | | | | | | | | Since we don't know what those bases might add, we simply ignore the error in this case.
| * Document why _emit_no_member can't be used before the actual .getattr call.Claudiu Popa2015-04-241-0/+7
| |
| * Move more no-member filters inside _emit_no_member. Add more tests.Claudiu Popa2015-04-241-13/+16
| |
| * Move the mixin check inside _emit_no_member.Claudiu Popa2015-04-241-9/+8
| |
| * Refactor common code for ignoring no-member for a owner in a particular ↵Claudiu Popa2015-04-241-22/+39
| | | | | | | | function.
* | Improve method regexp for those that require docstringsCosmin Poieana2015-04-201-1/+1
|/
* Use no-docstring-rgx option to not emit missing-docstring for private funcs.Florian Bruhin2015-04-201-4/+2
|
* Add temporary fix for the builtins check in _determine_callable_obj.Claudiu Popa2015-04-191-1/+8
|
* Remove trailing whitespace.Claudiu Popa2015-04-191-1/+1
|
* Look for __init__ instead of __new__ in _determine_callable_obj if __new__ ↵Claudiu Popa2015-04-191-3/+7
| | | | | | | | | comes from builtins. Since the __new__ comes from builtins, it will not have attached any information regarding what parameters it expects, so the check will be useless. Retrieving __init__ in that case will at least detect a couple of false negatives. Closes issue #429.
* Remove trailing whitespace.Claudiu Popa2015-04-181-1/+1
|
* Update the list of known special methods.Claudiu Popa2015-04-181-4/+13
|
* Remove an unused function.Claudiu Popa2015-04-181-7/+0
|
* Do a lookup in the locals when looking for __reversed__.Claudiu Popa2015-04-181-2/+2
| | | | | | This patch uses a .locals lookup instead of a .getattr lookup, because we are interested only in the __reversed__ special methods defined in dict subclasses, without looking in ancestors.
* Provide some hints for the bad-builtin message. Closes issue #522.Claudiu Popa2015-04-181-2/+13
|
* Simplify the not-context-manager check, by doing a simple parent lookup on a ↵Claudiu Popa2015-04-161-9/+3
| | | | Generator.
* Remove trailing whitespace.Claudiu Popa2015-04-161-1/+1
|
* Replace some strings with a global variable, for clarity.Claudiu Popa2015-04-161-2/+2
|
* Don't emit redefined-outer-name for __future__ directives.Claudiu Popa2015-04-161-4/+11
| | | | Closes issue #520.
* Provide a context file for get_module_part. This prevents a crash with ↵Claudiu Popa2015-04-131-1/+2
| | | | various packages.
* Don't emit missing-docstring for private functions.Claudiu Popa2015-04-081-0/+2
|
* Fix a bad-reversed-sequence false positive.Claudiu Popa2015-04-071-4/+10
| | | | | This patch looks for a __reversed__ method for subclasses of dict (this is especially present in OrderedDict implementations).
* Don't warn about no-self-use for builtin properties.Claudiu Popa2015-04-061-1/+2
|
* Merged in raduciorba/pylint/unused-import (pull request #244)Claudiu Popa2015-04-027-21/+18
|\ | | | | | | #475 fix unused-import false positive when the import is used in a class assignment
| * Handle the case for not-context-manager when the context node is a Name.Claudiu Popa2015-04-011-3/+12
| | | | | | | | This fixes a crash.
| * Don't fail in the string checker when encountering a bytes string on Python ↵Claudiu Popa2015-04-011-0/+3
| | | | | | | | 3 with a .format method called.
| * Add Changelog entry and cleanup after changeset 2307df9Claudiu Popa2015-03-312-6/+0
| |
| * Remove "pointless-except" checkerSteven Myint2015-03-301-10/+1
| | | | | | | | This fixes #506.
| * issue-422 solved some pylint warnings when running pylint on pylint code baseSimu Toni2015-03-282-3/+3
| |
* | fix indentation, add changelog entryunused-importRadu Ciorba2015-03-311-2/+2
| |
* | fix commentRadu Ciorba2015-03-301-1/+1
| |
* | add another test case + fixed an import errorRadu Ciorba2015-03-301-1/+1
| |
* | fix unused-import false positive when the import is used in a class assignmentRadu Ciorba2015-03-301-5/+11
|/ | | | don't consume from current scope if it's defined in the same statement
* Expand tilde in spelling-private-dict-filePavel Roskin2015-03-271-0/+6
| | | | This closes issue #503
* Don't emit an unused-wildcard-import for imported __future__ names from ↵Claudiu Popa2015-03-261-1/+23
| | | | other modules.
* Remove decorated_with_abc in the favour of decorated_with, which supports ↵Claudiu Popa2015-03-232-17/+8
| | | | multiple decorator names to query.