Skip to content

Commit f2d59bb

Browse files
pirjbquorning
authored andcommitted
Retire RSpec/InvalidPredicateMatcher
Fixes #938
1 parent 15aa5d3 commit f2d59bb

File tree

7 files changed

+1
-120
lines changed

7 files changed

+1
-120
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Master (Unreleased)
44

55
* Remove deprecated class `::RuboCop::Cop::RSpec::Cop`. ([@bquorning][])
6+
* Retire `RSpec/InvalidPredicateMatcher` cop. ([@pirj][])
67

78
## 2.0.0.pre (2020-10-22)
89

config/default.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,6 @@ RSpec/InstanceVariable:
315315
VersionChanged: '1.7'
316316
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
317317

318-
RSpec/InvalidPredicateMatcher:
319-
Description: Checks invalid usage for predicate matcher.
320-
Enabled: true
321-
VersionAdded: '1.16'
322-
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InvalidPredicateMatcher
323-
324318
RSpec/ItBehavesLike:
325319
Description: Checks that only one `it_behaves_like` style is used.
326320
Enabled: true

docs/modules/ROOT/pages/cops.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
* xref:cops_rspec.adoc#rspecimplicitsubject[RSpec/ImplicitSubject]
4141
* xref:cops_rspec.adoc#rspecinstancespy[RSpec/InstanceSpy]
4242
* xref:cops_rspec.adoc#rspecinstancevariable[RSpec/InstanceVariable]
43-
* xref:cops_rspec.adoc#rspecinvalidpredicatematcher[RSpec/InvalidPredicateMatcher]
4443
* xref:cops_rspec.adoc#rspecitbehaveslike[RSpec/ItBehavesLike]
4544
* xref:cops_rspec.adoc#rspeciteratedexpectation[RSpec/IteratedExpectation]
4645
* xref:cops_rspec.adoc#rspecleadingsubject[RSpec/LeadingSubject]

docs/modules/ROOT/pages/cops_rspec.adoc

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,38 +1984,6 @@ end
19841984

19851985
* https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
19861986

1987-
== RSpec/InvalidPredicateMatcher
1988-
1989-
|===
1990-
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
1991-
1992-
| Enabled
1993-
| Yes
1994-
| No
1995-
| 1.16
1996-
| -
1997-
|===
1998-
1999-
Checks invalid usage for predicate matcher.
2000-
2001-
Predicate matcher does not need a question.
2002-
This cop checks an unnecessary question in predicate matcher.
2003-
2004-
=== Examples
2005-
2006-
[source,ruby]
2007-
----
2008-
# bad
2009-
expect(foo).to be_something?
2010-
2011-
# good
2012-
expect(foo).to be_something
2013-
----
2014-
2015-
=== References
2016-
2017-
* https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InvalidPredicateMatcher
2018-
20191987
== RSpec/ItBehavesLike
20201988

20211989
|===

lib/rubocop/cop/rspec/invalid_predicate_matcher.rb

Lines changed: 0 additions & 41 deletions
This file was deleted.

lib/rubocop/cop/rspec_cops.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
require_relative 'rspec/implicit_subject'
5353
require_relative 'rspec/instance_spy'
5454
require_relative 'rspec/instance_variable'
55-
require_relative 'rspec/invalid_predicate_matcher'
5655
require_relative 'rspec/it_behaves_like'
5756
require_relative 'rspec/iterated_expectation'
5857
require_relative 'rspec/leading_subject'

spec/rubocop/cop/rspec/invalid_predicate_matcher_spec.rb

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)