summaryrefslogtreecommitdiff
path: root/doc/user_guide
diff options
context:
space:
mode:
authorJakub Kuczys <me@jacken.men>2022-11-13 12:41:38 +0100
committerGitHub <noreply@github.com>2022-11-13 11:41:38 +0000
commitac65bdc0741379c3f2ac964626b31db93d49bf1e (patch)
tree265762220933cf40e60cac448e95b5fc73e231aa /doc/user_guide
parent88701fab1a87e57c3f5c42dda95c51915022ba51 (diff)
downloadpylint-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 'doc/user_guide')
-rw-r--r--doc/user_guide/configuration/all-options.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst
index 0b38c0d2f..da0ce4669 100644
--- a/doc/user_guide/configuration/all-options.rst
+++ b/doc/user_guide/configuration/all-options.rst
@@ -812,7 +812,7 @@ Standard Checkers
.. code-block:: toml
[tool.pylint.exceptions]
- overgeneral-exceptions = ["BaseException", "Exception"]
+ overgeneral-exceptions = ["builtins.BaseException", "builtins.Exception"]