summaryrefslogtreecommitdiff
path: root/checkers/classes.py
Commit message (Collapse)AuthorAgeFilesLines
* Documentation improvementsdocs-improvements-2Michal Nowikowski2014-11-041-2/+2
| | | | | | | | - added intros to features page, - fixed PyLint to Pylint in text, - improved ide-integration doc page, - updated pylintrc in examples and - regenerated pylint manual
* Add a new option, 'exclude-protected'.Claudiu Popa2014-10-281-2/+12
| | | | | This option can be used for excluding members from the protected-access warning. Closes issue #48.
* Use a defaultdict where it makes sense.Claudiu Popa2014-10-251-3/+4
|
* Don't emit 'assigning-non-slot' when the assignment is for a property.Claudiu Popa2014-10-151-1/+34
| | | | Closes issue #359.
* Add a new warning, 'inherit-non-class', emitted when a class inherits from ↵cpopa2014-09-121-2/+24
| | | | something which is not a class. Closes issue #331
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-6/+7
|
* Fix a crash which ocurred while checking for 'method-hidden', when the ↵cpopa2014-08-231-1/+2
| | | | parent frame was something different than a function.
* Detect calls of the parent's __init__, through a binded super() call.cpopa2014-08-161-0/+11
|
* Don't emit 'protected-access' if the attribute is accessed using a property ↵cpopa2014-08-141-1/+18
| | | | defined at the class level.
* Cleanup.cpopa2014-08-081-8/+16
|
* Minor cleanup.cpopa2014-08-051-9/+8
|
* Don't emit 'attribute-defined-outside-init' if the attribute was set by a ↵cpopa2014-08-041-0/+33
| | | | function call in a defining method. Closes issue #192.
* linting pylintSylvain Th?nault2014-07-251-41/+39
|
* Only emit attribute-defined-outside-init for definition within the same ↵Sylvain Th?nault2014-07-251-1/+5
| | | | | | module as the offended class This avoids mangling the output in some cases
* Don't emit hidden-method message when the attribute has been monkey-patched,Sylvain Th?nault2014-07-251-3/+7
| | | | | | you're on your own when you do that Closes http://www.logilab.org/ticket/36653
* Add 'assigning-non-slot' warning, which detects assignments to attributes ↵cpopa2014-07-101-1/+32
| | | | not defined in slots.
* Remove trailing whitespace.cpopa2014-07-011-1/+1
|
* Emit attribute-defined-outside-init for all cases, not just for the last ↵cpopa2014-07-011-21/+23
| | | | assignment. Closes issue #262.
* [classes checker] fix access-member-before-definition false negative wrt aug ↵Sylvain Th?nault2014-04-151-0/+17
| | | | assign. Closes #164
* various cleanupsSylvain Th?nault2014-04-151-5/+7
|
* Emit only symbolic names from the classes checker.Torsten Marek2014-04-101-30/+29
|
* Infer slots elements before attempting to validate them.cpopa2014-04-121-11/+18
|
* Remove empty-slots-object, define tuple with methods at the global level.cpopa2014-04-091-1/+2
|
* Merge with default.cpopa2014-04-091-1/+53
|\
| * Verify all the infered slots, skip YES nodes from the values and other fixes.cpopa2014-04-091-36/+39
| |
| * Merge with default.cpopa2014-03-311-1/+50
| |\
| | * Add new checks for proper class slots.cpopa2014-03-311-1/+50
| | |
* | | Merged in dpursehouse/pylint (pull request #88)Claudiu Popa2014-04-091-1/+4
|\ \ \ | |/ / | | | | | | Better message for E0202
| * | Do not warn about 'abstract-method' when the abstract method is implemented ↵cpopa2014-03-251-0/+3
| |/ | | | | | | through assignment. Closes #155.
| * Updated FSF address.Arun Persaud2014-02-231-1/+1
| |
* | Better message for E0202David Pursehouse2014-01-211-1/+1
|/
* various pylint fixesSylvain Th?nault2013-12-221-4/+4
|
* Fix argument check for variable arguments.cpopa2013-09-261-1/+4
|
* Add bad-context-manager check for __exit__ special method.cpopa2013-09-261-0/+12
|
* Update non-iterator-returned message.cpopa2013-09-021-1/+1
|
* Use NEXT_METHOD globally.cpopa2013-09-021-6/+5
|
* Check only for next method.cpopa2013-08-301-7/+6
|
* Add check for non-iterator returned by __iter__.cpopa2013-08-081-1/+37
|
* astng has been renamed astroidDavid Douard2013-06-171-34/+34
|
* erroneous W0212 (access to protected member) on super call. Closes #115580Martin Pool2013-01-081-1/+6
|
* Fixes a crash when an __init__ method in a base class has been created by ↵tmarek2012-11-121-2/+2
| | | | assignment rather than direct function definition. Closes #110853
* Closes #104572: symbolic warning names in output (by Martin Pool)Martin Pool2012-09-191-0/+21
| | | | triggered whatever the format using a command line option
* use .iter* version of dict methods when possibleSylvain Th?nault2012-09-191-2/+2
|
* Fix false positive W0231 for missing call to object.__init__. Closes #103656FELD Boris2012-09-191-4/+3
|
* Improve checking of metaclass methods's first arg. Closes #4014.FELD Boris2012-09-191-30/+68
| | | | | | * Add C0204 for __new__ method of metaclass. * Add valid-metaclass-classmethod-first-arg config option. * Move a test, improve it and fix another one.
* Refactor _check_protected_attribute_access by extracting independent part in ↵Sylvain Th?nault2012-06-071-10/+3
| | | | utils functions. Improve is_super_call docstring.
* Add checking for protected attribute assignement, closes #7394.Sylvain Th?nault2012-06-071-10/+50
| | | | | Remove checking for protected attribute access via super(). Move common code for checking protected attribute accessing in a new function _check_protected_attribute_access.
* Doesn't check that overriden method signature match if it's a private ↵Sylvain Th?nault2012-06-071-1/+4
| | | | method, closes #18772
* don't emit E0202 (attribute hiding a method) on @property methods. Closes #89092Sylvain Th?nault2012-03-151-1/+11
|
* better message for E0202 (closes #77237)Sylvain Th?nault2011-10-031-9/+7
| | | | | this also ease treatment: don't try to search parent frame (ie belonging class) which may be hazardous, simply use the assignment node.