Bug fixes
- #12761: Fix a false positive for
Style/HashEachMethods
when the key block argument ofEnumerable#each
method is unused afterchunk
. (@koic) - #12768: Fix a false positive for
Style/NilComparison
without receiver andEnforcedStyle: comparison
. (@earlopain) - #12752: Fix an error for
Gemspec/RequiredRubyVersion
when the file is empty. (@earlopain) - #12770: Fix an error for
Lint/RedundantWithIndex
when the method has no receiver. (@earlopain) - #12775: Fix an error for
Lint/UselessTimes
when no block is present. (@earlopain) - #12772: Fix an error for
Style/ClassVars
when callingclass_variable_set
without arguments. (@earlopain) - #12773: Fix an error for
Style/For
withEnforcedStyle: for
when no receiver. (@earlopain) - #12765: Fix an error for
Layout/MultilineMethodCallIndentation
with safe navigation and assignment method. (@earlopain) - #12703: Fix an error for
Lint/MixedCaseRange
with invalid byte sequence in UTF-8. (@earlopain) - #12755: Fix an exception for
RedundantCurrentDirectoryInPath
in case ofrequire_relative
without arguments. (@viralpraxis) - #12710: Fix a false negative for
Layout/EmptyLineAfterMagicComment
when the file is comments only. (@earlopain) - #12758: Fix false positives for
Layout/RedundantLineBreak
when using&&
or||
after a backslash newline. (@koic) - #12763: Fix an infinite loop for
Style/MultilineMethodSignature
when there is a newline directly after the def keyword. (@earlopain) - #12774: Fix an infinite loop for
Style/RaiseArgs
withEnforcedStyle: compact
when passing more than 2 arguments toraise
. (@earlopain) - #12663: Fix
Lint/Syntax
getting disabled byrubocop:disable Lint/Syntax
. (@earlopain) - #12756: Only parse target Ruby from gemspec if array elements are strings. (@davidrunger)
Changes
- #12730: Skip
LineLength
phase on--auto-gen-only-exclude
. (@sambostock)