-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency rubocop to v1.74.0 #80
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0ffc799
to
168a651
Compare
b9be217
to
0279aa7
Compare
0279aa7
to
5434b73
Compare
5434b73
to
860e635
Compare
860e635
to
6a82824
Compare
abcc8d3
to
c0298d9
Compare
c0298d9
to
9ef6c83
Compare
9ef6c83
to
f862ace
Compare
f862ace
to
1401928
Compare
1401928
to
cb6da1d
Compare
f7dee94
to
2cfdc6a
Compare
2cfdc6a
to
4d17c0e
Compare
bukinoshita
approved these changes
Mar 20, 2025
Merge activity
|
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [rubocop](https://rubocop.org/) ([source](https://redirect.github.com/rubocop/rubocop), [changelog](https://redirect.github.com/rubocop/rubocop/releases/tag/v1.74.0)) | `1.68.0` -> `1.74.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>rubocop/rubocop (rubocop)</summary> ### [`v1.74.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1740-2025-03-13) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.73.2...v1.74.0) ##### New features - [#​13936](https://redirect.github.com/rubocop/rubocop/pull/13936): Adds new cop `Style/ComparableBetween`. (\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[]) - [#​13943](https://redirect.github.com/rubocop/rubocop/pull/13943): Allow writing steep annotation to method definition for `Style/CommentedKeyword`. (\[[@​dak2](https://redirect.github.com/dak2)]\[]) ##### Bug fixes - [#​13969](https://redirect.github.com/rubocop/rubocop/issues/13969): Fix a false positive for `Lint/SharedMutableDefault` when `capacity` keyword argument is used. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13945](https://redirect.github.com/rubocop/rubocop/pull/13945): Fix a false positive for `Style/DoubleNegation` when calling `define_method`/`define_singleton_method` with a numblock. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13971](https://redirect.github.com/rubocop/rubocop/pull/13971): Fix false alarm for config obsoletion. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13960](https://redirect.github.com/rubocop/rubocop/pull/13960): Fix a false negative for `Lint/ReturnInVoidContext` when returning out of a block. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13947](https://redirect.github.com/rubocop/rubocop/pull/13947): Fix a false negative for `Lint/UselessConstantScoping` for constants defined in `class << self`. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13949](https://redirect.github.com/rubocop/rubocop/pull/13949): Fix a false negative for `Lint/NonLocalExitFromIterator` with numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13975](https://redirect.github.com/rubocop/rubocop/issues/13975): Fix false positives for `Style/RedundantCurrentDirectoryInPath` when using a complex current directory path in `require_relative`. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13963](https://redirect.github.com/rubocop/rubocop/issues/13963): Fix wrong autocorrect for `Lint/LiteralAsCondition` when the literal is followed by `return`, `break`, or `next`. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13946](https://redirect.github.com/rubocop/rubocop/pull/13946): Fix some false positives for `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: omit_parentheses` style and numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13950](https://redirect.github.com/rubocop/rubocop/pull/13950): Fix sporadic errors about `rubocop-rails` or `rubocop-performance` extraction, even if they are already part of the Gemfile. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13981](https://redirect.github.com/rubocop/rubocop/pull/13981): Prevent redundant plugin loading when a duplicate plugin is specified in an inherited config. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13965](https://redirect.github.com/rubocop/rubocop/issues/13965): Update `Lint/RedundantCopDisableDirective` to register an offense when cop names are given with improper casing. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13948](https://redirect.github.com/rubocop/rubocop/pull/13948): Fix wrong autocorrect for `Style/RescueModifier` when using parallel assignment and the right-hand-side is not a bracketed array. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) ##### Changes - [#​12851](https://redirect.github.com/rubocop/rubocop/issues/12851): Add `EnforcedStyleForClasses` and `EnforcedStyleForModules` configuration options to `Style/ClassAndModuleChildren`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13979](https://redirect.github.com/rubocop/rubocop/pull/13979): Add `Mode: conservative` configuration to `Style/FormatStringToken` to make the cop only register offenses for strings given to `printf`, `sprintf`, `format`, and `%`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13977](https://redirect.github.com/rubocop/rubocop/issues/13977): Allow `TLS1_1` and `TLS1_2` by default in `Naming/VariableNumber` to accommodate OpenSSL version parameter names. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13967](https://redirect.github.com/rubocop/rubocop/pull/13967): Make `Lint/RedundantTypeConversion` aware of redundant `to_d`. (\[[@​koic](https://redirect.github.com/koic)]\[]) ### [`v1.73.2`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1732-2025-03-04) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.73.1...v1.73.2) ##### Bug fixes - [#​13942](https://redirect.github.com/rubocop/rubocop/pull/13942): Fix incorrect disabling of departments when inheriting configuration. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13766](https://redirect.github.com/rubocop/rubocop/issues/13766): Fix false positives for `Style/InverseMethods` when using `any?` or `none?` with safe navigation operator. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13938](https://redirect.github.com/rubocop/rubocop/pull/13938): Fix false positives for `Style/RedundantCondition` when a variable or a constant is used. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13935](https://redirect.github.com/rubocop/rubocop/pull/13935): Fix a false negative for `Style/RedundantFreeze` when calling methods that produce frozen objects with numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13928](https://redirect.github.com/rubocop/rubocop/issues/13928): Fix `end pattern with unmatched parenthesis: / (RegexpError)` on Ruby 3.2.0. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13933](https://redirect.github.com/rubocop/rubocop/issues/13933): Fix wrong autocorrect for `Style/KeywordParametersOrder` when the arguments are on multiple lines and contain comments. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) ##### Changes - [#​12669](https://redirect.github.com/rubocop/rubocop/issues/12669): Update autocorrection for `Lint/EmptyConditionalBody` to be safe. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) ### [`v1.73.1`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1731-2025-02-27) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.73.0...v1.73.1) ##### Bug fixes - [#​13920](https://redirect.github.com/rubocop/rubocop/issues/13920): Fix an error for `Lint/MixedCaseRange` when `/[[ ]]/` is used. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13912](https://redirect.github.com/rubocop/rubocop/pull/13912): Fix wrong autocorrect for `Lint/EmptyConditionalBody` when assigning to a variable with only a single branch. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13913](https://redirect.github.com/rubocop/rubocop/issues/13913): Fix false positives for `Style/RedundantCondition` when using when true is used as the true branch and the condition is not a predicate method. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13909](https://redirect.github.com/rubocop/rubocop/issues/13909): Fix false positive with `Layout/ClosingParenthesisIndentation` when first parameter is a hash. (\[[@​tejasbubane](https://redirect.github.com/tejasbubane)]\[]) - [#​13915](https://redirect.github.com/rubocop/rubocop/pull/13915): Fix writing generics type of rbs-inline annotation for nested class in `Style/CommentedKeyword`. (\[[@​dak2](https://redirect.github.com/dak2)]\[]) - [#​13916](https://redirect.github.com/rubocop/rubocop/issues/13916): Fix `Lint/LiteralAsCondition` acting on the right hand side of && nodes. (\[[@​zopolis4](https://redirect.github.com/zopolis4)]\[]) ### [`v1.73.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1730-2025-02-26) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.72.2...v1.73.0) ##### New features - [#​11024](https://redirect.github.com/rubocop/rubocop/issues/11024): Add `require_always` option to `Style/EndlessMethod`. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​11024](https://redirect.github.com/rubocop/rubocop/issues/11024): Add `require_single_line` option to `Style/EndlessMethod`. (\[[@​jtannas](https://redirect.github.com/jtannas)]\[]) - [#​9935](https://redirect.github.com/rubocop/rubocop/issues/9935): Introduce EnforcedStyleForMultiline "diff_comma". (\[[@​flavorjones](https://redirect.github.com/flavorjones)]\[]) ##### Bug fixes - [#​13867](https://redirect.github.com/rubocop/rubocop/issues/13867): Fix an error for plugins when not running RuboCop through Bundler. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13902](https://redirect.github.com/rubocop/rubocop/pull/13902): Fix false negative for `Style/RedundantSelfAssignment` when the method receives a block. (\[[@​vlad-pisanov](https://redirect.github.com/vlad-pisanov)]\[]) - [#​13826](https://redirect.github.com/rubocop/rubocop/issues/13826): Fix false positives for regex cops when `Lint/MixedCaseRange` is enabled. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13818](https://redirect.github.com/rubocop/rubocop/issues/13818): Fix false positives for `Lint/Void` when using operator method call without argument. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13896](https://redirect.github.com/rubocop/rubocop/pull/13896): Fix a false positive for `Style/TrivialAccessors` with `instance_eval` and numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13910](https://redirect.github.com/rubocop/rubocop/pull/13910): Fix false positives for `Style/EndlessMethod` when using setter method definitions. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13889](https://redirect.github.com/rubocop/rubocop/pull/13889): Fix autocorrection for `Layout/LineLength` with interpolated strings when not on the first line. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13900](https://redirect.github.com/rubocop/rubocop/issues/13900): Fix infinite loop between `Layout/EmptyLinesAroundAccessModifier` and `Layout/EmptyLinesAroundBlockBody` with `EnforcedStyle: no_empty_lines`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​12692](https://redirect.github.com/rubocop/rubocop/issues/12692): Fix `Style/AccessorGrouping` with constants. (\[[@​tejasbubane](https://redirect.github.com/tejasbubane)]\[]) - [#​13882](https://redirect.github.com/rubocop/rubocop/issues/13882): Fix `Style/RedundantFormat` for annotated template strings with missing hash keys. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13880](https://redirect.github.com/rubocop/rubocop/issues/13880): Fix `Style/RedundantFormat` when given double-splatted arguments. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13907](https://redirect.github.com/rubocop/rubocop/pull/13907): Don't offer autocorrect for `Style/StringConcatenation` when numblocks are used. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13876](https://redirect.github.com/rubocop/rubocop/issues/13876): Don't consider `require 'pp'` to be redundant for `Lint/RedundantRequireStatement`. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13885](https://redirect.github.com/rubocop/rubocop/issues/13885): Update `Style/HashExcept` and `Style/HashSlice` to not register an offense if selecting over the hash value. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) ##### Changes - [#​12948](https://redirect.github.com/rubocop/rubocop/issues/12948): Add `ForbiddenNames` configuration to `Naming/VariableName` to specify names that are forbidden. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13117](https://redirect.github.com/rubocop/rubocop/issues/13117): Add partial autocorrect support to `Lint/LiteralAsCondition` cop to check for redundant conditions. (\[[@​zopolis4](https://redirect.github.com/zopolis4)]\[]) - [#​13892](https://redirect.github.com/rubocop/rubocop/pull/13892): Allow merging of configured arrays and non-arrays. (\[[@​sambostock](https://redirect.github.com/sambostock)]\[]) - [#​13833](https://redirect.github.com/rubocop/rubocop/pull/13833): Add `Reference` to common params. (\[[@​sambostock](https://redirect.github.com/sambostock)]\[]) - [#​13890](https://redirect.github.com/rubocop/rubocop/pull/13890): Update `Lint/RedundantTypeConversion` to not register an offense when given a constructor with `exception: false`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13729](https://redirect.github.com/rubocop/rubocop/pull/13729): Update `Style/RedundantCondition` cop to detect conditional expressions where the true branch is `true` and suggest replacing them with a logical OR. (\[[@​datpmt](https://redirect.github.com/datpmt)]\[]) ### [`v1.72.2`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1722-2025-02-17) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.72.1...v1.72.2) ##### Bug fixes - [#​13853](https://redirect.github.com/rubocop/rubocop/pull/13853): Fix exclusion of relative paths in plugin's `AllCops: Exclude` as expected. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13844](https://redirect.github.com/rubocop/rubocop/issues/13844): Fix an error for `Style/RedundantFormat` when a template argument is used without keyword arguments. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13857](https://redirect.github.com/rubocop/rubocop/pull/13857): Fix an error for `Style/RedundantFormat` when numeric placeholders is used in the template argument. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13861](https://redirect.github.com/rubocop/rubocop/issues/13861): Fix `ArgumentError` related to two deprecated `AllowedPattern` APIs. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13849](https://redirect.github.com/rubocop/rubocop/issues/13849): Fix an error for `Lint/UselessConstantScoping` when multiple assigning to constants after `private` access modifier. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13856](https://redirect.github.com/rubocop/rubocop/issues/13856): Fix false positives for `Lint/UselessConstantScoping` when a constant is used after `private` access modifier with arguments. (\[[@​koic](https://redirect.github.com/koic)]\[]) ##### Changes - [#​13846](https://redirect.github.com/rubocop/rubocop/issues/13846): Mark `Style/RedundantFormat` as unsafe autocorrect. (\[[@​koic](https://redirect.github.com/koic)]\[]) ### [`v1.72.1`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1721-2025-02-15) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.72.0...v1.72.1) ##### Bug fixes - [#​13836](https://redirect.github.com/rubocop/rubocop/issues/13836): Fix an error for `Style/RedundantParentheses` when a different expression appears before a range literal. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13839](https://redirect.github.com/rubocop/rubocop/issues/13839): Fix false positives for `Lint/RedundantTypeConversion` when passing block arguments when generating a Hash or a Set. (\[[@​koic](https://redirect.github.com/koic)]\[]) ##### Changes - [#​13839](https://redirect.github.com/rubocop/rubocop/pull/13839): Extension plugin is loaded automatically with \`require 'rubocop/rspec/support'. (\[[@​koic](https://redirect.github.com/koic)]\[]) ### [`v1.72.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1720-2025-02-14) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.71.2...v1.72.0) ##### New features - [#​13740](https://redirect.github.com/rubocop/rubocop/pull/13740): Add new `Lint/CopDirectiveSyntax` cop. (\[[@​kyanagi](https://redirect.github.com/kyanagi)]\[]) - [#​13800](https://redirect.github.com/rubocop/rubocop/issues/13800): Add new `Lint/SuppressedExceptionInNumberConversion` cop. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13702](https://redirect.github.com/rubocop/rubocop/pull/13702): Add new `Lint/RedundantTypeConversion` cop. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13831](https://redirect.github.com/rubocop/rubocop/pull/13831): Add new `Lint/UselessConstantScoping` cop. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13793](https://redirect.github.com/rubocop/rubocop/pull/13793): Add new `Style/RedundantFormat` cop to check for uses of `format` or `sprintf` with only a single string argument. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13581](https://redirect.github.com/rubocop/rubocop/pull/13581): Add new `InternalAffairs/LocationExists` cop to check for code that can be replaced with `Node#loc?` or `Node#loc_is?`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13661](https://redirect.github.com/rubocop/rubocop/issues/13661): Make server mode detect local paths in .rubocop.yml under `inherit_from` and `require` for automatically restart. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13721](https://redirect.github.com/rubocop/rubocop/pull/13721): `Naming/PredicateName`: Optionally use Sorbet to detect predicate methods. (\[[@​issyl0](https://redirect.github.com/issyl0)]\[]) - [#​6012](https://redirect.github.com/rubocop/rubocop/issues/6012): Support RuboCop extension plugin. (\[[@​koic](https://redirect.github.com/koic)]\[]) ##### Bug fixes - [#​13807](https://redirect.github.com/rubocop/rubocop/issues/13807): Fix false negatives for `Style/RedundantParentheses` when chaining `[]` method calls. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13788](https://redirect.github.com/rubocop/rubocop/issues/13788): Fix false negatives for `Style/RedundantParentheses` when `[]` method is called with variable or constant receivers. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13811](https://redirect.github.com/rubocop/rubocop/issues/13811): Fix false negatives for `Style/RedundantParentheses` when handling range literals with redundant parentheses. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13796](https://redirect.github.com/rubocop/rubocop/pull/13796): Fix crash in `Layout/EmptyLinesAroundMethodBody` for endless methods. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13817](https://redirect.github.com/rubocop/rubocop/pull/13817): Fix false positive for format specifier with non-numeric precision. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​12672](https://redirect.github.com/rubocop/rubocop/issues/12672): Fix false positives for `Lint/FormatParameterMismatch` when the width value is interpolated. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​12795](https://redirect.github.com/rubocop/rubocop/issues/12795): Fix `Layout/BlockAlignment` for blocks that are the body of an endless method. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13822](https://redirect.github.com/rubocop/rubocop/pull/13822): Fix undefined method Logger when processing watched file notifications. (\[[@​vinistock](https://redirect.github.com/vinistock)]\[]) - [#​13805](https://redirect.github.com/rubocop/rubocop/pull/13805): Make the language_server-protocol dependency version stricter. (\[[@​koic](https://redirect.github.com/koic)]\[]) ### [`v1.71.2`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1712-2025-02-04) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.71.1...v1.71.2) ##### Bug fixes - [#​13782](https://redirect.github.com/rubocop/rubocop/pull/13782): Fix an error `Layout/ElseAlignment` when `else` is part of a numblock. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13395](https://redirect.github.com/rubocop/rubocop/issues/13395): Fix a false positive for `Lint/UselessAssignment` when assigning in branch and block. (\[[@​pCosta99](https://redirect.github.com/pCosta99)]\[]) - [#​13783](https://redirect.github.com/rubocop/rubocop/pull/13783): Fix a false positive for `Lint/Void` when `each` numblock with conditional expressions that has multiple statements. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13787](https://redirect.github.com/rubocop/rubocop/issues/13787): Fix incorrect autocorrect for `Style/ExplicitBlockArgument` when using arguments of `zsuper` in method definition. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13785](https://redirect.github.com/rubocop/rubocop/pull/13785): Fix `Style/EachWithObject` cop error in case of single block argument. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13781](https://redirect.github.com/rubocop/rubocop/pull/13781): Fix a false positive for `Lint/UnmodifiedReduceAccumulator` when omitting the accumulator in a nested numblock. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) ### [`v1.71.1`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1711-2025-01-31) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.71.0...v1.71.1) ##### Bug fixes - [#​10081](https://redirect.github.com/rubocop/rubocop/issues/10081): Add the missing `include RuboCop::RSpec::ExpectOffense` in rubocop/rspec/support.rb. (\[[@​d4rky-pl](https://redirect.github.com/d4rky-pl)]\[]) - [#​13765](https://redirect.github.com/rubocop/rubocop/pull/13765): Fix a false negative for `Lint/AmbiguousBlockAssociation` with numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13759](https://redirect.github.com/rubocop/rubocop/pull/13759): Fix a false negative for `Lint/ConstantDefinitionInBlock` with numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13741](https://redirect.github.com/rubocop/rubocop/pull/13741): Register an offense for `Naming/BlockForwarding` and `Style/ArgumentsForwarding` with Ruby >= 3.4 when the block argument is referenced inside a block. This was previously disabled because of a bug in Ruby 3.3.0. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13777](https://redirect.github.com/rubocop/rubocop/pull/13777): Fix a false negative for `Layout/EmptyLineBetweenDefs` with `DefLikeMacros` and numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13769](https://redirect.github.com/rubocop/rubocop/pull/13769): Fix a false negative for `Style/RedundantParentheses` with numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13780](https://redirect.github.com/rubocop/rubocop/pull/13780): Fix a false positive `Style/AccessModifierDeclarations` when using access modifier in a numblock. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13775](https://redirect.github.com/rubocop/rubocop/pull/13775): Fix a false positive for `Lint/AssignmentInCondition` when assigning in numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13773](https://redirect.github.com/rubocop/rubocop/pull/13773): Fix false positives for `Layout/RedundantLineBreak` when using numbered block parameter. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13761](https://redirect.github.com/rubocop/rubocop/pull/13761): Fix a false positive for `Style/SuperArguments` when calling super in a numblock. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13768](https://redirect.github.com/rubocop/rubocop/pull/13768): Fix a false positive for `Lint/UnreachableCode` with `instance_eval` numblock. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13750](https://redirect.github.com/rubocop/rubocop/issues/13750): Fix false positives for `Style/RedundantSelfAssignment` when assigning to attribute of `self`. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13739](https://redirect.github.com/rubocop/rubocop/issues/13739): Fix false positive for `Style/HashExcept` and `Style/HashSlice` when checking for inclusion with a range. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13751](https://redirect.github.com/rubocop/rubocop/issues/13751): Fix false positive in `Layout/ExtraSpacing` with `ForceEqualSignAlignment: true` for endless methods. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13767](https://redirect.github.com/rubocop/rubocop/pull/13767): Fix `Style/IdenticalConditionalBranches` autocorrect when condition is inside assignment. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13764](https://redirect.github.com/rubocop/rubocop/pull/13764): Fix a false negative for `Layout/SingleLineBlockChain` with numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13771](https://redirect.github.com/rubocop/rubocop/pull/13771): Fix wrong autocorrect for `Style/SoleNestedConditional` when using numblocks. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) ### [`v1.71.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1710-2025-01-22) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.70.0...v1.71.0) ##### New features - [#​13735](https://redirect.github.com/rubocop/rubocop/pull/13735): Add new `Lint/ArrayLiteralInRegexp` cop. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13507](https://redirect.github.com/rubocop/rubocop/pull/13507): Add new `Style/HashSlice` cop. (\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[]) ##### Bug fixes - [#​13684](https://redirect.github.com/rubocop/rubocop/issues/13684): Fix a false positive for `Style/FrozenStringLiteralComment` when using the frozen string literal magic comment in Active Admin's arb files. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13372](https://redirect.github.com/rubocop/rubocop/issues/13372): Add `rubocop_cache` to the path given by `--cache-root` when pruning cache. (\[[@​capncavedan](https://redirect.github.com/capncavedan)]\[]) - [#​13257](https://redirect.github.com/rubocop/rubocop/issues/13257): Fix department disable/enable comments enabling the cop for the whole file even if that file is excluded by the cop. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13704](https://redirect.github.com/rubocop/rubocop/issues/13704): Fix false positives for `Lint/OutOfRangeRegexpRef` when matching with `match` using safe navigation. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13720](https://redirect.github.com/rubocop/rubocop/issues/13720): Fix false positives for `Style/BlockDelimiters` when using brace blocks as conditions under `EnforcedStyle: semantic`. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13688](https://redirect.github.com/rubocop/rubocop/issues/13688): Fix false negative on `Style/RedundantLineContinuation` when the continuation is preceded by an interpolated string. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13677](https://redirect.github.com/rubocop/rubocop/issues/13677): Fix false negative on `Style/RedundantLineContinuation` when the continuation is followed by a percent array. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13692](https://redirect.github.com/rubocop/rubocop/pull/13692): Fix false positive in `Style/RedundantLineContinuation` when the ruby code ends with a commented continuation. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13675](https://redirect.github.com/rubocop/rubocop/pull/13675): Fix invalid autocorrect for `Style/ArrayFirstLast` when calling `.[]` or `&.[]` with 0 or -1. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13685](https://redirect.github.com/rubocop/rubocop/issues/13685): Fix syntax error introduced by `Lint/SafeNavigationChain` when adding safe navigation to an operator call inside a hash. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13725](https://redirect.github.com/rubocop/rubocop/issues/13725): Fix an incorrect autocorrect for `Style/IfUnlessModifier` when using omitted hash values in an assignment. (\[[@​elliottt](https://redirect.github.com/elliottt)]\[]) - [#​13667](https://redirect.github.com/rubocop/rubocop/issues/13667): Maintain precedence in autocorrect for `Style/SoleNestedConditional`. (\[[@​tejasbubane](https://redirect.github.com/tejasbubane)]\[]) - [#​13679](https://redirect.github.com/rubocop/rubocop/issues/13679): Fix false positive for `Style/RedundantLineContinuation` when calling methods with fully qualified constants. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13728](https://redirect.github.com/rubocop/rubocop/pull/13728): Fix a RuboCop error on provided glob pattern which matches directory. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13693](https://redirect.github.com/rubocop/rubocop/pull/13693): Fix `Style/ConditionalAssignment` cop error on `unless` without `else` and `assign_inside_condition` enforced style. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13669](https://redirect.github.com/rubocop/rubocop/pull/13669): Fix `Style/FrozenStringLiteralComment` cop error on unnormalized magic comment and `never` enforced style. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13696](https://redirect.github.com/rubocop/rubocop/pull/13696): Update `Metrics/CollectionLiteralLength` to only register for `[]` when called on `Set`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) ##### Changes - [#​13709](https://redirect.github.com/rubocop/rubocop/pull/13709): Add support for safe navigation to `Lint/FloatComparison`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13711](https://redirect.github.com/rubocop/rubocop/pull/13711): Add support for safe navigation to `Layout/MultilineMethodCallBraceLayout`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13712](https://redirect.github.com/rubocop/rubocop/pull/13712): Add support for safe navigation to `Layout/MultilineMethodArgumentLineBreaks`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13714](https://redirect.github.com/rubocop/rubocop/pull/13714): Add support for safe navigation to `Security/CompoundHash`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13674](https://redirect.github.com/rubocop/rubocop/pull/13674): Add support for safe navigation to `Style/BlockDelimiters`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13673](https://redirect.github.com/rubocop/rubocop/pull/13673): Add support for safe navigation to `Style/CollectionMethods`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13672](https://redirect.github.com/rubocop/rubocop/pull/13672): Add support for safe navigation to `Style/MapToSet`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13671](https://redirect.github.com/rubocop/rubocop/pull/13671): Add support for safe navigation to `Style/MethodCallWithoutArgsParentheses`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13701](https://redirect.github.com/rubocop/rubocop/pull/13701): Add support for safe navigation to `Lint/NumericOperationWithConstantResult`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13700](https://redirect.github.com/rubocop/rubocop/pull/13700): Add support for safe navigation to `Lint/RedundantStringCoercion`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13698](https://redirect.github.com/rubocop/rubocop/pull/13698): Add support for safe navigation to `Lint/UselessNumericOperation`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13686](https://redirect.github.com/rubocop/rubocop/pull/13686): Add wildcard support to `--show-cops`. (\[[@​kyanagi](https://redirect.github.com/kyanagi)]\[]) - [#​13724](https://redirect.github.com/rubocop/rubocop/pull/13724): Make `Style/RedundantParentheses` aware of parenthesized assignment. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13732](https://redirect.github.com/rubocop/rubocop/pull/13732): Update `Style/RedundantLineContinuation` to handle required continuations following `super`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) ### [`v1.70.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1700-2025-01-10) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.69.2...v1.70.0) ##### New features - [#​13474](https://redirect.github.com/rubocop/rubocop/pull/13474): Add new `Style/ItAssignment` cop to detect local assignments to `it` inside blocks. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​11013](https://redirect.github.com/rubocop/rubocop/issues/11013): Add new `Lint/SharedMutableDefault` cop to alert on mutable Hash defaults. (\[[@​corsonknowles](https://redirect.github.com/corsonknowles)]\[]) - [#​13612](https://redirect.github.com/rubocop/rubocop/pull/13612): Create new cop `Lint/ConstantReassignment`. (\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[]) - [#​13628](https://redirect.github.com/rubocop/rubocop/pull/13628): Make LSP server support quick fix code action. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13607](https://redirect.github.com/rubocop/rubocop/pull/13607): Support passing the target ruby version through an environment variable. (\[[@​elliottt](https://redirect.github.com/elliottt)]\[]) - [#​13628](https://redirect.github.com/rubocop/rubocop/pull/13628): Add support for Ruby LSP as a built-in add-on. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13284](https://redirect.github.com/rubocop/rubocop/issues/13284): Add new `target_gem_version` API to change behavior of a cop at runtime depending on which gem version is present. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) ##### Bug fixes - [#​13589](https://redirect.github.com/rubocop/rubocop/pull/13589): Fix `Lint/NonAtomicFileOperation` to detect offenses with fully qualified constants. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13630](https://redirect.github.com/rubocop/rubocop/pull/13630): Fix CLI `--format` option to accept fully qualified formatter class names. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13624](https://redirect.github.com/rubocop/rubocop/pull/13624): Don't show warnings from `Lint/Syntax` when a syntax error occurs. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13605](https://redirect.github.com/rubocop/rubocop/pull/13605): Fix `RuboCop::Cop::Util.to_string_literal` to work correctly with frozen strings. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​12393](https://redirect.github.com/rubocop/rubocop/issues/12393): Fix false negatives for `Lint/Void` inside of non-modifier conditionals. (\[[@​GabeIsman](https://redirect.github.com/GabeIsman)]\[]) - [#​13623](https://redirect.github.com/rubocop/rubocop/issues/13623): Fix false negatives for `Style/MultipleComparison` when setting `AllowMethodComparison: false` and comparing with simple method calls. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13644](https://redirect.github.com/rubocop/rubocop/pull/13644): Fix a false positive for `Layout/EmptyLinesAroundAccessModifier` when an access modifier and an expression are on the same line. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13645](https://redirect.github.com/rubocop/rubocop/issues/13645): Fix a false positive for `Style/MethodCallWithArgsParentheses` when setting `EnforcedStyle: omit_parentheses` and last argument is an endless range. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13614](https://redirect.github.com/rubocop/rubocop/issues/13614): Fix false positives for `Style/RaiseArgs` with anonymous splat and triple dot forwarding. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13591](https://redirect.github.com/rubocop/rubocop/pull/13591): Fix false positives for `Lint/NestedMethodDefinition` when defining a method on a constant or a method call. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13594](https://redirect.github.com/rubocop/rubocop/pull/13594): Fix false positives for `Style/MultipleComparison` when using multiple safe navigation method calls. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13654](https://redirect.github.com/rubocop/rubocop/pull/13654): Fix false positives for `Style/RedundantInitialize` when empty initialize method has arguments. (\[[@​marocchino](https://redirect.github.com/marocchino)]\[]) - [#​13608](https://redirect.github.com/rubocop/rubocop/pull/13608): Fix crash when running `rubocop -d` on a config with a remote `inherit_from` that causes a duplicate setting warning. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​12430](https://redirect.github.com/rubocop/rubocop/issues/12430): Fix false negatives in `Style/RedundantLineContinuation` with multiple line continuations. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13638](https://redirect.github.com/rubocop/rubocop/pull/13638): Fix false positive for `Naming/BlockForwarding` when method just returns the block argument. (\[[@​mvz](https://redirect.github.com/mvz)]\[]) - [#​13599](https://redirect.github.com/rubocop/rubocop/issues/13599): Fix incorrect autocorrect for `Layout/HashAlignment` when there is a multiline positional argument and `Layout/ArgumentAlignment` is configured with `EnforcedStyle: with_fixed_indentation`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13586](https://redirect.github.com/rubocop/rubocop/issues/13586): Fix regression in `Layout/SpaceAroundOperators` when different comparison operators were aligned with each other. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13603](https://redirect.github.com/rubocop/rubocop/pull/13603): Fix `Lint/LiteralInInterpolation` cop error on invalid string literal. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13582](https://redirect.github.com/rubocop/rubocop/pull/13582): Fix `Lint/NonAtomicFileOperation` cop error on non-constant receiver. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13598](https://redirect.github.com/rubocop/rubocop/pull/13598): Fix `Lint/Void` cop error on `if` without body. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13634](https://redirect.github.com/rubocop/rubocop/pull/13634): Fix `Style/ClassAndModuleChildren` cop error on `compact` enforced style and unindented body. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13642](https://redirect.github.com/rubocop/rubocop/pull/13642): Fix `Style/FloatDivision` cop error if `#to_f` has implicit receiver. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13517](https://redirect.github.com/rubocop/rubocop/pull/13517): Fixes `Style/HashExcept` to recognize safe navigation when `ActiveSupportExtensionsEnabled` config is enabled. (\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[]) - [#​13585](https://redirect.github.com/rubocop/rubocop/pull/13585): Fix `Style/HashSyntax` cop error on implicit `call` method. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13632](https://redirect.github.com/rubocop/rubocop/pull/13632): Fix `Style/MissingElse` cop error if `Style/EmptyElse`'s `EnforcedStyle` is not `both` and `if` expression contains `elsif`. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13659](https://redirect.github.com/rubocop/rubocop/pull/13659): Fix `Style/MissingElse` cop error if `Style/EmptyElse`'s `EnforcedStyle` is not `both` and `if` expression contains multiple `elsif`. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13596](https://redirect.github.com/rubocop/rubocop/pull/13596): Fix `Style/RedundantCondition` cop error on parentheses and modifier `if` in `else`. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13616](https://redirect.github.com/rubocop/rubocop/pull/13616): Fix incorrect autocorrect for `Style/RedundantRegexpArgument` when the regex contains a single quote. (\[[@​mrzasa](https://redirect.github.com/mrzasa)]\[]) - [#​13619](https://redirect.github.com/rubocop/rubocop/pull/13619): Fix `Style/YodaExpression` cop error in case of suffix form of operator. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13578](https://redirect.github.com/rubocop/rubocop/issues/13578): Update `Layout/LineContinuationSpacing` to ignore continuations inside a `regexp` or `xstr`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13601](https://redirect.github.com/rubocop/rubocop/issues/13601): Update `Style/SuperArguments` to handle `super` with a block or with a chained method with a block. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13568](https://redirect.github.com/rubocop/rubocop/pull/13568): Fix `NoMethodError` in `ConfigValidator` when a Cop's config is not a `Hash` and raise `ValidationError` instead. (\[[@​amomchilov](https://redirect.github.com/amomchilov)]\[]) ##### Changes - [#​13665](https://redirect.github.com/rubocop/rubocop/pull/13665): Add support for safe navigation to `Style/ObjectThen`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13657](https://redirect.github.com/rubocop/rubocop/pull/13657): Add support for safe navigation to `Layout/HashAlignment`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13656](https://redirect.github.com/rubocop/rubocop/pull/13656): Add support for safe navigation to `Layout/HeredocArgumentClosingParenthesis`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13655](https://redirect.github.com/rubocop/rubocop/pull/13655): Add support for safe navigation to `Layout/LineLength`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13662](https://redirect.github.com/rubocop/rubocop/pull/13662): Add support for safe navigation to `Style/SendWithLiteralMethodName`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13557](https://redirect.github.com/rubocop/rubocop/issues/13557): Fix false positives for `Lint/NumericOperationWithConstantResult`. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13658](https://redirect.github.com/rubocop/rubocop/pull/13658): Fix invalid autocorrect for `Style/SlicingWithRange` when calling `.[]` or `&.[]` with a correctable range. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13548](https://redirect.github.com/rubocop/rubocop/pull/13548): Enhance `Lint/DuplicateSetElement` to detect offences within `SortedSet`. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13646](https://redirect.github.com/rubocop/rubocop/pull/13646): Update `Layout/TrailingWhitespace` to support blank characters other than space and tab. (\[[@​krororo](https://redirect.github.com/krororo)]\[]) - [#​13652](https://redirect.github.com/rubocop/rubocop/pull/13652): Update `Metrics/MethodLength` to make use of `AllowedMethods` and `AllowedPatterns` for methods defined dynamically with `define_method`. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13606](https://redirect.github.com/rubocop/rubocop/issues/13606): Update `Style/AccessModifierDeclarations` to add `AllowModifiersOnAliasMethod` configuration (default `true`). (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13663](https://redirect.github.com/rubocop/rubocop/pull/13663): Update `Style/RedundantSelfAssignment` to handle safe navigation on the right-hand side of the assignment. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) ### [`v1.69.2`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1692-2024-12-12) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.69.1...v1.69.2) ##### Bug fixes - [#​13553](https://redirect.github.com/rubocop/rubocop/issues/13553): Fix an incorrect autocorrect for `Style/MultipleComparison` when a variable is compared multiple times after a method call. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13562](https://redirect.github.com/rubocop/rubocop/pull/13562): Fix `Bundler/DuplicatedGem` cop error in case of empty branch. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13573](https://redirect.github.com/rubocop/rubocop/pull/13573): Fix `Lint/UnescapedBracketInRegexp` cop failure with invalid multibyte escape. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13556](https://redirect.github.com/rubocop/rubocop/issues/13556): Fix false positives for `Style/FileNull` when using `'nul'` string. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​12995](https://redirect.github.com/rubocop/rubocop/issues/12995): Fix `--disable-uncorrectable` to not insert directives inside a string. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13320](https://redirect.github.com/rubocop/rubocop/issues/13320): Fix incorrect autocorrect when `Layout/LineContinuationLeadingSpace` and `Style/StringLiterals` autocorrects in the same pass. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13299](https://redirect.github.com/rubocop/rubocop/issues/13299): Fix `Style/BlockDelimiters` to always accept braces when an operator method argument is chained. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13565](https://redirect.github.com/rubocop/rubocop/pull/13565): Fix `Style/RedundantLineContinuation` false negatives when a redundant continuation follows a required continuation. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13551](https://redirect.github.com/rubocop/rubocop/pull/13551): Fix an incorrect autocorrect for `Style/IfWithSemicolon` when using multi value assignment in `if` with a semicolon is used. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13534](https://redirect.github.com/rubocop/rubocop/pull/13534): Fix `Layout/LineLength` cop failure in case of YARD-comment-like string. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13558](https://redirect.github.com/rubocop/rubocop/pull/13558): Fix `Lint/NonAtomicFileOperation` cop error in case of implicit receiver. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13564](https://redirect.github.com/rubocop/rubocop/pull/13564): Fix `Metrics/ClassLength` cop error in case of chained assignments. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13570](https://redirect.github.com/rubocop/rubocop/pull/13570): Fix `Naming/RescuedExceptionsVariableName` cop error when exception is assigned with writer method. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13559](https://redirect.github.com/rubocop/rubocop/pull/13559): Fix a false positive for `Style/RedundantLineContinuation` when a method definition is used as an argument for a method call. (\[[@​davidrunger](https://redirect.github.com/davidrunger)]\[]) - [#​13574](https://redirect.github.com/rubocop/rubocop/pull/13574): Fix `Style/ExactRegexpMatch` cop error on invalid regular expression literal. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13554](https://redirect.github.com/rubocop/rubocop/pull/13554): Fix `Style/FrozenStringLiteralComment` false positive in case of non-downcased value literal. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13569](https://redirect.github.com/rubocop/rubocop/pull/13569): Fix `Style/MethodCallWithoutArgsParentheses` cop error in case of mass hash assignment. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13542](https://redirect.github.com/rubocop/rubocop/pull/13542): Fix `Style/RedundantCondition` cop failure in case of empty arguments. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13509](https://redirect.github.com/rubocop/rubocop/issues/13509): Update `Layout/ExtraSpacing` and `Layout/SpaceAroundOperators` to handle preceding operators inside strings. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) ### [`v1.69.1`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1691-2024-12-03) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.69.0...v1.69.1) ##### Bug fixes - [#​13502](https://redirect.github.com/rubocop/rubocop/issues/13502): Fix an incorrect autocorrect for `Style/DigChain` when using safe navigation method chain with `dig` method. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13505](https://redirect.github.com/rubocop/rubocop/issues/13505): Fix an error for `Style/ParallelAssignment` when using the anonymous splat operator. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) - [#​13184](https://redirect.github.com/rubocop/rubocop/pull/13184): Fix some false positives in `Lint/UnreachableCode`. (\[[@​isuckatcs](https://redirect.github.com/isuckatcs)]\[]) - [#​13494](https://redirect.github.com/rubocop/rubocop/pull/13494): Fix false positives for `Style/HashExcept` cop when using `reject/!include?`, `reject/!in?` or `select/!exclude?` combinations. (\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[]) - [#​13522](https://redirect.github.com/rubocop/rubocop/pull/13522): Fix `Lint/UnescapedBracketInRegexp` cop failure with invalid regular expression. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13523](https://redirect.github.com/rubocop/rubocop/pull/13523): Fix `Style::AccessModifierDeclarations` cop failure in case of `if` node without `else`. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13524](https://redirect.github.com/rubocop/rubocop/pull/13524): Fix `Style/RedundantArgument` cop failure while inspecting string literal with invalid encoding. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13528](https://redirect.github.com/rubocop/rubocop/pull/13528): Fix `Style/RedundantParentheses` cop failure in case of splatted `case` node without condition. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13521](https://redirect.github.com/rubocop/rubocop/pull/13521): Fix `Style/RedundantSelf` cop failure with `kwnilarg` argument node. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13526](https://redirect.github.com/rubocop/rubocop/pull/13526): Fix `Style/StringConcatenation` cop failure when there are mixed implicit and explicit concatenations. (\[[@​viralpraxis](https://redirect.github.com/viralpraxis)]\[]) - [#​13511](https://redirect.github.com/rubocop/rubocop/issues/13511): Fix false positive in `Lint/UnescapedBracketInRegexp` when using regexp_parser 2.9.2 and earlier. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13096](https://redirect.github.com/rubocop/rubocop/issues/13096): Update `Style/BlockDelimiters` to not change braces when they are required for syntax. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13512](https://redirect.github.com/rubocop/rubocop/pull/13512): Update `Style/LambdaCall` to be aware of safe navigation. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) ### [`v1.69.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1690-2024-11-26) [Compare Source](https://redirect.github.com/rubocop/rubocop/compare/v1.68.0...v1.69.0) ##### New features - [#​13439](https://redirect.github.com/rubocop/rubocop/pull/13439): Add new `Lint/HashNewWithKeywordArgumentsAsDefault` cop. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​11191](https://redirect.github.com/rubocop/rubocop/issues/11191): Add new `Lint/NumericOperationWithConstantResult` cop. (\[[@​zopolis4](https://redirect.github.com/zopolis4)]\[]) - [#​13486](https://redirect.github.com/rubocop/rubocop/issues/13486): Add new `Style/DigChain` cop. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13490](https://redirect.github.com/rubocop/rubocop/issues/13490): Add new `Style/FileNull` cop. (\[[@​dvandersluis](https://redirect.github.com/dvandersluis)]\[]) - [#​13484](https://redirect.github.com/rubocop/rubocop/pull/13484): Add new `Style/FileTouch` cop. (\[[@​lovro-bikic](https://redirect.github.com/lovro-bikic)]\[]) - [#​13437](https://redirect.github.com/rubocop/rubocop/issues/13437): Add a new cop `Lint/UselessDefined` to detect cases such as `defined?('Foo')` when `defined?(Foo)` was intended. (\[[@​earlopain](https://redirect.github.com/earlopain)]\[]) ##### Bug fixes - [#​13455](https://redirect.github.com/rubocop/rubocop/pull/13455): Fix a false positive for `Layout/EmptyLineAfterGuardClause` when using a guard clause outside oneliner block. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13412](https://redirect.github.com/rubocop/rubocop/issues/13412): Fix a false positive for `Style/RedundantLineContinuation` when there is a line continuation at the end of Ruby code followed by `__END__` data. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13476](https://redirect.github.com/rubocop/rubocop/pull/13476): Allow to write generics type of RBS::Inline annotation after subclass definition in `Style/CommentedKeyword`. (\[[@​dak2](https://redirect.github.com/dak2)]\[]) - [#​13441](https://redirect.github.com/rubocop/rubocop/pull/13441): Fix an incorrect autocorrect for `Style/IfWithSemicolon` when using `return` with value in `if` with a semicolon is used. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13448](https://redirect.github.com/rubocop/rubocop/pull/13448): Fix an incorrect autocorrect for `Style/IfWithSemicolon` when the then body contains an arithmetic operator method call with an argument. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13199](https://redirect.github.com/rubocop/rubocop/issues/13199): Make `Style/RedundantCondition` skip autocorrection when a branch has a comment. (\[[@​koic](https://redirect.github.com/koic)]\[]) - [#​13411](https://redirect.github.com/rubocop/rubocop/pull/13411): Fix `Style/BitwisePredicate` when having regular method. (\[[@​d4be4st](https://redirect.github.com/d4be4st)]\[]) - [#​13432](https://redirect.github.com/rubocop/rubocop/pull/13432): Fix false positive for `L </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/resend/resend-ruby). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTk0LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
4d17c0e
to
041e1bc
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.68.0
->1.74.0
Release Notes
rubocop/rubocop (rubocop)
v1.74.0
Compare Source
New features
Style/ComparableBetween
. ([@lovro-bikic][])Style/CommentedKeyword
. ([@dak2][])Bug fixes
Lint/SharedMutableDefault
whencapacity
keyword argument is used. ([@koic][])Style/DoubleNegation
when callingdefine_method
/define_singleton_method
with a numblock. ([@earlopain][])Lint/ReturnInVoidContext
when returning out of a block. ([@earlopain][])Lint/UselessConstantScoping
for constants defined inclass << self
. ([@earlopain][])Lint/NonLocalExitFromIterator
with numblocks. ([@earlopain][])Style/RedundantCurrentDirectoryInPath
when using a complex current directory path inrequire_relative
. ([@koic][])Lint/LiteralAsCondition
when the literal is followed byreturn
,break
, ornext
. ([@earlopain][])Style/MethodCallWithArgsParentheses
withEnforcedStyle: omit_parentheses
style and numblocks. ([@earlopain][])rubocop-rails
orrubocop-performance
extraction, even if they are already part of the Gemfile. ([@earlopain][])Lint/RedundantCopDisableDirective
to register an offense when cop names are given with improper casing. ([@dvandersluis][])Style/RescueModifier
when using parallel assignment and the right-hand-side is not a bracketed array. ([@earlopain][])Changes
EnforcedStyleForClasses
andEnforcedStyleForModules
configuration options toStyle/ClassAndModuleChildren
. ([@dvandersluis][])Mode: conservative
configuration toStyle/FormatStringToken
to make the cop only register offenses for strings given toprintf
,sprintf
,format
, and%
. ([@dvandersluis][])TLS1_1
andTLS1_2
by default inNaming/VariableNumber
to accommodate OpenSSL version parameter names. ([@koic][])Lint/RedundantTypeConversion
aware of redundantto_d
. ([@koic][])v1.73.2
Compare Source
Bug fixes
Style/InverseMethods
when usingany?
ornone?
with safe navigation operator. ([@koic][])Style/RedundantCondition
when a variable or a constant is used. ([@koic][])Style/RedundantFreeze
when calling methods that produce frozen objects with numblocks. ([@earlopain][])end pattern with unmatched parenthesis: / (RegexpError)
on Ruby 3.2.0. ([@dvandersluis][])Style/KeywordParametersOrder
when the arguments are on multiple lines and contain comments. ([@earlopain][])Changes
Lint/EmptyConditionalBody
to be safe. ([@dvandersluis][])v1.73.1
Compare Source
Bug fixes
Lint/MixedCaseRange
when/[[ ]]/
is used. ([@koic][])Lint/EmptyConditionalBody
when assigning to a variable with only a single branch. ([@earlopain][])Style/RedundantCondition
when using when true is used as the true branch and the condition is not a predicate method. ([@koic][])Layout/ClosingParenthesisIndentation
when first parameter is a hash. ([@tejasbubane][])Style/CommentedKeyword
. ([@dak2][])Lint/LiteralAsCondition
acting on the right hand side of && nodes. ([@zopolis4][])v1.73.0
Compare Source
New features
require_always
option toStyle/EndlessMethod
. ([@koic][])require_single_line
option toStyle/EndlessMethod
. ([@jtannas][])Bug fixes
Style/RedundantSelfAssignment
when the method receives a block. ([@vlad-pisanov][])Lint/MixedCaseRange
is enabled. ([@earlopain][])Lint/Void
when using operator method call without argument. ([@koic][])Style/TrivialAccessors
withinstance_eval
and numblocks. ([@earlopain][])Style/EndlessMethod
when using setter method definitions. ([@koic][])Layout/LineLength
with interpolated strings when not on the first line. ([@dvandersluis][])Layout/EmptyLinesAroundAccessModifier
andLayout/EmptyLinesAroundBlockBody
withEnforcedStyle: no_empty_lines
. ([@dvandersluis][])Style/AccessorGrouping
with constants. ([@tejasbubane][])Style/RedundantFormat
for annotated template strings with missing hash keys. ([@dvandersluis][])Style/RedundantFormat
when given double-splatted arguments. ([@dvandersluis][])Style/StringConcatenation
when numblocks are used. ([@earlopain][])require 'pp'
to be redundant forLint/RedundantRequireStatement
. ([@earlopain][])Style/HashExcept
andStyle/HashSlice
to not register an offense if selecting over the hash value. ([@dvandersluis][])Changes
ForbiddenNames
configuration toNaming/VariableName
to specify names that are forbidden. ([@dvandersluis][])Lint/LiteralAsCondition
cop to check for redundant conditions. ([@zopolis4][])Reference
to common params. ([@sambostock][])Lint/RedundantTypeConversion
to not register an offense when given a constructor withexception: false
. ([@dvandersluis][])Style/RedundantCondition
cop to detect conditional expressions where the true branch istrue
and suggest replacing them with a logical OR. ([@datpmt][])v1.72.2
Compare Source
Bug fixes
AllCops: Exclude
as expected. ([@koic][])Style/RedundantFormat
when a template argument is used without keyword arguments. ([@koic][])Style/RedundantFormat
when numeric placeholders is used in the template argument. ([@koic][])ArgumentError
related to two deprecatedAllowedPattern
APIs. ([@koic][])Lint/UselessConstantScoping
when multiple assigning to constants afterprivate
access modifier. ([@koic][])Lint/UselessConstantScoping
when a constant is used afterprivate
access modifier with arguments. ([@koic][])Changes
Style/RedundantFormat
as unsafe autocorrect. ([@koic][])v1.72.1
Compare Source
Bug fixes
Style/RedundantParentheses
when a different expression appears before a range literal. ([@koic][])Lint/RedundantTypeConversion
when passing block arguments when generating a Hash or a Set. ([@koic][])Changes
v1.72.0
Compare Source
New features
Lint/CopDirectiveSyntax
cop. ([@kyanagi][])Lint/SuppressedExceptionInNumberConversion
cop. ([@koic][])Lint/RedundantTypeConversion
cop. ([@dvandersluis][])Lint/UselessConstantScoping
cop. ([@koic][])Style/RedundantFormat
cop to check for uses offormat
orsprintf
with only a single string argument. ([@dvandersluis][])InternalAffairs/LocationExists
cop to check for code that can be replaced withNode#loc?
orNode#loc_is?
. ([@dvandersluis][])inherit_from
andrequire
for automatically restart. ([@koic][])Naming/PredicateName
: Optionally use Sorbet to detect predicate methods. ([@issyl0][])Bug fixes
Style/RedundantParentheses
when chaining[]
method calls. ([@koic][])Style/RedundantParentheses
when[]
method is called with variable or constant receivers. ([@koic][])Style/RedundantParentheses
when handling range literals with redundant parentheses. ([@koic][])Layout/EmptyLinesAroundMethodBody
for endless methods. ([@dvandersluis][])Lint/FormatParameterMismatch
when the width value is interpolated. ([@dvandersluis][])Layout/BlockAlignment
for blocks that are the body of an endless method. ([@dvandersluis][])v1.71.2
Compare Source
Bug fixes
Layout/ElseAlignment
whenelse
is part of a numblock. ([@earlopain][])Lint/UselessAssignment
when assigning in branch and block. ([@pCosta99][])Lint/Void
wheneach
numblock with conditional expressions that has multiple statements. ([@earlopain][])Style/ExplicitBlockArgument
when using arguments ofzsuper
in method definition. ([@koic][])Style/EachWithObject
cop error in case of single block argument. ([@viralpraxis][])Lint/UnmodifiedReduceAccumulator
when omitting the accumulator in a nested numblock. ([@earlopain][])v1.71.1
Compare Source
Bug fixes
include RuboCop::RSpec::ExpectOffense
in rubocop/rspec/support.rb. ([@d4rky-pl][])Lint/AmbiguousBlockAssociation
with numblocks. ([@earlopain][])Lint/ConstantDefinitionInBlock
with numblocks. ([@earlopain][])Naming/BlockForwarding
andStyle/ArgumentsForwarding
with Ruby >= 3.4 when the block argument is referenced inside a block. This was previously disabled because of a bug in Ruby 3.3.0. ([@earlopain][])Layout/EmptyLineBetweenDefs
withDefLikeMacros
and numblocks. ([@earlopain][])Style/RedundantParentheses
with numblocks. ([@earlopain][])Style/AccessModifierDeclarations
when using access modifier in a numblock. ([@earlopain][])Lint/AssignmentInCondition
when assigning in numblocks. ([@earlopain][])Layout/RedundantLineBreak
when using numbered block parameter. ([@koic][])Style/SuperArguments
when calling super in a numblock. ([@earlopain][])Lint/UnreachableCode
withinstance_eval
numblock. ([@earlopain][])Style/RedundantSelfAssignment
when assigning to attribute ofself
. ([@koic][])Style/HashExcept
andStyle/HashSlice
when checking for inclusion with a range. ([@dvandersluis][])Layout/ExtraSpacing
withForceEqualSignAlignment: true
for endless methods. ([@dvandersluis][])Style/IdenticalConditionalBranches
autocorrect when condition is inside assignment. ([@dvandersluis][])Layout/SingleLineBlockChain
with numblocks. ([@earlopain][])Style/SoleNestedConditional
when using numblocks. ([@earlopain][])v1.71.0
Compare Source
New features
Lint/ArrayLiteralInRegexp
cop. ([@dvandersluis][])Style/HashSlice
cop. ([@lovro-bikic][])Bug fixes
Style/FrozenStringLiteralComment
when using the frozen string literal magic comment in Active Admin's arb files. ([@koic][])rubocop_cache
to the path given by--cache-root
when pruning cache. ([@capncavedan][])Lint/OutOfRangeRegexpRef
when matching withmatch
using safe navigation. ([@koic][])Style/BlockDelimiters
when using brace blocks as conditions underEnforcedStyle: semantic
. ([@koic][])Style/RedundantLineContinuation
when the continuation is preceded by an interpolated string. ([@dvandersluis][])Style/RedundantLineContinuation
when the continuation is followed by a percent array. ([@dvandersluis][])Style/RedundantLineContinuation
when the ruby code ends with a commented continuation. ([@dvandersluis][])Style/ArrayFirstLast
when calling.[]
or&.[]
with 0 or -1. ([@dvandersluis][])Lint/SafeNavigationChain
when adding safe navigation to an operator call inside a hash. ([@dvandersluis][])Style/IfUnlessModifier
when using omitted hash values in an assignment. ([@elliottt][])Style/SoleNestedConditional
. ([@tejasbubane][])Style/RedundantLineContinuation
when calling methods with fully qualified constants. ([@earlopain][])Style/ConditionalAssignment
cop error onunless
withoutelse
andassign_inside_condition
enforced style. ([@viralpraxis][])Style/FrozenStringLiteralComment
cop error on unnormalized magic comment andnever
enforced style. ([@viralpraxis][])Metrics/CollectionLiteralLength
to only register for[]
when called onSet
. ([@dvandersluis][])Changes
Lint/FloatComparison
. ([@dvandersluis][])Layout/MultilineMethodCallBraceLayout
. ([@dvandersluis][])Layout/MultilineMethodArgumentLineBreaks
. ([@dvandersluis][])Security/CompoundHash
. ([@dvandersluis][])Style/BlockDelimiters
. ([@dvandersluis][])Style/CollectionMethods
. ([@dvandersluis][])Style/MapToSet
. ([@dvandersluis][])Style/MethodCallWithoutArgsParentheses
. ([@dvandersluis][])Lint/NumericOperationWithConstantResult
. ([@dvandersluis][])Lint/RedundantStringCoercion
. ([@dvandersluis][])Lint/UselessNumericOperation
. ([@dvandersluis][])--show-cops
. ([@kyanagi][])Style/RedundantParentheses
aware of parenthesized assignment. ([@koic][])Style/RedundantLineContinuation
to handle required continuations followingsuper
. ([@dvandersluis][])v1.70.0
Compare Source
New features
Style/ItAssignment
cop to detect local assignments toit
inside blocks. ([@dvandersluis][])Lint/SharedMutableDefault
cop to alert on mutable Hash defaults. ([@corsonknowles][])Lint/ConstantReassignment
. ([@lovro-bikic][])target_gem_version
API to change behavior of a cop at runtime depending on which gem version is present. ([@earlopain][])Bug fixes
Lint/NonAtomicFileOperation
to detect offenses with fully qualified constants. ([@viralpraxis][])--format
option to accept fully qualified formatter class names. ([@viralpraxis][])Lint/Syntax
when a syntax error occurs. ([@earlopain][])RuboCop::Cop::Util.to_string_literal
to work correctly with frozen strings. ([@viralpraxis][])Lint/Void
inside of non-modifier conditionals. ([@GabeIsman][])Style/MultipleComparison
when settingAllowMethodComparison: false
and comparing with simple method calls. ([@koic][])Layout/EmptyLinesAroundAccessModifier
when an access modifier and an expression are on the same line. ([@koic][])Style/MethodCallWithArgsParentheses
when settingEnforcedStyle: omit_parentheses
and last argument is an endless range. ([@earlopain][])Style/RaiseArgs
with anonymous splat and triple dot forwarding. ([@earlopain][])Lint/NestedMethodDefinition
when defining a method on a constant or a method call. ([@koic][])Style/MultipleComparison
when using multiple safe navigation method calls. ([@koic][])Style/RedundantInitialize
when empty initialize method has arguments. ([@marocchino][])rubocop -d
on a config with a remoteinherit_from
that causes a duplicate setting warning. ([@dvandersluis][])Style/RedundantLineContinuation
with multiple line continuations. ([@dvandersluis][])Naming/BlockForwarding
when method just returns the block argument. ([@mvz][])Layout/HashAlignment
when there is a multiline positional argument andLayout/ArgumentAlignment
is configured withEnforcedStyle: with_fixed_indentation
. ([@dvandersluis][])Layout/SpaceAroundOperators
when different comparison operators were aligned with each other. ([@dvandersluis][])Lint/LiteralInInterpolation
cop error on invalid string literal. ([@viralpraxis][])Lint/NonAtomicFileOperation
cop error on non-constant receiver. ([@viralpraxis][])Lint/Void
cop error onif
without body. ([@viralpraxis][])Style/ClassAndModuleChildren
cop error oncompact
enforced style and unindented body. ([@viralpraxis][])Style/FloatDivision
cop error if#to_f
has implicit receiver. ([@viralpraxis][])Style/HashExcept
to recognize safe navigation whenActiveSupportExtensionsEnabled
config is enabled. ([@lovro-bikic][])Style/HashSyntax
cop error on implicitcall
method. ([@viralpraxis][])Style/MissingElse
cop error ifStyle/EmptyElse
'sEnforcedStyle
is notboth
andif
expression containselsif
. ([@viralpraxis][])Style/MissingElse
cop error ifStyle/EmptyElse
'sEnforcedStyle
is notboth
andif
expression contains multipleelsif
. ([@viralpraxis][])Style/RedundantCondition
cop error on parentheses and modifierif
inelse
. ([@viralpraxis][])Style/RedundantRegexpArgument
when the regex contains a single quote. ([@mrzasa][])Style/YodaExpression
cop error in case of suffix form of operator. ([@viralpraxis][])Layout/LineContinuationSpacing
to ignore continuations inside aregexp
orxstr
. ([@dvandersluis][])Style/SuperArguments
to handlesuper
with a block or with a chained method with a block. ([@dvandersluis][])NoMethodError
inConfigValidator
when a Cop's config is not aHash
and raiseValidationError
instead. ([@amomchilov][])Changes
Style/ObjectThen
. ([@dvandersluis][])Layout/HashAlignment
. ([@dvandersluis][])Layout/HeredocArgumentClosingParenthesis
. ([@dvandersluis][])Layout/LineLength
. ([@dvandersluis][])Style/SendWithLiteralMethodName
. ([@dvandersluis][])Lint/NumericOperationWithConstantResult
. ([@earlopain][])Style/SlicingWithRange
when calling.[]
or&.[]
with a correctable range. ([@dvandersluis][])Lint/DuplicateSetElement
to detect offences withinSortedSet
. ([@viralpraxis][])Layout/TrailingWhitespace
to support blank characters other than space and tab. ([@krororo][])Metrics/MethodLength
to make use ofAllowedMethods
andAllowedPatterns
for methods defined dynamically withdefine_method
. ([@dvandersluis][])Style/AccessModifierDeclarations
to addAllowModifiersOnAliasMethod
configuration (defaulttrue
). ([@dvandersluis][])Style/RedundantSelfAssignment
to handle safe navigation on the right-hand side of the assignment. ([@dvandersluis][])v1.69.2
Compare Source
Bug fixes
Style/MultipleComparison
when a variable is compared multiple times after a method call. ([@koic][])Bundler/DuplicatedGem
cop error in case of empty branch. ([@viralpraxis][])Lint/UnescapedBracketInRegexp
cop failure with invalid multibyte escape. ([@earlopain][])Style/FileNull
when using'nul'
string. ([@koic][])--disable-uncorrectable
to not insert directives inside a string. ([@dvandersluis][])Layout/LineContinuationLeadingSpace
andStyle/StringLiterals
autocorrects in the same pass. ([@dvandersluis][])Style/BlockDelimiters
to always accept braces when an operator method argument is chained. ([@dvandersluis][])Style/RedundantLineContinuation
false negatives when a redundant continuation follows a required continuation. ([@dvandersluis][])Style/IfWithSemicolon
when using multi value assignment inif
with a semicolon is used. ([@koic][])Layout/LineLength
cop failure in case of YARD-comment-like string. ([@viralpraxis][])Lint/NonAtomicFileOperation
cop error in case of implicit receiver. ([@viralpraxis][])Metrics/ClassLength
cop error in case of chained assignments. ([@viralpraxis][])Naming/RescuedExceptionsVariableName
cop error when exception is assigned with writer method. ([@viralpraxis][])Style/RedundantLineContinuation
when a method definition is used as an argument for a method call. ([@davidrunger][])Style/ExactRegexpMatch
cop error on invalid regular expression literal. ([@viralpraxis][])Style/FrozenStringLiteralComment
false positive in case of non-downcased value literal. ([@viralpraxis][])Style/MethodCallWithoutArgsParentheses
cop error in case of mass hash assignment. ([@viralpraxis][])Style/RedundantCondition
cop failure in case of empty arguments. ([@viralpraxis][])Layout/ExtraSpacing
andLayout/SpaceAroundOperators
to handle preceding operators inside strings. ([@dvandersluis][])v1.69.1
Compare Source
Bug fixes
Style/DigChain
when using safe navigation method chain withdig
method. ([@koic][])Style/ParallelAssignment
when using the anonymous splat operator. ([@earlopain][])Lint/UnreachableCode
. ([@isuckatcs][])Style/HashExcept
cop when usingreject/!include?
,reject/!in?
orselect/!exclude?
combinations. ([@lovro-bikic][])Lint/UnescapedBracketInRegexp
cop failure with invalid regular expression. ([@viralpraxis][])Style::AccessModifierDeclarations
cop failure in case ofif
node withoutelse
. ([@viralpraxis][])Style/RedundantArgument
cop failure while inspecting string literal with invalid encoding. ([@viralpraxis][])Style/RedundantParentheses
cop failure in case of splattedcase
node without condition. ([@viralpraxis][])Style/RedundantSelf
cop failure withkwnilarg
argument node. ([@viralpraxis][])Style/StringConcatenation
cop failure when there are mixed implicit and explicit concatenations. ([@viralpraxis][])Lint/UnescapedBracketInRegexp
when using regexp_parser 2.9.2 and earlier. ([@dvandersluis][])Style/BlockDelimiters
to not change braces when they are required for syntax. ([@dvandersluis][])Style/LambdaCall
to be aware of safe navigation. ([@dvandersluis][])v1.69.0
Compare Source
New features
Lint/HashNewWithKeywordArgumentsAsDefault
cop. ([@koic][])Lint/NumericOperationWithConstantResult
cop. ([@zopolis4][])Style/DigChain
cop. ([@dvandersluis][])Style/FileNull
cop. ([@dvandersluis][])Style/FileTouch
cop. ([@lovro-bikic][])Lint/UselessDefined
to detect cases such asdefined?('Foo')
whendefined?(Foo)
was intended. ([@earlopain][])Bug fixes
Layout/EmptyLineAfterGuardClause
when using a guard clause outside oneliner block. ([@koic][])Style/RedundantLineContinuation
when there is a line continuation at the end of Ruby code followed by__END__
data. ([@koic][])Style/CommentedKeyword
. ([@dak2][])Style/IfWithSemicolon
when usingreturn
with value inif
with a semicolon is used. ([@koic][])Style/IfWithSemicolon
when the then body contains an arithmetic operator method call with an argument. ([@koic][])Style/RedundantCondition
skip autocorrection when a branch has a comment. ([@koic][])Style/BitwisePredicate
when having regular method. ([@d4be4st][])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 was generated by Mend Renovate. View the repository job log.