We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OnlyStaticConstants
RSpec/DescribedClass
1 parent a9761e2 commit c7a611aCopy full SHA for c7a611a
CHANGELOG.md
@@ -3,6 +3,7 @@
3
## Master (Unreleased)
4
5
- Fix a false positive for `RSpec/RepeatedSubjectCall` when `subject.method_call`. ([@ydah])
6
+- Add configuration option `OnlyStaticConstants` to `RSpec/DescribedClass`. ([@ydah])
7
8
## 2.27.0 (2024-03-01)
9
config/default.yml
@@ -283,9 +283,10 @@ RSpec/DescribedClass:
283
SupportedStyles:
284
- described_class
285
- explicit
286
+ OnlyStaticConstants: true
287
SafeAutoCorrect: false
288
VersionAdded: '1.0'
- VersionChanged: '1.11'
289
+ VersionChanged: "<<next>>"
290
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
291
292
RSpec/DescribedClassModuleWrapping:
0 commit comments