diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 958fb53548..c38bbe045f 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -56,7 +56,7 @@ Metrics/ClassLength: Max: 1400 Metrics/CyclomaticComplexity: Enabled: true - Max: 75 + Max: 85 Metrics/MethodLength: Enabled: true Max: 300 diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index bb6b6f1f03..4295a8f0c8 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -614,7 +614,7 @@ class GitDownloadStrategy < VCSDownloadStrategy super @ref_type ||= :branch @ref ||= "master" - @shallow = meta.fetch(:shallow) { true } + @shallow = meta.fetch(:shallow, true) end def source_modified_time diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb index 9fcfc926a1..7d3607cfc0 100644 --- a/Library/Homebrew/os/mac/version.rb +++ b/Library/Homebrew/os/mac/version.rb @@ -32,7 +32,7 @@ module OS end def to_sym - SYMBOLS.invert.fetch(@version) { :dunno } + SYMBOLS.invert.fetch(@version, :dunno) end def pretty_name