audit: reduce false-positives
This commit is contained in:
parent
1d975de41b
commit
162b1ee936
@ -63,7 +63,7 @@ def audit_formula_text name, text
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Prefer formula path shortcuts in Pathname+
|
# Prefer formula path shortcuts in Pathname+
|
||||||
if text =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share))}
|
if text =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share)[/'"])}
|
||||||
problems << " * \"(#{$1}...#{$2})\" should be \"(#{$3}+...)\""
|
problems << " * \"(#{$1}...#{$2})\" should be \"(#{$3}+...)\""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user