Skip to content

Enable Rubocop Casecmp Performance Cop.

Also fixes the errors caused by enabling the cop.

casecmp is more performant than .downcase and ==.

See also: https://github.com/bbatsov/rubocop/blob/master/lib/rubocop/cop/performance/casecmp.rb

Merge request reports

Loading