Skip to content

Commit

Permalink
Make rake fail when auto-corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kenyon committed Mar 15, 2019
1 parent 0469288 commit b75c094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ task default: default_tasks
task :rubocop_autocorrect do
require 'rubocop'
cli = RuboCop::CLI.new
exit_code = cli.run(%w(--auto-correct))
exit_code = cli.run(%w(--auto-correct --fail-level autocorrect))
exit(exit_code) if exit_code != 0
end

Expand Down

0 comments on commit b75c094

Please sign in to comment.