Skip to content

Commit e8e9f49

Browse files
committed
Force exclusion of excluded files and patterns
1 parent 7caa1c9 commit e8e9f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit_hooks/run-rubocop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require 'English'
44
# but pre-commit looks better if there is no output on success.
55
args = ARGV.join(' ')
66
puts args if ENV['DEBUG']
7-
output = `rubocop #{args} 2>&1`
7+
output = `rubocop --force-exclusion #{args} 2>&1`
88
status = $CHILD_STATUS.exitstatus
99
puts output if status != 0
1010
exit status

0 commit comments

Comments
 (0)