Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept pending cops in the development build
Follow up of #7646 (comment). This PR accepts pending cops in the development build. Some tests fail with the following warnings when using the `Enabled: pending` status. ```console % bundle exec rake spec (snip) 1) RuboCop::CLI --only when one cop is given accepts cop names from plugins Failure/Error: raise output RuntimeError: 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/ZeroLengthPredicate Inspecting 2 files .. 2 files inspected, no offenses detected # ./spec/rubocop/cli/cli_options_spec.rb:213:in `block (4 levels) in <top (required)>' # ./spec/support/cli_spec_behavior.rb:26:in `block (2 levels) in <top (required)>' # ./lib/rubocop/rspec/shared_contexts.rb:29:in `block (4 levels) in <top (required)>' # ./lib/rubocop/path_util.rb:67:in `chdir' # ./lib/rubocop/path_util.rb:67:in `chdir' # ./lib/rubocop/rspec/shared_contexts.rb:28:in `block (3 levels) in <top (required)>' # ./lib/rubocop/rspec/shared_contexts.rb:8:in `block (2 levels) in <top (required)>' ``` This PR prevents those tests from catching a pending cop warning. OTOH, this PR supplements the E2E test for a pending cop warning.
- Loading branch information