audit: appease rubocop

Closes #302.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Dominyk Tiller 2016-05-30 20:41:17 +01:00
parent 331fdba29d
commit 0a7fcf2979
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -303,7 +303,7 @@ class FormulaAuditor
same_name_tap_formulae.delete(full_name)
if same_name_tap_formulae.size > 0
unless same_name_tap_formulae.empty?
problem "Formula name conflicts with #{same_name_tap_formulae.join ", "}"
end
end
@ -415,7 +415,7 @@ class FormulaAuditor
desc = formula.desc
unless desc && desc.length > 0
unless desc && !desc.empty?
problem "Formula should have a desc (Description)."
return
end
@ -1198,7 +1198,7 @@ class ResourceAuditor
problem "Don't use #{$1}use_mirror in SourceForge urls (url is #{p})."
end
if p =~ /\/download$/
if p.end_with?("/download")
problem "Don't use /download in SourceForge urls (url is #{p})."
end