From 9bf4bf5fee4f32ece221eba21b24cd532bbdd748 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 27 May 2015 20:42:20 +0800 Subject: audit: use Formula#full_name --- Library/Homebrew/cmd/audit.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 7b8e9e77e..94f77b26b 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -39,7 +39,7 @@ module Homebrew formula_count += 1 problem_count += fa.problems.size - puts "#{f.name}:", fa.problems.map { |p| " * #{p}" }, "" + puts "#{f.full_name}:", fa.problems.map { |p| " * #{p}" }, "" end end @@ -180,7 +180,7 @@ class FormulaAuditor end if @@aliases.include?(dep.name) - problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.name}'." + problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.full_name}'." end dep.options.reject do |opt| @@ -261,7 +261,7 @@ class FormulaAuditor end # Make sure the formula name plus description is no longer than 80 characters - linelength = formula.name.length + ": ".length + desc.length + 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})." end -- cgit v1.2.3