Merge pull request #2554 from MikeMcQuaid/audit-dependency-option-tweak
audit: tweak dependency option audit.
This commit is contained in:
commit
1c297ad5a2
@ -981,7 +981,7 @@ class FormulaAuditor
|
|||||||
problem "#{$2} modules should be vendored rather than use deprecated `depends_on \"#{$1}\" => :#{$2}#{$3}`"
|
problem "#{$2} modules should be vendored rather than use deprecated `depends_on \"#{$1}\" => :#{$2}#{$3}`"
|
||||||
end
|
end
|
||||||
|
|
||||||
if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+.*['"](.+)['"]/
|
if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+.*(?<!\?[( ])['"](.+)['"]/
|
||||||
problem "Dependency #{$1} should not use option #{$2}"
|
problem "Dependency #{$1} should not use option #{$2}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user