Skip to content

Commit

Permalink
Move rubocop disable above method and reenabled below
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Holtz committed Nov 30, 2020
1 parent e61a059 commit 0d03ed0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/xcode/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ def prereleases
links
end

def compare_versions(first, second) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
def compare_versions(first, second)
# Sort by version number
numeric_comparation = first.to_f <=> second.to_f
return numeric_comparation if numeric_comparation != 0
Expand All @@ -490,6 +491,7 @@ def compare_versions(first, second) # rubocop:disable Metrics/CyclomaticComplexi
# Sort alphabetically
first <=> second
end
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity

def hdiutil(*args)
io = IO.popen(['hdiutil', *args])
Expand Down

0 comments on commit 0d03ed0

Please sign in to comment.