summaryrefslogtreecommitdiff
path: root/checkers/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-1253/+0
|
* Don't require a docstring for empty modules. Closes issue #261.Claudiu Popa2015-01-241-0/+5
|
* Add the name of the abstract class in abstract-class-instantiated message.Claudiu Popa2015-01-021-3/+7
|
* Use a mro traversal for finding abstract methods. Closes issue #415.Claudiu Popa2014-12-211-47/+9
| | | | | | | | | This patch adds a new unimplemented_abstract_methods in pylint.checkers.utils, which is used to obtain all the abstract methods which weren't implemented anywhere in the mro of a class. The code works now by traversing the mro, gathering all abstract methods encountered at each step and resolving the implemented ones through either definition or assignment. This disables a couple of false positives on classes with complex hierarchies.
* Proper abstract method lookup while checking for abstract-class-instantiated.Claudiu Popa2014-12-161-2/+31
| | | | | This depends on the new Class.mro method, which will be added in astroid 1.3.3. Closes issue #401.
* Make some methods private.Claudiu Popa2014-12-041-4/+4
|
* Improve the reporting for dangerous-default-value.Claudiu Popa2014-12-031-9/+21
| | | | | | The new version takes in consideration the fact that a couple of builtins, dict, tuple, set and list can be inferred to their AST syntax node, which messed up the reporting for dangerous-default-value until now.
* Make dangerous-default-argument check resilient to inferred builtin calls ↵Claudiu Popa2014-11-281-1/+4
| | | | for list/tuple/set.
* pylint pylintSylvain Th?nault2014-11-191-17/+21
|
* Move old-raise-syntax to the python3 porting checker.Claudiu Popa2014-11-151-11/+1
|
* Shorten a long line.Claudiu Popa2014-11-151-2/+3
|
* Emit abstract-class-instantiated for classes with ancestors that have an ↵Claudiu Popa2014-11-151-6/+6
| | | | ABCMeta metaclass.
* abstract-class-instantiated is also emitted for Python 2.Claudiu Popa2014-11-151-2/+1
|
* Introduce a Python 3 checker.Brett Cannon2014-10-031-2/+1
| | | | | | | Start with checking for built-ins that are not available in Python 3 and magic methods which have no equivalent. Part of issue #20.
* Change basestring to six.string_typesBrett Cannon2014-08-291-1/+1
|
* Fix a incorrect use of sys.maxint by using sys.maxsizeBrett Cannon2014-08-291-1/+1
|
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-9/+11
|
* Implement confidence levels.Torsten Marek2014-07-241-16/+30
| | | | | | | - attach confidence levels to a number of messages - include confidence levels in the message object - if the confidence of a message is not HIGH or UNDEFINED, include it in the test output.
* Change the multi-style name checker from first-style-wins to ↵Torsten Marek2014-07-241-10/+34
| | | | majority-style-wins.
* Don't emit 'invalid-name' when assigning a name in an ImportError handler. ↵cpopa2014-08-091-2/+27
| | | | Closes issue #302.
* Revert change.cpopa2014-08-081-1/+1
|
* Cleanup.cpopa2014-08-081-11/+14
|
* Converted more test cases.Torsten Marek2014-07-301-1/+1
|
* [refs #282] A previous failed merge meant the fixes got applied to a very ↵carl2014-07-291-247/+423
| | | | old version of base.py. This commit uses the correct up-to-date version of base.py instead!
* [refs #282] Various improvements based on feedback on pull-request #138carl2014-07-291-430/+256
|
* [refs #282] dangerous-default-values are now not evaluated to get their ↵carl2014-07-271-4/+16
| | | | type/name, as this would dump the entire contents of the list or dictionary into the error message. This is not desirable for large defaults, or for sensitive information such as os.environ.
* Don't emit 'missing-docstring' when the actual docstring uses `.format`. ↵cpopa2014-07-251-0/+12
| | | | Closes issue #281.
* linting pylintSylvain Th?nault2014-07-251-207/+200
|
* Don't emit 'unnecessary-lambda' if the body of the lambda call contains call ↵cpopa2014-07-251-0/+5
| | | | chaining. Closes issue #243.
* Don't emit 'pointless-string-statement' for attribute docstrings. Closes ↵cpopa2014-07-241-3/+15
| | | | issue #193.
* Fix a potential AttributeError when checking for `reversed` arguments.cpopa2014-04-251-5/+8
|
* Fix Python < 2.7 compatibility.cpopa2014-04-141-1/+1
|
* Make it possible to show a naming hint for invalid name by setting ↵Torsten Marek2014-03-301-69/+41
| | | | include-naming-hint. Also make the naming hints configurable.
* Added support for enforcing multiple, but consistent name styles for ↵Torsten Marek2014-04-091-1/+36
| | | | different name types inside a single module.
* Also warn about empty docstrings on overridden methods.Torsten Marek2014-03-301-3/+5
|
* Remove the reference to ast.literal_eval from the error message.cpopa2014-04-071-2/+2
|
* Add new warning 'eval-used'.cpopa2014-03-251-1/+9
|
* Merged in PCManticore/pylint (pull request #91)Sylvain Th?nault2014-02-241-6/+9
|\ | | | | | | Do not warn about returning values in generator for Python 3.3+.
| * Wrong maxversion used.cpopa2014-02-221-1/+1
| |
| * Syntax only valid for Python 3.3+.cpopa2014-02-221-4/+4
| |
| * Do not warn about returning values in generator for Python 3, it is valid ↵cpopa2014-02-221-7/+10
| | | | | | | | syntax.
* | Updated FSF address.Arun Persaud2014-02-231-1/+1
|/
* Use qname(), remove useless check and add packaging info.cpopa2014-02-141-8/+2
|
* Add support for abc.ABC from Python 3.4.cpopa2014-02-131-2/+19
|
* Use .next.cpopa2014-02-131-1/+1
|
* Add abstract-class-instantiated warning.cpopa2014-02-091-1/+44
|
* Mark `file` as a bad function when using python 2, closes #8.cpopa2014-01-111-0/+1
|
* Ignore non-inferable nodes, add test case for non-inferable nodes.cpopa2014-01-091-0/+2
|
* Merge with default.cpopa2014-01-091-6/+16
|\
| * various pylint fixesSylvain Th?nault2013-12-221-2/+2
| |