cucumber / cucumber-ruby

Cucumber for Ruby. It's amazing!
https://cucumber.io
MIT License
5.18k stars 1.11k forks source link

Update dependency rubocop to v1.55.1 #1714

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Update Change
rubocop (source, changelog) minor '1.43.0' -> '1.55.1'

Release Notes

rubocop/rubocop (rubocop) ### [`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)]\[]) ### [`v1.53.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1531-2023-06-26) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.53.0...v1.53.1) ##### Bug fixes - [#​11974](https://togithub.com/rubocop/rubocop/issues/11974): Fix an error for `Style/RedundantCurrentDirectoryInPath` when using string interpolation in `require_relative`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11981](https://togithub.com/rubocop/rubocop/issues/11981): Fix an incorrect autocorrect for `Style/RedundantRegexpArgument` when using double quote and single quote characters. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11836](https://togithub.com/rubocop/rubocop/issues/11836): Should not offense single-quoted symbol containing double quotes in `Lint/SymbolConversion` . (\[[@​KessaPassa](https://togithub.com/KessaPassa)]\[]) ### [`v1.53.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1530-2023-06-23) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.52.1...v1.53.0) ##### New features - [#​11561](https://togithub.com/rubocop/rubocop/pull/11561): Add new `Lint/MixedCaseRange` cop. (\[[@​rwstauner](https://togithub.com/rwstauner)]\[]) - [#​11565](https://togithub.com/rubocop/rubocop/pull/11565): Add new `Lint/RedundantRegexpQuantifiers` cop. (\[[@​jaynetics](https://togithub.com/jaynetics)]\[]) - [#​11925](https://togithub.com/rubocop/rubocop/issues/11925): Add new `Style/RedundantCurrentDirectoryInPath` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11595](https://togithub.com/rubocop/rubocop/pull/11595): Add new `Style/RedundantRegexpArgument` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11967](https://togithub.com/rubocop/rubocop/pull/11967): Add new `Style/ReturnNilInPredicateMethodDefinition` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11745](https://togithub.com/rubocop/rubocop/pull/11745): Add new `Style/YAMLFileRead` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11926](https://togithub.com/rubocop/rubocop/pull/11926): Support built-in LSP server. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​11953](https://togithub.com/rubocop/rubocop/issues/11953): Fix a false negative for `Lint/DuplicateHashKey` when there is a duplicated constant key in the hash literal. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11945](https://togithub.com/rubocop/rubocop/issues/11945): Fix a false negative for `Style/RedundantSelfAssignmentBranch` when using method chaining or arguments in ternary branch. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11949](https://togithub.com/rubocop/rubocop/issues/11949): Fix a false positive for `Layout/RedundantLineBreak` when using a line broken string. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11931](https://togithub.com/rubocop/rubocop/pull/11931): Fix a false positive for `Lint/RedundantRequireStatement` when using `PP.pp`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11946](https://togithub.com/rubocop/rubocop/pull/11946): Fix an error for `Lint/NumberConversion` when using multiple number conversion methods. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11972](https://togithub.com/rubocop/rubocop/issues/11972): Fix an error for `Lint/Void` when `CheckForMethodsWithNoSideEffects: true` and using a method definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11958](https://togithub.com/rubocop/rubocop/pull/11958): Fix error for `Style/IdenticalConditionalBranches` when using empty parentheses in the `if` branch. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11962](https://togithub.com/rubocop/rubocop/issues/11962): Fix an error for `Style/RedundantStringEscape` when an escaped double quote precedes interpolation in a symbol literal. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11947](https://togithub.com/rubocop/rubocop/issues/11947): Fix an error for `Style/ConditionalAssignment` with an assignment that uses `if` branch bodies, which include a block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11959](https://togithub.com/rubocop/rubocop/pull/11959): Fix false negatives for `Layout/EmptyLinesAroundExceptionHandlingKeywords` when using Ruby 2.5's `rescue` inside block and Ruby 2.7's numbered block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​10902](https://togithub.com/rubocop/rubocop/issues/10902): Fix an error for `Style/RedundantRegexpEscape` string with invalid byte sequence in UTF-8. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11562](https://togithub.com/rubocop/rubocop/pull/11562): Fixed escaped octal handling and detection in `Lint/DuplicateRegexpCharacterClassElement`. (\[[@​rwstauner](https://togithub.com/rwstauner)]\[]) ##### Changes - [#​11904](https://togithub.com/rubocop/rubocop/pull/11904): Mark `Layout/ClassStructure` as unsafe to autocorrect. (\[[@​nevans](https://togithub.com/nevans)]\[]) - [#​8506](https://togithub.com/rubocop/rubocop/issues/8506): Add `AllowedParentClasses` config to `Lint/MissingSuper`. (\[[@​iMacTia](https://togithub.com/iMacTia)]\[]) ### [`v1.52.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1521-2023-06-12) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.52.0...v1.52.1) ##### Bug fixes - [#​11944](https://togithub.com/rubocop/rubocop/pull/11944): Fix an incorrect autocorrect for `Style/SoleNestedConditional` with `Style/MethodCallWithArgsParentheses`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11930](https://togithub.com/rubocop/rubocop/pull/11930): Fix exception on `Lint/InheritException` when class definition has non-constant siblings. (\[[@​rafaelfranca](https://togithub.com/rafaelfranca)]\[]) - [#​11919](https://togithub.com/rubocop/rubocop/issues/11919): Fix an error for `Lint/UselessAssignment` when a variable is assigned and unreferenced in `for`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11928](https://togithub.com/rubocop/rubocop/pull/11928): Fix an incorrect autocorrect for `Lint/AmbiguousBlockAssociation`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11915](https://togithub.com/rubocop/rubocop/pull/11915): Fix a false positive for `Lint/RedundantSafeNavigation` when `&.` is used for `to_s`, `to_i`, `to_d`, and other coercion methods. (\[[@​lucthev](https://togithub.com/lucthev)]\[]) ##### Changes - [#​11942](https://togithub.com/rubocop/rubocop/pull/11942): Require Parser 3.2.2.3 or higher. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.52.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1520-2023-06-02) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.51.0...v1.52.0) ##### New features - [#​11873](https://togithub.com/rubocop/rubocop/pull/11873): Add `ComparisonsThreshold` config option to `Style/MultipleComparison`. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11886](https://togithub.com/rubocop/rubocop/pull/11886): Add new `Style/RedundantArrayConstructor` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11873](https://togithub.com/rubocop/rubocop/pull/11873): Add new `Style/RedundantRegexpConstructor` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11841](https://togithub.com/rubocop/rubocop/pull/11841): Add new `Style/RedundantFilterChain` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11908](https://togithub.com/rubocop/rubocop/issues/11908): Support `AllowedReceivers` for `Style/CollectionMethods`. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​11890](https://togithub.com/rubocop/rubocop/pull/11890): Fix a false negative for `Lint/RedundantSafeNavigation` when `&.` is used for `to_d`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11880](https://togithub.com/rubocop/rubocop/issues/11880): Fix a false positive for `Style/ExactRegexpMatch` when using literal with quantifier in regexp. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11902](https://togithub.com/rubocop/rubocop/pull/11902): Fix a false positive for `Style/RequireOrder` when single-quoted string and double-quoted string are mixed. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11879](https://togithub.com/rubocop/rubocop/pull/11879): Fix a false positive for `Style/SelectByRegexp` when Ruby 2.2 or lower analysis. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11891](https://togithub.com/rubocop/rubocop/issues/11891): Fix `Style/AccessorGrouping` to accept macros separated from accessors by space. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11905](https://togithub.com/rubocop/rubocop/issues/11905): Fix an error for `Lint/UselessAssignment` when a variable is assigned with rest assignment and unreferenced. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11899](https://togithub.com/rubocop/rubocop/issues/11899): Fix an incorrect autocorrect for `Style/SingleLineMethods` when using Ruby 3.0 and `Style/EndlessMethod` is disabled. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11884](https://togithub.com/rubocop/rubocop/issues/11884): Make `rubocop -V` display rubocop-factory_bot version when using it. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11893](https://togithub.com/rubocop/rubocop/issues/11893): Fix a false positive for `Lint/InheritException` when inheriting `Exception` with omitted namespace. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11898](https://togithub.com/rubocop/rubocop/pull/11898): Fix offences in calls inside blocks with braces for `Style/MethodCallWithArgsParentheses` with `omit_parentheses` enforced style. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​11857](https://togithub.com/rubocop/rubocop/pull/11857): Server mode: only read $stdin when -s or --stdin argument provided. (\[[@​naveg](https://togithub.com/naveg)]\[]) ### [`v1.51.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1510-2023-05-13) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.50.2...v1.51.0) ##### New features - [#​11819](https://togithub.com/rubocop/rubocop/pull/11819): Add autocorrection for `Lint/AmbiguousBlockAssociation`. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11597](https://togithub.com/rubocop/rubocop/issues/11597): Add autocorrection for `Lint/UselessAssignment`. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11848](https://togithub.com/rubocop/rubocop/pull/11848): Add autocorrection for `Lint/Void`. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11851](https://togithub.com/rubocop/rubocop/pull/11851): Add autocorrection for `Naming/MemoizedInstanceVariableName`. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11856](https://togithub.com/rubocop/rubocop/pull/11856): Add autocorrection for `Style/CombinableLoops`. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11824](https://togithub.com/rubocop/rubocop/pull/11824): Add autocorrection for `Lint/TopLevelReturnWithArgument`. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11869](https://togithub.com/rubocop/rubocop/pull/11869): Add new `Style/ExactRegexpMatch` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11814](https://togithub.com/rubocop/rubocop/pull/11814): Make `Style/CollectionCompact` aware of `delete_if`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11866](https://togithub.com/rubocop/rubocop/pull/11866): Make `Style/Semicolon` aware of redundant semicolons in string interpolation braces. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​11812](https://togithub.com/rubocop/rubocop/issues/11812): Fix a false negative for `Style/Attr` when using `attr` and method definitions. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11861](https://togithub.com/rubocop/rubocop/issues/11861): Fix a false positive for `Layout/SpaceAfterSemicolon` when no space between a semicolon and a closing brace of string interpolation. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11830](https://togithub.com/rubocop/rubocop/pull/11830): Fix a false positive for `Lint/IncompatibleIoSelectWithFiberScheduler`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11846](https://togithub.com/rubocop/rubocop/issues/11846): Fix a false positive for `Lint/RedundantStringCoercion` when using `to_s(argument)` in `puts` argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11865](https://togithub.com/rubocop/rubocop/pull/11865): Fix an error for `Naming/ConstantName` when assigning a constant from an empty branch of `else`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11844](https://togithub.com/rubocop/rubocop/issues/11844): Fix a false positive for `Style/RedundantLineContinuation` when using line concatenation for assigning a return value and without argument parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11808](https://togithub.com/rubocop/rubocop/pull/11808): Fix a false positive for `Style/RegexpLiteral` when using a regexp starts with equal as a method argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11822](https://togithub.com/rubocop/rubocop/issues/11822): Fix an error for `Layout/SpaceInsideBlockBraces` when a method call with a multiline block is used as an argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11849](https://togithub.com/rubocop/rubocop/issues/11849): Fix an error for `Style/ConditionalAssignment` when `EnforcedStyle: assign_inside_condition` and using empty `case` condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11967](https://togithub.com/rubocop/rubocop/pull/11967): Fix error for `Style/IfInsideElse` when a deep nested multiline `if...then...elsif...else...end`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11842](https://togithub.com/rubocop/rubocop/pull/11842): Fix an error for `Style/IfUnlessModifier` when using multiple `if` modifier in the long one line. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11835](https://togithub.com/rubocop/rubocop/pull/11835): Fix an error for `Style/RequireOrder` when multiple `require` are not sorted. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11809](https://togithub.com/rubocop/rubocop/issues/11809): Fix an incorrect autocorrect for `Naming/RescuedExceptionsVariableName` when exception variable is referenced after `rescue` statement. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11852](https://togithub.com/rubocop/rubocop/issues/11852): Fix an incorrect autocorrect for `Style/EvalWithLocation` when using `eval` without line number and with parenthesized method call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11862](https://togithub.com/rubocop/rubocop/issues/11862): Fix an incorrect autocorrect for `Style/GuardClause` when using `raise` in `else` branch in a one-liner with `then`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11868](https://togithub.com/rubocop/rubocop/issues/11868): Fix a false positive for `Style/HashExcept` when method's receiver/argument is not the same as block key argument. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11858](https://togithub.com/rubocop/rubocop/pull/11858): Fix false positives when using source comments in blocks. (\[[@​reitermarkus](https://togithub.com/reitermarkus)]\[]) - [#​11510](https://togithub.com/rubocop/rubocop/pull/11510): Fix `Lint/UselessAssignment` false positive when using numbered block parameters. (\[[@​sambostock](https://togithub.com/sambostock)]\[]) - [#​11872](https://togithub.com/rubocop/rubocop/pull/11872): Fix `Gemspec/DevelopmentDependencies` not trigger when add_development_dependency has more then one arguments. (\[[@​Bhacaz](https://togithub.com/Bhacaz)]\[]) - [#​11820](https://togithub.com/rubocop/rubocop/issues/11820): Fix `Lint/EmptyConditionalBody` false-positives for commented empty `elsif` body. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) ##### Changes - [#​11859](https://togithub.com/rubocop/rubocop/pull/11859): Add rubocop-factory_bot to suggested extensions. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11791](https://togithub.com/rubocop/rubocop/pull/11791): **(Breaking)** Drop runtime support for Ruby 2.6 and JRuby 9.3 (CRuby 2.6 compatible). (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11826](https://togithub.com/rubocop/rubocop/pull/11826): Exclude `**/*.jb` from `Lint/TopLevelReturnWithArgument`. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11871](https://togithub.com/rubocop/rubocop/pull/11871): Mark `Style/DataInheritance` as unsafe autocorrect, `Style/OpenStructUse` as unsafe, and `Security/CompoundHash` as unsafe. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.50.2`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1502-2023-04-17) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.50.1...v1.50.2) ##### Bug fixes - [#​11799](https://togithub.com/rubocop/rubocop/pull/11799): Fix a false positive for `Style/CollectionCompact` when using `reject` on hash to reject nils in Ruby 2.3 analysis. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11792](https://togithub.com/rubocop/rubocop/issues/11792): Fix an error for `Lint/DuplicateMatchPattern` when using hash pattern with `if` guard. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11800](https://togithub.com/rubocop/rubocop/issues/11800): Mark `Style/InvertibleUnlessCondition` as unsafe. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.50.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1501-2023-04-12) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.50.0...v1.50.1) ##### Bug fixes - [#​11787](https://togithub.com/rubocop/rubocop/issues/11787): Fix a false positive for `Lint/DuplicateMatchPattern` when repeated `in` patterns but different `if` guard is used. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11789](https://togithub.com/rubocop/rubocop/pull/11789): Fix false negatives for `Style/ParallelAssignment` when Ruby 2.7+. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11783](https://togithub.com/rubocop/rubocop/issues/11783): Fix a false positive for `Style/RedundantLineContinuation` using line concatenation for assigning a return value and without argument parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.50.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1500-2023-04-11) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.49.0...v1.50.0) ##### New features - [#​11749](https://togithub.com/rubocop/rubocop/pull/11749): Add new `Lint/DuplicateMatchPattern` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11773](https://togithub.com/rubocop/rubocop/pull/11773): Make `Layout/ClassStructure` aware of singleton class. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11779](https://togithub.com/rubocop/rubocop/pull/11779): Make `Lint/RedundantStringCoercion` aware of print method arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11776](https://togithub.com/rubocop/rubocop/pull/11776): Make `Metrics/ClassLength` aware of singleton class. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11775](https://togithub.com/rubocop/rubocop/pull/11775): Make `Style/TrailingBodyOnClass` aware of singleton class. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​11758](https://togithub.com/rubocop/rubocop/issues/11758): Fix a false positive for `Style/RedundantLineContinuation` when line continuations for string. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11754](https://togithub.com/rubocop/rubocop/pull/11754): Fix a false positive for `Style/RedundantLineContinuation` when using `&&` and `||` with a multiline condition. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11765](https://togithub.com/rubocop/rubocop/issues/11765): Fix an error for `Style/MultilineMethodSignature` when line break after `def` keyword. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11762](https://togithub.com/rubocop/rubocop/issues/11762): Fix an incorrect autocorrect for `Style/ClassEqualityComparison` when comparing a variable or return value for equality. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11752](https://togithub.com/rubocop/rubocop/pull/11752): Fix a false positive for `Style/RedundantLineContinuation` when using line concatenation and calling a method without parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.49.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1490-2023-04-03) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.48.1...v1.49.0) ##### New features - [#​11122](https://togithub.com/rubocop/rubocop/issues/11122): Add new `Style/RedundantLineContinuation` cop. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11696](https://togithub.com/rubocop/rubocop/issues/11696): Add new `Style/DataInheritance` cop. (\[[@​ktopolski](https://togithub.com/ktopolski)]\[]) - [#​11746](https://togithub.com/rubocop/rubocop/pull/11746): Make `Layout/EndAlignment` aware of pattern matching. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11750](https://togithub.com/rubocop/rubocop/pull/11750): Make `Metrics/BlockNesting` aware of numbered parameter. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11699](https://togithub.com/rubocop/rubocop/issues/11699): Make `Style/ClassEqualityComparison` aware of `Class#to_s` and `Class#inspect` for class equality comparison. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11737](https://togithub.com/rubocop/rubocop/pull/11737): Make `Style/MapToHash` and `Style/MapToSet` aware of numbered parameters. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11732](https://togithub.com/rubocop/rubocop/issues/11732): Make `Style/MapToHash` and `Style/MapToSet` aware of symbol proc. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11703](https://togithub.com/rubocop/rubocop/pull/11703): Make `Naming/InclusiveLanguage` support autocorrection when there is only one suggestion. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​11730](https://togithub.com/rubocop/rubocop/issues/11730): Fix an error for `Layout/HashAlignment` when using anonymous keyword rest arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11704](https://togithub.com/rubocop/rubocop/issues/11704): Fix a false positive for `Lint/UselessMethodDefinition` when method definition with non access modifier containing only `super` call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11723](https://togithub.com/rubocop/rubocop/issues/11723): Fix a false positive for `Style/IfUnlessModifier` when using one-line pattern matching as a `if` condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11725](https://togithub.com/rubocop/rubocop/issues/11725): Fix an error when insufficient permissions to server cache dir are granted. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11715](https://togithub.com/rubocop/rubocop/issues/11715): Ensure default configuration loads. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11742](https://togithub.com/rubocop/rubocop/pull/11742): Fix error handling in bundler standalone mode. (\[[@​composerinteralia](https://togithub.com/composerinteralia)]\[]) - [#​11712](https://togithub.com/rubocop/rubocop/pull/11712): Fix a crash in `Lint/EmptyConditionalBody`. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​11641](https://togithub.com/rubocop/rubocop/issues/11641): Fix a false negative for `Layout/ExtraSpacing` when there are many comments with extra spaces. (\[[@​nobuyo](https://togithub.com/nobuyo)]\[]) - [#​11740](https://togithub.com/rubocop/rubocop/pull/11740): Fix a false positive for `Lint/NestedMethodDefinition` when nested definition inside `*_eval` and `*_exec` method call with a numblock. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11685](https://togithub.com/rubocop/rubocop/issues/11685): Fix incorrect directive comment insertion when percent array violates `Layout/LineLength` cop. (\[[@​nobuyo](https://togithub.com/nobuyo)]\[]) - [#​11706](https://togithub.com/rubocop/rubocop/issues/11706): Fix infinite loop when `--disable-uncorrectable` option and there is a multi-line percent array violates `Layout/LineLength`. (\[[@​nobuyo](https://togithub.com/nobuyo)]\[]) - [#​11697](https://togithub.com/rubocop/rubocop/issues/11697): Fix `Lint/Syntax` behavior when `--only` is not given the cop name. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11709](https://togithub.com/rubocop/rubocop/pull/11709): Fix value omission false positive in `Style/MethodCallWithArgsParentheses`. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) ##### Changes - [#​11739](https://togithub.com/rubocop/rubocop/pull/11739): Make `Style/RedundantParentheses` aware of redundant method argument parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​10766](https://togithub.com/rubocop/rubocop/issues/10766): Use the path given by `--cache-root` to be the parent for `rubocop_cache` dir like other ways to specify it. (\[[@​nobuyo](https://togithub.com/nobuyo)]\[]) ### [`v1.48.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1481-2023-03-13) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.48.0...v1.48.1) ##### Bug fixes - [#​11673](https://togithub.com/rubocop/rubocop/pull/11673): Fix incorrect `Style/HashSyntax` autocorrection for assignment methods. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​11682](https://togithub.com/rubocop/rubocop/issues/11682): Fix a false positive for `Lint/UselessRescue` when using `Thread#raise` in `rescue` clause. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11672](https://togithub.com/rubocop/rubocop/issues/11672): Fix an error for `Layout/BlockEndNewline` when multiline block `}` is not on its own line and it is used as multiple arguments. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11675](https://togithub.com/rubocop/rubocop/pull/11675): `Style/AccessorGrouping`: Fix sibling detection for methods with type sigs. (\[[@​issyl0](https://togithub.com/issyl0)]\[]) - [#​11658](https://togithub.com/rubocop/rubocop/issues/11658): Fix `Lint/Debugger` should not allow pry. (\[[@​ThHareau](https://togithub.com/ThHareau)]\[]) - [#​11689](https://togithub.com/rubocop/rubocop/pull/11689): Fix `Lint/Syntax` behavior when `Enabled: false` of `Lint` department. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11677](https://togithub.com/rubocop/rubocop/issues/11677): Fix the severity for `Lint/Syntax`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11691](https://togithub.com/rubocop/rubocop/pull/11691): Fix an error for `Gemspec/DependencyVersion` when method called on gem name argument for `add_dependency`. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.48.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1480-2023-03-06) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.47.0...v1.48.0) ##### New features - [#​11628](https://togithub.com/rubocop/rubocop/issues/11628): Add new `Style/DirEmpty` cop. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11629](https://togithub.com/rubocop/rubocop/issues/11629): Add new `Style/FileEmpty` cop. (\[[@​ydah](https://togithub.com/ydah)]\[]) ##### Bug fixes - [#​11654](https://togithub.com/rubocop/rubocop/pull/11654): Fix a false positive for `Lint/MissingSuper` when no `super` call and when defining some method. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11661](https://togithub.com/rubocop/rubocop/pull/11661): Fix an error for `Style/Documentation` when namespace is a variable. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11647](https://togithub.com/rubocop/rubocop/pull/11647): Fix an error for `Style/IfWithBooleanLiteralBranches` when using `()` as a condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11646](https://togithub.com/rubocop/rubocop/pull/11646): Fix an error for `Style/NegatedIfElseCondition` when using `()` as a condition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11659](https://togithub.com/rubocop/rubocop/pull/11659): Fix an incorrect autocorrect for `Lint/OrAssignmentToConstant` when using or-assignment to a constant in method definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11663](https://togithub.com/rubocop/rubocop/issues/11663): Fix an incorrect autocorrect for `Style/BlockDelimiters` when multi-line blocks to `{` and `}` with arithmetic operation method chain. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11638](https://togithub.com/rubocop/rubocop/pull/11638): Fix a false positive for `Lint/UselessAccessModifier` when using same access modifier inside and outside the `included` block. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11164](https://togithub.com/rubocop/rubocop/issues/11164): Suppress server mode message with `-f json`. (\[[@​jasondoc3](https://togithub.com/jasondoc3)]\[]) - [#​11643](https://togithub.com/rubocop/rubocop/pull/11643): Fix incorrect shorthand autocorrections in calls inside parentheses. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​11650](https://togithub.com/rubocop/rubocop/pull/11650): `Style/AccessorGrouping`: Fix detection of Sorbet `sig {}` blocks. (\[[@​issyl0](https://togithub.com/issyl0)]\[]) - [#​11657](https://togithub.com/rubocop/rubocop/issues/11657): Use cop name to check if cop inside registry is enabled. Previously, it was able to cause large memory usage during linting. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) ##### Changes - [#​11482](https://togithub.com/rubocop/rubocop/issues/11482): Avoid comment deletion by `Style/IfUnlessModifier` when the modifier form expression has long comment. (\[[@​nobuyo](https://togithub.com/nobuyo)]\[]) - [#​11649](https://togithub.com/rubocop/rubocop/issues/11649): Support `MinBranchesCount` config for `Style/CaseLikeIf` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) ### [`v1.47.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1470-2023-03-01) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.46.0...v1.47.0) ##### New features - [#​11475](https://togithub.com/rubocop/rubocop/pull/11475): Add autocorrect for hash in `Lint/LiteralInInterpolation`. (\[[@​KessaPassa](https://togithub.com/KessaPassa)]\[]) - [#​11584](https://togithub.com/rubocop/rubocop/pull/11584): Add `Metrics/CollectionLiteralLength` cop. (\[[@​sambostock](https://togithub.com/sambostock)]\[]) ##### Bug fixes - [#​11615](https://togithub.com/rubocop/rubocop/issues/11615): Fix a false negative for `Lint/MissingSuper` when no `super` call with `Class.new` block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11615](https://togithub.com/rubocop/rubocop/issues/11615): Fix a false negative for `Lint/MissingSuper` when using `Class.new` without parent class argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11040](https://togithub.com/rubocop/rubocop/issues/11040): Fix a false positive for `Style/IfUnlessModifier` when `defined?`'s argument value is undefined. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11607](https://togithub.com/rubocop/rubocop/issues/11607): Fix a false positive for `Style/RedundantRegexpEscape` when an escaped hyphen follows after an escaped opening square bracket within a character class. (\[[@​SparLaimor](https://togithub.com/SparLaimor)]\[]) - [#​11626](https://togithub.com/rubocop/rubocop/issues/11626): Fix a false positive for `Style/ZeroLengthPredicate` when using `File.new(path).size.zero?`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11620](https://togithub.com/rubocop/rubocop/pull/11620): Fix an error for `Lint/ConstantResolution` when using `__ENCODING__`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11625](https://togithub.com/rubocop/rubocop/pull/11625): Fix an error for `Lint/EmptyConditionalBody` when missing `if` body and using method call for return value. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11631](https://togithub.com/rubocop/rubocop/issues/11631): Fix an incorrect autocorrect for `Style/ArgumentsForwarding` when using arguments forwarding for `.()` call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11621](https://togithub.com/rubocop/rubocop/issues/11621): Fix an incorrect autocorrect for `Layout/ClassStructure` using heredoc inside method. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​3591](https://togithub.com/rubocop/rubocop/issues/3591): Handle modifier `while` and `until` expressions in `Lint/UselessAssignment`. (\[[@​bfad](https://togithub.com/bfad)]\[]) - [#​11202](https://togithub.com/rubocop/rubocop/issues/11202): Fixed usage of `--only` flag with `--auto-gen-config`. (\[[@​istvanfazakas](https://togithub.com/istvanfazakas)]\[]) ##### Changes - [#​11623](https://togithub.com/rubocop/rubocop/pull/11623): Add rubocop-capybara to suggested extensions and extension doc. (\[[@​ydah](https://togithub.com/ydah)]\[]) ### [`v1.46.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1460-2023-02-22) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.45.1...v1.46.0) ##### New features - [#​11569](https://togithub.com/rubocop/rubocop/pull/11569): Support `TargetRubyVersion 3.3` (experimental). (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​11574](https://togithub.com/rubocop/rubocop/pull/11574): Fix a broken shorthand syntax autocorrection. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​11599](https://togithub.com/rubocop/rubocop/pull/11599): Fix a false positive for `Layout/LineContinuationSpacing` when using percent literals. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11556](https://togithub.com/rubocop/rubocop/issues/11556): Fix a false positive for `Lint/Debugger` when `p` is an argument of method call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11591](https://togithub.com/rubocop/rubocop/issues/11591): Fix a false positive for `Lint/ToEnumArguments` when enumerator is not created for `__callee__` and `__callee__` methods. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11603](https://togithub.com/rubocop/rubocop/pull/11603): Actually run temporarily enabled cops. (\[[@​tdeo](https://togithub.com/tdeo)]\[]) - [#​11579](https://togithub.com/rubocop/rubocop/pull/11579): Fix an error for `Layout/HeredocArgumentClosingParenthesis` when heredoc is a method argument in a parenthesized block argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11576](https://togithub.com/rubocop/rubocop/pull/11576): Fix an error for `Lint/UselessRescue` when `rescue` does not exception variable and `ensure` has empty body. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11608](https://togithub.com/rubocop/rubocop/pull/11608): Fix an error for `Lint/RefinementImportMethods` when using `include` on the top level. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11589](https://togithub.com/rubocop/rubocop/pull/11589): Fix an error for `Layout/HeredocArgumentClosingParenthesis` when heredoc is a branch body in a method argument of a parenthesized argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11567](https://togithub.com/rubocop/rubocop/issues/11567): Fix `Layout/EndAlignment` false negative. (\[[@​j-miyake](https://togithub.com/j-miyake)]\[]) - [#​11582](https://togithub.com/rubocop/rubocop/issues/11582): Fix checking if token with large offset begins its line. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11412](https://togithub.com/rubocop/rubocop/issues/11412): Mark `Style/ArrayIntersect` as unsafe. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11559](https://togithub.com/rubocop/rubocop/pull/11559): Fixed false positives and negatives in `Style/RedundantRegexpCharacterClass` when using octal escapes (e.g. "\0"). (\[[@​jaynetics](https://togithub.com/jaynetics)]\[]) - [#​11575](https://togithub.com/rubocop/rubocop/pull/11575): Fix parentheses in value omissions for multiple assignments. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) ##### Changes - [#​11586](https://togithub.com/rubocop/rubocop/issues/11586): Handle `ruby2_keywords` in `Style/DocumentationMethod` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11604](https://togithub.com/rubocop/rubocop/issues/11604): Make `Naming/VariableNumber` to allow `x86_64` CPU architecture name by default. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11596](https://togithub.com/rubocop/rubocop/issues/11596): Make `Style/AccessorGrouping` aware of method call before accessor. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11588](https://togithub.com/rubocop/rubocop/pull/11588): Optimize `Style/WordArray` complex matrix check. (\[[@​sambostock](https://togithub.com/sambostock)]\[]) - [#​11573](https://togithub.com/rubocop/rubocop/pull/11573): Handle hash patterns and pins in `Lint/OutOfRangeRegexpRef` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11564](https://togithub.com/rubocop/rubocop/pull/11564): Remove print debug methods from default for `Lint/Debugger`. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.45.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1451-2023-02-08) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.45.0...v1.45.1) ##### Bug fixes - [#​11552](https://togithub.com/rubocop/rubocop/pull/11552): Fix a false positive for `Lint/Debugger` when methods containing different method chains. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11548](https://togithub.com/rubocop/rubocop/pull/11548): Fix an error for `Style/AccessModifierDeclarations` when if a non method definition was included. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11554](https://togithub.com/rubocop/rubocop/issues/11554): Fix an error for `Style/RedundantCondition` when the branches contains empty hash literal argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11549](https://togithub.com/rubocop/rubocop/issues/11549): Fix an error for third party cops when inheriting `RuboCop::Cop::Cop`. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.45.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1450-2023-02-08) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.44.1...v1.45.0) ##### New features - [#​10839](https://togithub.com/rubocop/rubocop/pull/10839): Add API for 3rd party template support. (\[[@​r7kamura](https://togithub.com/r7kamura)]\[]) - [#​11528](https://togithub.com/rubocop/rubocop/pull/11528): Add new `Style/RedundantHeredocDelimiterQuotes` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11188](https://togithub.com/rubocop/rubocop/issues/11188): Add a `--no-detach` option for `--start-server`. This will start the server process in the foreground, which can be helpful when running within Docker where detaching the process terminates the container. (\[[@​f1sherman](https://togithub.com/f1sherman)]\[]) - [#​11546](https://togithub.com/rubocop/rubocop/pull/11546): Make `Lint/UselessAccessModifier` aware of Ruby 3.2's `Data.define`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11396](https://togithub.com/rubocop/rubocop/pull/11396): Add ability to profile rubocop execution via `--profile` and `--memory` options. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) ##### Bug fixes - [#​11491](https://togithub.com/rubocop/rubocop/pull/11491): Fix a crash on `Lint/UselessAssignment`. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​11515](https://togithub.com/rubocop/rubocop/pull/11515): Fix a false negative for `Naming/HeredocDelimiterNaming` when using lowercase. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11511](https://togithub.com/rubocop/rubocop/issues/11511): Fix a false negative for `Style/YodaCondition` when using constant. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11520](https://togithub.com/rubocop/rubocop/pull/11520): Fix a false negative for `Style/YodaExpression` when using constant. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11521](https://togithub.com/rubocop/rubocop/issues/11521): Fix a false positive for `Lint/FormatParameterMismatch` when using `Kernel.format` with the interpolated number of decimal places fields match. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11545](https://togithub.com/rubocop/rubocop/pull/11545): Fix the following false positive for `Lint/NestedMethodDefinition` when using numbered parameter. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11535](https://togithub.com/rubocop/rubocop/issues/11535): Fix a false positive for `Style/NumberedParametersLimit` when only `_2` or higher numbered parameter is used. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11508](https://togithub.com/rubocop/rubocop/issues/11508): Fix a false positive for `Style/OperatorMethodCall` when using multiple arguments for operator method. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11503](https://togithub.com/rubocop/rubocop/issues/11503): Fix a false positive for `Style/RedundantCondition` when using method argument with operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11529](https://togithub.com/rubocop/rubocop/pull/11529): Fix an incorrect autocorrect for `Layout/ClassStructure` when definitions that need to be sorted are defined alternately. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11530](https://togithub.com/rubocop/rubocop/pull/11530): Fix an incorrect autocorrect for `Style/AccessModifierDeclarations` when multiple groupable access modifiers are defined. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​10910](https://togithub.com/rubocop/rubocop/pull/10910): Fix an incorrect autocorrect for `Style/MultilineTernaryOperator` when contains a comment. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11522](https://togithub.com/rubocop/rubocop/pull/11522): Don't flag default keyword arguments in `Style/ArgumentsForwarding`. (\[[@​splattael](https://togithub.com/splattael)]\[]) - [#​11547](https://togithub.com/rubocop/rubocop/pull/11547): Fix a false positive for `Lint/NestedMethodDefinition` when using Ruby 3.2's `Data.define`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11537](https://togithub.com/rubocop/rubocop/pull/11537): Fix an infinite loop error for `Layout/ArrayAlignment` when using assigning unbracketed array elements. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11516](https://togithub.com/rubocop/rubocop/pull/11516): Fix missing parentheses in shorthand hash syntax as argument calls. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) ##### Changes - [#​11504](https://togithub.com/rubocop/rubocop/issues/11504): Allow `initialize` method in `Style/DocumentationMethod`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11541](https://togithub.com/rubocop/rubocop/pull/11541): Enable autocorrection for `Layout/LineContinuationLeadingSpace`. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​11542](https://togithub.com/rubocop/rubocop/pull/11542): Mark `Layout/AssignmentIndentation` as safe and `Lint/AssignmentInCondition` as unsafe for autocorrection. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​11517](https://togithub.com/rubocop/rubocop/issues/11517): Make `Lint/Debugger` aware of `p`, `PP.pp`, and `pp` methods. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11539](https://togithub.com/rubocop/rubocop/pull/11539): Remove `bundler` from default `AllowedGems` of `Gemspec/DevelopmentDependencies`. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.44.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1441-2023-01-25) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.44.0...v1.44.1) ##### Bug fixes - [#​11492](https://togithub.com/rubocop/rubocop/issues/11492): Fix an error for `Lint/Void` when configuring `CheckForMethodsWithNoSideEffects: true`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11400](https://togithub.com/rubocop/rubocop/issues/11400): Fix an incorrect autocorrect for `Naming/BlockForwarding` and `Lint/AmbiguousOperator` when autocorrection conflicts for ambiguous splat argument. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11483](https://togithub.com/rubocop/rubocop/issues/11483): Fix `Layout/ClosingParenthesisIndentation` for keyword splat arguments. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11487](https://togithub.com/rubocop/rubocop/pull/11487): Fix a false positive for `Lint/FormatParameterMismatch` when format string is only interpolated string. (\[[@​ydah](https://togithub.com/ydah)]\[]) - [#​11485](https://togithub.com/rubocop/rubocop/issues/11485): Fix a false positive for `Lint/UselessAssignment` when using numbered block parameter. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v1.44.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1440-2023-01-23) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.43.0...v1.44.0) ##### New features - [#​11410](https://togithub.com/rubocop/rubocop/issues/11410): Add new `Style/InvertibleUnlessCondition` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​11338](https://togithub.com/rubocop/rubocop/issues/11338): Add new `Style/ComparableClamp` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11350](https://togithub.com/rubocop/rubocop/issues/11350): Make `Lint/DeprecatedClassMethods` aware of deprecated `attr` with boolean 2nd argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11457](https://togithub.com/rubocop/rubocop/pull/11457): Make `Metrics/BlockNesting` aware of pattern matching. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11458](https://togithub.com/rubocop/rubocop/pull/11458): Make `Metrics/CyclomaticComplexity` aware of pattern matching. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​11469](https://togithub.com/rubocop/rubocop/pull/11469): Add `Gemspec/DevelopmentDependencies` cop. (\[[@​sambostock](https://togithub.com/sambostock)]\[]) ##### Bug fixes - [#​

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled because a matching PR was automerged previously.

β™» Rebasing: Whenever PR is behind base branch, 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.

renovate[bot] commented 1 year ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update ('1.55.1'). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.