Skip to content

Commit

Permalink
Add --disable-pending-cops flag to RuboCop pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sds committed May 31, 2021
1 parent 54b61f9 commit 919350b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Overcommit Changelog

## master (unreleased)

* Add `--disable-pending-cops` as default flag to `RuboCop` pre-commit hook to ignore non-existent cops.

## 0.58.0

* Add `rexml` dependency explicitly to support Ruby 3.0.
Expand Down
2 changes: 1 addition & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ PreCommit:
enabled: false
description: 'Analyze with RuboCop'
required_executable: 'rubocop'
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names', '--disable-pending-cops']
install_command: 'gem install rubocop'
include:
- '**/*.gemspec'
Expand Down

0 comments on commit 919350b

Please sign in to comment.