rubocops/text: re-add strict cop.

This commit is contained in:
Mike McQuaid 2020-04-13 14:36:18 +01:00
parent 632813d969
commit 44c22dd7e3
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -61,19 +61,18 @@ module RuboCop
find_method_with_args(body_node, :system, "cargo", "build") do
problem "use \"cargo\", \"install\", \"--root\", prefix, \"--path\", \".\""
end
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
# Keep this (empty) module and class around in case we need it later to
# avoid deleting all the FormulaAuditStrict referencing logic.
module FormulaAuditStrict
class Text < FormulaCop
end
end
end
end