diff --git a/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_continue.rs b/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_continue.rs index fa846af54e1f16..b34ad41e9c2174 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_continue.rs +++ b/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_continue.rs @@ -38,6 +38,9 @@ use crate::rules::flake8_bandit::helpers::is_untyped_exception; /// logging.exception("Error occurred") /// ``` /// +/// ## Options +/// - `lint.flake8-bandit.check-typed-exception` +/// /// ## References /// - [Common Weakness Enumeration: CWE-703](https://cwe.mitre.org/data/definitions/703.html) /// - [Python documentation: `logging`](https://docs.python.org/3/library/logging.html) diff --git a/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_pass.rs b/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_pass.rs index 693d99ac0a2318..6d52f9f315200f 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_pass.rs +++ b/crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_pass.rs @@ -34,6 +34,9 @@ use crate::rules::flake8_bandit::helpers::is_untyped_exception; /// logging.exception("Exception occurred") /// ``` /// +/// ## Options +/// - `lint.flake8-bandit.check-typed-exception` +/// /// ## References /// - [Common Weakness Enumeration: CWE-703](https://cwe.mitre.org/data/definitions/703.html) /// - [Python documentation: `logging`](https://docs.python.org/3/library/logging.html)