From a55e8f109fbaec1bb2db19a37a6537d8833c995c Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 30 May 2016 13:46:47 +0200 Subject: Enable Style/NegatedIf Rubocop cop Favor `unless` over `if` for negative conditions (or control flow ||). See #17478 --- .rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 2d8eb4077f3..10b6a07230e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -394,7 +394,7 @@ Style/MutableConstant: # Favor unless over if for negative conditions (or control flow or). Style/NegatedIf: - Enabled: false + Enabled: true # Favor until over while for negative conditions. Style/NegatedWhile: -- cgit v1.2.1