Skip to content

Commit 6ece399

Browse files
committedApr 9, 2015
Display Rubocop cop names in output by default
This makes it easier to know which cop to disable if it is a nuisance.
1 parent 0ab9497 commit 6ece399

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

Diff for: ‎CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
* Restore file modification times of unstaged files in addition to staged files
5656
in pre-commit hook runs
5757
* Change default value for `problem_on_unmodified_line` from `warn` to `report`
58+
* Update `Rubocop` pre-commit hook to pass `--display-cop-names` flag so
59+
cop names appear in output
5860

5961
## 0.23.0
6062

Diff for: ‎config/default.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ PreCommit:
339339
enabled: false
340340
description: 'Analyzing with Rubocop'
341341
required_executable: 'rubocop'
342-
flags: ['--format=emacs', '--force-exclusion']
342+
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
343343
install_command: 'gem install rubocop'
344344
include:
345345
- '**/*.gemspec'

0 commit comments

Comments
 (0)