aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-04-27 16:30:05 +0100
committerMike McQuaid2017-04-27 16:30:05 +0100
commit1c9cfb2419d6d27c75f36229ad554c8bf7ecccf5 (patch)
tree1669374922d1333876e0941cf13c0abebd8d36f7 /Library/Homebrew/dev-cmd/audit.rb
parent698afa2ba795951d7622763de7403576c14684a6 (diff)
downloadbrew-1c9cfb2419d6d27c75f36229ad554c8bf7ecccf5.tar.bz2
audit: tweak dependency option audit.
Make sure that `if build.with?` isn't caught.
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 8064e1ebb..b69fbcfb7 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -981,7 +981,7 @@ class FormulaAuditor
problem "#{$2} modules should be vendored rather than use deprecated `depends_on \"#{$1}\" => :#{$2}#{$3}`"
end
- if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+.*['"](.+)['"]/
+ if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+.*(?<!\?[( ])['"](.+)['"]/
problem "Dependency #{$1} should not use option #{$2}"
end