summaryrefslogtreecommitdiff
path: root/test/input
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-14183-6212/+0
|
* Look all the methods from ancestors for too-few-public-methods.Claudiu Popa2015-02-051-0/+16
| | | | | | | | | This patch uses two counters for too-few-public-methods and too-many-public-methods. In order to avoid false positives, too-many-public-methods check is looking only for methods defined in the current class. On the other hand, too-few-public-methods should look in ancestors as well, since most of the time this check is useful only for simple classes, without many public methods. Closes issue #471.
* Use a mro traversal for finding abstract methods. Closes issue #415.Claudiu Popa2014-12-211-36/+0
| | | | | | | | | 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.
* Fix typos in docstringBioGeek/fix-typos-in-docstring-1418910993320BioGeek2014-12-181-1/+1
|
* Check the return of properties when checking for not-callable.Claudiu Popa2014-12-051-1/+46
| | | | Closes issue #406.
* Improve the reporting for dangerous-default-value.Claudiu Popa2014-12-031-0/+12
| | | | | | 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.
* Convert some testcases to the new framework.Torsten Marek2014-11-225-166/+0
|
* Use the public method astroid.nodes.Class.is_subtype_of.Torsten Marek2014-11-221-1/+1
|
* Fix tests to work with the new astroid release.Claudiu Popa2014-11-222-1/+2
|
* Change default max-line-length to 100 rather than 80Sylvain Th?nault2014-11-191-4/+4
|
* Add a new CLI option, '--py3k'.Claudiu Popa2014-11-174-38/+0
| | | | | | | | | This option will enable the Python 3 porting mode. This mode will emit warnings and errors for constructs invalid or removed in Python 3, helping the users of Pylint to port their projects.
* Add 'long-suffix' error, emitted when encountering the long suffixClaudiu Popa2014-11-151-1/+1
| | | | | | | on numbers. This is sligthly different than lowercase-l-suffix, so it's a new error instead of overwriting that one.
* Move raising-string to the python3 porting checker.Claudiu Popa2014-11-151-1/+1
|
* Port abstract-class-instantiated tests to the new test framework.Claudiu Popa2014-11-153-165/+0
|
* abstract-class-instantiated is also emitted for Python 2.Claudiu Popa2014-11-151-0/+67
|
* Warn when assigning to __metaclass__ in a class scope for Python 2.Brett Cannon2014-10-311-1/+1
|
* Warn when calling dict.iter*(), dict.view*() or .next() on any object.Brett Cannon2014-10-311-1/+1
| | | | These methods either do not exist in Python 3 or are never used.
* Warn when an import is performed withoutBrett Cannon2014-10-2435-39/+37
| | | | | | `from __future__ import absolute_import`. Part of issue #20
* 'too-many-public-methods' is reported only for methods defined in a class.Claudiu Popa2014-10-217-6/+13
| | | | Closes issue #248.
* Emit an error when a print statement is used.Brett Cannon2014-10-1069-134/+126
| | | | Part of issue #20.
* Port more tests to the new test framework.Claudiu Popa2014-10-065-251/+0
|
* Introduce a Python 3 checker.Brett Cannon2014-10-034-6/+6
| | | | | | | Start with checking for built-ins that are not available in Python 3 and magic methods which have no equivalent. Part of issue #20.
* Use three different files for unknown-encoding for major Python implementations.Claudiu Popa2014-09-301-6/+0
| | | | | | Python 2.7, 3.X and PyPy have different output when an unknown encoding is detected. This patch uses the new 'except_implementations' option from the functional test framework.
* Remove flaky test, especially for PyPy.Claudiu Popa2014-09-301-2/+1
|
* Port new tests to the new test framework.cpopa2014-09-172-122/+0
|
* Don't emit 'unbalanced-tuple-unpacking' when the rhs of the assignment is a ↵cpopa2014-09-111-0/+9
| | | | variable length argument. Closes issue #329.
* Emit warning for .format() interpolation within logging function calls.David Lindquist2014-08-191-0/+26
|
* Implement confidence levels.Torsten Marek2014-07-241-69/+0
| | | | | | | - 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.
* Fix test failures.cpopa2014-08-172-2/+2
|
* Detect calls of the parent's __init__, through a binded super() call.cpopa2014-08-161-0/+14
|
* Don't emit 'protected-access' if the attribute is accessed using a property ↵cpopa2014-08-141-0/+1
| | | | defined at the class level.
* Look in the metaclass, if defined, for members not found in the current ↵cpopa2014-08-141-32/+0
| | | | class. Closes issue #306.
* fixme regex handles comments without spaces after the hash. Closes issue #311.cpopa2014-08-111-0/+1
|
* Don't emit 'import-error' if an import was protected by a try-except, which ↵cpopa2014-08-081-4/+0
| | | | excepted ImportError.
* Don't emit 'attribute-defined-outside-init' if the attribute was set by a ↵cpopa2014-08-041-1/+33
| | | | function call in a defining method. Closes issue #192.
* Merged logilab/pylint into defaultClaudiu Popa2014-07-315-148/+0
|\
| * Converted more test cases.Torsten Marek2014-07-305-148/+0
| |
* | Handle 'too-few-format-args' or 'too-many-format-args' for format strings ↵cpopa2014-07-311-88/+0
|/ | | | with both named and positional fields. Closes issue #286.
* Remove old testcase that has already been converted.Torsten Marek2014-07-301-56/+0
|
* Converted and merge test cases.Torsten Marek2014-07-303-144/+0
|
* Remove testcases only for Python < 2.7.Torsten Marek2014-07-301-102/+0
|
* Fix mixed line endings in 3.4-specific test case.Torsten Marek2014-07-301-10/+10
|
* Merged in godfryd/pylint/line-ending-checks (pull request #133)Torsten Marek2014-07-304-125/+124
|\
| * mergeMichal Nowikowski2014-07-304-125/+124
| |\
| | * Merged default into line-ending-checksMichal Nowikowski2014-07-294-125/+124
| | |\
| | | * Fixed tests for line endings checks.Michal Nowikowski2014-07-281-33/+33
| | | |
| | | * mergeMichal Nowikowski2014-07-2813-435/+0
| | | |\
| | | * | Fixed tests for line endings checker.Michal Nowikowski2014-07-263-92/+91
| | | | |
* | | | | Merged in carlio/pylint (pull request #138)Claudiu Popa2014-07-301-0/+25
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Don't evaluate dangerous-default-value argument values
| * | | | Merged logilab/pylint into defaultcarlio2014-07-291-0/+25
| |\ \ \ \ | | |/ / / | |/| | |