Skip to content

Commit dca3f6d

Browse files
committed
(MAINT) Make rubocop rake task actually exit non-zero on failure
1 parent 73c64d9 commit dca3f6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ end
6161
task(:rubocop) do
6262
require 'rubocop'
6363
cli = RuboCop::CLI.new
64-
cli.run(%w(-D -f s))
64+
result = cli.run(%w(-D -f s))
65+
abort unless result == RuboCop::CLI::STATUS_SUCCESS
6566
end
6667

6768
#### CHANGELOG ####

0 commit comments

Comments
 (0)