New features
- #15000: Display ZJIT usage when running under LSP. (@koic)
- #14961: Add
AllowedParentClassesoption toStyle/EmptyClassDefinition. (@hammadkhan) - #14977: Support
AllowedReceiversforStyle/HashLookupMethod. (@koic)
Bug fixes
- #15015: Fix
Style/ConcatArrayLiteralsautocorrect deleting code for percent literals with interpolation. (@bbatsov) - #14897: Detect constant reassignment after class/module definition in
Lint/ConstantReassignment. (@ydakuka) - #11829: Fix false negatives for
Lint/DuplicateMethodswhen duplicate methods are defined in anonymous classes and modules not assigned to a constant. (@Darhazer) - #14988: Fix false negative in
Style/RedundantParentheseswhen redundant parentheses around range literals in block body. (@koic) - #14916: Fix false positive for
Layout/MultilineMethodCallIndentationwhen method chain is inside a hash pair value passed to a multiline chained method call. (@ydakuka) - #15010: Fix a false positive for
Lint/DuplicateMethodswhen modules blocks are passed as method arguments. (@5hun-s) - #15028: Fix a false positive for
Lint/DuplicateMethodswhen the same method is defined in different anonymous module blocks passed to a no-receiver call (e.g.stub_const). (@Darhazer) - #15021: Fix false positives in
Layout/EmptyLineAfterGuardClausewhen using a guard clause followed by a multi-line guard clause withraise,fail,return,break, ornext. (@koic) - #15001: Fix false positives in
Layout/RedundantLineBreakwhen settingInspectBlocks: trueand usingrescueorensurein the block. (@koic) - #14997: Fix false positives in
Style/FileOpenwhen assigningFile.opento an instance variable, class variable, global variable, or constant. (@koic) - #15019: Fix false positives in
Lint/DuplicateMethodswhen the same method is defined in anonymous module blocks passed to different receivers. (@koic) - #14987: Complete ERB and Haml autocorrection in a single run. (@alpaca-tc)
- #15039: Fix incorrect autocorrect in
Style/IfWithSemicolonwhenreturnwith value is in theelsebranch. (@koic) - #14930: Fix incorrect autocorrection for
Style/IfUnlessModifierwhen multipleif/unlessmodifier forms are on the same line inside a collection. (@ydakuka) - #14985: Fix incorrect autocorrection in
Lint/SafeNavigationChainwhen chaining a method call after safe navigation in the if branch of a ternary. (@koic) - #15009: Fix infinite loop in
Layout/EndAlignmentwhenendis followed by||or&&. (@koic) - #14981: Fix spurious warning "does not support
Safe/SafeAutoCorrectparameter" when those parameters are set for cops that don't have them in their default configuration. (@dduugg) - #15043: Fix an error for
Lint/UselessDefaultValueArgumentwhenfetchwithout a receiver is inside afetchblock. (@koic) - #15034: Fix incorrect autocorrection in
Style/IfWithSemicolonwhen using single-lineunless/;/end. (@koic) - #15015: Fix
Style/NonNilCheckautocorrect for receivers containing spaces. (@bbatsov) - #15015: Fix
Style/RaiseArgsto allow anonymous keyword forwarding (raise Ex.new(**)). (@bbatsov) - #14890: Fix a false positive for
Lint/RedundantCopDisableDirectivewhen arubocop:disablecomment is used to suppressLint/EmptyWhen,Lint/EmptyConditionalBody,Lint/EmptyInPattern, orStyle/SymbolProc. (@eugeneius) - #15015: Fix false negative in
Style/RedundantPercentQfor%qstrings with interpolation-like syntax. (@bbatsov) - #14984: Fix
Style/AndOradding unnecessary parentheses aroundreturnwithout arguments. (@eugeneius) - #14945: Support files with multiple modifiers in
Lint/UselessConstantScoping. (@h-lame) - #15015: Fix
Style/TrailingMethodEndStatementto detect singleton methods (def self.foo). (@bbatsov) - #10822: Don't store results in cache if there are warnings. (@jonas054)