diff --git a/config/default.yml b/config/default.yml index 9e6130005..e9ca2945d 100644 --- a/config/default.yml +++ b/config/default.yml @@ -99,6 +99,7 @@ RSpec/DescribedClass: SupportedStyles: - described_class - explicit + SafeAutoCorrect: false VersionAdded: '1.0' VersionChanged: '1.11' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass @@ -444,6 +445,7 @@ RSpec/PredicateMatcher: SupportedStyles: - inflected - explicit + SafeAutoCorrect: false VersionAdded: '1.16' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PredicateMatcher diff --git a/manual/cops_rspec.md b/manual/cops_rspec.md index 1d63cd08f..4c8b1e590 100644 --- a/manual/cops_rspec.md +++ b/manual/cops_rspec.md @@ -405,7 +405,7 @@ end Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged --- | --- | --- | --- | --- -Enabled | Yes | Yes | 1.0 | 1.11 +Enabled | Yes | Yes (Unsafe) | 1.0 | 1.11 Checks that tests use `described_class`. @@ -2432,7 +2432,7 @@ end Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged --- | --- | --- | --- | --- -Enabled | Yes | Yes | 1.16 | - +Enabled | Yes | Yes (Unsafe) | 1.16 | - Prefer using predicate matcher over using predicate method directly.