audit: formally ban go get usage

There's been an informal ban for a while but let's
be punchier because this crops up still.
This commit is contained in:
Dominyk Tiller
2017-04-28 17:38:01 +01:00
parent 539881f51a
commit 2ad43cb1fd
+4
View File
@@ -885,6 +885,10 @@ class FormulaAuditor
problem "Formulae using virtualenvs do not need a `setuptools` resource."
end
if text =~ /system\s+['"]go['"],\s+['"]get['"]/
problem "Formulae should not use `go get`. If non-vendored resources are required use `go_resource`s."
end
return unless text.include?('require "language/go"') && !text.include?("go_resource")
problem "require \"language/go\" is unnecessary unless using `go_resource`s"
end