diff --git a/crates/ruff_linter/src/rules/flake8_simplify/rules/ast_expr.rs b/crates/ruff_linter/src/rules/flake8_simplify/rules/ast_expr.rs index 5131b6ad0f..6a3f24fe6a 100644 --- a/crates/ruff_linter/src/rules/flake8_simplify/rules/ast_expr.rs +++ b/crates/ruff_linter/src/rules/flake8_simplify/rules/ast_expr.rs @@ -32,6 +32,12 @@ use crate::checkers::ast::Checker; /// os.environ["FOO"] /// ``` /// +/// ## Fix safety +/// +/// This fix is always marked as unsafe because automatically capitalizing environment variable names +/// can change program behavior in environments where the variable names are case-sensitive, such as most +/// Unix-like systems. +/// /// ## References /// - [Python documentation: `os.environ`](https://docs.python.org/3/library/os.html#os.environ) #[derive(ViolationMetadata)]