From 44c22dd7e3f9fd3d4c864cfa513de947cc483aa7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 13 Apr 2020 14:36:18 +0100 Subject: [PATCH] rubocops/text: re-add strict cop. --- Library/Homebrew/rubocops/text.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/rubocops/text.rb b/Library/Homebrew/rubocops/text.rb index ac0e287cdb..9fe92b07be 100644 --- a/Library/Homebrew/rubocops/text.rb +++ b/Library/Homebrew/rubocops/text.rb @@ -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