diff options
| author | Adam Vandenberg | 2010-07-28 06:25:58 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-07 18:08:50 -0700 |
| commit | bc533d59c8aa3f4ace45b627a6f350addff52fac (patch) | |
| tree | 4a37f836c9ea9116a897892c9479ad40da56695b /Library | |
| parent | 8a3541888711b589555e6a85105481c3376a4582 (diff) | |
| download | brew-bc533d59c8aa3f4ace45b627a6f350addff52fac.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" |
