rubocop-rspec
rubocop-rspec copied to clipboard
Add `RSpec/ClassCheck` cop
It would be nice to have a new cop similar to the Style/ClassCheck
cop.
- https://docs.rubocop.org/rubocop/cops_style.html#styleclasscheck
Before submitting the PR make sure the following are checked:
- [x] Feature branch is up-to-date with
master
(if not - rebase it). - [x] Squashed related commits together.
- [x] Added tests.
- [x] Updated documentation.
- [x] Added an entry to the
CHANGELOG.md
if the new code introduces user-observable changes. - [x] The build (
bundle exec rake
) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).
If you have created a new cop:
- [x] Added the new cop to
config/default.yml
. - [x] The cop is configured as
Enabled: pending
inconfig/default.yml
. - [x] The cop is configured as
Enabled: true
in.rubocop.yml
. - [x] The cop documents examples of good and bad code.
- [x] The tests assert both that bad code is reported and that good code is not reported.
- [x] Set
VersionAdded
indefault/config.yml
to the next minor version.
If you have modified an existing cop's configuration options:
- [ ] Set
VersionChanged
inconfig/default.yml
to the next major version.