Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #7745] Suppress pending cop warnings when department is disabled
Fixes #7745. This PR suppresses a pending cop warnings when pending cop's department is disabled. ## Context ```console % rubocop -V 0.80.0 (using Parser 2.7.0.2, running on ruby 2.7.0 x86_64-darwin17) ``` ```yaml % cat .rubocop.yml Style: Enabled: false ``` ## Before The following pending cop warning is displayed for disabled Style department. ```console % bundle exec rubocop The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file: - Style/HashEachMethods - Style/HashTransformKeys - Style/HashTransformValues Inspecting 0 files 0 files inspected, no offenses detected ``` ## After A pending cop warning is not displayed for disabled Style department. ```console % bundle exec rubocop Inspecting 0 files 0 files inspected, no offenses detected ```
- Loading branch information
Showing
4 changed files
with
88 additions
and
43 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
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
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