summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-04-27 16:52:32 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-05-10 18:23:25 -0600
commit377583a361988d9884808a3c3f5375497a9d5b56 (patch)
tree0606e242db6a23bb7bc643eab841c9eb89f217e2 /.rubocop.yml
parent4a47470febe34bf67e84a2904422626caa64224e (diff)
downloadgitlab-ce-377583a361988d9884808a3c3f5375497a9d5b56.tar.gz
Enable Rubocop Casecmp Performance Cop.
Also fixes the errors caused by enabling the cop. casecmp is more performant than `.downcase` and `==`.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 9f179efa3ce..f07d2184be4 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -937,10 +937,9 @@ Lint/Void:
##################### Performance ############################
-# TODO: Enable Casecmp Cop.
# Use `casecmp` rather than `downcase ==`.
Performance/Casecmp:
- Enabled: false
+ Enabled: true
# TODO: Enable DoubleStartEndWith Cop.
# Use `str.{start,end}_with?(x, ..., y, ...)` instead of