refactor: fix Style/OneClassPerFile by extracting top-level definitions into separate files (#18)

This commit is contained in:
Copilot
2026-03-09 16:16:19 +02:00
committed by GitHub
parent 8cea32a4f9
commit fe1ff1be70
8 changed files with 290 additions and 269 deletions

View File

@@ -6,14 +6,7 @@ require "json"
require "fileutils"
require "pathname"
require "date"
# Simple polyfill for Homebrew extensions
class String
def blank?
# Polyfill implementation to avoid external dependencies
nil? || empty? # rubocop:disable Homebrew/Blank, Lint/RedundantCopDisableDirective
end
end
require_relative "string_extensions"
# Parser class for extracting metadata from Homebrew formulae
class FormulaParser