Update dependency rubocop to v1 - #9
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
March 13, 2025 09:13
10abb50 to
ebcd478
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
March 26, 2025 18:03
ebcd478 to
a3c0a08
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
June 4, 2025 07:42
a3c0a08 to
c94142f
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
June 20, 2025 13:59
c94142f to
f70035a
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
July 8, 2025 09:59
f70035a to
d515451
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
July 24, 2025 09:53
d515451 to
7e1fb11
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
2 times, most recently
from
August 5, 2025 13:52
aab2b8a to
b9285cc
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
August 22, 2025 18:51
b9285cc to
2866194
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
September 25, 2025 17:36
2866194 to
cbdaa6a
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
October 21, 2025 18:57
cbdaa6a to
9d3354b
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
October 31, 2025 09:45
9d3354b to
f8fff79
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
November 18, 2025 23:25
f8fff79 to
403a8e2
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
December 17, 2025 11:27
403a8e2 to
d628cd9
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
December 31, 2025 18:12
d628cd9 to
58db96a
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
2 times, most recently
from
February 2, 2026 16:03
c193047 to
a040f91
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
February 12, 2026 12:51
a040f91 to
0594809
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
February 26, 2026 11:50
0594809 to
2e9f1e6
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
March 13, 2026 13:04
2e9f1e6 to
6f41df8
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
March 23, 2026 11:00
6f41df8 to
daa143e
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
April 9, 2026 07:43
daa143e to
454ea1d
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
May 14, 2026 06:26
454ea1d to
5cb5b28
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
May 30, 2026 10:56
5cb5b28 to
2246496
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
June 16, 2026 12:57
2246496 to
71de7c5
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
2 times, most recently
from
July 8, 2026 07:34
4ee14f2 to
39cbcb6
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
August 4, 2026 09:13
39cbcb6 to
864821f
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
August 25, 2026 16:42
864821f to
25c9f8e
Compare
renovate
Bot
force-pushed
the
renovate/rubocop-1.x
branch
from
September 10, 2026 22:26
25c9f8e to
1a72bbf
Compare
Member
|
Checked commit 1a72bbf with ruby 3.3.12, rubocop 1.89.0, haml-lint 0.78.0, and yamllint 1.37.1 |
This file contains hidden or 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
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:
'~> 0.66.0'→'~> 1.91.0'Release Notes
rubocop/rubocop (rubocop)
v1.91.0Compare Source
New features
AllCops: FailLevel, the configuration equivalent of--fail-level. ([@bbatsov][])AllowedDirectivesoption toStyle/DisableCopsWithinSourceCodeDirective, exempting directive kinds such as generatedrubocop:todocomments. ([@bbatsov][])--changedto inspect only the files git says changed. ([@bbatsov][])--diffto preview autocorrection without writing files. ([@bbatsov][])Lint/MisplacedMagicCommentcop to flag magic comments in positions where Ruby ignores them. ([@bbatsov][])rubocop:enable-nextdirective to re-enable cops for the next statement only. ([@bbatsov][])rubocop:nextdirective, combiningpush-style+/-arguments withdisable-next's statement scope. ([@bbatsov][])Previewsection with the defaults it is expected to adopt in the next major release, applied underPreview. ([@bbatsov][])Bug fixes
Style/RedundantRegexpCharacterClasswith\8/\9. ([@bbatsov][])Layout/ElseAlignmentwhenelseis used withrescuein aclass,module, or singleton class body. ([@viralpraxis][])Layout/HashAlignmentwhen a hash value starts on the line below its key. ([@viralpraxis][])Layout/HashAlignmentwhen the first pair of a hash omits its value, and an incorrect autocorrection when a later pair does. ([@viralpraxis][])Layout/IndentationWidthon under-indented code with tab indentation. ([@Starlexxx][])Lint/RedundantCopDisableDirectivewhen a file contains more than onerubocop:push/rubocop:poppair. ([@koic][])Style/AccessModifierDeclarationswhen a body repeats the same access modifier. ([@viralpraxis][])Style/AccessModifierDeclarationswithEnforcedStyle: inlinewhen an access modifier is the body of anifwithout anelsebranch. ([@viralpraxis][])Style/ConstantVisibilitywhen a visibility declaration splats anything other than an array literal, e.g.private_constant(*constants(false)). ([@viralpraxis][])Style/DocumentationMethodwhen an inlinemodule_function/ruby2_keywordsdefis preceded by another argument. ([@viralpraxis][])Style/EndlessMethodwhen a method definition is nested inside another method definition. ([@viralpraxis][])Style/FloatDivisionwhen usingEnforcedStyle: fdivand one operand of a float division is itself a parenthesized float division. ([@viralpraxis][])Style/HashLookupMethodwhen the looked-up key is itself a hash lookup. ([@viralpraxis][])Style/HashSyntaxwhen hash rockets are enforced and a hash value repeats its key. ([@viralpraxis][])Lint/LiteralAsConditionwhen the other operand is a parenthesizedreturn. ([@Starlexxx][])Lint/ParenthesesAsGroupedExpressionwhen the parentheses containand,or,not, or a modifier expression. ([@Starlexxx][])Naming/BlockForwardingwithStyle/MethodDefParentheses. ([@Starlexxx][])Style/EndlessMethodwhen usingEnforcedStyle: require_alwaysand the method body has arescueorensureclause. ([@viralpraxis][])Style/FloatDivisionwhen usingEnforcedStyle: fdivand the divisor is a method call with parenthesized arguments. ([@viralpraxis][])Style/Forwhen usingEnforcedStyle: forand the block body has arescueorensureclause. ([@viralpraxis][])Style/GuardClausewithStyle/MissingElse. ([@Starlexxx][])Style/MethodCallWithArgsParentheseswhenEnforcedStyle: omit_parenthesesis used together withStyle/TrailingCommaInArguments. ([@viralpraxis][])Style/NestedModifier. ([@bbatsov][])Style/NonNilCheck. ([@bbatsov][])Style/Notwith a flip-flop or assignment. ([@bbatsov][])Style/RedundantDoubleSplatHashBraceswith a bracedmergeargument. ([@bbatsov][])Style/RedundantParenthesesaroundand/or. ([@bbatsov][])Style/RedundantRegexpConstructorwith%r{}delimiters. ([@bbatsov][])Layout/ArgumentAlignmentandLayout/HashAlignmentwith separator style. ([@Starlexxx][])Layout/CommentIndentationwhen many comment blocks with the same indentation are separated by empty lines. ([@Starlexxx][])Layout/EmptyLinesAfterModuleInclusionwhen a module inclusion is directly beforerescue. ([@Starlexxx][])Layout/ExtraSpacingwithForceEqualSignAlignmentandLayout/SpaceAroundOperators. ([@Starlexxx][])Layout/FirstArrayElementIndentationwithLayout/ArrayAlignmentwhenEnforcedStyle: with_fixed_indentationis configured. ([@RedZapdos123][])Layout/FirstParameterIndentationwithLayout/ParameterAlignmentwhenEnforcedStyle: with_fixed_indentationis configured. ([@RedZapdos123][])Layout/LineLengthwithSplitStrings: truewhen the split point lands on a trailing space. ([@Starlexxx][])Layout/SpaceAroundOperatorsandLayout/ExtraSpacingwithForceEqualSignAlignment: truefor aligned operator assignments. ([@Starlexxx][])Lint/AssignmentInConditionwhen an assignment is insidedefined?. ([@Starlexxx][])Style/EmptyMethodandStyle/SingleLineMethodswithAllowIfMethodIsEmpty: false. ([@Starlexxx][])Style/EndlessMethodwhen an indented method definition would exceedLayout/LineLengthonce made endless. ([@viralpraxis][])Style/EndlessMethodwhen a method body is a block spread over several lines. ([@viralpraxis][])Style/ParenthesesAroundConditionwithAllowSafeAssignment: falseandLint/AssignmentInCondition. ([@Starlexxx][])Layout/SpaceAroundBlockParametersandLayout/SpaceInsideParenswhen the two cops enforce conflicting styles for a lambda's parameter parentheses. ([@viralpraxis][])Style/NumericLiteralPrefixwith signed literals. ([@dylanpulver][])Lint/CopDirectiveSyntaxfalsely reporting multiple directives when valid reason text mentions another directive. ([@RedZapdos123][])Lint/DuplicateMethodsfor singleton methods in separate anonymous classes. ([@rafaelfranca][])Style/NilComparisonwith precedence-sensitive operands. ([@bbatsov][])Lint/ArgumentMismatchregistering false positives forFoo.newcalls, which are documented as out of scope but were checked against whichevernewthe project index could reach. ([@HoneyryderChuck][])Lint/ArgumentMismatchregistering false positives for calls that resolve to a private method onObject, such as a baredefwritten at the top level of a DSL file. ([@HoneyryderChuck][])rubocop:push+Coparguments enable cops that are disabled in the configuration. ([@bbatsov][])Excludewith the default configuration and with inherited files underPreview. ([@bbatsov][])RemoteConfigfailing to follow relative HTTP redirects for remote configuration files. ([@RedZapdos123][])Style/DataInheritanceto not register an offense when the class body defines constants, nested classes, or nested modules. ([@MatheusRich][])Style/StructInheritanceto not register an offense when the class body defines constants, nested classes, or nested modules. ([@MatheusRich][])Changes
Metrics/MethodLength,Metrics/AbcSize,Metrics/ClassLength,Metrics/ModuleLength,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity,Metrics/BlockLength,Metrics/ParameterListsandMetrics/BlockNestingunderPreview, ahead of them being disabled by default in RuboCop 2.0. ([@bbatsov][])Style/IfUnlessModifier,Style/GuardClause,Style/Next,Style/ClassAndModuleChildren,Style/DoubleNegation,Style/NumericPredicate,Style/SpecialGlobalVars,Style/PerlBackrefs,Style/FrozenStringLiteralComment,Style/FormatStringToken,Style/FormatString,Style/RegexpLiteral,Style/SignalException,Style/Lambda,Style/ParallelAssignment,Style/RaiseArgs,Style/ModuleFunction,Style/BlockDelimiters,Style/NumericLiterals,Style/NegatedIf,Naming/VariableNumber,Naming/HeredocDelimiterNaming,Layout/EmptyLineAfterGuardClauseandBundler/OrderedGemsunderPreview, ahead of them being disabled by default in RuboCop 2.0. ([@bbatsov][])AllCops: FailLeveltowarningunderPreview, so that style offenses are reported without failing the build, ahead of it becoming the default in RuboCop 2.0. ([@bbatsov][])EnforcedStyleofStyle/StringLiterals,Style/StringLiteralsInInterpolation,Layout/CaseIndentation,Layout/EndAlignment,Layout/MultilineMethodCallIndentation,Layout/MultilineOperationIndentation,Layout/FirstHashElementIndentation,Layout/FirstArrayElementIndentation,Layout/ParameterAlignment,Layout/ArgumentAlignment,Style/EmptyMethod,Style/Alias,Style/RescueStandardErrorandStyle/TernaryParenthesesunderPreview, ahead of them becoming the defaults in RuboCop 2.0. ([@bbatsov][])EnforcedStyleofStyle/SymbolArrayandStyle/WordArraytobracketsunderPreview, ahead of it becoming the default in RuboCop 2.0. ([@bbatsov][])Securitycops now report aswarningandMetricscops asrefactor. ([@bbatsov][])Style/DocumentationunderPreview, ahead of it being disabled by default in RuboCop 2.0. ([@bbatsov][])Lint/CopDirectiveSyntaxby default, so directives that silently disable nothing are reported. ([@bbatsov][])Style/DirectiveScopeconvert single-statement signedpush/popscopes andenable/disablepairs to thenext,enable-nextanddisable-nextforms. ([@bbatsov][])AllowedCopsandDisallowedCopsofStyle/DisableCopsWithinSourceCodeDirectivematch department names as well as cop names. ([@bbatsov][])Style/DoubleCopDisableDirective, superseded byLint/CopDirectiveSyntax, which now reports and corrects more than one directive on a line. ([@bbatsov][])warn_indentas a magic comment. This fixes a false positive forLayout/EmptyLineAfterMagicCommentand makesLint/OrderedMagicCommentsandStyle/MagicCommentFormataware of it. ([@koic][])AllowTrailingCommentoption ofStyle/DisableCopsWithinSourceCodeDirectivetoAllowWithReason. ([@bbatsov][])v1.90.0Compare Source
New features
AllowTrailingCommentoption toStyle/DisableCopsWithinSourceCodeDirective. ([@bbatsov][])disable-nextdirectives scoped to the following statement. ([@bbatsov][])--display-suppressedoption to also report offenses suppressed by directive comments, including their--justification in the JSON formatter. ([@bbatsov][])Lint/ArgumentMismatchcop. ([@bbatsov][])Lint/SuperArgumentMismatchcop. ([@bbatsov][])Style/TimeNowcop. ([@Starlexxx][])NumberOfEmptyLinesoption toLayout/EmptyLineAfterMagicCommentto configure the minimum number of empty lines required after magic comments. ([@alejofraga][])--report-unused-todo-entriesto catch rotting todo files. ([@bbatsov][])Style/DirectiveScopecop to flagdisable/enablepairs and disable-onlypush/popscopes that wrap a single statement and can usedisable-nextinstead. ([@bbatsov][])Lint/RedundantCopEnableDirectiveflag# rubocop:popdirectives without a matching# rubocop:push. ([@bbatsov][])Bug fixes
Lint/NameTypoandLint/UnusedPrivateMethodon string literals with invalid encoding. ([@bbatsov][])Lint/OutOfRangeRegexpRefwhen a preceding element access with a non-string literal argument (e.g.hash[:key]) discarded the tracked capture count. ([@koic][])--disable-uncorrectable. ([@bbatsov][])workspace/executeCommandrequest has no document URI in its arguments. ([@koic][])Naming/BinaryOperatorParameterName. ([@bbatsov][])Style/Samplewhenshuffleis given arandom:argument; the offense is still reported but no longer autocorrected, sinceshuffleandsampleconsume a seeded generator differently and would select different elements. ([@koic][])Layout/FirstArgumentIndentationwhenEnforcedStyle: with_fixed_indentationis specified forLayout/ArgumentAlignmentandLayout/FirstMethodArgumentLineBreakis enabled withAllowMultilineFinalElement: true. ([@Starlexxx][])RuboCop::Cop::IgnoredMethodsandRuboCop::Cop::IgnoredPatternbeing unreachable afterrequire 'rubocop'. ([@SeanLF][])Layout/ExtraSpacing. ([@Starlexxx][])Layout/LineLengthwhen a constant path likeHttp::UploadedFilematchesURISchemescase-insensitively. ([@koic][])Lint/UselessConstantScopingwhen assigning withClass.new,Module.new,Struct.new, orData.defineafterprivate. ([@pdobb][])Layout/MultilineMethodCallIndentationwhen a line has multiple single-line blocks before a multiline block. ([@koic][])Lint/ConstantReassignmentwhen a constant is assigned in compact-style namespaces (e.g.module A::B). ([@alex-tan][])Lint/RedundantSafeNavigationwhenInferNonNilReceiveris enabled and the receiver name is rebound by a nested block (itor a shadowed block parameter). ([@koic][])RuboCop::Cop::Registry#freezeto freeze its internal collections, so that registering a lazily loaded cop after the freeze fails fast at the registration site instead of corrupting the registry. ([@koic][])Lint/DuplicateMethodshonorsilence_redefinition_of_methodandredefine_methodas intentional redefinitions. ([@bbatsov][])--display-suppressedreporting aniljustificationwhen the offense is loaded from the result cache. ([@corsonknowles][])Layout/ClassStructureautocorrection producing a wrong order when an element cannot be moved, and make offenses report the category that actually blocks the expected order. ([@koic][])Lint/NameTyporegistering false positives for names provided by a gem whose namespace the project reopens, and for constants read from a namespace with an unresolved ancestor. ([@HoneyryderChuck][])Lint/UnusedPrivateMethodretaining every pastproject_indexobject it has seen (and the index graph reachable from each), rather than only the most recent one. This caused unbounded memory growth in long-lived processes such asrubocop --server. ([@bquorning][])Lint/UselessMethodDefinitionfalse positive for methods with**kwargs. ([@bbatsov][])--lspand--mcpbeing silently ignored when the RuboCop server is running: they now start the protocol server in the current process instead of being forwarded to the server as a lint request. ([@koic][])Excludesettings. ([@bbatsov][])Layout/LineLengthMaxwhen exemptions likeAllowedPatternsmatched the result. ([@bbatsov][])AllCops does not support TargetRailsVersion parameterwhen a plugin declares a customAllCopskey with a nil value and another plugin is loaded after it. ([@koic][])Style/StringConcatenationautocorrect. ([@bbatsov][])rubocop .(and other relative directory arguments) needlessly traversing directories excluded by the configuration, which made it much slower thanrubocopin projects with large ignored trees. ([@bbatsov][])Lint/RedundantCopDisableDirectiveandLint/RedundantCopEnableDirectiveleaving a directive's--reason behind when removing the directive. ([@corsonknowles][])Lint/UnusedPrivateMethodfor private definitions of Ruby runtime hooks likeinheritedandconst_missing. ([@bbatsov][])Lint/MissingCopEnableDirectivesuggest# rubocop:popinstead of# rubocop:enablefor an unclosed# rubocop:push. ([@bbatsov][])Lint/UnusedPrivateMethodwhen a method name is composed with an interpolated symbol or string prefix. ([@bbatsov][])Changes
AllowedCrossFilePathsoption toLint/DuplicateMethodsto skip cross-file duplicates in configured paths. ([@bbatsov][])AllowedNamesandAllowedPatternsoptions toLint/UnusedPrivateMethod. ([@bbatsov][])StyleGuidemetadata for 21 cops and fix four broken style guide links. ([@bbatsov][])Lint/DeprecatedReferenceperformance by short-circuitingdeprecated?. ([@connorshea][])Lint/NameTypoperformance by deferring the literal-name scan. ([@connorshea][])AllowForAlignmentto no longer treat a same-indentation line beyond the enclosing block as an alignment anchor forLayout/ExtraSpacing,Layout/SpaceAroundOperators, andLayout/SpaceBeforeFirstArg. ([@koic][])<testcase>elements only for cops enabled for each inspected file, instead of all cops. ([@koic][])Layout/SpaceAroundOperatorsaware of endless method definitions. ([@koic][])Lint/CopDirectiveSyntaxcatch keyword typos and unknown cop names. ([@bbatsov][])v1.89.0Compare Source
New features
DelegatingMethodsoption toLint/DuplicateMethodsto register customdelegate-shaped methods. ([@bbatsov][])DisallowedCopsconfiguration option toStyle/DisableCopsWithinSourceCodeDirective. ([@hammadxcm][])AllowYARDCommentBlockSeparatoroption toLayout/LeadingCommentSpace. ([@koic][])Lint/DeprecatedReferencecop to detect references to methods and constants documented as@deprecated, powered by the project index. ([@bbatsov][])Lint/NameTypocop. ([@bbatsov][])Lint/UnusedPrivateMethodcop for project-wide dead-code detection via the project index (disabled by default). ([@bbatsov][])Style/DisableCopsWithinSourceCodeDirectiveimpossible to disable via directive comments when explicitly enabled withEnabled: true. ([@rafaelfranca][])textDocument/codeActionrequests in the built-in language server, so LSP clients that request code actions (Eglot, Helix, Flycheck, ...) can apply RuboCop's autocorrects, not only clients that read them off the published diagnostic. ([@bbatsov][])NewCopsin department configuration to enable pending cops per department, including cops added up to a specific version (e.g.Style: NewCops: '1.19'). ([@koic][])Layout/IndentationWidthandStyle/ClassAndModuleChildren. ([@ioquatix][], [@koic][])Bug fixes
Lint/ToEnumArgumentswhen explicit extra keyword arguments are passed (e.g.def m(x:); to_enum(:m, x: x, y: 1); end), which raisesArgumentErrorwhen the enumerator is used. ([@RedZapdos123][])Layout/HashAlignmentwhen usingEnforcedHashRocketStyle: tableand a hash key spans multiple lines. ([@dduugg][])Lint/UselessAssignmentwith modifier conditions. ([@bbatsov][])Lint/Voidwith setter methods. ([@bbatsov][])Naming/VariableNumberwhen using an empty symbol hash key. ([@koic][])Style/MutableConstantwithData.define. ([@bbatsov][])Style/MissingRespondToMissingwhenrespond_to_missing?is defined in a reopening of the class andUseProjectIndexis enabled. ([@bbatsov][])Lint/LiteralAsConditionwhen a literal condition has an empty branch. ([@koic][])Lint/UselessRuby2Keywordswhenruby2_keywordsis used with a symbol but no method definition is found. ([@koic][])Metrics/MethodLengthwhen a method contains a heredoc and__ENCODING__. ([@koic][])Style/ArrayIntersectcop when the block-based check callsmember?/include?without an explicit receiver. ([@dduugg][])Style/NegativeArrayIndexcop. ([@viralpraxis][])Style/RedundantFormatwhen a format string uses a positional argument number beyond the 64-bit range. ([@koic][])Style/RedundantFormatwhen the argument for a positional variable width is missing. ([@koic][])Lint/LiteralInInterpolation. ([@bbatsov][])Style/ArrayIntersectwhen using safe navigationnone?with a block. ([@koic][])Style/MultipleComparisonthat dropped an allowed method comparison appearing between the compared values. ([@bbatsov][])Style/RedundantFileExtensionInRequirethat produced invalid Ruby when a backslash preceded the.rbextension. ([@bbatsov][])Lint/Voidto no longer autocorrect a constant used in a void context, since removing it can change behavior through constant autoloading side effects. ([@bbatsov][])Lint/InheritExceptionwhenExceptionis inherited indirectly through a project class (UseProjectIndex). ([@bbatsov][])Lint/AmbiguousAssignmentwhen using attribute or index assignment. ([@sngsmz][])Layout/ClassStructurewhen class body elements are wrapped inbeginblocks. ([@koic][])Layout/ClassStructurewhen usingprivate_class_methodorpublic_class_methoddef modifiers. ([@koic][])Style/ArrayIntersectwhen the receiver ofinclude?in a block is not an array literal. ([@koic][])Style/MultilineIfThenwhen using the Prism parser engine and anelsifwithoutthenfollows a branch usingthenwith a body on the same line. ([@koic][])Lint/DuplicateMethodsfor anonymous classes (Class.new) passed as arguments to the same named-receiver method call (e.g.T.cast). EachClass.newblock is an independent class, so methods defined in different blocks should not be treated as duplicates. ([@rafaelfranca][])Style/RedundantConstantBaseinside namespaces when the constant provably resolves identically without::(UseProjectIndex). ([@bbatsov][])Style/LambdaandStyle/SymbolProcproducing a syntax error like->(x)(&:method)when both cops run onlambda { |x| x.method }. ([@koic][])UseProjectIndex). ([@bbatsov][])Layout/LineLengthautocorrection for endless methods with block bodies. ([@hervetatche][])Lint/ConstantReassignmentwhen a built-in constant name is assigned andUseProjectIndexis enabled. ([@bbatsov][])Style/ClassAndModuleChildrenignoringEnforcedStyleForClassesandEnforcedStyleForModules, and skip autocorrection when mixed per-type styles make the result ambiguous. ([@bbatsov][])Layout/MultilineMethodCallIndentationwhen a line has multiple chained calls before a single-line block. ([@hammadxcm][])Style/RedundantLineContinuationby verifying backslash removal against a reparse of the source instead of hand-written grammar rules. ([@bbatsov][])Naming/PredicatePrefixandNaming/AccessorMethodNamewhen the method overrides an ancestor method defined in the project (UseProjectIndex). ([@bbatsov][])Style/StaticClasswhen the class is subclassed elsewhere in the project (UseProjectIndex). ([@bbatsov][])Style/MethodCallWithArgsParenthesesomit_parenthesesstyle by verifying each omission by reparsing before registering an offense. ([@bbatsov][])Changes
Style/Documentationto accept a reopened class or module documented at another definition site whenUseProjectIndexis enabled. ([@bbatsov][])rubocop-i18nto suggested extensions. ([@tejasbubane][])executeCommandProviderand the supported code action kinds in the language server's capabilities, so clients can discover therubocop.formatAutocorrectsandrubocop.formatAutocorrectsAllcommands. ([@bbatsov][])AllCops/UseProjectIndexis enabled. ([@bbatsov][])Lint/AmbiguousBlockAssociationto detectdo...endblocks likely intended for enumerable methods in arguments. ([@hammadxcm][])Layout/LineLengthperformance on files with large collection literals. ([@koic][])Style/ConditionalAssignmentskip cases it cannot safely rewrite instead of emitting invalid code or erroring on unusual branch shapes. ([@bbatsov][])Style/IfUnlessModifieroffense message when the condition is part of a larger expression. ([@rafa-el-souza][])Style/DisableCopsWithinSourceCodeDirectiveperformance on largeAllowedCopsandDisallowedCopslists by matching directives against memoized sets instead of rebuilding an array lookup per comment. ([@corsonknowles][])Style/RedundantLineContinuationperformance on files with many adjacent string literals joined by line continuations. ([@koic][])Lint/DuplicateMethodsto detect duplicates across files whenUseProjectIndexis enabled. ([@bbatsov][])Style/IfUnlessModifier,Style/WhileUntilModifier,Style/GuardClause, and other modifier cops respectLayout/LineLengthexemptions (allowed patterns, cop directives, allowed URIs) when checking whether the modifier form fits on one line. ([@bbatsov][])Lint/SafeNavigationChainautocorrection as unsafe. ([@koic][])Lint/ConstantResolutionto report only genuinely ambiguous constants whenUseProjectIndexis enabled. ([@bbatsov][])Style/RedundantAssignmentoffenses when there are comments between assignment and reference. ([@lovro-bikic][])Style/ClassAndModuleChildrenautocorrection to consult the project index for the namespace kind and definition sites whenUseProjectIndexis enabled. ([@bbatsov][])Lint/MissingSuperto skip the constructor offense when the project index shows no ancestor definesinitialize(UseProjectIndex). ([@bbatsov][])Style/Copyrightto validateAutocorrectNoticeonly when autocorrection is requested (-a/-A), so plain inspection no longer raises a warning. ([@koic][])Layout/RedundantLineBreakto verify each correction by reparsing before registering an offense. ([@bbatsov][])Style/RedundantParenthesesto verify each correction by reparsing before registering an offense. ([@bbatsov][])Style/SoleNestedConditionalto only register an offense when its correction is verified to parse. ([@bbatsov][])v1.88.2Compare Source
Bug fixes
Lint/ToJSON, which did not flag singletondef self.to_jsondefinitions. ([[@bbatsov](https://redirect.github.com/bbConfiguration
📅 Schedule: (UTC)
🚦 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.