Library/Homebrew/rubocops/extend/formula_cop.rb
# This method is called by RuboCop and is the main entry point
This method is called by RuboCop and is the main entry point
This method is called by RuboCop and is the main entry point
def on_class(node)
        file_path = processed_source.buffer.name
        return unless file_path_allowed?(file_path)
        class_node, parent_class_node, body = *node
        return unless formula_class?(parent_class_node)
        return unless respond_to?(:audit_formula)
        @formula_name = class_name(class_node)
        audit_formula(node, class_node, parent_class_node, body)
      end
def on_class ( node ) file_path = processed_source . buffer . name return unless file_path_allowed? ( file_path ) class_node , parent_class_node , body = * node return unless formula_class? ( parent_class_node ) return unless respond_to? ( :audit_formula ) @formula_name = class_name ( class_node ) audit_formula ( node , class_node , parent_class_node , body ) end
This method is called by RuboCop and is the main entry point
This method is called by RuboCop and is the main entry point
node
<not_specific>