From b554c8bcca3042f7e3664f7a892c285201cfbd39 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 14 Jul 2015 17:15:51 +0100 Subject: [PATCH] audit: clarify desc calculation --- Library/Homebrew/cmd/audit.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 0ebe7b12ac..708d6a3bcb 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -354,7 +354,10 @@ class FormulaAuditor # Make sure the formula name plus description is no longer than 80 characters linelength = formula.full_name.length + ": ".length + desc.length 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 if desc =~ %r[[Cc]ommandline]