You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love the new OrderedGems cop, it's a fantastic idea!
However, the OrderedGems cop uses the < sign to perform its comparison, and I have one pesky dependency that starts with a capital letter (the wonderful-yet-inconsistently-named StreetAddress gem). Since 'a' < 'Z' #=> false, it wants to sort this dependency at the top of my Gemfile. Would it be acceptable to write a PR that performs a case-insensitive comparison?
Expected behavior
The OrderedGems cop doesn't consider case when checking the Gemfile.
Actual behavior
The OrderedGems cop considers case when checking the Gemfile.
Steps to reproduce the problem
# in Gemfilesource'https://rubygems.org'gem'sinatra'gem'StreetAddress'
rubocop
Inspecting 1 file
C
Offenses:
Gemfile:4:1: C: Gem StreetAddress should appear before sinatra in their gem group.
gem 'StreetAddress'
^^^^^^^^^^^^^^^^^^^
1 file inspected, 1 offense detected
I love the new OrderedGems cop, it's a fantastic idea!
However, the OrderedGems cop uses the
<
sign to perform its comparison, and I have one pesky dependency that starts with a capital letter (the wonderful-yet-inconsistently-named StreetAddress gem). Since'a' < 'Z' #=> false
, it wants to sort this dependency at the top of my Gemfile. Would it be acceptable to write a PR that performs a case-insensitive comparison?Expected behavior
The OrderedGems cop doesn't consider case when checking the Gemfile.
Actual behavior
The OrderedGems cop considers case when checking the Gemfile.
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: