summaryrefslogtreecommitdiff
path: root/pylint
Commit message (Collapse)AuthorAgeFilesLines
...
| * | check for static methods declared without a decoratorLaura M?dioni2015-10-296-8/+44
| | | | | | | | | | | | closes issue #675
| * | check for class methods declared without a decoratorLaura M?dioni2015-10-299-6/+76
| | | | | | | | | | | | related to the issue #675
* | | Add a few functional tests for enhanced unpacking checkerenhance-unpacking-checkerDmitry Pribysh2015-10-292-13/+36
| | |
* | | Make tuple unpacking checker emit less false negativesDmitry Pribysh2015-10-293-142/+151
| | | | | | | | | | | | By reusing functions from iterable checker.
* | | Fix pylint warnings.Claudiu Popa2015-10-271-4/+4
| | |
* | | Merge heads.Claudiu Popa2015-10-274-46/+164
|\ \ \
| * | | Add a new convention message, 'consider-using-enumerate'Claudiu Popa2015-10-273-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | The message is emitted when code that uses `range` and `len` for iterating is encountered, which can be easily simplified by using `enumerate` instead. This makes the code a bit faster and cleaner. Closes issue #684.
| * | | Move unidiomatic-typecheck into the comparison checker from base.py, since ↵Claudiu Popa2015-10-262-46/+51
| |/ / | | | | | | | | | it makes more sense for it to be there.
* | | Make iterable checker skip classes that are inferred to be abstractfix-685Dmitry Pribysh2015-10-277-25/+121
| | |
* | | Skip not-an-iterable and similar checks for Base/Abstract classesDmitry Pribysh2015-10-272-84/+101
|/ / | | | | | | | | | | And refactor iterable checker. Fixes issue #685.
* | Simplify visit_compare, by moving the verifications for misplaced constants ↵Claudiu Popa2015-10-261-4/+4
| | | | | | | | into their own if statement.
* | Use the representation of the context when building the message for ↵Claudiu Popa2015-10-263-2/+4
| | | | | | | | misplaced-comparison-constant.
* | Simplify _check_misplaced_constant.Claudiu Popa2015-10-261-8/+7
| |
* | Don't emit misplaced-comparison-constant for constant tests, such as true == ↵Claudiu Popa2015-10-263-15/+6
| | | | | | | | true, which should be handled by other checks.
* | Use a lower message id for misplaced-comparison-constant.Claudiu Popa2015-10-261-1/+1
| |
* | Make check_singleton_comparison a private function.Claudiu Popa2015-10-261-3/+3
| |
* | Update the docstring a little bit.Claudiu Popa2015-10-261-2/+3
| |
* | Add an extra space between classes.Claudiu Popa2015-10-261-0/+1
| |
* | Make misplaced-comparison-constant a convention, rather than a warning.Claudiu Popa2015-10-263-5/+5
| |
* | Merge heads.Claudiu Popa2015-10-2613-32/+117
|\ \
| * | Explicitely check for const to const comparisonLaura M?dioni2015-10-263-16/+40
| | | | | | | | | | | | Also add a check for comparison to a method, a function or an attribute and improve the functional test accordingly.
| * | add a new rule looking for yoda conditionsLaura M?dioni2015-10-1513-32/+93
| |/
* | Add test for verifying that __name__ can't be accessed from an instance.Claudiu Popa2015-10-262-0/+7
| |
* | Remove the list parantheses for a sum call.Claudiu Popa2015-10-261-1/+1
| |
* | Use a generator comprehension instead of creating a list.Claudiu Popa2015-10-261-1/+1
| |
* | Cleanup _parallel_task by moving the creation of the config into its own ↵Claudiu Popa2015-10-261-3/+7
| | | | | | | | function.
* | Add test case for issue #559. Closes issue #559.Claudiu Popa2015-10-241-0/+7
| |
* | Remove trailing whitespace.Claudiu Popa2015-10-221-1/+1
| |
* | Fix documentation build warnings and errorsDmitry Pribysh2015-10-222-2/+2
| | | | | | | | | | | | | | | | Errors fixed: - unqouted emphasis character usage (*) - missing list index Fixes #481.
* | Don't warn about abstract classes instantiated in their own body. Closes ↵Claudiu Popa2015-10-212-0/+31
| | | | | | | | issue #627.
* | Remove trailing whitespace.Claudiu Popa2015-10-201-1/+1
| |
* | Obsolete options are not present by default in the generated configuration file.Claudiu Popa2015-10-204-3/+13
| | | | | | | | Closes issue #632.
* | non-iterator-returned can detect classes with iterator-metaclasses.Claudiu Popa2015-10-203-18/+70
| | | | | | | | Closes issue #679.
* | Add checker for membership rules and testsmembership-test-checkerDmitry Pribysh2015-10-199-0/+224
| | | | | | | | | | | | | | | | Idea of checking is very simple: value used to the right of the 'in' operator should support membership test protocol (i.e. define either __contains__ or __iter__ or __getitem__). Fixes issue #589.
* | Correct the name of the messages.Claudiu Popa2015-10-181-2/+2
| |
* | Disable not-iterable-context for a couple of false positives.Claudiu Popa2015-10-181-0/+2
| |
* | Change the numeric ids of the new checkers.Claudiu Popa2015-10-182-2/+4
| |
* | Merge with defaultiterable-checkerDmitry Pribysh2015-10-1822-1/+473
|\ \
| * | Make iterable/mapping checker more smart and refactor it.Dmitry Pribysh2015-10-1517-81/+211
| | | | | | | | | | | | | | | Now it ignores errors inside mixins declarations and is able to recognize iterable/mapping metaclasses.
| * | Remove redundant unittests for iterable checkerDmitry Pribysh2015-10-081-135/+0
| | |
| * | Handle more corner cases in iterable/mapping checkerDmitry Pribysh2015-10-085-33/+109
| | |
| * | Add more positive functional tests for the iterable context checkerDmitry Pribysh2015-10-082-25/+79
| | |
| * | Refactor iterable context checkerDmitry Pribysh2015-10-081-29/+57
| | |
| * | Move iterable checker to typecheck module and alter inference strategyDmitry Pribysh2015-10-084-223/+264
| | |
| * | Add functional tests for iterable heckerDmitry Pribysh2015-10-075-0/+56
| | |
| * | Alter inference strategy in iterable/mapping checkerDmitry Pribysh2015-10-072-52/+22
| | |
| * | Improve iterable inference and add more unit tests for iterable checkerDmitry Pribysh2015-10-062-11/+62
| | |
| * | Add iterable checking for all types of comprehensions.Dmitry Pribysh2015-10-052-0/+36
| | | | | | | | | | | | | | | Specifically, list, dict and set comprehensions along with generator expressions.
| * | Add initial version of checker for iterables/mappings.Dmitry Pribysh2015-10-052-0/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It checks for the following things: - for-statement should contain an iterable value - `yield from`-statement should contain an iterable value - function call with star args should contain iterable value (e.g. in `foo(*bar)` bar should be an iterable) - function call with kwargs should contain a mapping (e.g. in `foo(**bar)` bar should be a dict) Idea came from issue #563.
* | | Forgot to add test file.Claudiu Popa2015-10-181-0/+5
| | |