gems rubocop 1.86.1
RuboCop v1.86.1

10 hours ago

Bug fixes

  • #11051: Fix Style/AccessModifierDeclarations inline autocorrect dropping comments between the access modifier and the following method definition. (@dduugg)
  • #14665: Cache plugin integration in CopHelper to avoid repeated loading. (@55728)
  • #15091: Fix Lint/DuplicateMethods false positives for anonymous classes in constant assignments and method return values. (@eugeneius)
  • #15055: Fix Lint/DuplicateMethods false positives with anonymous classes inside blocks (e.g. RSpec let, describe). (@ShkumbinDelija)
  • #15035: Exclude included_modules from Style/ModuleMemberExistenceCheck. (@koic)
  • #15087: Fix false positive for Style/RedundantLineContinuation when using interpolated string literals. (@koic)
  • #14361: Fix false positive in file_to_include? when a relative Include pattern matches a parent directory name in the absolute file path. (@jonas054)
  • #15090: Fix false positives for Layout/EmptyLineAfterGuardClause when consecutive guard clauses use and return. (@eugeneius)
  • #15070: Fix false positive for Lint/RedundantSafeNavigation when chained safe navigation is used in a conditional expression with InferNonNilReceiver enabled. (@koic)
  • #15074: Fix false positives in Style/RedundantParentheses when using parentheses around an endless range in assignment. (@koic)
  • #15048: Fix issue where the url_for is missing for Cops without instance methods. (@Fryguy)
  • #15051: Fix Style/RedundantParentheses handling of beginless ranges. (@oggy)
  • #14980: Fix Lint/Syntax zero-length diagnostic range for syntax errors at EOF. (@55728)
  • #15084: Handle heredocs with methods calls correctly when fixing guard clauses. (@G-Rath)
  • #11398: Fix incorrect Include path adjustment when local config overrides an inherited Include. (@jonas054)
  • #15092: Fix Layout/EndAlignment cop error on an empty begin. (@viralpraxis)
  • #15059: Fix an error in Layout/LineLength when SplitStrings option is enabled and __FILE__ is used. (@jeromedalbert)
  • #5876: Fix Lint/UnusedMethodArgument false positive when block argument is used via yield. (@dduugg)
  • #15093: Return tool execution errors instead of protocol errors in MCP server. (@koic)

Changes

  • #15005: Make Style/OneClassPerFile exclude spec/**/* and test/**/* by default. (@koic)
  • #15081: Relax parallel dependency to >= 1.10. (@koic)
  • #15063: Disable Style/RedundantStructKeywordInit cop by default. (@koic)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.