diff options
author | Jakub Kuczys <me@jacken.men> | 2022-11-13 12:41:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 11:41:38 +0000 |
commit | ac65bdc0741379c3f2ac964626b31db93d49bf1e (patch) | |
tree | 265762220933cf40e60cac448e95b5fc73e231aa /pylintrc | |
parent | 88701fab1a87e57c3f5c42dda95c51915022ba51 (diff) | |
download | pylint-git-ac65bdc0741379c3f2ac964626b31db93d49bf1e.tar.gz |
Use qualified name when checking for overgeneral exceptions (#7497)
* Update tests
* Use qualified name when checking for overgeneral exceptions
* WIP: Add deprecation warning
* Add changelog fragment
* Use qualified name in test case
* spell check fix
* Update changelog fragment with suggested fixes
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Move OVERGENERAL_EXCEPTIONS directly to the default value in dict
* Mark as TODO for pylint 3.0
* Properly warn on each occurrence of name without dots
* Update the warning per the review
* Rephrase the warning to mention pylint 3.0
* Remove unnecessary nesting of the if condition
* Quote the exception name in deprecation warning
* Use config value for overgeneral exceptions in broad-exception-raised
* Infer qualified name of the exception in broad-exception-raised
* e.g. -> maybe?
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Suppress missing class docstrings
* Add few more tests for broad-exception-raised
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix unexpected missing-raise-from
* Revert "Fix unexpected missing-raise-from"
This reverts commit d796e72035b7f7578b9e6bb1e45a30935e80b009.
* Revert "Add few more tests for broad-exception-raised"
This reverts commit e5a193ee136f8566d43450fbb9fbf28cc717d307.
* Change confidence of broad-exception-raised from HIGH to INFERENCE
* Only trigger broad-exception-raised for raise with new exc instance
* Update overgeneral-exceptions definition in example pylintrc file
* Update pylint/checkers/exceptions.py
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylintrc')
-rw-r--r-- | pylintrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -510,7 +510,7 @@ preferred-modules= # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception [TYPING] |