gems rubocop 1.85.0
RuboCop v1.85.0

6 hours ago

New features

Bug fixes

  • #14829: Allow classes without a superclass in Style/EmptyClassDefinition. (@koic)
  • #14873: Fix an error in Style/NegatedWhile when the last expression of an until condition is negated. (@koic)
  • #14827: Improve Style/EmptyClassDefinition message wording. (@bbatsov)
  • #14800: Fix false obsolete configuration error for extracted cops when loaded as plugins. (@bbatsov)
  • #14928: Fix a false positive for Lint/Void when nil is used in case branch. (@5hun-s)
  • #14857: Fix false positives in Style/IfUnlessModifier when modifier forms are used inside string interpolations. (@koic)
  • #8773: Fix false positives in Style/HashTransformKeys and Style/HashTransformValues. (@sferik)
  • #6963: Fix false positives in Lint/Void for each blocks where the return value may be meaningful (e.g., Enumerator#each). (@sferik)
  • #14931: Ignore directive comments inside comments. (@koic)
  • #14834: Fix Layout/IndentationWidth false positive for chained method blocks when EnforcedStyleAlignWith is start_of_line. (@krororo)
  • #14756: Fix Lint/Void to detect void expressions in case/when branches. (@bbatsov)
  • #14874: Fix a Parser::ClobberingError in Lint/UselessAssignment when autocorrecting a useless assignment that wraps a block containing another useless assignment. (@koic)
  • #14880: Fix a false negative in Layout/MultilineAssignmentLayout when using numblock or itblock with SupportedTypes: ['block']. (@bbatsov)
  • #11462: Fix over-indentation when autocorrecting nested hashes with Layout/FirstHashElementIndentation. (@ydakuka)
  • #14880: Recognize block on different line from left side of multi-line assignment in Layout/MultilineAssignmentLayout. (@sanfrecce-osaka)
  • #14641: Fix false positive in Lint/RedundantSafeNavigation when using &.respond_to? with methods defined on Object (e.g., :class). (@bbatsov)
  • #14098: Mark Lint/SafeNavigationConsistency autocorrect as unsafe. (@bbatsov)
  • #14791: Fix autocorrect producing SyntaxError in Lint/InterpolationCheck when single quoted string contains double quotes with invalid interpolation. (@ydakuka)

Changes

  • #14872: Tweak autocorrection in Style/HashAsLastArrayItem when multiline hash elements. (@koic)
  • #14917: Change Style/EndlessMethod cop to consider receivers. (@fatkodima)
  • #14851: Reduce precision in 'Finished in X.X seconds' message to 5 decimal places. (@ZimbiX)
  • #14895: Rename class_definition to class_keyword in EnforcedStyle of Style/EmptyClassDefinition. (@koic)
  • #14956: Add support for String.new with interpolated strings to Style/RedundantInterpolationUnfreeze. (@lovro-bikic)
  • #14955: Register redundant parentheses around block body in Style/RedundantParentheses. (@lovro-bikic)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.