Bump rubocop-rspec from 1.44.1 to 2.5.0
Bumps rubocop-rspec from 1.44.1 to 2.5.0.
Release notes
Sourced from rubocop-rspec's releases.
RuboCop RSpec v2.5.0
- Declare autocorrect as unsafe for
ExpectChange
. (@francois-ferrandis)- Fix each example for
RSpec/HookArgument
. (@lokhi)- Exclude unrelated Rails directories from
RSpec/DescribeClass
. (@MothOnMars)- Add
RSpec/ExcessiveDocstringSpacing
cop. (@G-Rath)- Add
RSpec/SubjectDeclaration
cop. (@dswij)- Fix excessive whitespace removal in
RSpec/EmptyHook
autocorrection. (@pirj)- Bump RuboCop requirement to v1.19.0. (@pirj)
- Fix false positive in
RSpec/IteratedExpectation
when there is single, non-expectation statement in the block body. (@Darhazer)RuboCop RSpec v2.4.0
- Update
RSpec/FilePath
to check suffix when given a non-constant top-level node (e.g. features). (@topalovic)- Add missing documentation for
single_statement_only
style ofRSpec/ImplicitSubject
cop. (@tejasbubane)- Fix an exception in
DescribedClass
when accessing a constant on a variable in a spec that is nested in a namespace. (@rrosenblum)- Add new
RSpec/IdenticalEqualityAssertion
cop. (@tejasbubane)- Add
RSpec/Rails/AvoidSetupHook
cop. (@paydaylight)- Fix false negative in
RSpec/ExpectChange
cop with block style and chained method call. (@tejasbubane)RuboCop RSpec v2.3.0
- Allow
RSpec/ContextWording
to accept multi-word prefixes. (@hosamaly)- Drop support for ruby 2.4. (@bquorning)
- Add
CountAsOne
configuration option toRSpec/ExampleLength
. (@stephannv)- Fix a false positive for
RSpec/RepeatedExampleGroupBody
whenpending
orskip
have argument(s). (@Tietew)RuboCop RSpec v2.2.0
- Fix
HooksBeforeExamples
,LeadingSubject
,LetBeforeExamples
andScatteredLet
autocorrection to take into account inline comments and comments immediately before the moved node. (@Darhazer)- Improve rubocop-rspec performance. (@Darhazer, @bquorning)
- Include
Enabled: true
to prevent a mismatched configuration parameter warning whenRSpec
cops are explicitly enabled in the user configuration. (@pirj)
... (truncated)
Changelog
Sourced from rubocop-rspec's changelog.
2.5.0 (2021-09-21)
- Declare autocorrect as unsafe for
ExpectChange
. (@francois-ferrandis)- Fix each example for
RSpec/HookArgument
. (@lokhi)- Exclude unrelated Rails directories from
RSpec/DescribeClass
. (@MothOnMars)- Add
RSpec/ExcessiveDocstringSpacing
cop. (@G-Rath)- Add
RSpec/SubjectDeclaration
cop. (@dswij)- Fix excessive whitespace removal in
RSpec/EmptyHook
autocorrection. (@pirj)- Bump RuboCop requirement to v1.19.0. (@pirj)
- Fix false positive in
RSpec/IteratedExpectation
when there is single, non-expectation statement in the block body. (@Darhazer)2.4.0 (2021-06-09)
- Update
RSpec/FilePath
to check suffix when given a non-constant top-level node (e.g. features). (@topalovic)- Add missing documentation for
single_statement_only
style ofRSpec/ImplicitSubject
cop. (@tejasbubane)- Fix an exception in
DescribedClass
when accessing a constant on a variable in a spec that is nested in a namespace. (@rrosenblum)- Add new
RSpec/IdenticalEqualityAssertion
cop. (@tejasbubane)- Add
RSpec/Rails/AvoidSetupHook
cop. (@paydaylight)- Fix false negative in
RSpec/ExpectChange
cop with block style and chained method call. (@tejasbubane)2.3.0 (2021-04-28)
- Allow
RSpec/ContextWording
to accept multi-word prefixes. (@hosamaly)- Drop support for ruby 2.4. (@bquorning)
- Add
CountAsOne
configuration option toRSpec/ExampleLength
. (@stephannv)- Fix a false positive for
RSpec/RepeatedExampleGroupBody
whenpending
orskip
have argument(s). (@Tietew)2.2.0 (2021-02-02)
- Fix
HooksBeforeExamples
,LeadingSubject
,LetBeforeExamples
andScatteredLet
autocorrection to take into account inline comments and comments immediately before the moved node. (@Darhazer)- Improve rubocop-rspec performance. (@Darhazer, @bquorning)
- Include
Enabled: true
to prevent a mismatched configuration parameter warning whenRSpec
cops are explicitly enabled in the user configuration. (@pirj)2.1.0 (2020-12-17)
- Fix
RSpec/FilePath
false positive for relative file path runs with long namespaces. ([@ahukkanen][])- Update
RSpec/Focus
to have auto-correction. ([@dvandersluis][])2.0.1 (2020-12-02)
- Fixed infinite loop in
RSpec/ExpectActual
autocorrection when both expected and actual values are literals. (@Darhazer)2.0.0 (2020-11-06)
- Remove deprecated class
::RuboCop::Cop::RSpec::Cop
. (@bquorning)- Retire
RSpec/InvalidPredicateMatcher
cop. (@pirj)- Remove the code responsible for filtering files to inspect. (@pirj)
- Make RSpec language elements configurable. ([@sl4vr][])
- Remove
CustomIncludeMethods
RSpec/EmptyExampleGroup
option in favour of the new RSpec DSL configuration. (@pirj)- Enabled pending cop (
RSpec/StubbedMock
). (@pirj)
... (truncated)
Commits
-
c915e95
Merge pull request #1188 from rubocop/release-2-5-0 -
ea69793
Bump version to 2.5.0 -
fb6ad3b
Merge pull request #1185 from rubocop/fix-iterated-expectation-false-positive -
99884b1
[Fix #1184] false positive when block do not have child nodes -
2ff7294
Merge pull request #1183 from rubocop/minor-doc-fixes -
d3970a3
Fix broken sub-department cops links -
dc2ff4d
Fix markup -
337c0bd
Merge pull request #1182 from ybiquitous/patch-1 -
be8cdf8
Fix typo in NestedGroups doc -
1ada64e
Merge pull request #1181 from rubocop/bump-rubocop - Additional commits viewable in compare view