Disable FormulaCop

This commit is contained in:
Douglas Eichelberger 2023-02-16 15:39:09 -08:00
parent 6c93f6fe91
commit a57764e4d6
2 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,11 @@ Cask/StanzaOrder:
Description: "Ensure that cask stanzas are sorted correctly. More info at https://docs.brew.sh/Cask-Cookbook#stanza-order"
Enabled: true
# This was intended to be an abstract Cop class for Homebrew formulae, but rubocop doesn't know that.
# TODO: refactor this as a module for formulae Cop classes to include instead
FormulaCop:
Enabled: false
# enable all formulae audits
FormulaAudit:
Enabled: true

View File

@ -21,7 +21,6 @@ module RuboCop
@file_path = processed_source.buffer.name
return unless file_path_allowed?
return unless formula_class?(node)
return unless respond_to?(:audit_formula)
class_node, parent_class_node, @body = *node
@formula_name = Pathname.new(@file_path).basename(".rb").to_s