We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7caa1c9 commit e8e9f49Copy full SHA for e8e9f49
pre_commit_hooks/run-rubocop
@@ -4,7 +4,7 @@ require 'English'
4
# but pre-commit looks better if there is no output on success.
5
args = ARGV.join(' ')
6
puts args if ENV['DEBUG']
7
-output = `rubocop #{args} 2>&1`
+output = `rubocop --force-exclusion #{args} 2>&1`
8
status = $CHILD_STATUS.exitstatus
9
puts output if status != 0
10
exit status
0 commit comments