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)
  • Loading branch information
martinemde committed Aug 24, 2023
2 parents 0339622 + f0a3041 commit d013399
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 d013399

Please sign in to comment.