Fix RuboCop failures.

This commit is contained in:
Mike McQuaid 2020-06-22 14:09:33 +01:00
parent 38b18ac252
commit dd50714d1e
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
3 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ Metrics/ClassLength:
Max: 1400
Metrics/CyclomaticComplexity:
Enabled: true
Max: 75
Max: 85
Metrics/MethodLength:
Enabled: true
Max: 300

View File

@ -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

View File

@ -32,7 +32,7 @@ module OS
end
def to_sym
SYMBOLS.invert.fetch(@version) { :dunno }
SYMBOLS.invert.fetch(@version, :dunno)
end
def pretty_name