- Add new cop
RSpec/EmptyLineAfterSharedInclusion. (@sucicfilip) - Fix an incorrect autocorrect for
RSpec/MatchWithSimpleRegexwhen the regex contains a backslash, which produced invalid or semantically different code. (@ihamzatarar) - Fix an incorrect autocorrect for
RSpec/ScatteredLetthat moved alet!above a hook, changing the order the setup ran in. (@andrewfader) - Fix an incorrect autocorrect for
RSpec/Outputwhen the output call is the body of a modifier condition or loop. (@Starlexxx) - Fix an error for
RSpec/ImplicitExpectwhen the runner is separated fromis_expectedby whitespace. (@viralpraxis) - Fix false positives for
RSpec/InstanceVariablewhen an instance variable is used inside aclass_evalormodule_evalblock. (@corsonknowles) - Fix
RSpec/LeadingSubjectto not move a subject above another subject, avoiding an autocorrect clash withRSpec/MultipleSubjectsthat could remove a subject used in tests. (@pcbeingused333) - Fix false positives for
RSpec/Pendingwhen using SimpleCov 1.xskipfilters. (@gee-forr) - Fix false positives for
RSpec/SpecFilePathFormatwhen matching spec partials. (@ydah) - Fix incorrect autocorrection for
RSpec/DescribedClasswhen using nested example groups withEnforcedStyle: explicit. (@ydah) - Fix
RSpec/MatchWithSimpleRegexto ignorematchoutside examples. (@ydah) - Fix incorrect autocorrection for
RSpec/ExampleWordingwith percent literal and escaped example descriptions. (@ydah) - Fix
RSpec/SpecFilePathFormatraising whenEnforcedInflector: active_supportand RuboCop is invoked from outside the project root. (@corsonknowles) - Fix
RSpec/LeadingSubjectto not crash onitblock/numblockexample groups with Ruby 3.4 and Prism. (@pcbeingused333) - Fix
RSpec/MatchWithSimpleRegexto ignorematchnested insideincludematchers. (@ydah) - Fix an incorrect autocorrect for
RSpec/SharedExampleswhen the shared example name cannot be written as a plain symbol or a single-quoted string. (@viralpraxis) - Fix an incorrect autocorrect for
RSpec/PredicateMatcherwithEnforcedStyle: explicitwhenStyle/TrailingCommaInArgumentscorrects the same expectation. (@viralpraxis) - Fix
RSpec/Dialectto ignore configured method names on non-RSpec receivers. (@iamzayn19) - Mark
RSpec/MatchWithSimpleRegexas unsafe. (@bquorning) - Point the style guide link of
RSpec/ClassCheckat the Ruby style guide, since the RSpec style guide has no guideline for it. (@bbatsov) - Speed up loading rubocop-rspec by lazily loading only the cops needed for a run. This requires RuboCop 1.89.0+. (@koic)
- Bump RuboCop requirement to 1.92+. (@bquorning)