Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow #9421. This PR tweaks new cop template. New cop development will rarely need `subject(:cop) { described_class.new(config) }`. So I think there aren't any development tips lost by replacing it with `RSpec.describe ..., :config`. Perhaps `let(:config) { RuboCop::Config.new }` can also be removed, but I'll look at it separately. Maybe not as explicitly unnecessary as `subject(:cop) { described_class.new(config) }`.
- Loading branch information