-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable
NewCops
for RuboCop development
Pending cops will be enabled by default in RuboCop 1.0. This PR enables `NewCops` for RuboCop development. It will be a verification that enables pending cops. And this PR suppresses the following offense. ```console % cd path/to/rubocop % bundle exec rake (snip) lib/rubocop/config_loader_resolver.rb:184:7: C: Style/HashTransformValues: Prefer transform_values over Hash[_.map {...}]. Hash[config.map { |cop, params| [cop, yield(params)] }] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1144 files inspected, 1 offense detected ```
- Loading branch information
Showing
3 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ require: | |
- rubocop-rspec | ||
|
||
AllCops: | ||
NewCops: enable | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'spec/fixtures/**/*' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters