Skip to content

Commit 3574888

Browse files
committed
Tagging cops as unsafe for auto-correction
1 parent 4b6739b commit 3574888

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ RSpec/DescribedClass:
9999
SupportedStyles:
100100
- described_class
101101
- explicit
102+
SafeAutoCorrect: false
102103
VersionAdded: '1.0'
103104
VersionChanged: '1.11'
104105
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
@@ -444,6 +445,7 @@ RSpec/PredicateMatcher:
444445
SupportedStyles:
445446
- inflected
446447
- explicit
448+
SafeAutoCorrect: false
447449
VersionAdded: '1.16'
448450
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PredicateMatcher
449451

manual/cops_rspec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ end
405405

406406
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
407407
--- | --- | --- | --- | ---
408-
Enabled | Yes | Yes | 1.0 | 1.11
408+
Enabled | Yes | Yes (Unsafe) | 1.0 | 1.11
409409

410410
Checks that tests use `described_class`.
411411

@@ -2432,7 +2432,7 @@ end
24322432

24332433
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
24342434
--- | --- | --- | --- | ---
2435-
Enabled | Yes | Yes | 1.16 | -
2435+
Enabled | Yes | Yes (Unsafe) | 1.16 | -
24362436

24372437
Prefer using predicate matcher over using predicate method directly.
24382438

0 commit comments

Comments
 (0)