text_cop: warn against go_resource usage for strict audit

This commit is contained in:
Dominyk Tiller 2017-10-31 00:55:00 +00:00
parent 8fd18eab21
commit 883fee78ad
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -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