summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-30 13:46:47 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-30 13:53:25 +0200
commita55e8f109fbaec1bb2db19a37a6537d8833c995c (patch)
tree12fbb211730776614c224dbf6f14aec11fc3a3f1 /.rubocop.yml
parent43c35b0f20fb3bb67ea2b96bf8f806c7e95b6aec (diff)
downloadgitlab-ce-a55e8f109fbaec1bb2db19a37a6537d8833c995c.tar.gz
Enable Style/NegatedIf Rubocop coprubocop/enable-negatedif-style-cop
Favor `unless` over `if` for negative conditions (or control flow ||). See #17478
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml2
1 files changed, 1 insertions, 1 deletions
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: