New features
- #11091: Add autocorrect for
Layout/LineContinuationLeadingSpace
. (@FnControlOption)
Bug fixes
- #11150: Improve
Style/RedundantRegexpEscape
to catch unnecessarily escaped hyphens within a character class. (@si-lens) - #11168: Fix an incorrect autocorrect for
Style/ClassEqualityComparison
when using instance variable comparison in module. (@koic) - #11176: Fix a false positive cases for
Lint/DuplicateMethods
when using duplicate nested method. (@koic) - #11164: Suppress "RuboCop server starting..." message with
--server --format json
. (@koic) - #11156: Fix
Style/OperatorMethodCall
autocorrection when operators are chained. (@gsamokovarov) - #11139: Fix a false negative for
Style/HashEachMethods
when using each with a symbol proc argument. (@ydah) - #11161: Fix a false positive for
Style/HashAsLastArrayItem
when using double splat operator. (@koic) - #11151: Fix a false positive for
Lint/SuppressedException
. (@akihikodaki) - #11123: Fix autocorrection bug for
Style/StringLiterals
when using multiple escape characters. (@si-lens) - #11165: Fix a false positive for
Style/RedundantEach
when any method is used between methods containingeach
in the method name. (@koic) - #11177: Fix a false positive for
Style/ObjectThen
cop with TargetRubyVersion < 2.6. (@epaew) - #11173: Fix an incorrect autocorrect for
Style/CollectionCompact
when usingreject
with block pass arg and no parentheses. (@koic) - #11137: Fix a false positive for
Style/RedundantEach
when using a symbol proc argument. (@ydah) - #11142: Fix
Style/RedundantEach
for non-chainedeach_
calls. (@fatkodima)
Changes
- #11130: Check blank percent literal by
Layout/SpaceInsidePercentLiteralDelimiters
. (@r7kamura) - #11163: Mark
Style/HashExcept
as unsafe. (@r7kamura) - #11171: Support inline visibility definition on checking visibility. (@r7kamura)
- #11158: Add
if
to allowed names list for MethodParameterName. (@okuramasafumi)