audit: require plist_options when using plist
Closes #19. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
776a73da7c
commit
a9c0361a1d
@ -638,6 +638,10 @@ class FormulaAuditor
|
|||||||
problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\""
|
problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if text =~ /def plist/ && text !~ /plist_options/
|
||||||
|
problem "Please set plist_options when using a formula-defined plist."
|
||||||
|
end
|
||||||
|
|
||||||
if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name !~ /^kibana(\d{2})?$/
|
if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name !~ /^kibana(\d{2})?$/
|
||||||
need_npm = "\#{Formula[\"node\"].opt_libexec\}/npm/bin"
|
need_npm = "\#{Formula[\"node\"].opt_libexec\}/npm/bin"
|
||||||
problem <<-EOS.undent
|
problem <<-EOS.undent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user