aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2017-10-31 00:55:00 +0000
committerDominyk Tiller2017-10-31 00:55:00 +0000
commit883fee78adab15f205d201116f89f85e608fd334 (patch)
tree93315a96625e5e3c9e643e3e9ed67a510cb9f49a
parent8fd18eab2133aeb33fc0f42f9707f69da64d0f8d (diff)
downloadbrew-883fee78adab15f205d201116f89f85e608fd334.tar.bz2
text_cop: warn against go_resource usage for strict audit
-rw-r--r--Library/Homebrew/rubocops/text_cop.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/rubocops/text_cop.rb b/Library/Homebrew/rubocops/text_cop.rb
index c99adfc10..1546a9cc3 100644
--- a/Library/Homebrew/rubocops/text_cop.rb
+++ b/Library/Homebrew/rubocops/text_cop.rb
@@ -51,5 +51,14 @@ module RuboCop
end
end
end
+ module FormulaAuditStrict
+ class Text < FormulaCop
+ def audit_formula(_node, _class_node, _parent_class_node, body_node)
+ find_method_with_args(body_node, :go_resource) do
+ problem "`go_resource`s are deprecated. Please ask upstream to implement Go vendoring"
+ end
+ end
+ end
+ end
end
end