Skip to content

Commit b466bc8

Browse files
authored
Merge pull request #34 from rubocop/support-contextual
Support `AutoCorrect: contextual` option for LSP
2 parents d840f0b + 48b8256 commit b466bc8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Master (Unreleased)
44

5+
- Support `AutoCorrect: contextual` option for LSP. ([@ydah])
6+
57
## 2.28.3 (2024-04-11)
68

79
- Fix an error for Ambiguous cop name `RSpec/Rails/HttpStatus`. ([@ydah])

config/default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ RSpecRails/MinitestAssertions:
6666

6767
RSpecRails/NegationBeValid:
6868
Description: Enforces use of `be_invalid` or `not_to` for negated be_valid.
69+
AutoCorrect: contextual
6970
Safe: false
7071
EnforcedStyle: not_to
7172
SupportedStyles:
7273
- not_to
7374
- be_invalid
7475
Enabled: pending
7576
VersionAdded: '2.23'
77+
VersionChanged: "<<next>>"
7678
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/NegationBeValid
7779

7880
RSpecRails/TravelAround:

docs/modules/ROOT/pages/cops_rspecrails.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ expect(a).to be(false)
321321
322322
| Pending
323323
| No
324-
| Always (Unsafe)
324+
| Command-line only (Unsafe)
325325
| 2.23
326-
| -
326+
| <<next>>
327327
|===
328328
329329
Enforces use of `be_invalid` or `not_to` for negated be_valid.

0 commit comments

Comments
 (0)