summaryrefslogtreecommitdiff
path: root/pylint/checkers
Commit message (Collapse)AuthorAgeFilesLines
* Refixed old-raise-syntax not looking for tracebackpylint-1.9.1Ashley Whetter2018-05-161-2/+1
|
* old-raise-syntax can be triggered only on Python 2Claudiu Popa2018-05-161-3/+5
|
* Updated copyright notices for version 1.9.0Ashley Whetter2018-05-1514-14/+21
|
* Fix lintClaudiu Popa2018-05-131-4/+6
|
* Reimplement the lookup() call by manually looking for the right nodesClaudiu Popa2018-05-131-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 Popa2018-05-121-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 accessedClaudiu Popa2018-05-111-0/+7
|
* Emit a warning when .xreadlines() is accessedClaudiu Popa2018-05-111-5/+13
|
* No need to check for the traceback for old-raise-syntax in its 3-tuple formClaudiu Popa2018-05-101-2/+1
|
* Never push without testing firstClaudiu Popa2018-05-101-0/+1
|
* The Python 3 porting checker can run with Python 3 as wellClaudiu Popa2018-05-101-146/+82
|
* Enum classes no longer trigger too-few-methodsAshley Whetter2018-05-092-3/+38
| | | | Fixes #605
* Can ignore arguments that cause redefined-outer-name (#2054)Ashley Whetter2018-05-091-2/+1
| | | Fixes #1535
* Add new check py3k invalid-unicode-literal. (#2068)Sushobhit2018-05-091-0/+7
| | | Close #1938
* Rip invalid-raise-syntax, we already have old-raise-syntaxClaudiu Popa2018-04-181-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 checksClaudiu Popa2018-04-181-7/+8
|
* defaultdict and subclasses of dict are now handled for dict-iter-* checksClaudiu Popa2018-04-181-2/+9
| | | | Close #2005
* Rip lambda paremeter unpacking, we already have parameter-unpackingClaudiu Popa2018-04-181-11/+1
|
* Added a new Python 2/3 check for invalid raise syntax.Claudiu Popa2018-04-171-6/+18
| | | | Close #1937
* Added a new Python 2/3 check for invalid lambda parameter list, ↵Claudiu Popa2018-04-171-0/+11
| | | | | | `lambda-parameter-parens` Close #1995
* Added a new Python 2/3 check for accessing removed urllib functionsClaudiu Popa2018-04-121-1/+19
| | | | Close #1997
* Added a new Python 2/3 check for accessing `operator.div`, which is removed ↵Claudiu Popa2018-04-121-0/+8
| | | | | | in Python 3 Close #1936
* io can redefine builtins. Close #2014Claudiu Popa2018-04-121-1/+2
|
* Fix lint errorspylint-1.8.4Claudiu Popa2018-04-051-3/+3
|
* Fix no-context-manager test breakage in due to astroid changesBryce Guinta2018-04-051-2/+16
| | | | | | Require no-context-manager to infer paths before walking the tree Fixes #1874
* Catch string.letters with the Python 3 porting checkerClaudiu Popa2018-04-051-2/+2
| | | | Close #1935
* Add missing string functions to the Python 3 porting checkerClaudiu Popa2018-04-041-1/+3
|
* Stop early when we already detected a disable for a line too longClaudiu Popa2018-03-301-0/+2
| | | | Close #1974
* Don't crash on invalid strings when checking for `logging-format-interpolation`Claudiu Popa2018-03-161-1/+6
| | | | Close #1944
* Check if node is in list comprehension in function defaultsBryce Guinta2018-03-031-2/+6
| | | | | | | List comprehensions in python 2 do not have scope. If the local scope is skipped, then generated variables values will raise a false-positive. Close #1897
* Add in_comprehension utility functionBryce Guinta2018-03-031-0/+10
|
* Fix false positive undefined-variable for lambda arguments in classesBryce Guinta2018-03-021-2/+11
| | | | Close #1824
* Exempt `__doc__` from triggering a `redefined-builtin`Claudiu Popa2018-03-011-1/+1
| | | | | `__doc__` can be used to specify a docstring for a module without passing it as a first-statement string.
* Backport of PR#1855hippo912018-01-282-7/+23
|
* Add of four test dealing with if statements and function definition under themhippo912018-01-231-1/+3
|
* Add test + fix for 'raise from function'.Brian Shaginaw2018-01-191-0/+2
|
* Backport of PR #1777hippo912018-01-071-48/+81
|
* Backport of PR #1757hippo912018-01-041-38/+115
|
* Backport of PR #1806hippo912018-01-041-0/+4
|
* Backport of PR #1775hippo912017-12-281-0/+1
|
* Don't crash when encountering bare raises while checking inconsistent returnsClaudiu Popa2017-12-241-0/+3
| | | | Close #1773
* Use the proper node to get the name for redefined functions (#1792)Jacques Kvam2017-12-241-1/+1
| | | Close #1774
* Fixed a crash which occurred when `Uninferable` wasn't properly handled in ↵Claudiu Popa2017-12-241-1/+3
| | | | | | `stop-iteration-return` Close #1779
* Regenerate copyright noticesClaudiu Popa2017-12-1521-43/+241
|
* Fix `camelCase` spelling regex. (#1767)Pedro Algarvio2017-12-141-1/+1
| | | This is a more permissive regex which also allows digits.
* Correct the name of the flag in help stringClaudiu Popa2017-12-121-1/+1
|
* past.builtins import don't trigger redefined-builtin. Close #1764Claudiu Popa2017-12-121-1/+1
|
* Remove non-ascii and non-displayable character from the fileClaudiu Popa2017-12-121-1/+1
|
* Fixes ``pylint disable=fixme` directives ignored for comments following the ↵hippo912017-12-111-4/+37
| | | | | last statement in a file (#1740) Fixes #1681
* Add of a test on the presence of = in the line. Return None instead of ↵hippo912017-12-111-2/+2
| | | | Return to avoid inconsistent return statement