Skip to content

Commit

Permalink
Merge pull request #6915 from rubygems/martinemde/explicit-rubocop-co…
Browse files Browse the repository at this point in the history
…nfig

Specify -c .rubocop.yml for bin/rubocop (performance)

(cherry picked from commit d013399)
  • Loading branch information
martinemde authored and deivid-rodriguez committed Sep 21, 2023
1 parent f600fbe commit 4f66c2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/rubocop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ $LOAD_PATH.unshift(File.expand_path("../bundler/lib", __dir__))
ENV["BUNDLE_GEMFILE"] = File.expand_path("../tool/bundler/lint_gems.rb", __dir__)
require "bundler/setup"

# explicit rubocop config increases performance slightly while avoiding config confusion.
ARGV.unshift("--config", ".rubocop.yml")

load Gem.bin_path("rubocop", "rubocop")

0 comments on commit 4f66c2a

Please sign in to comment.