mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Apparently N
is alphabetically before c
; downcase the comparison
This commit is contained in:
parent
8cf58e36e6
commit
73b3ace77c
@ -19,7 +19,7 @@ module RuboCop
|
||||
end
|
||||
|
||||
array.each_descendant(:str).each_cons(2) do |first, second|
|
||||
next if first.source < second.source
|
||||
next if first.source.downcase < second.source.downcase
|
||||
|
||||
add_offense(second, message: "The `zap trash` paths should be in alphabetical order") do |corrector|
|
||||
corrector.insert_before(first.source_range, second.source)
|
||||
|
Loading…
x
Reference in New Issue
Block a user