class RuboCop::RakeTask
def run_cli(verbose, options)
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' cli = CLI.new puts 'Running RuboCop...' if verbose result = cli.run(options) abort('RuboCop failed!') if result.nonzero? && fail_on_error end