bool_comparison
Updatedsuspiciouswarn
x == true or x == false.
For a boolean x, x == true is x and x == false is not x. For any other value the comparison is always false, which is rarely the intent. No automatic rewrite: the checker knows the type, the lint does not.
Set its level in the [lint] table of alloy.toml, or for one file with --@alloy-lint.
