aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorDominyk Tiller2015-07-14 17:15:51 +0100
committerDominyk Tiller2015-07-14 17:15:51 +0100
commitb554c8bcca3042f7e3664f7a892c285201cfbd39 (patch)
treebdc1885cfe95e9f67c73bf78a64ecb340ae1c759 /Library/Homebrew/cmd/audit.rb
parent587ab810741617a34021e9f8160ca31084a184d8 (diff)
downloadbrew-b554c8bcca3042f7e3664f7a892c285201cfbd39.tar.bz2
audit: clarify desc calculation
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
-rw-r--r--Library/Homebrew/cmd/audit.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 0ebe7b12a..708d6a3bc 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]