summaryrefslogtreecommitdiff
path: root/pylint/test/functional/member_checks.py
Commit message (Collapse)AuthorAgeFilesLines
* Stopped installing tests with packageAshley Whetter2019-06-201-209/+0
|
* ``no-member`` is emitted for enums when they lack a memberClaudiu Popa2018-12-111-1/+11
| | | | | | | | | | Previously we weren't doing this because we detected a ``__getattr__`` implementation on the ``Enum`` class (and this check is skipped for classes with ``__getattr__``), but that is fine for Enums, given that they are inferred in a customised way in astroid. Close #2565
* adapt existing test cases for useless-object-inheritance.ssolanki2018-06-211-1/+1
| | | | | | | | | | adapt existing test/input test cases to new check. add some more positive test case for useless-object-inheritance msg code was in conflict with existing msg. adapt existing test cases for new checker.
* Detect mangled attribute names when emitting no-memberhippo912018-01-031-0/+8
| | | Close #1643
* We don't emit by default ``no-member`` if we have opaque inference objects ↵Claudiu Popa2017-04-131-1/+1
| | | | | | | | | | in the inference results This is controlled through the new flag ``--ignore-on-opaque-inference``, which is by default True. The inference can return multiple potential results while evaluating a Python object, but some branches might not be evaluated, which results in partial inference. In that case, it might be useful to still emit no-member and other checks for the rest of the inferred objects.
* Exempt classes with __getattr__ from no-member. This should help #1293Claudiu Popa2017-01-281-2/+15
|
* Add test for emitting no-member when __slots__ are prohibiting delayed ↵Claudiu Popa2016-04-251-1/+8
| | | | assignment inference.
* Don't consider bare and broad except handlers as ignoring NameError,Claudiu Popa2016-02-261-11/+1
| | | | | | | AttributeError and similar exceptions, in the context of checkers for these issues. Closes #826
* Move redefined-variable-type into an extensionClaudiu Popa2016-02-161-1/+1
| | | | | | | | We got a lot of complaints about redefined-variable-type having multiple false positives and not being reliable enough for a core checker. The fact that it doesn't take into account duck typing makes it way to noisy when dealing with large code bases. Since it would take some time until these concerns will be fixed, the checker becomes an extension and can be later upgraded to a core one.
* check if the type of a variable is redefined (at a function, class or module ↵Laura Médioni2015-10-301-1/+1
| | | | | | scope) related to issue #674
* Add test for verifying that __name__ can't be accessed from an instance.Claudiu Popa2015-10-261-0/+6
|
* Port more old tests to the new style tests and remove obsolete tests.Claudiu Popa2015-10-031-0/+29
|
* Add tests for checking the ability to understand one-argument type builtin.Claudiu Popa2015-06-241-2/+5
|
* Emit no-member checks for nodes found in an ExceptHandler branch, without ↵Claudiu Popa2015-06-171-0/+21
| | | | exception guarding.
* Don't fail with a traceback when checking if a member exists in a super call ↵Claudiu Popa2015-06-011-0/+7
| | | | for a class with an invalid MRO.
* Pylint understand super calls.Claudiu Popa2015-05-281-2/+2
|
* Add a new warning, 'using-constant-test'.Claudiu Popa2015-05-231-1/+1
| | | | | | This new warning is emitted when a conditional statement (If, IfExp) uses a test which is always constant, such as numbers, classes, functions etc. This is most likely an error from the user's part. Closes issue #524.
* Add new tests for testing node_ignores_exception.Claudiu Popa2015-05-171-0/+6
|
* Don't emit no-member for nodes protected by AttributeError, Exception or ↵Claudiu Popa2015-05-171-1/+21
| | | | bare except handlers.
* Move more no-member filters inside _emit_no_member. Add more tests.Claudiu Popa2015-04-241-1/+27
|
* Try to make the tests compatible with both Python 2 and Python 3.Claudiu Popa2015-03-261-13/+13
|
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-0/+63