We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
flake8-simplify
SIM112
1 parent 33e14c5 commit 466021dCopy full SHA for 466021d
crates/ruff_linter/src/rules/flake8_simplify/rules/ast_expr.rs
@@ -32,6 +32,12 @@ use crate::checkers::ast::Checker;
32
/// os.environ["FOO"]
33
/// ```
34
///
35
+/// ## Fix safety
36
+///
37
+/// This fix is always marked as unsafe because automatically capitalizing environment variable names
38
+/// can change program behavior in environments where the variable names are case-sensitive, such as most
39
+/// Unix-like systems.
40
41
/// ## References
42
/// - [Python documentation: `os.environ`](https://docs.python.org/3/library/os.html#os.environ)
43
#[derive(ViolationMetadata)]
0 commit comments