Merge pull request #2554 from MikeMcQuaid/audit-dependency-option-tweak

audit: tweak dependency option audit.
This commit is contained in:
Mike McQuaid 2017-04-27 17:08:44 +01:00 committed by GitHub
commit 1c297ad5a2

View File

@ -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