Bug fixes
- #13676: Allow RuboCop to inspect hidden directories if they are explicitly provided. (@viralpraxis)
- #14080: Allow writing RBS::Inline annotation
#:
after end keyword inStyle/CommentedKeyword
. (@dak2) - #14075: Fix an error for
Layout/EmptyLineAfterGuardClause
when calling a method on the result of a single-lineif
withreturn
. (@koic) - #14067: Fix false negatives for
Style/RedundantParentheses
when using parens around singleton method body. (@koic) - #14070: Fix false positives for
EnforcedStyleForMultiline: diff_comma
ofStyle/TrailingCommaInArrayLiteral
andStyle/TrailingCommaInHashLiteral
when trailing comma with comment. (@koic) - #14092: Fix false negative for
Style/RedundantParentheses
when using some operator methods with a parenthesized argument. (@koic) - #14103: Fix
Layout/MultilineOperationIndentation
cop error onindexasgn
node without arguments. (@viralpraxis) - #14089: Fix redundant current directory prefix regexp. (@sferik)
- #14099: Fix
Style/ClassAndModuleChildren
cop error on one-liner class definition and nested enforced style. (@viralpraxis) - #14083: Fix
Style/ConditionalAssignment
cop error on one-line if-then-else. (@viralpraxis) - #14104: Fix
Style/ConditionalAssignment
cop error on indexed assignment without arguments. (@viralpraxis) - #14084: Fix
Style/RedundantLineContinuation
cop error on multiline assignment with line continuation. (@viralpraxis) - #14096: Fix error for
Style/SafeNavigation
with longer&&
chain (e.g.a && a.b && a.b.c
). (@lovro-bikic) - #14068: Fix wrong autocorrection for
Style/MapIntoArray
when usingpush
orappend
with hash argument without braces. (@lovro-bikic)
Changes
- #14093: Register offenses for redundant parens around method arguments for
Style/RedundantParentheses
. (@lovro-bikic) - #14064: Prefer
References
overReference
in cop configs. (@sambostock)