| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Need to also use the builtin module for Python 2 | Claudiu Popa | 2018-07-24 | 1 | -0/+3 |
| | | |||||
| * | `chain.from_iterable` no longer emits `dict-{}-not-iterating` when dealing ↵ | Claudiu Popa | 2018-07-24 | 1 | -1/+2 |
| | | | | | with dict values and keys | ||||
| * | frozenset is an iterating context for dict.values() and friends | Claudiu Popa | 2018-07-24 | 1 | -1/+1 |
| | | |||||
| * | [].extend and similar builtin operations don't emit `dict-*-not-iterating` ↵ | Claudiu Popa | 2018-07-24 | 1 | -0/+13 |
| | | | | | | | with the Python 3 porting checker Close #2187 | ||||
| * | `in` is considered iterating context for some of the Python 3 porting checkers | Claudiu Popa | 2018-06-14 | 1 | -0/+5 |
| | | | | | Close #2186 | ||||
| * | min() and max() accept iterators (#2138) | Anthony Sottile | 2018-06-06 | 1 | -1/+2 |
| | | |||||
| * | Check that the potential leaked names are not used in the except handler | Claudiu Popa | 2018-06-01 | 1 | -0/+8 |
| | | |||||
| * | Don't use scope() to check if the variable is defined in the current statement | Claudiu Popa | 2018-06-01 | 1 | -1/+1 |
| | | | | | | | | This works on Python 3 because scope() for a ListComp will always be the ListComp, but on Python 2 that's going to be the outer scope/frame instead. Close #2106 | ||||
| * | Make sure the value is not defined in the same comprehension when looking ↵ | Claudiu Popa | 2018-05-24 | 1 | -1/+8 |
| | | | | | for comprehension-escape values. Close #2106 | ||||
| * | Don't include excepthandlers that don't have a name when looking for ↵ | Claudiu Popa | 2018-05-23 | 1 | -0/+3 |
| | | | | | exception-escape | ||||
| * | Rewrite the comprehension-escape and exception-escape to work only on the ↵ | Claudiu Popa | 2018-05-23 | 1 | -33/+56 |
| | | | | | | | | | | | | | | corresponding nodes These two checks were implemented in terms of visit_namne, that is, for every name in the tree, we looked to see if that name leaked. This was resulting in a couple of false positives and also in a performance issue, since we were calling nodes_of_class() and scope() for each name node. Instead, this approach uses the visit methods for exception and comprehension nodes and looks to see from there if the current scope uses leaked names. This is not the ideal situation as well, ideal would be to have access to the definition frame of each name, but that requires some extra engineering effort in astroid to get it right. Close #2106 | ||||
| * | Use last previous assignment for comprehension-escape (#2131) | Anthony Sottile | 2018-05-22 | 1 | -3/+4 |
| | | |||||
| * | Refixed old-raise-syntax not looking for tracebackpylint-1.9.1 | Ashley Whetter | 2018-05-16 | 1 | -2/+1 |
| | | |||||
| * | old-raise-syntax can be triggered only on Python 2 | Claudiu Popa | 2018-05-16 | 1 | -3/+5 |
| | | |||||
| * | Updated copyright notices for version 1.9.0 | Ashley Whetter | 2018-05-15 | 1 | -1/+2 |
| | | |||||
| * | Fix lint | Claudiu Popa | 2018-05-13 | 1 | -4/+6 |
| | | |||||
| * | Reimplement the lookup() call by manually looking for the right nodes | Claudiu Popa | 2018-05-13 | 1 | -13/+28 |
| | | | | | | | On Python 3 we can't see the assignment statement of a deleted node, such as an assignment from a loop or from the except handler. Instead of relying on lookup() itself, look through the current scope manually for the right objects. | ||||
| * | Added two new Python 3 porting checks, `exception-escape` and ↵ | Claudiu Popa | 2018-05-12 | 1 | -1/+27 |
| | | | | | | | | `comprehension-escape` These two are emitted whenever pylint detects that a variable defined in the said blocks is used outside of the given block. On Python 3 these values are deleted. | ||||
| * | Emit a warning when sys.exc_clear is accessed | Claudiu Popa | 2018-05-11 | 1 | -0/+7 |
| | | |||||
| * | Emit a warning when .xreadlines() is accessed | Claudiu Popa | 2018-05-11 | 1 | -5/+13 |
| | | |||||
| * | No need to check for the traceback for old-raise-syntax in its 3-tuple form | Claudiu Popa | 2018-05-10 | 1 | -2/+1 |
| | | |||||
| * | Never push without testing first | Claudiu Popa | 2018-05-10 | 1 | -0/+1 |
| | | |||||
| * | The Python 3 porting checker can run with Python 3 as well | Claudiu Popa | 2018-05-10 | 1 | -146/+82 |
| | | |||||
| * | Add new check py3k invalid-unicode-literal. (#2068) | Sushobhit | 2018-05-09 | 1 | -0/+7 |
| | | | | Close #1938 | ||||
| * | Rip invalid-raise-syntax, we already have old-raise-syntax | Claudiu Popa | 2018-04-18 | 1 | -20/+5 |
| | | | | | | Instead of adding a new check, old-raise-syntax was modified to account for the case when we throw with a traceback. | ||||
| * | Handle dict subclasses for dict-not-iterating checks | Claudiu Popa | 2018-04-18 | 1 | -7/+8 |
| | | |||||
| * | defaultdict and subclasses of dict are now handled for dict-iter-* checks | Claudiu Popa | 2018-04-18 | 1 | -2/+9 |
| | | | | | Close #2005 | ||||
| * | Rip lambda paremeter unpacking, we already have parameter-unpacking | Claudiu Popa | 2018-04-18 | 1 | -11/+1 |
| | | |||||
| * | Added a new Python 2/3 check for invalid raise syntax. | Claudiu Popa | 2018-04-17 | 1 | -6/+18 |
| | | | | | Close #1937 | ||||
| * | Added a new Python 2/3 check for invalid lambda parameter list, ↵ | Claudiu Popa | 2018-04-17 | 1 | -0/+11 |
| | | | | | | | `lambda-parameter-parens` Close #1995 | ||||
| * | Added a new Python 2/3 check for accessing removed urllib functions | Claudiu Popa | 2018-04-12 | 1 | -1/+19 |
| | | | | | Close #1997 | ||||
| * | Added a new Python 2/3 check for accessing `operator.div`, which is removed ↵ | Claudiu Popa | 2018-04-12 | 1 | -0/+8 |
| | | | | | | | in Python 3 Close #1936 | ||||
| * | Fix lint errorspylint-1.8.4 | Claudiu Popa | 2018-04-05 | 1 | -3/+3 |
| | | |||||
| * | Catch string.letters with the Python 3 porting checker | Claudiu Popa | 2018-04-05 | 1 | -2/+2 |
| | | | | | Close #1935 | ||||
| * | Add missing string functions to the Python 3 porting checker | Claudiu Popa | 2018-04-04 | 1 | -1/+3 |
| | | |||||
| * | Regenerate copyright notices | Claudiu Popa | 2017-12-15 | 1 | -1/+15 |
| | | |||||
| * | Do not warn no-absolute-import multiple times per file (#1725) | Daniel Miller | 2017-11-11 | 1 | -1/+4 |
| | | |||||
| * | Adding a check for ``inconsistent-return-statements`` inside function or ↵ | hippo91 | 2017-09-26 | 1 | -0/+2 |
| | | | | | | methods. (#1641) Close #1267 | ||||
| * | A map enclosed by a filter call does not trigger map-builtin-not-iterating ↵ | Claudiu Popa | 2017-09-19 | 1 | -1/+1 |
| | | | | | on Python 3 porting checker any longer | ||||
| * | Adding a warning about keyword argument appearing before variable args list ↵ | ahirnish | 2017-09-15 | 1 | -0/+1 |
| | | | | | in the function definition (#1636) | ||||
| * | Add a couple of Uninferable filters where we weren't using any | Claudiu Popa | 2017-08-15 | 1 | -2/+5 |
| | | |||||
| * | cProfile is not deprecated in Python 3 apparently. Close #1612 | Claudiu Popa | 2017-08-09 | 1 | -1/+1 |
| | | |||||
| * | Fix a false positive with bad-python3-import on relative imports | Claudiu Popa | 2017-08-07 | 1 | -1/+1 |
| | | | | | Close #1608 | ||||
| * | Added a new Python 3 check, non-ascii-bytes-literals. Close #1545 | Claudiu Popa | 2017-07-23 | 1 | -0/+8 |
| | | |||||
| * | Added a couple of new Python 3 checks for accessing dict methods in ↵ | Claudiu Popa | 2017-07-21 | 1 | -0/+28 |
| | | | | | non-iterable context. Part of #377 | ||||
| * | Flag sets module as having moved in Python 3 (#1570) | Roy Williams | 2017-07-11 | 1 | -2/+2 |
| | | |||||
| * | Exempt exceptions with .message specifically implemented. Close #1564 | Claudiu Popa | 2017-07-08 | 1 | -2/+7 |
| | | |||||
| * | Remove module that wasn't actually moved. Close #1565 | Claudiu Popa | 2017-07-08 | 1 | -1/+1 |
| | | |||||
| * | Implement a Python3 warning for declaring a method `next` method that would ↵ | Roy Williams | 2017-06-02 | 1 | -5/+23 |
| | | | | | | | implement the Iterator protocol in Python 2 but not in Python 3. (#1509) In Python 2 implementing a no argument instance method `next` would implement the Iterator protocol, allowing the class to be used with `next()` or a `for` loop. In Python 3 this is now `__next__`. | ||||
| * | Add a warning for bad imports from the types module (#1501) | Roy Williams | 2017-05-29 | 1 | -0/+14 |
| | | |||||
