Skip to content

Commit 17050e2

Browse files
authored
doc: Add link to check-typed-exception from S110 and S112 (#17786)
1 parent a6dc04f commit 17050e2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_continue.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ use crate::rules::flake8_bandit::helpers::is_untyped_exception;
3838
/// logging.exception("Error occurred")
3939
/// ```
4040
///
41+
/// ## Options
42+
/// - `lint.flake8-bandit.check-typed-exception`
43+
///
4144
/// ## References
4245
/// - [Common Weakness Enumeration: CWE-703](https://cwe.mitre.org/data/definitions/703.html)
4346
/// - [Python documentation: `logging`](https://docs.python.org/3/library/logging.html)

crates/ruff_linter/src/rules/flake8_bandit/rules/try_except_pass.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ use crate::rules::flake8_bandit::helpers::is_untyped_exception;
3434
/// logging.exception("Exception occurred")
3535
/// ```
3636
///
37+
/// ## Options
38+
/// - `lint.flake8-bandit.check-typed-exception`
39+
///
3740
/// ## References
3841
/// - [Common Weakness Enumeration: CWE-703](https://cwe.mitre.org/data/definitions/703.html)
3942
/// - [Python documentation: `logging`](https://docs.python.org/3/library/logging.html)

0 commit comments

Comments
 (0)