Skip to content

Commit

Permalink
Add configuration option OnlyStaticConstants to RSpec/DescribedClass
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Mar 1, 2024
1 parent a9761e2 commit c7a611a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
## Master (Unreleased)

- Fix a false positive for `RSpec/RepeatedSubjectCall` when `subject.method_call`. ([@ydah])
- Add configuration option `OnlyStaticConstants` to `RSpec/DescribedClass`. ([@ydah])

## 2.27.0 (2024-03-01)

Expand Down
3 changes: 2 additions & 1 deletion config/default.yml
Expand Up @@ -283,9 +283,10 @@ RSpec/DescribedClass:
SupportedStyles:
- described_class
- explicit
OnlyStaticConstants: true
SafeAutoCorrect: false
VersionAdded: '1.0'
VersionChanged: '1.11'
VersionChanged: "<<next>>"
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass

RSpec/DescribedClassModuleWrapping:
Expand Down

0 comments on commit c7a611a

Please sign in to comment.