gems rubocop-rspec 3.11.0
RuboCop RSpec v3.11.0

one hour ago
  • Add new cop RSpec/EmptyLineAfterSharedInclusion. (@sucicfilip)
  • Fix an incorrect autocorrect for RSpec/MatchWithSimpleRegex when the regex contains a backslash, which produced invalid or semantically different code. (@ihamzatarar)
  • Fix an incorrect autocorrect for RSpec/ScatteredLet that moved a let! above a hook, changing the order the setup ran in. (@andrewfader)
  • Fix an incorrect autocorrect for RSpec/Output when the output call is the body of a modifier condition or loop. (@Starlexxx)
  • Fix an error for RSpec/ImplicitExpect when the runner is separated from is_expected by whitespace. (@viralpraxis)
  • Fix false positives for RSpec/InstanceVariable when an instance variable is used inside a class_eval or module_eval block. (@corsonknowles)
  • Fix RSpec/LeadingSubject to not move a subject above another subject, avoiding an autocorrect clash with RSpec/MultipleSubjects that could remove a subject used in tests. (@pcbeingused333)
  • Fix false positives for RSpec/Pending when using SimpleCov 1.x skip filters. (@gee-forr)
  • Fix false positives for RSpec/SpecFilePathFormat when matching spec partials. (@ydah)
  • Fix incorrect autocorrection for RSpec/DescribedClass when using nested example groups with EnforcedStyle: explicit. (@ydah)
  • Fix RSpec/MatchWithSimpleRegex to ignore match outside examples. (@ydah)
  • Fix incorrect autocorrection for RSpec/ExampleWording with percent literal and escaped example descriptions. (@ydah)
  • Fix RSpec/SpecFilePathFormat raising when EnforcedInflector: active_support and RuboCop is invoked from outside the project root. (@corsonknowles)
  • Fix RSpec/LeadingSubject to not crash on itblock/numblock example groups with Ruby 3.4 and Prism. (@pcbeingused333)
  • Fix RSpec/MatchWithSimpleRegex to ignore match nested inside include matchers. (@ydah)
  • Fix an incorrect autocorrect for RSpec/SharedExamples when the shared example name cannot be written as a plain symbol or a single-quoted string. (@viralpraxis)
  • Fix an incorrect autocorrect for RSpec/PredicateMatcher with EnforcedStyle: explicit when Style/TrailingCommaInArguments corrects the same expectation. (@viralpraxis)
  • Fix RSpec/Dialect to ignore configured method names on non-RSpec receivers. (@iamzayn19)
  • Mark RSpec/MatchWithSimpleRegex as unsafe. (@bquorning)
  • Point the style guide link of RSpec/ClassCheck at 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)

Don't miss a new rubocop-rspec release

NewReleases is sending notifications on new releases.