Skip to content

Commit

Permalink
Tagging cops as unsafe for auto-correction
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Jun 9, 2020
1 parent 4b6739b commit 3574888
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/default.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions manual/cops_rspec.md
Expand Up @@ -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`.

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 3574888

Please sign in to comment.