Fix RuboCop failures.
This commit is contained in:
parent
38b18ac252
commit
dd50714d1e
@ -56,7 +56,7 @@ Metrics/ClassLength:
|
|||||||
Max: 1400
|
Max: 1400
|
||||||
Metrics/CyclomaticComplexity:
|
Metrics/CyclomaticComplexity:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Max: 75
|
Max: 85
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Max: 300
|
Max: 300
|
||||||
|
|||||||
@ -614,7 +614,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
|||||||
super
|
super
|
||||||
@ref_type ||= :branch
|
@ref_type ||= :branch
|
||||||
@ref ||= "master"
|
@ref ||= "master"
|
||||||
@shallow = meta.fetch(:shallow) { true }
|
@shallow = meta.fetch(:shallow, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def source_modified_time
|
def source_modified_time
|
||||||
|
|||||||
@ -32,7 +32,7 @@ module OS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_sym
|
def to_sym
|
||||||
SYMBOLS.invert.fetch(@version) { :dunno }
|
SYMBOLS.invert.fetch(@version, :dunno)
|
||||||
end
|
end
|
||||||
|
|
||||||
def pretty_name
|
def pretty_name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user