summaryrefslogtreecommitdiff
path: root/checkers/exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-332/+0
|
* Fix a false positive on Python 2 for raising-bad-type and tuples.Claudiu Popa2015-01-021-3/+22
| | | | | Raising tuples in the form 'raise (ZeroDivisionError, None)' is not an error on Python 2, but it is an error on Python 3.
* Don't filter out builtins when checking for raising-non-exception.Claudiu Popa2015-01-021-2/+1
| | | | | There is no reason anymore to exclude builtins for nonstandard-exception and raising-non-exception.
* Fix a false negative with raising-non-exception.Claudiu Popa2015-01-021-11/+19
| | | | | | | | | | When the raise used an uninferrable exception context, as in the following example, raising-non-exception wouldn't have been emitted, due to a misplaced return. The example is: from missing_import import something raise SomeClass from something
* Small cleanup to exceptions checkerClaudiu Popa2015-01-021-4/+3
|
* The comment is not true anymore.Claudiu Popa2015-01-021-5/+0
|
* Small refactoring to exceptions checker.Claudiu Popa2015-01-021-13/+24
|
* Fix a false positive with catching-non-exception and tuples ofClaudiu Popa2014-12-291-26/+43
| | | | exceptions.
* Simplify _annotated_unpack_infer.Claudiu Popa2014-12-041-12/+5
| | | | | | With this fix, _annotated_unpack_infer doesn't try to unpack everything, doing only a linear inference and unpacking. This also removes the false positives where a part of the except handler is a builtin call for list/tuple/set.
* Simplify the code by using safe_infer.Claudiu Popa2014-12-041-14/+10
|
* pylint pylintSylvain Th?nault2014-11-191-3/+3
|
* Amend the message for raising-bad-type, by not specifying strings.Claudiu Popa2014-11-151-1/+1
|
* Move raising-string to the python3 porting checker.Claudiu Popa2014-11-151-8/+3
|
* Move unpacking-in-except to the python3 porting checker.Claudiu Popa2014-11-151-12/+0
|
* Move indexing-exception to the python3 porting checker.Claudiu Popa2014-11-151-17/+0
|
* Simplify the code, by using has_known_bases.Claudiu Popa2014-10-281-24/+1
|
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-3/+3
|
* Implement confidence levels.Torsten Marek2014-07-241-3/+5
| | | | | | | - 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.
* Check if the instance inherits from a standard exception before unproxying.cpopa2014-08-181-1/+1
|
* Unproxy the infered instances.cpopa2014-08-181-0/+2
|
* Backout changeset.cpopa2014-08-181-1/+0
|
* Backout changeset.cpopa2014-08-181-1/+1
|
* Backed out changeset ff26eefc7e0ccpopa2014-08-181-1/+1
|
* Debug.cpopa2014-08-181-1/+1
|
* Uh, drone.io.cpopa2014-08-181-1/+1
|
* Add debug code for drone.io.cpopa2014-08-181-0/+1
|
* Emit 'catching-non-exception' for non-class nodes. Closes issue #303.cpopa2014-08-181-6/+57
|
* Cleanup.cpopa2014-08-081-7/+12
|
* Move inherit_from_std_ex to checkers/utils.py, so that it can be used in ↵cpopa2014-08-081-18/+4
| | | | other checkers as well.
* linting pylintSylvain Th?nault2014-07-251-6/+6
|
* Issue broad-except and bare-except even if the number of except handlers is ↵cpopa2014-06-271-4/+4
| | | | different than 1. Closes issue #113.
* Skip uninferable nodes when looking for bad exception contextscpopa2014-06-151-0/+2
|
* Add 'indexing-exception' warning, which detects that indexing an exception ↵cpopa2014-04-221-0/+16
| | | | occurs in Python 2 (behaviour removed in Python 3)
* update test_func exhaustivity testingSylvain Th?nault2014-04-141-1/+2
| | | | | | | * skip messages that can not be emitted * use set instead of list * properly mark max version to some messages and drop now (almost) useless messages list
* delete trailing whitespacesSylvain Th?nault2014-04-141-2/+3
|
* Emit all warnings by their symbolic names in the exceptions checker.Torsten Marek2014-04-041-18/+19
|
* Updated FSF address.Arun Persaud2014-02-231-1/+1
|
* Refactor checks by infering first the cause of the exception.cpopa2014-01-101-11/+10
|
* Merge with default.cpopa2014-01-031-1/+25
|\
| * Add bad-exception-context warning for checking that `raise ... from ...` ↵cpopa2013-12-281-2/+25
| | | | | | | | sets a proper exception context.
* | Use `all` for a clearer intentcpopa2014-01-011-2/+2
| |
* | Fix false positive for catching-non-exception, for C based exceptions.cpopa2014-01-011-3/+27
|/
* various pylint fixesSylvain Th?nault2013-12-221-7/+7
|
* Check for non-exception classes inside except clauses.cpopa2013-08-011-3/+15
|
* some pylint and style fixesSylvain Th?nault2013-07-311-7/+7
|
* Mark unpacking-in-except as python2-specificJulien Cristau2013-06-191-1/+2
|
* Resolve conflict and take feed-back into account for PR #34Anthony Truchet2013-06-191-1/+2
|\
| * Add @check_messages(...) annotations to help not to spend time on unneeded ↵Anthony Truchet2013-06-181-2/+3
| | | | | | | | | | | | | | | | checks. We only add such annotations is reasonably simple cases. Some visit methods are quite involved and build a checker's state ; such methods are skipped in the first phase.
* | Added a new warning unpacking-in-except (W0712) about unpackingTorsten Marek2013-06-181-1/+12
|/ | | | exceptions in handlers, which is unsupported in Python 3.
* astng has been renamed astroidDavid Douard2013-06-171-19/+19
|