Skip to content

Commit

Permalink
Use require_relative
Browse files Browse the repository at this point in the history
This commit uses `require_relative` instead of `require`.
It prevents redundant searches due to the size of `$LOAD_PATH`.
  • Loading branch information
koic committed Apr 28, 2024
1 parent 00dbb8c commit 0730478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/rake_task.rb
Expand Up @@ -44,7 +44,7 @@ def perform(option)
def run_cli(verbose, options)
# We lazy-load RuboCop so that the task doesn't dramatically impact the
# load time of your Rakefile.
require 'rubocop'
require_relative '../rubocop'

cli = CLI.new
puts 'Running RuboCop...' if verbose
Expand Down

0 comments on commit 0730478

Please sign in to comment.