diff options
| author | Adam Vandenberg | 2010-07-28 06:25:58 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-07 18:08:50 -0700 |
| commit | 421bc6cdbc985a2c26f87b7ac774181f2b655702 (patch) | |
| tree | 7f98748bff75492c285afb0366a3f9f28ee08df4 /Library | |
| parent | d2e9736950411eeb1c924499704ab18865f4f108 (diff) | |
| download | homebrew-421bc6cdbc985a2c26f87b7ac774181f2b655702.tar.bz2 | |
brew audit - look for aliases in deps
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-audit.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb index 93135235b..dbc74908e 100755 --- a/Library/Contributions/examples/brew-audit.rb +++ b/Library/Contributions/examples/brew-audit.rb @@ -28,6 +28,11 @@ ff.each do |f| problems << " * Try not to concatenate paths in string interpolation:\n #{$1}" end + aliases = Formula.aliases + f.deps.select {|d| aliases.include? d}.each do |d| + problems << " * Dep #{d} is an alias; switch to the real name." + end + unless problems.empty? puts "#{f.name}:" puts problems * "\n" |
