audit: clarify desc calculation
This commit is contained in:
parent
587ab81074
commit
b554c8bcca
@ -354,7 +354,10 @@ class FormulaAuditor
|
|||||||
# Make sure the formula name plus description is no longer than 80 characters
|
# Make sure the formula name plus description is no longer than 80 characters
|
||||||
linelength = formula.full_name.length + ": ".length + desc.length
|
linelength = formula.full_name.length + ": ".length + desc.length
|
||||||
if linelength > 80
|
if linelength > 80
|
||||||
problem "Description is too long. \"name: desc\" should be less than 80 characters (currently #{linelength})."
|
problem <<-EOS.undent
|
||||||
|
Description is too long. \"name: desc\" should be less than 80 characters.
|
||||||
|
Length is calculated as #{formula.full_name} + desc. (currently #{linelength})
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
if desc =~ %r[[Cc]ommandline]
|
if desc =~ %r[[Cc]ommandline]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user