From 53c2c85d7d48dc2c5a4f8b813ab411adde14a299 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Wed, 24 Jul 2024 23:34:10 +0100 Subject: [PATCH] Disable the new custom cop on CI so we can gradually fix formulae --- Library/Homebrew/style.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index 7793f003e70c2b..a734a174a241bf 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -157,6 +157,11 @@ def self.run_rubocop(files, output_type, args << "--config" << (HOMEBREW_REPOSITORY/"docs/docs_rubocop_style.yml") elsif files.any? { |f| f.to_s.start_with? HOMEBREW_LIBRARY_PATH } base_dir = HOMEBREW_LIBRARY_PATH + # If we're in GitHub Actions, use the CI config. + # TODO: Remove this once we're done incrementally enabling new custom cops. + elsif GitHub::Actions.env_set? + args << "--config" << (HOMEBREW_LIBRARY/".rubocop_ci.yml") + base_dir = HOMEBREW_LIBRARY else args << "--config" << (HOMEBREW_LIBRARY/".rubocop.yml") base_dir = HOMEBREW_LIBRARY if files.any? { |f| f.to_s.start_with? HOMEBREW_LIBRARY }