diff --git a/lib/rubocop/rake_task.rb b/lib/rubocop/rake_task.rb index db3ed9c82e9..9c54d92aaeb 100644 --- a/lib/rubocop/rake_task.rb +++ b/lib/rubocop/rake_task.rb @@ -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