diff options
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index db56663a4..721f6c987 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -525,6 +525,10 @@ class FormulaAuditor if line =~ /depends_on ['"](.+)['"] (if.+|unless.+)$/ audit_conditional_dep($1, $2, $&) end + + if line =~ /(Dir\[("[^\*{},]+")\])/ + problem "#{$1} is unnecessary; just use #{$2}" + end end def audit_conditional_dep(dep, condition, line) |
