New features
- #15167: Add
--enable-all-copsand--disable-all-copscommand line options that overrideAllCops/EnabledByDefaultandAllCops/DisabledByDefaultin configuration files. (@koic) - #15185: Make
Layout/EmptyLineAfterGuardClauseaccept the new# simplecov:disableand# simplecov:enabledirective comments. (@koic) - #15173: Add optional Rubydex integration via
AllCops/UseProjectIndexto enable cross-file detection inLint/ConstantReassignment(experimental). (@koic)
Bug fixes
- #15168: Fix false positives in
Lint/ParenthesesAsGroupedExpressionwhen the first argument is a call-like expression with its own parentheses, such asyield(...). (@koic) - #15188: Fix false positives in
Style/YodaConditionwhen one side is an array or hash literal containing non-literal elements. (@koic) - #15182: Fix incorrect autocorrect for
Style/Aliascausing a syntax error when the return value ofalias_methodis used, such as an argument topublic,private,protected, ormodule_function, or the right-hand side of an assignment. (@koic) - #15174: Fix incorrect autocorrect for
Style/ClassAndModuleChildrencausing a syntax error when the namespace contains a method call (e.g.,class self.class::Foo; end). (@koic) - #15180: Fix incorrect autocorrect for
Style/FileWritecausing a syntax error when the written heredoc is chained with another method call. (@koic) - #15186: Fix incorrect autocorrect for
Style/HashConversioncausing a syntax error whenHash[...]is passed an anonymous splat (*). (@koic) - #15192: Fix incorrect autocorrect for
Style/StructInheritancecausing a syntax error when the inheritedStruct.newis called without parentheses. (@koic) - #15170: Fix an infinite loop for
Layout/RedundantLineBreakwhen a single-line block is chained with a safe navigation method call. (@koic) - #15175: Fix
Layout/IndentationWidthto indent block bodies relative to the method selector for trailing-dot multi-line method chains whenEnforcedStyleAlignWithisrelative_to_receiver. (@ddbrendan) - #15135: Fix incorrect autocorrect for
Style/RedundantParenthesesthat swallowed chained method calls into a trailing inline comment on the line above the closing parenthesis. (@hammadxcm) - #15184: Fix various typos and grammar mistakes in documentation and cop descriptions. (@bbatsov)