diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 3fe4619085..cdf5bb9fe1 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -409,11 +409,12 @@ class FormulaAuditor end # Make sure the formula name plus description is no longer than 80 characters - linelength = formula.full_name.length + ": ".length + desc.length + # Note full_name includes the name of the tap, while name does not + linelength = formula.name.length + ": ".length + desc.length if linelength > 80 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}) + Length is calculated as #{formula.name} + desc. (currently #{linelength}) EOS end