harmjanblok / puma-metrics

Puma plugin to export puma stats as prometheus metrics
MIT License
94 stars 27 forks source link

Update dependency rubocop to v1.60.2 - autoclosed #46

Closed renovate[bot] closed 8 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rubocop (source, changelog) 1.53.1 -> 1.60.2 age adoption passing confidence

Release Notes

rubocop/rubocop (rubocop) ### [`v1.60.2`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1602-2024-01-24) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.60.1...v1.60.2) ##### Bug fixes - [#​12627](https://togithub.com/rubocop/rubocop/issues/12627): Fix a false positive for `Layout/RedundantLineBreak` when using index access call chained on multiple lines with backslash. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12626](https://togithub.com/rubocop/rubocop/pull/12626): Fix a false positive for `Style/ArgumentsForwarding` when naming a block argument `&`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12635](https://togithub.com/rubocop/rubocop/pull/12635): Fix a false positive for `Style/HashEachMethods` when both arguments are unused. (\[[@​earlopain](https://togithub.com/earlopain)]\[]) - [#​12636](https://togithub.com/rubocop/rubocop/pull/12636): Fix an error for `Style/HashEachMethods` when a block with both parameters has no body. (\[[@​earlopain](https://togithub.com/earlopain)]\[]) - [#​12638](https://togithub.com/rubocop/rubocop/issues/12638): Fix an `Errno::ENOENT` error when using server mode. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12628](https://togithub.com/rubocop/rubocop/pull/12628): Fix a false positive for `Style/ArgumentsForwarding` when using block arg forwarding with positional arguments forwarding to within block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12642](https://togithub.com/rubocop/rubocop/pull/12642): Fix false positives for `Style/HashEachMethods` when using array converter method. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12632](https://togithub.com/rubocop/rubocop/issues/12632): Fix an infinite loop error when `EnforcedStyle: explicit` of `Naming/BlockForwarding` with `Style/ArgumentsForwarding`. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.60.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1601-2024-01-17) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.60.0...v1.60.1) ##### Bug fixes - [#​12625](https://togithub.com/rubocop/rubocop/pull/12625): Fix an error when server cache dir has read-only file system. (\[[@​Strzesia](https://togithub.com/Strzesia)]\[]) - [#​12618](https://togithub.com/rubocop/rubocop/issues/12618): Fix false positives for `Style/ArgumentsForwarding` when using block argument forwarding with other arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12614](https://togithub.com/rubocop/rubocop/issues/12614): Fix false positiveis for `Style/RedundantParentheses` when parentheses in control flow keyword with multiline style argument. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​12617](https://togithub.com/rubocop/rubocop/issues/12617): Make `Style/CollectionCompact` aware of `grep_v` with nil. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.60.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1600-2024-01-15) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.59.0...v1.60.0) ##### Bug fixes - [#​12603](https://togithub.com/rubocop/rubocop/issues/12603): Fix an infinite loop error for `Style/MultilineTernaryOperator` when using a method call as a ternary operator condition with a line break between receiver and method. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12549](https://togithub.com/rubocop/rubocop/issues/12549): Fix a false positive for `Style/RedundantLineContinuation` when line continuations for multiline leading dot method chain with a blank line. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12610](https://togithub.com/rubocop/rubocop/pull/12610): Accept parentheses in argument calls with blocks for `Style/MethodCallWithArgsParentheses` `omit_parentheses` style. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​12580](https://togithub.com/rubocop/rubocop/pull/12580): Fix an infinite loop error for `Layout/EndAlignment` when misaligned in singleton class assignments with `EnforcedStyleAlignWith: variable`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12548](https://togithub.com/rubocop/rubocop/issues/12548): Fix an infinite loop error for `Layout/FirstArgumentIndentation` when specifying `EnforcedStyle: with_fixed_indentation` of `Layout/ArrayAlignment`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12236](https://togithub.com/rubocop/rubocop/issues/12236): Fix an error for `Lint/ShadowedArgument` when self assigning to a block argument in `for`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12569](https://togithub.com/rubocop/rubocop/issues/12569): Fix an error for `Style/IdenticalConditionalBranches` when using `if`...`else` with identical leading lines that assign to `self.foo`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12437](https://togithub.com/rubocop/rubocop/issues/12437): Fix an infinite loop error for `EnforcedStyle: omit_parentheses` of `Style/MethodCallWithArgsParentheses` with `Style/SuperWithArgsParentheses`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12558](https://togithub.com/rubocop/rubocop/issues/12558): Fix an incorrect autocorrect for `Style/MapToHash` when using `map.to_h` without receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12179](https://togithub.com/rubocop/rubocop/issues/12179): Let `--auto-gen-config` generate `Exclude` when `Max` is overridden. (\[[@​jonas054](https://togithub.com/jonas054)]\[]) - [#​12574](https://togithub.com/rubocop/rubocop/issues/12574): Fix bug for unrecognized style in --auto-gen-config. (\[[@​jonas054](https://togithub.com/jonas054)]\[]) - [#​12542](https://togithub.com/rubocop/rubocop/issues/12542): Fix false positive for `Lint/MixedRegexpCaptureTypes` when using look-ahead matcher. (\[[@​marocchino](https://togithub.com/marocchino)]\[]) - [#​12607](https://togithub.com/rubocop/rubocop/pull/12607): Fix a false positive for `Style/RedundantParentheses` when regexp literal attempts to match against a parenthesized condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12539](https://togithub.com/rubocop/rubocop/pull/12539): Fix false positives for `Lint/LiteralAssignmentInCondition` when a collection literal contains non-literal elements. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12571](https://togithub.com/rubocop/rubocop/issues/12571): Fix false positives for `Naming/BlockForwarding` when using explicit block forwarding in block method. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12537](https://togithub.com/rubocop/rubocop/issues/12537): Fix false positives for `Style/RedundantParentheses` when `AllowInMultilineConditions: true` of `Style/ParenthesesAroundCondition`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12578](https://togithub.com/rubocop/rubocop/pull/12578): Fix false positives for `Style/ArgumentsForwarding` when rest arguments forwarding to a method in block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12540](https://togithub.com/rubocop/rubocop/issues/12540): Fix false positives for `Style/HashEachMethods` when rest block argument of `Enumerable#each` method is used. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12529](https://togithub.com/rubocop/rubocop/issues/12529): Fix false positives for `Style/ParenthesesAroundCondition`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12556](https://togithub.com/rubocop/rubocop/issues/12556): Fix false positives for `Style/RedundantParentheses` when parentheses are used around a semantic operator in expressions within assignments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12541](https://togithub.com/rubocop/rubocop/pull/12541): Fix false negative in `Style/ArgumentsForwarding` when a block is forwarded but other args aren't. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​12581](https://togithub.com/rubocop/rubocop/pull/12581): Handle trailing line continuation in `Layout/LineContinuationLeadingSpace`. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​12601](https://togithub.com/rubocop/rubocop/issues/12601): Make `Style/EachForSimpleLoop` accept block with no parameters. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​12535](https://togithub.com/rubocop/rubocop/pull/12535): Allow --autocorrect with --display-only-fail-level-offenses. (\[[@​naveg](https://togithub.com/naveg)]\[]) - [#​12572](https://togithub.com/rubocop/rubocop/pull/12572): Follow a Ruby 3.3 warning for `Security/Open` when `open` with a literal string starting with a pipe. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12453](https://togithub.com/rubocop/rubocop/issues/12453): Make `Style/RedundantEach` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12233](https://togithub.com/rubocop/rubocop/issues/12233): Make `Style/SlicingWithRange` aware of redundant and beginless range. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12388](https://togithub.com/rubocop/rubocop/pull/12388): Reject additional 'expanded' `EnforcedStyle` options when `--no-auto-gen-enforced-style` is given. (\[[@​kpost](https://togithub.com/kpost)]\[]) - [#​12593](https://togithub.com/rubocop/rubocop/pull/12593): Require Parser 3.3.0.2 or higher. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.59.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1590-2023-12-11) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.58.0...v1.59.0) ##### New features - [#​12518](https://togithub.com/rubocop/rubocop/pull/12518): Add new `Lint/ItWithoutArgumentsInBlock` cop. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​12434](https://togithub.com/rubocop/rubocop/issues/12434): Fix a false positive for `Lint/LiteralAssignmentInCondition` when using interpolated string or xstring literals. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12435](https://togithub.com/rubocop/rubocop/issues/12435): Fix a false positive for `Lint/SelfAssignment` when using attribute assignment with method call with arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12444](https://togithub.com/rubocop/rubocop/issues/12444): Fix false positive for `Style/HashEachMethods` when receiver literal is not a hash literal. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12524](https://togithub.com/rubocop/rubocop/issues/12524): Fix a false positive for `Style/MethodCallWithArgsParentheses` when `EnforcedStyle: omit_parentheses` and parens in `when` clause is used to pass an argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12505](https://togithub.com/rubocop/rubocop/pull/12505): Fix a false positive for `Style/RedundantParentheses` when using parenthesized `lambda` or `proc` with `do`...`end` block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12442](https://togithub.com/rubocop/rubocop/issues/12442): Fix an incorrect autocorrect for `Style/CombinableLoops` when looping over the same data as previous loop in `do`...`end` and `{`...`}` blocks. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12432](https://togithub.com/rubocop/rubocop/pull/12432): Fix a false positive for `Lint/LiteralAssignmentInCondition` when using parallel assignment with splat operator in block of guard condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12441](https://togithub.com/rubocop/rubocop/issues/12441): Fix false positives for `Style/HashEachMethods` when using destructed block arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12436](https://togithub.com/rubocop/rubocop/issues/12436): Fix false positives for `Style/RedundantParentheses` when a part of range is a parenthesized condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12429](https://togithub.com/rubocop/rubocop/issues/12429): Fix incorrect autocorrect for `Style/MapToHash` when using dot method calls for `to_h`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12488](https://togithub.com/rubocop/rubocop/issues/12488): Make `Lint/HashCompareByIdentity` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12489](https://togithub.com/rubocop/rubocop/issues/12489): Make `Lint/NextWithoutAccumulator` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12490](https://togithub.com/rubocop/rubocop/issues/12490): Make `Lint/NumberConversion` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12491](https://togithub.com/rubocop/rubocop/issues/12491): Make `Lint/RedundantWithIndex` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12492](https://togithub.com/rubocop/rubocop/issues/12492): Make `Lint/RedundantWithObject` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12493](https://togithub.com/rubocop/rubocop/issues/12493): Make `Lint/UnmodifiedReduceAccumulator` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12473](https://togithub.com/rubocop/rubocop/issues/12473): Make `Style/ClassCheck` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12445](https://togithub.com/rubocop/rubocop/issues/12445): Make `Style/CollectionCompact` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12474](https://togithub.com/rubocop/rubocop/issues/12474): Make `Style/ConcatArrayLiterals` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12476](https://togithub.com/rubocop/rubocop/issues/12476): Make `Style/DateTime` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12479](https://togithub.com/rubocop/rubocop/issues/12479): Make `Style/EachWithObject` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12446](https://togithub.com/rubocop/rubocop/issues/12446): Make `Style/HashExcept` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12447](https://togithub.com/rubocop/rubocop/issues/12447): Make `Style/MapCompactWithConditionalBlock` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12484](https://togithub.com/rubocop/rubocop/issues/12484): Make `Style/Next` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12486](https://togithub.com/rubocop/rubocop/issues/12486): Make `Style/RedundantArgument` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12454](https://togithub.com/rubocop/rubocop/issues/12454): Make `Style/RedundantFetchBlock` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12495](https://togithub.com/rubocop/rubocop/issues/12495): Make `Layout/RedundantLineBreak` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12455](https://togithub.com/rubocop/rubocop/issues/12455): Make `Style/RedundantSortBy` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12456](https://togithub.com/rubocop/rubocop/issues/12456): Make `Style/RedundantSortBy` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12480](https://togithub.com/rubocop/rubocop/issues/12480): Make `Style/ExactRegexpMatch` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12457](https://togithub.com/rubocop/rubocop/issues/12457): Make `Style/Sample` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12458](https://togithub.com/rubocop/rubocop/issues/12458): Make `Style/SelectByRegexp` cops aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12494](https://togithub.com/rubocop/rubocop/issues/12494): Make `Layout/SingleLineBlockChain` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12461](https://togithub.com/rubocop/rubocop/issues/12461): Make `Style/StringChars` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12468](https://togithub.com/rubocop/rubocop/issues/12468): Make `Style/Strip` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12469](https://togithub.com/rubocop/rubocop/issues/12469): Make `Style/UnpackFirst` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​12522](https://togithub.com/rubocop/rubocop/pull/12522): Make `Style/MethodCallWithoutArgsParentheses` allow the parenthesized `it` method in a block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12523](https://togithub.com/rubocop/rubocop/pull/12523): Make `Style/RedundantSelf` allow the `self.it` method in a block. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.58.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1580-2023-12-01) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.57.2...v1.58.0) ##### New features - [#​12420](https://togithub.com/rubocop/rubocop/pull/12420): Add new `Lint/LiteralAssignmentInCondition` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12353](https://togithub.com/rubocop/rubocop/issues/12353): Add new `Style/SuperWithArgsParentheses` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12406](https://togithub.com/rubocop/rubocop/issues/12406): Add new `Style/ArrayFirstLast` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) ##### Bug fixes - [#​12372](https://togithub.com/rubocop/rubocop/issues/12372): Fix a false negative for `Lint/Debugger` when used within method arguments a `begin`...`end` block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12378](https://togithub.com/rubocop/rubocop/pull/12378): Fix a false negative for `Style/Semicolon` when a semicolon at the beginning of a lambda block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12146](https://togithub.com/rubocop/rubocop/issues/12146): Fix a false positive for `Lint/FloatComparison` when comparing against zero. (\[[@​earlopain](https://togithub.com/earlopain)]\[]) - [#​12404](https://togithub.com/rubocop/rubocop/issues/12404): Fix a false positive for `Layout/RescueEnsureAlignment` when aligned `rescue` in `do`-`end` numbered block in a method. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12374](https://togithub.com/rubocop/rubocop/issues/12374): Fix a false positive for `Layout/SpaceBeforeSemicolon` when a space between an opening lambda brace and a semicolon. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12326](https://togithub.com/rubocop/rubocop/pull/12326): Fix an error for `Style/RedundantDoubleSplatHashBraces` when method call for parenthesized no hash double double splat. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12361](https://togithub.com/rubocop/rubocop/issues/12361): Fix an incorrect autocorrect for `Naming/BlockForwarding` and `Style/ArgumentsForwarding` when autocorrection conflicts for anonymous arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12324](https://togithub.com/rubocop/rubocop/issues/12324): Fix an error for `Layout/RescueEnsureAlignment` when using `rescue` in `do`...`end` block assigned to object attribute. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12322](https://togithub.com/rubocop/rubocop/issues/12322): Fix an error for `Style/CombinableLoops` when looping over the same data for the third consecutive time or more. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12366](https://togithub.com/rubocop/rubocop/pull/12366): Fix a false negative for `Layout/ExtraSpacing` when a file has exactly two comments. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​12373](https://togithub.com/rubocop/rubocop/issues/12373): Fix a false negative for `Lint/SymbolConversion` when using string interpolation. (\[[@​earlopain](https://togithub.com/earlopain)]\[]) - [#​12402](https://togithub.com/rubocop/rubocop/issues/12402): Fix false negatives for `Style/RedundantLineContinuation` when redundant line continuations for a block are used, especially without parentheses around first argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12311](https://togithub.com/rubocop/rubocop/issues/12311): Fix false negatives for `Style/RedundantParentheses` when parentheses around logical operator keywords in method definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12394](https://togithub.com/rubocop/rubocop/issues/12394): Fix false negatives for `Style/RedundantReturn` when `lambda` (`->`) ending with `return`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12377](https://togithub.com/rubocop/rubocop/issues/12377): Fix false positives for `Lint/Void` when a collection literal that includes non-literal elements in a method definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12407](https://togithub.com/rubocop/rubocop/pull/12407): Fix an incorrect autocorrect for `Style/MapToHash` with `Layout/SingleLineBlockChain`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12409](https://togithub.com/rubocop/rubocop/issues/12409): Fix an incorrect autocorrect for `Lint/SafeNavigationChain` when ordinary method chain exists after safe navigation leading dot method call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12363](https://togithub.com/rubocop/rubocop/issues/12363): Fix incorrect rendering of HTML character entities in `HTMLFormatter` formatter. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12424](https://togithub.com/rubocop/rubocop/issues/12424): Make `Style/HashEachMethods` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12413](https://togithub.com/rubocop/rubocop/issues/12413): Make `Style/InverseMethods` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12408](https://togithub.com/rubocop/rubocop/pull/12408): Make `Style/MapToHash` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​12328](https://togithub.com/rubocop/rubocop/issues/12328): Make `Style/AutoResourceCleanup` aware of `Tempfile.open`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12412](https://togithub.com/rubocop/rubocop/issues/12412): Enhance `Lint/RedundantSafeNavigation` to handle conversion methods with defaults. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​12410](https://togithub.com/rubocop/rubocop/issues/12410): Enhance `Lint/SelfAssignment` to check attribute assignment and key assignment. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​12370](https://togithub.com/rubocop/rubocop/issues/12370): Make `Style/HashEachMethods` aware of unused block value. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12380](https://togithub.com/rubocop/rubocop/issues/12380): Make `Style/RedundantParentheses` aware of lambda or proc. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12421](https://togithub.com/rubocop/rubocop/pull/12421): Make `Style/SelfAssignment` aware of `%`, `^`, `<<`, and `>>` operators. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12305](https://togithub.com/rubocop/rubocop/pull/12305): Require `rubocop-ast` version 1.30 or greater. (\[[@​sambostock](https://togithub.com/sambostock)]\[]) - [#​12337](https://togithub.com/rubocop/rubocop/issues/12337): Supports `EnforcedStyleForRationalLiterals` option for `Layout/SpaceAroundOperators`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12296](https://togithub.com/rubocop/rubocop/issues/12296): Support `RedundantRestArgumentNames`, `RedundantKeywordRestArgumentNames`, and `RedundantBlockArgumentNames` options for `Style/ArgumentsForwarding`. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.57.2`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1572-2023-10-26) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.57.1...v1.57.2) ##### Bug fixes - [#​12274](https://togithub.com/rubocop/rubocop/issues/12274): Fix a false positive for `Lint/Void` when `each`'s receiver is an object of `Enumerator` to which `filter` has been applied. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12291](https://togithub.com/rubocop/rubocop/issues/12291): Fix a false positive for `Metrics/ClassLength` when a class with a singleton class definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12293](https://togithub.com/rubocop/rubocop/issues/12293): Fix a false positive for `Style/RedundantDoubleSplatHashBraces` when using double splat hash braces with `merge` and method chain. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12298](https://togithub.com/rubocop/rubocop/issues/12298): Fix a false positive for `Style/RedundantParentheses` when using a parenthesized hash literal as the first argument in a method call without parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12283](https://togithub.com/rubocop/rubocop/pull/12283): Fix an error for `Style/SingleLineDoEndBlock` when using single line `do`...`end` with no body. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12312](https://togithub.com/rubocop/rubocop/issues/12312): Fix an incorrect autocorrect for `Style/HashSyntax` when braced hash key and value are the same and it is used in `if`...`else`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12307](https://togithub.com/rubocop/rubocop/issues/12307): Fix an infinite loop error for `Layout/EndAlignment` when `EnforcedStyleAlignWith: variable` and using a conditional statement in a method argument on the same line and `end` with method call is not aligned. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11652](https://togithub.com/rubocop/rubocop/issues/11652): Make `--auto-gen-config` generate `inherit_from` correctly inside ERB `if`. (\[[@​jonas054](https://togithub.com/jonas054)]\[]) - [#​12310](https://togithub.com/rubocop/rubocop/issues/12310): Drop `base64` gem from runtime dependency. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12300](https://togithub.com/rubocop/rubocop/issues/12300): Fix an error for `Style/IdenticalConditionalBranches` when `if`...`else` with identical leading lines and using index assign. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12286](https://togithub.com/rubocop/rubocop/issues/12286): Fix false positives for `Style/RedundantDoubleSplatHashBraces` when using double splat with a hash literal enclosed in parenthesized ternary operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12279](https://togithub.com/rubocop/rubocop/issues/12279): Fix false positives for `Lint/EmptyConditionalBody` when missing 2nd `if` body with a comment. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12275](https://togithub.com/rubocop/rubocop/issues/12275): Fix a false positive for `Style/RedundantDoubleSplatHashBraces` when using double splat within block argument containing a hash literal in an array literal. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12284](https://togithub.com/rubocop/rubocop/issues/12284): Fix false positives for `Style/SingleArgumentDig` when using some anonymous argument syntax. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12301](https://togithub.com/rubocop/rubocop/issues/12301): Make `Style/RedundantFilterChain` aware of safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.57.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1571-2023-10-13) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.57.0...v1.57.1) ##### Bug fixes - [#​12271](https://togithub.com/rubocop/rubocop/issues/12271): Fix a false positive for `Lint/RedundantSafeNavigation` when using snake case constant receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12265](https://togithub.com/rubocop/rubocop/issues/12265): Fix an error for `Layout/MultilineMethodCallIndentation` when usingarithmetic operation with block inside a grouped expression. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12177](https://togithub.com/rubocop/rubocop/pull/12177): Fix an incorrect autocorrect for `Style/RedundantException`. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​12261](https://togithub.com/rubocop/rubocop/issues/12261): Fix an infinite loop for `Layout/MultilineMethodCallIndentation` when multiline method chain with a block argument and method chain. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​12263](https://togithub.com/rubocop/rubocop/issues/12263): Fix false positives for `Style/RedundantDoubleSplatHashBraces` when method call for no hash braced double splat receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12262](https://togithub.com/rubocop/rubocop/pull/12262): Fix an incorrect autocorrect for `Style/RedundantDoubleSplatHashBraces` when using double splat hash braces with `merge` method call twice. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.57.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1570-2023-10-11) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.4...v1.57.0) ##### New features - [#​12227](https://togithub.com/rubocop/rubocop/pull/12227): Add new `Style/SingleLineDoEndBlock` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12246](https://togithub.com/rubocop/rubocop/pull/12246): Make `Lint/RedundantSafeNavigation` aware of constant receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12257](https://togithub.com/rubocop/rubocop/issues/12257): Make `Style/RedundantDoubleSplatHashBraces` aware of `merge` methods. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​12244](https://togithub.com/rubocop/rubocop/issues/12244): Fix a false negative for `Lint/Debugger` when using debugger method inside block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12231](https://togithub.com/rubocop/rubocop/issues/12231): Fix a false negative for `Metrics/ModuleLength` when defining a singleton class in a module. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12249](https://togithub.com/rubocop/rubocop/issues/12249): Fix a false positive `Style/IdenticalConditionalBranches` when `if`..`else` with identical leading lines and assign to condition value. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12253](https://togithub.com/rubocop/rubocop/pull/12253): Fix `Lint/LiteralInInterpolation` to accept an empty string literal interpolated in words literal. (\[[@​knu](https://togithub.com/knu)]\[]) - [#​12198](https://togithub.com/rubocop/rubocop/issues/12198): Fix an error for flip-flop with beginless or endless ranges. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12259](https://togithub.com/rubocop/rubocop/issues/12259): Fix an error for `Lint/MixedCaseRange` when using nested character class in regexp. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12237](https://togithub.com/rubocop/rubocop/issues/12237): Fix an error for `Style/NestedTernaryOperator` when a ternary operator has a nested ternary operator within an `if`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12228](https://togithub.com/rubocop/rubocop/pull/12228): Fix false negatives for `Style/MultilineBlockChain` when using multiline block chain with safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12247](https://togithub.com/rubocop/rubocop/pull/12247): Fix false negatives for `Style/RedundantParentheses` when using logical or comparison expressions with redundant parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12226](https://togithub.com/rubocop/rubocop/issues/12226): Fix false positives for `Layout/MultilineMethodCallIndentation` when aligning methods in multiline block chain. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12076](https://togithub.com/rubocop/rubocop/issues/12076): Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. (\[[@​K-S-A](https://togithub.com/K-S-A)]\[]) ##### Changes - [#​12235](https://togithub.com/rubocop/rubocop/pull/12235): Enable auto parallel inspection when config file is specified. (\[[@​aboutNisblee](https://togithub.com/aboutNisblee)]\[]) - [#​12234](https://togithub.com/rubocop/rubocop/pull/12234): Enhance `Style/FormatString`'s autocorrection when using known conversion methods whose return value is not an array. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12128](https://togithub.com/rubocop/rubocop/issues/12128): Make `Style/GuardClause` aware of `define_method`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12126](https://togithub.com/rubocop/rubocop/pull/12126): Make `Style/RedundantFilterChain` aware of `select.present?` when `ActiveSupportExtensionsEnabled` config is `true`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12250](https://togithub.com/rubocop/rubocop/pull/12250): Mark `Lint/RedundantRequireStatement` as unsafe autocorrect. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12097](https://togithub.com/rubocop/rubocop/issues/12097): Mark unsafe autocorrect for `Style/ClassEqualityComparison`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12210](https://togithub.com/rubocop/rubocop/issues/12210): Mark `Style/RedundantFilterChain` as unsafe autocorrect. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.56.4`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1564-2023-09-28) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.3...v1.56.4) ##### Bug fixes - [#​12221](https://togithub.com/rubocop/rubocop/issues/12221): Fix a false positive for `Layout/EmptyLineAfterGuardClause` when using `return` before guard condition with heredoc. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12213](https://togithub.com/rubocop/rubocop/issues/12213): Fix a false positive for `Lint/OrderedMagicComments` when comment text `# encoding: ISO-8859-1` is embedded within example code as source code comment. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12205](https://togithub.com/rubocop/rubocop/issues/12205): Fix an error for `Style/OperatorMethodCall` when using `foo bar./ baz`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12208](https://togithub.com/rubocop/rubocop/issues/12208): Fix an incorrect autocorrect for the `--disable-uncorrectable` command line option when registering an offense is outside a percent array. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12203](https://togithub.com/rubocop/rubocop/pull/12203): Fix an incorrect autocorrect for `Lint/SafeNavigationChain` when using safe navigation with comparison operator as an expression of logical operator or comparison operator's operand. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12206](https://togithub.com/rubocop/rubocop/pull/12206): Fix an incorrect autocorrect for `Style/OperatorMethodCall` when using `foo./bar`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12202](https://togithub.com/rubocop/rubocop/pull/12202): Fix an incorrect autocorrect for `Style/RedundantConditional` when unless/else with boolean results. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​12199](https://togithub.com/rubocop/rubocop/issues/12199): Fix false negatives for `Layout/MultilineMethodCallIndentation` when using safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​12197](https://togithub.com/rubocop/rubocop/pull/12197): Make `Style/CollectionMethods` aware of `collect_concat`. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.56.3`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1563-2023-09-11) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.2...v1.56.3) ##### Bug fixes - [#​12151](https://togithub.com/rubocop/rubocop/issues/12151): Make `Layout/EmptyLineAfterGuardClause` allow `:nocov:` directive after guard clause. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12195](https://togithub.com/rubocop/rubocop/issues/12195): Fix a false negative for `Layout/SpaceAfterNot` when a newline is present after `!`. (\[[@​ymap](https://togithub.com/ymap)]\[]) - [#​12192](https://togithub.com/rubocop/rubocop/issues/12192): Fix a false positive for `Layout/RedundantLineBreak` when using quoted symbols with a single newline. (\[[@​ymap](https://togithub.com/ymap)]\[]) - [#​12190](https://togithub.com/rubocop/rubocop/issues/12190): Fix a false positive for `Layout/SpaceAroundOperators` when aligning operators vertically. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12171](https://togithub.com/rubocop/rubocop/issues/12171): Fix a false positive for `Style/ArrayIntersect` when using block argument for `Enumerable#any?`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12172](https://togithub.com/rubocop/rubocop/issues/12172): Fix a false positive for `Style/EmptyCaseCondition` when using `return`, `break`, `next` or method call before empty case condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12162](https://togithub.com/rubocop/rubocop/issues/12162): Fix an error for `Bundler/DuplicatedGroup` when there's a duplicate set of groups and the `group` value contains a splat. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12182](https://togithub.com/rubocop/rubocop/issues/12182): Fix an error for `Lint/UselessAssignment` when variables are assigned using chained assignment and remain unreferenced. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12181](https://togithub.com/rubocop/rubocop/issues/12181): Fix an incorrect autocorrect for `Lint/UselessAssignment` when variables are assigned with sequential assignment using the comma operator and unreferenced. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12187](https://togithub.com/rubocop/rubocop/issues/12187): Fix an incorrect autocorrect for `Style/SoleNestedConditional` when comment is in an empty nested `if` body. (\[[@​ymap](https://togithub.com/ymap)]\[]) - [#​12183](https://togithub.com/rubocop/rubocop/pull/12183): Fix an incorrect autocorrect for `Style/MultilineTernaryOperator` when returning a multiline ternary operator expression with safe navigation method call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12168](https://togithub.com/rubocop/rubocop/issues/12168): Fix bug in `Style/ArgumentsForwarding` when there are repeated send nodes. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​12185](https://togithub.com/rubocop/rubocop/pull/12185): Set target version for `Layout/HeredocIndentation`. (\[[@​tagliala](https://togithub.com/tagliala)]\[]) ### [`v1.56.2`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1562-2023-08-29) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.1...v1.56.2) ##### Bug fixes - [#​12138](https://togithub.com/rubocop/rubocop/issues/12138): Fix a false positive for `Layout/LineContinuationLeadingSpace` when a backslash is part of a multiline string literal. (\[[@​ymap](https://togithub.com/ymap)]\[]) - [#​12155](https://togithub.com/rubocop/rubocop/pull/12155): Fix false positive for `Layout/RedundantLineBreak` when using a modified singleton method definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12143](https://togithub.com/rubocop/rubocop/issues/12143): Fix a false positive for `Lint/ToEnumArguments` when using anonymous keyword arguments forwarding. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12148](https://togithub.com/rubocop/rubocop/pull/12148): Fix an incorrect autocorrect for `Lint/NonAtomicFileOperation` when using `FileUtils.remove_dir`, `FileUtils.remove_entry`, or `FileUtils.remove_entry_secure`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12141](https://togithub.com/rubocop/rubocop/issues/12141): Fix false positive for `Style/ArgumentsForwarding` when method def includes additional kwargs. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​12154](https://togithub.com/rubocop/rubocop/issues/12154): Fix incorrect `diagnosticProvider` value of LSP. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.56.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1561-2023-08-21) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.0...v1.56.1) ##### Bug fixes - [#​12136](https://togithub.com/rubocop/rubocop/pull/12136): Fix a false negative for `Layout/LeadingCommentSpace` when using `#+` or `#-` as they are not RDoc comments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12113](https://togithub.com/rubocop/rubocop/issues/12113): Fix a false positive for `Bundler/DuplicatedGroup` when groups are duplicated but `source`, `git`, `platforms`, or `path` values are different. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12134](https://togithub.com/rubocop/rubocop/issues/12134): Fix a false positive for `Style/MethodCallWithArgsParentheses` when parentheses are used in one-line `in` pattern matching. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12111](https://togithub.com/rubocop/rubocop/issues/12111): Fix an error for `Bundler/DuplicatedGroup` group declaration has keyword option. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12109](https://togithub.com/rubocop/rubocop/issues/12109): Fix an error for `Style/ArgumentsForwarding` cop when forwarding kwargs/block arg and an additional arg. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​12117](https://togithub.com/rubocop/rubocop/issues/12117): Fix a false positive for `Style/ArgumentsForwarding` cop when not always forwarding block. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​12115](https://togithub.com/rubocop/rubocop/pull/12115): Fix an error for `Style/Lambda` when using numbered parameter with a multiline `->` call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12124](https://togithub.com/rubocop/rubocop/issues/12124): Fix false positives for `Style/RedundantParentheses` when parentheses in `super` or `yield` call with multiline style argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12120](https://togithub.com/rubocop/rubocop/pull/12120): Fix false positives for `Style/SymbolArray` when `%i` array containing unescaped `[`, `]`, `(`, or `)`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12133](https://togithub.com/rubocop/rubocop/pull/12133): Fix `Style/RedundantSelfAssignmentBranch` to handle heredocs. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​12105](https://togithub.com/rubocop/rubocop/issues/12105): Fix target ruby `Gem::Requirement` matcher and version parsing to support multiple version constraints. (\[[@​ItsEcholot](https://togithub.com/ItsEcholot)]\[]) ### [`v1.56.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1560-2023-08-09) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.55.1...v1.56.0) ##### New features - [#​12074](https://togithub.com/rubocop/rubocop/pull/12074): Add new `Bundler/DuplicatedGroup` cop. (\[[@​OwlKing](https://togithub.com/OwlKing)]\[]) - [#​12078](https://togithub.com/rubocop/rubocop/pull/12078): Make LSP server support `rubocop.formatAutocorrectsAll` execute command. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​12106](https://togithub.com/rubocop/rubocop/issues/12106): Fix a false negative for `Style/RedundantReturn` when returning value with guard clause and `return` is used. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12095](https://togithub.com/rubocop/rubocop/pull/12095): Fix a false positive for `Style/Alias` when `EncforcedStyle: prefer_alias` and using `alias` with interpolated symbol argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12098](https://togithub.com/rubocop/rubocop/pull/12098): Fix a false positive for `Style/ClassEqualityComparison` when comparing interpolated string class name for equality. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12102](https://togithub.com/rubocop/rubocop/pull/12102): Fix an error for `Style/LambdaCall` when using nested lambda call `x.().()`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12099](https://togithub.com/rubocop/rubocop/pull/12099): Fix an incorrect autocorrect for `Style/Alias` when `EncforcedStyle: prefer_alias_method` and using `alias` with interpolated symbol argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12085](https://togithub.com/rubocop/rubocop/issues/12085): Fix an error for `Lint/SuppressedException` when `AllowNil: true` is set and endless method definition is used. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12087](https://togithub.com/rubocop/rubocop/issues/12087): Fix false positives for `Style/ArgumentsForwarding` with additional args/kwargs in def/send nodes. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​12071](https://togithub.com/rubocop/rubocop/issues/12071): Fix `Style/SymbolArray` false positives when using square brackets or interpolation in a symbol literal in a percent style array. (\[[@​jasondoc3](https://togithub.com/jasondoc3)]\[]) - [#​12061](https://togithub.com/rubocop/rubocop/issues/12061): Support regex in StringLiteralsInInterpolation. (\[[@​jonas054](https://togithub.com/jonas054)]\[]) - [#​12091](https://togithub.com/rubocop/rubocop/pull/12091): With `--fail-level A` ignore non-correctable offenses at :info severity. (\[[@​naveg](https://togithub.com/naveg)]\[]) ##### Changes - [#​12094](https://togithub.com/rubocop/rubocop/pull/12094): Add `base64` gem to runtime dependency to suppress Ruby 3.3's warning. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.55.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1551-2023-07-31) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.55.0...v1.55.1) ##### Bug fixes - [#​12068](https://togithub.com/rubocop/rubocop/pull/12068): Fix a false positive for `Style/ReturnNilInPredicateMethodDefinition` when the last method argument in method definition is `nil`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12082](https://togithub.com/rubocop/rubocop/issues/12082): Fix an error for `Lint/UselessAssignment` when a variable is assigned and unreferenced in `for` with multiple variables. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12079](https://togithub.com/rubocop/rubocop/issues/12079): Fix an error for `Style/MixinGrouping` when mixin method has no arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11637](https://togithub.com/rubocop/rubocop/pull/11637): Correct Rubocop for `private_class_method` method documentation. (\[[@​bigzed](https://togithub.com/bigzed)]\[]) - [#​12070](https://togithub.com/rubocop/rubocop/pull/12070): Fix false positive in `Style/ArgumentsForwarding` when receiver forwards args/kwargs. (\[[@​owst](https://togithub.com/owst)]\[]) ### [`v1.55.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1550-2023-07-25) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.54.2...v1.55.0) ##### New features - [#​11794](https://togithub.com/rubocop/rubocop/pull/11794): Add support to `Style/ArgumentsForwarding` for anonymous arg/kwarg forwarding in Ruby 3.2. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​12044](https://togithub.com/rubocop/rubocop/issues/12044): Make LSP server support `layoutMode` option to run layout cops. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12056](https://togithub.com/rubocop/rubocop/pull/12056): Make LSP server support `lintMode` option to run lint cops. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12046](https://togithub.com/rubocop/rubocop/issues/12046): Make `ReturnNilInPredicateMethodDefinition` aware of `nil` at the end of predicate method definition. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​12055](https://togithub.com/rubocop/rubocop/pull/12055): Allow parentheses in single-line match patterns when using the `omit_parentheses` style of `Style/MethodCallWithArgsParentheses`. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​12050](https://togithub.com/rubocop/rubocop/pull/12050): Fix a false positive for `Layout/RedundantLineBreak` when inspecting the `%` form string `%\n\n`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12063](https://togithub.com/rubocop/rubocop/pull/12063): Fix `Style/CombinableLoops` when one of the loops is empty. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​12059](https://togithub.com/rubocop/rubocop/issues/12059): Fix a false negative for `Style/StringLiteralsInInterpolation` for symbols with interpolation. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11834](https://togithub.com/rubocop/rubocop/issues/11834): Fix false positive for when variable in inside conditional branch in nested node. (\[[@​alexeyschepin](https://togithub.com/alexeyschepin)]\[]) - [#​11802](https://togithub.com/rubocop/rubocop/issues/11802): Improve handling of `[]` and `()` with percent symbol arrays. (\[[@​jasondoc3](https://togithub.com/jasondoc3)]\[]) - [#​12052](https://togithub.com/rubocop/rubocop/issues/12052): Fix "Subfolders can't include glob special characters". (\[[@​meric426](https://togithub.com/meric426)]\[], \[[@​loveo](https://togithub.com/loveo)]\[]) - [#​12062](https://togithub.com/rubocop/rubocop/pull/12062): Fix `LoadError` when loading RuboCop from a symlinked location on Windows. (\[[@​p0deje](https://togithub.com/p0deje)]\[]) ##### Changes - [#​12064](https://togithub.com/rubocop/rubocop/pull/12064): Make `Style/RedundantArgument` aware of `exit` and `exit!`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12015](https://togithub.com/rubocop/rubocop/issues/12015): Mark `Style/HashConversion` as unsafe autocorrection. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.54.2`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1542-2023-07-13) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.54.1...v1.54.2) ##### Bug fixes - [#​12043](https://togithub.com/rubocop/rubocop/pull/12043): Fix a false negative for `Layout/ExtraSpacing` when some characters are vertically aligned. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12040](https://togithub.com/rubocop/rubocop/pull/12040): Fix a false positive for `Layout/TrailingEmptyLines` to prevent the following incorrect autocorrection when inspecting the `%` form string `%\n\n`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​1867](https://togithub.com/rubocop/rubocop/issues/1867): Fix an error when `AllCops:Exclude` is empty in .rubocop.yml. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12034](https://togithub.com/rubocop/rubocop/issues/12034): Fix invalid byte sequence in UTF-8 error when using an invalid encoding string. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12038](https://togithub.com/rubocop/rubocop/pull/12038): Output the "server restarting" message to stderr. (\[[@​knu](https://togithub.com/knu)]\[]) ### [`v1.54.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1541-2023-07-04) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.54.0...v1.54.1) ##### Bug fixes - [#​12024](https://togithub.com/rubocop/rubocop/issues/12024): Fix a false positive for `Lint/RedundantRegexpQuantifiers` when interpolation is used in a regexp literal. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12020](https://togithub.com/rubocop/rubocop/issues/12020): This PR fixes an infinite loop error for `Layout/SpaceAfterComma` with `Layout/SpaceBeforeSemicolon` when autocorrection conflicts. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12014](https://togithub.com/rubocop/rubocop/pull/12014): Fix an error for `Lint/UselessAssignment` when part of a multiple assignment is enclosed in parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12011](https://togithub.com/rubocop/rubocop/pull/12011): Fix an error for `Metrics/MethodLength` when using a heredoc in a block without block arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12010](https://togithub.com/rubocop/rubocop/pull/12010): Fix false negatives for `Style/RedundantRegexpArgument` when using safe navigation operator. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.54.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1540-2023-07-01) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.53.1...v1.54.0) ##### New features - [#​12000](https://togithub.com/rubocop/rubocop/pull/12000): Support safe or unsafe autocorrect config for LSP. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​12005](https://togithub.com/rubocop/rubocop/issues/12005): Fix a false negative for `Lint/Debugger` when using debugger method inside lambda. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11986](https://togithub.com/rubocop/rubocop/issues/11986): Fix a false positive for `Lint/MixedCaseRange` when the number of characters at the start or end of range is other than 1. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11992](https://togithub.com/rubocop/rubocop/issues/11992): Fix an unexpected `NoMethodError` for built-in language server when an internal error occurs. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11994](https://togithub.com/rubocop/rubocop/issues/11994): Fix an error for `Layout/LineEndStringConcatenationIndentation` when inspecting the `%` from string `%\n\n`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12007](https://togithub.com/rubocop/rubocop/issues/12007): Fix an error for `Layout/SpaceAroundOperators` when using unary operator with double colon. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11996](https://togithub.com/rubocop/rubocop/issues/11996): Fix an error for `Style/IfWithSemicolon` when without branch bodies. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12009](https://togithub.com/rubocop/rubocop/pull/12009): Fix an error for `Style/YodaCondition` when equality check method is used without the first argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11998](https://togithub.com/rubocop/rubocop/issues/11998): Fix an error when inspecting blank heredoc delimiter. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11989](https://togithub.com/rubocop/rubocop/issues/11989): Fix an incorrect autocorrect for `Style/RedundantRegexpArgument` when using unicode chars. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​12001](https://togithub.com/rubocop/rubocop/issues/12001): Fix code length calculator for method calls with heredoc. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​12002](https://togithub.com/rubocop/rubocop/pull/12002): Fix `Lint/Void` cop for `__ENCODING__` constant. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) ##### Changes - [#​11983](https://togithub.com/rubocop/rubocop/pull/11983): Add Ridgepole files to default `Include` list. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11738](https://togithub.com/rubocop/rubocop/issues/11738): Enhances empty_line_between_defs to treat configured macros like defs. (\[[@​catwomey](https://togithub.com/catwomey)]\[])

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.