aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-04-27 17:08:44 +0100
committerGitHub2017-04-27 17:08:44 +0100
commit1c297ad5a2cef771ea31cb6fdb2a81dce221724f (patch)
tree1669374922d1333876e0941cf13c0abebd8d36f7 /Library/Homebrew
parent698afa2ba795951d7622763de7403576c14684a6 (diff)
parent1c9cfb2419d6d27c75f36229ad554c8bf7ecccf5 (diff)
downloadbrew-1c297ad5a2cef771ea31cb6fdb2a81dce221724f.tar.bz2
Merge pull request #2554 from MikeMcQuaid/audit-dependency-option-tweak
audit: tweak dependency option audit.
Diffstat (limited to 'Library/Homebrew')
-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