Bug fixes
- #11051: Fix
Style/AccessModifierDeclarationsinline autocorrect dropping comments between the access modifier and the following method definition. (@dduugg) - #14665: Cache plugin integration in CopHelper to avoid repeated loading. (@55728)
- #15091: Fix
Lint/DuplicateMethodsfalse positives for anonymous classes in constant assignments and method return values. (@eugeneius) - #15055: Fix
Lint/DuplicateMethodsfalse positives with anonymous classes inside blocks (e.g. RSpeclet,describe). (@ShkumbinDelija) - #15035: Exclude
included_modulesfromStyle/ModuleMemberExistenceCheck. (@koic) - #15087: Fix false positive for
Style/RedundantLineContinuationwhen using interpolated string literals. (@koic) - #14361: Fix false positive in
file_to_include?when a relativeIncludepattern matches a parent directory name in the absolute file path. (@jonas054) - #15090: Fix false positives for
Layout/EmptyLineAfterGuardClausewhen consecutive guard clauses useand return. (@eugeneius) - #15070: Fix false positive for
Lint/RedundantSafeNavigationwhen chained safe navigation is used in a conditional expression withInferNonNilReceiverenabled. (@koic) - #15074: Fix false positives in
Style/RedundantParentheseswhen using parentheses around an endless range in assignment. (@koic) - #15048: Fix issue where the url_for is missing for Cops without instance methods. (@Fryguy)
- #15051: Fix
Style/RedundantParentheseshandling of beginless ranges. (@oggy) - #14980: Fix
Lint/Syntaxzero-length diagnostic range for syntax errors at EOF. (@55728) - #15084: Handle heredocs with methods calls correctly when fixing guard clauses. (@G-Rath)
- #11398: Fix incorrect
Includepath adjustment when local config overrides an inheritedInclude. (@jonas054) - #15092: Fix
Layout/EndAlignmentcop error on an emptybegin. (@viralpraxis) - #15059: Fix an error in
Layout/LineLengthwhenSplitStringsoption is enabled and__FILE__is used. (@jeromedalbert) - #5876: Fix
Lint/UnusedMethodArgumentfalse positive when block argument is used viayield. (@dduugg) - #15093: Return tool execution errors instead of protocol errors in MCP server. (@koic)