summaryrefslogtreecommitdiff
path: root/pylint/test/functional
Commit message (Collapse)AuthorAgeFilesLines
* MergeCosmin Poieana2015-05-0812-38/+88
|\
| * Remove interface-not-implemented warning. Closes issue #532.Claudiu Popa2015-05-052-32/+0
| |
| * Forgot to add tests for the new warnings.Claudiu Popa2015-05-034-0/+26
| |
| * Lookup in the implicit metaclass when checking for no-member.Claudiu Popa2015-04-254-2/+20
| | | | | | | | | | | | 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-242-4/+16
| | | | | | | | | | Since we don't know what those bases might add, we simply ignore the error in this case.
| * Move more no-member filters inside _emit_no_member. Add more tests.Claudiu Popa2015-04-242-2/+28
| |
* | Improve method regexp for those that require docstringsCosmin Poieana2015-04-201-0/+9
|/
* Look for __init__ instead of __new__ in _determine_callable_obj if __new__ ↵Claudiu Popa2015-04-192-0/+9
| | | | | | | | | 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.
* Provide some hints for the bad-builtin message. Closes issue #522.Claudiu Popa2015-04-182-1/+3
|
* Simplify the not-context-manager check, by doing a simple parent lookup on a ↵Claudiu Popa2015-04-162-0/+33
| | | | Generator.
* Don't emit redefined-outer-name for __future__ directives.Claudiu Popa2015-04-161-2/+9
| | | | Closes issue #520.
* Don't emit missing-docstring for private functions.Claudiu Popa2015-04-082-0/+29
|
* Fix a bad-reversed-sequence false positive.Claudiu Popa2015-04-071-1/+12
| | | | | 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/+13
|
* Merged in raduciorba/pylint/unused-import (pull request #244)Claudiu Popa2015-04-0255-0/+1069
|\ | | | | | | #475 fix unused-import false positive when the import is used in a class assignment
| * Update test for not-context-manager when context node is a NameRadu Ciorba2015-04-021-1/+3
| | | | | | | | | | Adds the case that caused the crash, a contextlib.contextmanager referenced by name.
| * Handle the case for not-context-manager when the context node is a Name.Claudiu Popa2015-04-012-0/+13
| | | | | | | | This fixes a crash.
| * Port more tests from the old test style to the new test style.Claudiu Popa2015-03-2853-0/+1054
| |
* | add another test case + fixed an import errorRadu Ciorba2015-03-302-1/+4
| |
* | update the testRadu Ciorba2015-03-301-2/+3
| |
* | add functional tests for unsed import false positive #475Radu Ciorba2015-03-281-2/+5
|/
* boolean-datetime is disabled for Python 3.5+Claudiu Popa2015-03-261-0/+2
|
* Finish converting tests to work both on Python 2 and 3. Also, drop 2to3 for ↵Claudiu Popa2015-03-266-0/+26
| | | | tests.
* Try to make the tests compatible with both Python 2 and Python 3.Claudiu Popa2015-03-2628-149/+170
|
* merged default from logilab/pylint and resolve conflictnot-context-managerRadu Ciorba2015-03-232-0/+28
|\
| * add warning for confusing usage of with statementconfusing-with-statementRadu Ciorba2015-03-222-0/+28
| | | | | | | | | | | | Emitted when an ambiguous looking with statement is used. For example `with open() as first, second` which looks like a tuple assignment but is actually 2 context managers.
* | add 'not-context-manager' errorRadu Ciorba2015-03-222-0/+47
|/ | | | | Checks that whatever you use in a with statement implements __enter__ and __exit__ or is decorated with contextlib.contextmanager.
* Merged in myint/pylint (pull request #237)Claudiu Popa2015-03-181-11/+11
|\ | | | | | | Add "duplicate-except" checker. Patch by Steven Myint.
| * Add an extra hint (ex: "add 3 spaces") to bad-continuation message.Daniel Balparda2015-03-171-11/+11
| |
* | Move to functional per Claudiu's noteSteven Myint2015-03-142-0/+13
| |
* | Add "duplicate-except" checkerSteven Myint2015-03-131-1/+1
|/ | | | | It checks if an exception type was already caught previously in the same try/except. This fixes #485.
* Remove abstract-class-not-used, for the same reasons as star-args and ↵Claudiu Popa2015-03-118-42/+39
| | | | abstract-class-little-referenced.
* Remove abstract-class-little-used warning, since it doesn't add any real value.Claudiu Popa2015-03-115-5/+5
|
* Remove the star-args error.Claudiu Popa2015-03-113-3/+3
| | | | | This warning is removed because it doesn't add any real value and it's not a problem if someone uses unpacking in their code.
* Remove excessive quotes in docstringsPavel Roskin2015-02-261-1/+1
|
* Fix #299: Warn about `type(x) is/== Y`impl-299Chris Rebert2015-02-212-0/+94
|
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-14197-0/+5252