From 377583a361988d9884808a3c3f5375497a9d5b56 Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Wed, 27 Apr 2016 16:52:32 -0600 Subject: Enable Rubocop Casecmp Performance Cop. Also fixes the errors caused by enabling the cop. casecmp is more performant than `.downcase` and `==`. --- .rubocop.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.rubocop.yml') 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 -- cgit v1.2.3