Skip to content

Commit

Permalink
Disable the new custom cop on CI so we can gradually fix formulae
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Jul 24, 2024
1 parent 4cd1507 commit 53c2c85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Library/Homebrew/style.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 53c2c85

Please sign in to comment.