audit: tweak dependency option audit.
Make sure that `if build.with?` isn't caught.
This commit is contained in:
parent
698afa2ba7
commit
1c9cfb2419
@ -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