From 1763beb8f611fb949b9b6e5b0d736173cdb02af0 Mon Sep 17 00:00:00 2001 From: Bryce Glover Date: Mon, 28 Mar 2022 20:11:04 -0400 Subject: [PATCH] Revert "Enable .rubocop.yml in taps" --- Library/Homebrew/style.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index 8cc3a86238..32ffd11ac0 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -126,15 +126,10 @@ module Homebrew end files&.map!(&:expand_path) - config, = files.flat_map do |f| - tap = f.to_s[%r{.+/homebrew-[^/]+}] - Pathname.glob("#{tap}/.rubocop.yml") - end - if files.blank? || files == [HOMEBREW_REPOSITORY] files = [HOMEBREW_LIBRARY_PATH] elsif files.none? { |f| f.to_s.start_with? HOMEBREW_LIBRARY_PATH } - config ||= if files.any? { |f| (f/"spec").exist? } + config = if files.any? { |f| (f/"spec").exist? } HOMEBREW_LIBRARY/".rubocop_rspec.yml" else HOMEBREW_LIBRARY/".rubocop.yml"