diff options
| author | Xu Cheng | 2015-05-27 20:42:20 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-05-29 17:01:53 +0800 |
| commit | 9bf4bf5fee4f32ece221eba21b24cd532bbdd748 (patch) | |
| tree | 83fcf5e852f5a52e5e99526724d0ff25044a44f6 | |
| parent | e5f514577370dee33d5c28c638bd1d2b36d61a0d (diff) | |
| download | brew-9bf4bf5fee4f32ece221eba21b24cd532bbdd748.tar.bz2 | |
audit: use Formula#full_name
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 |
1 files 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 |
