Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-02-10 23:26:23 +0300
committerRobert Speicher <rspeicher@gmail.com>2017-02-13 19:00:20 +0300
commit17c8d15b14f6c3ecc98e1466e9148cf100cc12c6 (patch)
tree6eb652b9051afcd60d11568ab3be095b0207c1c0 /.rubocop.yml
parent5db56efe424c9cd760580a755ec4e131d045769d (diff)
Enable `Lint/EmptyWhen` cop and correct offense
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 1061de7c797..6e8f599bf25 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -572,6 +572,10 @@ Lint/ElseLayout:
Lint/EmptyEnsure:
Enabled: true
+# Checks for the presence of `when` branches without a body.
+Lint/EmptyWhen:
+ Enabled: true
+
# Align ends correctly.
Lint/EndAlignment:
Enabled: true