Skip to content

Commit 919350b

Browse files
committed
Add --disable-pending-cops flag to RuboCop pre-commit hook
1 parent 54b61f9 commit 919350b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Overcommit Changelog
22

3+
## master (unreleased)
4+
5+
* Add `--disable-pending-cops` as default flag to `RuboCop` pre-commit hook to ignore non-existent cops.
6+
37
## 0.58.0
48

59
* Add `rexml` dependency explicitly to support Ruby 3.0.

config/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ PreCommit:
703703
enabled: false
704704
description: 'Analyze with RuboCop'
705705
required_executable: 'rubocop'
706-
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
706+
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names', '--disable-pending-cops']
707707
install_command: 'gem install rubocop'
708708
include:
709709
- '**/*.gemspec'

0 commit comments

Comments
 (0)