nonminimal-bool Simplify boolean expressions with redundant or contradictory terms Repeated, complementary, or absorbed terms make a boolean expression more complex without changing its value. Instead, you SHOULD remove the redundant terms or use the resulting boolean constant. - Category: suspicious - Level: warning - Fix: automatic - Scope: module Reported function canRead(isOwner: boolean, isShared: boolean): boolean { return isOwner || (isOwner && isShared); } Accepted function canRead(isOwner: boolean, isShared: boolean): boolean { return isOwner; } Prior art - Clippy ยท nonminimalbool language/linter/src/rules/suspicious/nonminimalbool.rs:8