summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add checker for membership rules and testsmembership-test-checkerDmitry Pribysh2015-10-1910-0/+228
| | | | | | | | 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
|
* Update the contribution stats for Dmitry.Claudiu Popa2015-10-181-1/+1
|
* Merged in dmand/pylint/iterable-checker (pull request #282)Claudiu Popa2015-10-1823-1/+478
|\ | | | | | | Implement checker for values in iterable/mapping context
| * Merge with defaultiterable-checkerDmitry Pribysh2015-10-1823-1/+478
| |\ |/ /
| * 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
| |
| * Update changelogDmitry Pribysh2015-10-071-0/+5
| |
| * 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
| |
* | Merged in dmand/pylint/fix-667 (pull request #287)Claudiu Popa2015-10-185-1/+29
|\ \ | | | | | | | | | Make `no-self-use` checker not throw a warning if method has a `super()` call.
| * | Rename checking function for 'super()' call checking and update Changelog.fix-667Dmitry Pribysh2015-10-182-2/+6
| | |
| * | Make `no-self-use` checker not throw a warning if method has a `super()` call.Dmitry Pribysh2015-10-174-1/+25
| |/ | | | | | | | | | | | | This is only enabled for python 3.0+ and only for `super` calls with no arguments. Fixes issue #667.
* | Decode the docstring before attempting to parse it with the spelling checkerClaudiu Popa2015-10-166-13/+21
| | | | | | | | | | Also, the patch changes calls to str() in the list of html reporter's messages only for the objects which aren't already unicode or byte strings.
* | Simplify compute_content, by removing the custom implementations of write ↵Claudiu Popa2015-10-161-26/+11
| | | | | | | | and writeln.
* | Update the docstrings to be more intuitive.Claudiu Popa2015-10-161-4/+2
| |
* | Remove commented out code.Claudiu Popa2015-10-161-2/+0
| |
* | Make encode a proper method of the BaseReporter, which removes the need of ↵Claudiu Popa2015-10-161-7/+4
| | | | | | | | patching it all the time.
* | Remove handling of pending_urls, which is unused by pylint.Claudiu Popa2015-10-161-6/+0
| |
* | Remove BaseComponent and additional attributes and methodsClaudiu Popa2015-10-163-44/+7
| | | | | | | | | | The BaseComponent's arguments weren't actually used and by removing them, a bunch of other methods were removed as well.
* | Use unicode string.Claudiu Popa2015-10-161-1/+1
| |
* | Move VNode into ureports.nodes.Claudiu Popa2015-10-162-58/+40
| |
* | Remove unused APIs from VNode class, which got merged with Node class.Claudiu Popa2015-10-161-182/+4
| |
* | Simplify the code a little bit by using enumerate instead of a range and len ↵Claudiu Popa2015-10-151-5/+4
| | | | | | | | combination.
* | Use the u'' prefix throught text writer.Claudiu Popa2015-10-151-1/+1
| |
* | Use enumerate instead of range.Claudiu Popa2015-10-151-2/+1
| |
* | Rewrite the operation with a ternary if in order to be clearer.Claudiu Popa2015-10-151-1/+1
| |
* | Remove unused nodes and corresponding visit methods.Claudiu Popa2015-10-153-64/+0
| |
* | Port more old tests to the new style tests and remove obsolete tests.Claudiu Popa2015-10-1217-98/+83
| |
* | Update to use the new location of NodeNG.Claudiu Popa2015-10-121-2/+2
| |
* | Rename the variable to fix an undefined-loop-variable false positive.Claudiu Popa2015-10-101-2/+2
| |
* | --enable=all can now be used. Closes issue #142.Claudiu Popa2015-10-103-0/+22
| |
* | Don't warn about Starred nodes used properly in unpacking contextsClaudiu Popa2015-10-103-0/+12
| | | | | | | | Closes issue #653
* | Use the any builtin, instead of evaluating the entire list of instance ↵Claudiu Popa2015-10-091-1/+1
| | | | | | | | attributes.
* | Remove deprecated option.Claudiu Popa2015-10-091-3/+0
| |
* | Add a new error, 'repeated-keyword', when a keyword argument is passed ↵Claudiu Popa2015-10-098-6/+88
| | | | | | | | | | | | | | | | | | | | multiple times into a function call. This is similar with redundant-keyword-arg, but it's mildly different that it needs to be a separate error. This change also uses a CallSite for understanding the arguments that were passed into a function call, since with this we can make sense about multiple starred arguments passed into (PEP 448).
* | Remove the starargs verification code, since it is obsolete after the AST ↵Claudiu Popa2015-10-071-17/+1
|/ | | | changes related to Starred nodes in the call args
* Fix the line number of the expected message.Claudiu Popa2015-10-041-1/+1
|
* Don't emit 'assigning-non-slot' for descriptors. Closes issue #652.Claudiu Popa2015-10-044-3/+62
|
* Merged in cezarelnazli/pylint (pull request #281)Claudiu Popa2015-10-043-0/+12
|\ | | | | | | Add functional tests for PEP 448