From 59b8e27998c45f53c7d5a6e2fadb4c6799af45da Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Mon, 18 Jan 2021 10:55:00 -0500 Subject: [PATCH] rubocop: disallow and/or in favor of &&/|| --- Library/.rubocop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 7adaa3e3d1..aacef7a6be 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -89,6 +89,11 @@ Naming/MethodName: Naming/VariableNumber: Enabled: false +# Require &&/|| instead of and/or +Style/AndOr: + Enabled: true + EnforcedStyle: always + # Avoid leaking resources. Style/AutoResourceCleanup: Enabled: true