gems rubocop 1.80.0
RuboCop v1.80.0

latest releases: 1.80.2, 1.80.1
14 days ago

Bug fixes

  • #14469: Fix an incorrect autocorrect for Style/BitwisePredicate when using & with LHS flags in conjunction with == for comparisons. (@koic)
  • #14459: Fix wrong autocorrect for Style/For with save navigation in the collection. (@earlopain)
  • #14435: Fix false negatives for regexp cops when Lint/DuplicateRegexpCharacterClassElement is enabled. (@earlopain)
  • #14419: Fix false positives for Lint/UselessAssignment when duplicate assignments appear in nested if branches inside a loop and the variable is used outside while loop. (@koic)
  • #14468: Fix false positives for Naming/MethodName when an operator method is defined using a string. (@koic)
  • #14427: Fix false positives for Style/RedundantParentheses when do...end block is wrapped in parentheses as a method argument. (@koic)
  • #14441: Better hash access handling in Style/SafeNavigation. (@issyl0)
  • #14443: Fix false positive in Layout/EmptyLinesAfterModuleInclusion when include does not have exactly one argument. (@issyl0)
  • #14424: Fix Style/SafeNavigation cop to preserve existing safe navigation in fixed code. (@martinemde)
  • #14455: Follow module inclusion with nonzero args with an empty line. (@issyl0)
  • #14445: Fix false positives for Lint/UselessAssignment with for loops when the variable is referenced in the collection. (@earlopain)
  • #14447: Fix wrong autocorrect for Style/RedundantCondition with a parenthesised method call in the condition. (@earlopain)

Changes

  • #14428: Enhance Lint/SelfAssignment to handle indexed assignment with multiple arguments. (@viralpraxis)
  • #14464: Exclude AutoCorrect and Include from configuration parameters. (@r7kamura)
  • #14472: Make Style/RedundantBegin aware of case pattern matching. (@koic)
  • #14448: Register array intersection size checks as offenses under Style/ArrayIntersect. (@lovro-bikic)
  • #14431: Support LSP TextDocumentSyncKind.Incremental. (@tmtm)
  • #14453: Update Style/RedundantBegin to register begin blocks inside if, unless, case, while and until as redundant. (@dvandersluis)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.