Update dependency rubocop to v1.92.0 #17
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/rubocop-1.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
1.91.0→1.92.0Release Notes
rubocop/rubocop (rubocop)
v1.92.0Compare Source
New features
--explain COPto describe what a cop does, how it is configured, and the examples from its documentation. ([@bbatsov][])--max-offenses-per-copto cap how many offenses a single cop reports. ([@bbatsov][])AutoCorrect: contextualcops when asked to. ([@bbatsov][])Lint/UselessAssignmentregister an offense for a block-captured variable that is never referenced. ([@IslamElsayed][])--format json. ([@bbatsov][])Bug fixes
Lint/MissingCopEnableDirectivewhen anenable-nextornext +Copdirective suspends an openrubocop:disable, and a false positive fornext -Copscopes larger thanMaxRangeSize. ([@bbatsov][])Security/JSONLoadwithcreate_additionsas the second argument. ([@bbatsov][])Layout/LineEndStringConcatenationIndentationwith an already aligned part. ([@bbatsov][])Style/ExplicitBlockArgumentwhen the method uses argument forwarding (...). ([@bbatsov][])Style/NegativeArrayIndexwith a different length receiver. ([@bbatsov][])Style/RedundantFreezewith an arithmetic operation on a non-numeric receiver. ([@bbatsov][])Style/Samplewith an endless range, which was corrected to asamplecall of the wrong size. ([@bbatsov][])Style/SuperArgumentswhen the method has a destructuring parameter. ([@bbatsov][])Layout/EmptyLinesAroundMethodBodywhen a method's arguments span multiple lines and the method ends on the last argument's line. ([@viralpraxis][])Layout/HeredocIndentationwith a heredoc nested in another heredoc. ([@Starlexxx][])Lint/EmptyConditionalBodywithelseon the condition line. ([@koic][])Lint/UnescapedBracketInRegexpwhen using regexp_parser 2.11.2 and earlier. ([@bbatsov][])Metrics/ClassLengthwith a long singleton class in LSP mode. ([@bbatsov][])Style/ClassAndModuleChildrenwhen a compact class or module definition appears in an expression, such as an assignment value or a method argument. ([@viralpraxis][])Style/ClassAndModuleChildrenwhen usingEnforcedStyle: compactand the nested body is indented less thanLayout/IndentationWidth'sWidth. ([@viralpraxis][])Style/ClassAndModuleChildrenwhenEnforcedStyle: compactcompacts an irregularly indented definition andLayout/IndentationStyleenforces tabs. ([@viralpraxis][])Style/ExplicitBlockArgumentwith the shorthand call syntax. ([@Starlexxx][])Style/FormatStringwithformatnested informat. ([@Starlexxx][])Style/HashSyntaxwhen ano_mixed_keysstyle forces hash rockets on a hash whose value repeats its key. ([@viralpraxis][])Style/IfInsideElsewhen the nestedifshares a line with other code. ([@bbatsov][])Style/MapIntoArraywhen pushing into a numbered oritblock parameter. ([@Starlexxx][])Style/Nextwith a modifier condition wrapping a block that has its own offense. ([@Starlexxx][])Style/RedundantConditionwhen autocorrecting a redundant condition nested in theelsebranch of another one. ([@koic][])Style/Semicolonwhen a semicolon follows an unparenthesized keyword parameter or hash pattern. ([@viralpraxis][])Style/YodaConditionwhen one operand of a comparison contains another comparison the cop also corrects. ([@viralpraxis][])pacmanformatter, which crashed withundefined method 'winsize'whether or not the output was a terminal. ([@bbatsov][])Ctrl-C. ([@viralpraxis][])Gemspec/OrderedDependencieswhen the same dependency declaration appears more than once in the gemspec. ([@viralpraxis][])Layout/ClassStructurewith blank line cops. ([@koic][])Layout/ClassStructurewithLayout/EmptyLinesAroundAccessModifier. ([@koic][])Layout/ClassStructurewith a heredoc constant. ([@bbatsov][])Layout/EmptyLinesAroundBlockBodywhen usingEnforcedStyle: empty_linesand the empty line would precede a leading dot method call. ([@viralpraxis][])Layout/EmptyLinesAroundBlockBodywithdoon its own line. ([@koic][])Layout/ExtraSpacingcop withForceEqualSignAlignment: truewhenStyle/SelfAssignmentrewrites the same assignment. ([@Starlexxx][])Layout/FirstArgumentIndentationwith an inner call not beginning its line. ([@bbatsov][])Layout/FirstMethodArgumentLineBreakwithStyle/MethodCallWithArgsParentheses. ([@koic][])Layout/FirstMethodParameterLineBreakwithStyle/MethodDefParentheses. ([@koic][])Layout/LineContinuationSpacingcop when a line ends with the$\global variable. ([@Starlexxx][])Layout/LineLengthwhen breaking a line after an argument with a nested heredoc. ([@Starlexxx][])Layout/LineLengthcop whenStyle/MethodCallWithArgsParentheseswithEnforcedStyle: omit_parenthesesremoves the parentheses it breaks after. ([@Starlexxx][])Layout/LineLengthwhenSplitStrings: truewould split a string inside an escape sequence such as\000. ([@koic][])Layout/LineLengthwithSplitStrings: truewhen an interpolation in the string contains a block. ([@Starlexxx][])Layout/LineLengthwithSplitStringsand a string not beginning its line. ([@bbatsov][])Layout/MultilineArrayBraceLayoutwithLayout/MultilineHashBraceLayoutandLayout/MultilineMethodCallBraceLayout. ([@koic][])Layout/MultilineArrayBraceLayoutwithStyle/ConcatArrayLiterals. ([@koic][])Layout/MultilineBlockLayoutcop adding a trailing comma when the only positional block argument is followed by keyword arguments. ([@Starlexxx][])Layout/MultilineBlockLayoutwith block argument rewriting cops. ([@koic][])Layout/MultilineHashBraceLayoutwithStyle/HashAsLastArrayItemandStyle/RedundantDoubleSplatHashBraces. ([@koic][])Layout/MultilineArrayLineBreaks,Layout/MultilineHashKeyLineBreaks,Layout/MultilineMethodArgumentLineBreaksandLayout/MultilineMethodParameterLineBreaksafter a heredoc opener. ([@koic][])Layout/MultilineMethodCallBraceLayoutwhenEnforcedStyle: omit_parenthesesofStyle/MethodCallWithArgsParenthesesremoves the parentheses the layout cop is moving. ([@koic][])Layout/MultilineMethodDefinitionBraceLayoutwithStyle/MultilineMethodSignature. ([@Starlexxx][])Layout/SingleLineBlockChainwithStyle/NilComparison. ([@koic][])Layout/SingleLineBlockChainwithStyle/FloatDivision. ([@koic][])Layout/SingleLineBlockChainwith a heredoc. ([@Starlexxx][])Layout/SpaceInsideBlockBraceswithEnforcedStyle: no_spacewhen a multiline block's last line has code before the closing bracket. ([@viralpraxis][])Lint/AmbiguousOperatorwithStyle/ArgumentsForwarding. ([@bbatsov][])Lint/EmptyConditionalBodywith an emptyelsifandelse. ([@koic][])Lint/LiteralInInterpolationwith a#next to the interpolation. ([@koic][])Lint/LiteralInInterpolationwith an empty literal after a#. ([@bbatsov][])Lint/LiteralInInterpolationwith two adjacent interpolations. ([@bbatsov][])Lint/Loopwhenbegin ... end whileorbegin ... end untilis written on a single line. ([@koic][])Lint/NumberConversionwith a symbol operand of an operator. ([@koic][])Lint/RedundantDirGlobSortwith a leading dot. ([@koic][])Lint/UnescapedBracketInRegexpwith a double-quotedRegexp.newstring. ([@bbatsov][])Lint/UnescapedBracketInRegexpwith an escapedRegexp.newstring. ([@bbatsov][])Lint/UselessAssignmentwith a list of values without brackets. ([@bbatsov][])Lint/Voidwhen removing a heredoc in void context, so that its body and terminator are removed with it. ([@koic][])Layout/MultilineArrayBraceLayout,Layout/MultilineHashBraceLayout,Layout/MultilineMethodCallBraceLayout, andLayout/MultilineMethodDefinitionBraceLayoutwhen a heredoc is opened on the line of the closing brace. ([@koic][])Naming/HeredocDelimiterCasewhen the body has the corrected delimiter. ([@koic][])Style/AccessModifierDeclarationswith a splatted variable. ([@koic][])Style/Aliaswhen a symbol argument such as:"foo bar"or:@typehas no bareword form. ([@koic][])Style/AndOrwithStyle/ReturnNilInPredicateMethodDefinition. ([@Starlexxx][])Style/ArgumentsForwardingadding parentheses twice to a method definition. ([@Starlexxx][])Style/ArgumentsForwardingwith a block literal. ([@koic][])Style/Attrwith parenthesized arguments. ([@bbatsov][])Style/BlockDelimiterswhen a braces block is the collection of aforloop. ([@viralpraxis][])Style/BlockDelimiterswhenStyle/MethodCallWithArgsParentheseswithEnforcedStyle: omit_parenthesesremoves the call's parentheses in the same pass, producing invalid code such asfoo :bar { baz }. ([@viralpraxis][])Style/BlockDelimiterswith a block in a loop condition. ([@bbatsov][])Style/BlockDelimiterswith a multiline block in an argument ofyieldorsuperwithout parentheses. ([@bbatsov][])Style/BlockDelimiterswith a heredoc afterrescue. ([@koic][])Style/BlockDelimiterswithLayout/SpaceBeforeBlockBraces. ([@koic][])Style/CaseLikeIfwith anifinside theelsebranch. ([@bbatsov][])Style/ClassAndModuleChildrenwithEnforcedStyle: compactwhen a one-liner child class has a superclass or a body. ([@viralpraxis][])Style/ClassAndModuleChildrenwhen compacting a nested definition. ([@Starlexxx][])Style/ClassAndModuleChildrenwithStyle/StructInheritance. ([@koic][])Style/ClassMethodsDefinitionswhen a method definition insideclass << selfis followed by other code on its last line. ([@viralpraxis][])Style/CombinableLoopswhen followed by another block. ([@Starlexxx][])Style/CombinableLoopswhen one of the loops is disabled. ([@bbatsov][])Style/CombinableLoopswith comments after the loop's opening. ([@bbatsov][])Style/CombinableLoopswith comments before the closing delimiter. ([@bbatsov][])Style/CombinableLoopswith mixed block delimiters. ([@koic][])Style/CombinableLoopswith numbered anditparameters. ([@bbatsov][])Style/CombinableLoopswithrescuein a loop body. ([@koic][])Style/ConcatArrayLiteralsdropping comments. ([@bbatsov][])Style/ConcatArrayLiteralswithStyle/MethodCallWithArgsParentheses. ([@koic][])Style/ConcatArrayLiteralswithStyle/TrailingCommaInArguments. ([@koic][])Style/ConcatArrayLiteralswith multiline array arguments. ([@bbatsov][])Style/ConditionalAssignmentwithEnforcedStyle: assign_inside_conditionwhenStyle/MethodCallWithArgsParentheseswithEnforcedStyle: omit_parenthesesremoves a branch body's parentheses in the same pass, producing invalid code such asfoo << bar :baz. ([@viralpraxis][])Style/EmptyLiteralwhenHash[]orHash([])is the first argument of a method call without parentheses. ([@kevin9327][])Style/EndlessMethodwhen a method is made endless whileStyle/MethodCallWithArgsParenthesesomits parentheses in its body. ([@viralpraxis][])Style/EndlessMethodandStyle/SingleLineMethodswith a one-line pattern match orbegin...end whilebody. ([@bbatsov][])Style/EndlessMethodwhen the method body ends with an anonymous argument forwarding. ([@viralpraxis][])Style/EndlessMethodwhen the method body passes a multiline or xstring heredoc to a method call. ([@viralpraxis][])Style/EndlessMethodwhen the method body is a multiple assignment. ([@viralpraxis][])Style/EndlessMethodwhen the method body ends with an omitted hash value. ([@viralpraxis][])Style/EndlessMethodwith a command that an endless body cannot hold. ([@koic][])Style/EndlessMethoddeleting a comment placed between the method signature andend. ([@koic][])Style/EndlessMethodwith a modifier condition orand/orbody. ([@Starlexxx][])Style/EndlessMethodwhenNaming/BlockForwardingorStyle/ArgumentsForwardingadds parentheses to the same method definition. ([@Starlexxx][])Style/EndlessMethodandStyle/SingleLineMethodswhen the method body assigns multiple values without brackets. ([@bbatsov][])Style/EndlessMethodwhen the method parameters are not surrounded by parentheses. ([@koic][])Style/ExactRegexpMatchwhen the result is used. ([@bbatsov][])Style/ExplicitBlockArgumentcop when the method already has an argument or local variable namedblock. ([@Starlexxx][])Style/ExplicitBlockArgumentwithStyle/LambdaCall. ([@koic][])Style/ExplicitBlockArgumentwithStyle/TrailingCommaInArguments. ([@koic][])Style/ExplicitBlockArgumentwith an empty index call. ([@bbatsov][])Style/ExplicitBlockArgumentwhensuperwithout arguments is called in a method with keyword or block parameters. ([@bbatsov][])Style/FloatDivisionwith a leading dot. ([@koic][])Style/ForwhenEnforcedStyle: forand the block body abuts a brace, such asc.each {d}, which leftdoorendglued to the body. ([@viralpraxis][])Style/ForwhenEnforcedStyle: forand the multilineeachblock is delimited by braces. ([@viralpraxis][])Style/Forwith ado...endblock in the collection. ([@koic][])Style/Forwith a non-local loop variable or an implicit block parameter. ([@bbatsov][])Style/ForwithStyle/RedundantBegin. ([@koic][])Style/FormatStringwith a braced hash argument. ([@koic][])Style/FormatStringwhen the argument ofString#%is an instance variable, a constant or another value that may be an array. ([@bbatsov][])Style/FrozenStringLiteralCommentwhen an encoding magic comment names an encoding other than UTF-8, so that the frozen string literal comment is inserted below it. ([@koic][])Style/GuardClausewith anifas the body of an endless method. ([@bbatsov][])Style/HashConversionin an index, setter or operator call. ([@bbatsov][])Style/HashConversionwhen calling a method onHash[]. ([@bbatsov][])Style/HashConversionwithStyle/MethodCallWithArgsParentheses. ([@koic][])Style/HashConversionwith a method chain argument. ([@bbatsov][])Style/HashConversionwith safe navigation,superoryield. ([@bbatsov][])Style/HashLookupMethodwhen the lookup is the target of a compound assignment. ([@viralpraxis][])Style/HashLookupMethodwith a leading dot. ([@koic][])Style/HashLookupMethodwith an explicit element reference call. ([@koic][])Style/HashSyntaxwithEnforcedStyle: hash_rocketswhere expanding an omitted hash value also removed the line break that followed it. ([@viralpraxis][])Style/HashSyntaxwithStyle/MethodCallWithArgsParentheses. ([@Starlexxx][])Style/HashSyntaxwithStyle/SuperWithArgsParentheses. ([@koic][])Style/HashSyntaxwith a keyword-named shorthand value. ([@koic][])Style/IdenticalConditionalBrancheswhen a duplicated expression shares its line. ([@koic][])Style/IfInsideElsewith a modifierifon theelseline. ([@bbatsov][])Style/IfUnlessModifierOfIfUnlesswithStyle/SoleNestedConditional. ([@bbatsov][])Style/IfUnlessModifierwith a heredoc inside another heredoc. ([@bbatsov][])Style/IfUnlessModifierwith a heredoc nested in the body. ([@koic][])Style/IfUnlessModifierandStyle/WhileUntilModifierwith a conditional or loop in a call argument, ternary branch or endless method body. ([@bbatsov][])Style/IfUnlessModifierwith an omitted hash value in areturnor an assignment. ([@koic][])Style/IfWithSemicolonwhenifis the receiver of a method call or an operand of an operator. ([@koic][])Style/IfWithSemicolonwhen a branch is abegin/endloop with awhileoruntilmodifier. ([@koic][])Style/IfWithSemicolonwhen!is applied to a method call with unparenthesized arguments. ([@koic][])Style/IfWithSemicolonwhen the condition or a branch binds looser than the ternary operator. ([@bbatsov][])Style/InverseMethodswith an operand of an operator. ([@koic][])Style/ItBlockParameterwhen usingEnforcedStyle: alwaysand the block parameter is used inside a nested block. ([@viralpraxis][])Style/ItBlockParameterwithStyle/StabbyLambdaParentheses. ([@koic][])Style/ItBlockParameterwithStyle/Lambda. ([@Starlexxx][])Style/KeywordParametersOrderwith trailing whitespace. ([@koic][])Style/Lambdawhen a lambda literal has an argument whose default value needs parentheses between pipes. ([@viralpraxis][])Style/LambdaCallwith a heredoc argument. ([@Starlexxx][])Style/Lambdawith a lambda literal in a pattern. ([@koic][])Style/Lambdawithrescuein an unparenthesized argument. ([@koic][])Style/MethodCallWithArgsParentheseswhenStyle/TernaryParenthesesalso parenthesizes the arguments of a ternary condition. ([@koic][])Style/MethodCallWithArgsParentheseswithEnforcedStyle: omit_parentheseswhenStyle/AndOrrewrites theand/orkeyword around an argument-bearing call in the same pass. ([@koic][])Style/MethodCallWithArgsParentheseswhenStyle/RedundantParenthesesremoves the parentheses around a call whose own parentheses are omitted in the same pass. ([@koic][])Style/MethodCallWithArgsParentheseswithEnforcedStyle: omit_parentheseswhen a call is assigned before theandororkeyword. ([@koic][])Style/MethodCallWithArgsParentheseswith a closing parenthesis on its own line. ([@koic][])Style/MethodCallWithArgsParentheseswith a nested call at the end of the line. ([@koic][])Style/MethodCallWithArgsParentheseswith a comment after(. ([@bbatsov][])Style/MethodCallWithoutArgsParentheseswhen a local variable has the same name. ([@bbatsov][])Style/MethodDefParentheseswhen usingEnforcedStyle: require_no_parenthesesand the parameters begin on a line below the method name. ([@viralpraxis][])Style/MethodDefParentheseswith a destructured first parameter. ([@koic][])Style/MethodDefParentheseswith a single-line method body. ([@koic][])Style/MultilineIfModifierwith a heredoc opened on the modifier line. ([@bbatsov][])Style/MultilineIfModifierwith a multiline string in the body. ([@bbatsov][])Style/MultilineIfModifierwith a non-squiggly heredoc in the body. ([@bbatsov][])Style/MultilineInPatternThenwith an endless range pattern. ([@Starlexxx][])Style/MultilineTernaryOperatorwithdefined?without parentheses. ([@koic][])Style/MultilineTernaryOperatorwithyieldandsuper. ([@bbatsov][])Style/MultilineWhenThenwith an endless range condition. ([@Starlexxx][])Style/MutableConstantwithRecursive: trueand trailing comma cops. ([@koic][])Style/NegatedIfElseConditionwiththenor a semicolon after the condition. ([@bbatsov][])Style/NestedModifierwith low-precedence operands. ([@bbatsov][])Style/NestedTernaryOperatorwhen the ternary followsreturnor is a command argument, or when theifbranch has parentheses that do not wrap all of it. ([@bbatsov][])Style/NestedTernaryOperatorwith a heredoc. ([@Starlexxx][])Style/NestedTernaryOperatorwhen the ternary is the operand ofnotordefined?without parentheses. ([@koic][])Style/Nextwith heredocs and multiline string literals. ([@bbatsov][])Style/NilComparisonwhen a method is called onnil?. ([@koic][])Style/NilComparisonwith a leading dot. ([@koic][])Style/NonNilCheckwhen the receiver is a unary operation, such as!a != nil. ([@viralpraxis][])Style/Notwith a unary~operand. ([@koic][])Style/NumericPredicatewhen the receiver is a unary operation, such as-a < 0. ([@viralpraxis][])Style/NumericPredicatewithEnforcedStyle: comparisonin an operand. ([@koic][])Style/OneLineConditionalwith a post-condition loop branch. ([@koic][])Style/OneLineConditionalwith a constant scope or a ternary condition. ([@koic][])Style/OneLineConditionalwhen a branch uses a modifierrescue/while/untilor a one-line pattern match, or when the conditional is the receiver of a method call. ([@bbatsov][])Style/PercentLiteralDelimiterswith an escaped delimiter. ([@bbatsov][])Style/ReduceToHashwith a key or a value that is not an array element. ([@koic][])Style/RedundantBeginwith low precedence statements and multilinereturnvalues. ([@bbatsov][])Style/RedundantConditionwith a low precedenceelsebranch. ([@bbatsov][])Style/RedundantConditionwith operator method branches. ([@bbatsov][])Style/RedundantDoubleSplatHashBraceswithStyle/TrailingCommaInHashLiteral. ([@koic][])Style/RedundantExceptionwith a compound message. ([@bbatsov][])Style/RedundantFetchBlockwhenfetchis called with a splat, an anonymous rest argument, or keyword arguments. ([@ihamzatarar][])Style/RedundantParentheseswith a heredoc and a chained call. ([@koic][])Style/RedundantParentheseswith a heredoc opened on the closing parenthesis line. ([@koic][])Style/RedundantRegexpArgumentwith an escaped#{. ([@koic][])Style/RedundantRegexpConstructorwith an ambiguous slash regexp. ([@bbatsov][])Style/RedundantRegexpEscapecop whenStyle/RegexpLiteralchanges the delimiters of the same regexp in the same pass. ([@Starlexxx][])Style/RegexpLiteralwhen a%rliteral whose body starts with a newline is passed to a method without parentheses. ([@koic][])Style/RegexpLiteralwith a slash inside an interpolation. ([@koic][])Style/RegexpLiteralwhen a%rliteral escapes its own delimiter in the body. ([@koic][])Style/RequireOrderwith arequiresharing its line. ([@Starlexxx][])Style/RescueModifierwith a nested heredoc. ([@bbatsov][])Style/ReturnNilInPredicateMethodDefinitionwithreturnas an operand of||. ([@Starlexxx][])Style/ReturnNilInPredicateMethodDefinitionwithreturnin a ternary branch. ([@bbatsov][])Style/ReturnNilwith an operandreturn. ([@koic][])Style/SingleLineMethodswithStyle/EndlessMethodwhen the method body is anand/oroperation, a multiple assignment or an assignment of a command call. ([@bbatsov][])Style/SingleLineMethodswith unparenthesized parameters. ([@koic][])Style/StabbyLambdaParentheseswhen usingEnforcedStyle: require_no_parenthesesand a lambda argument has a default value containing a brace, such as->(x = {}). ([@viralpraxis][])Style/StabbyLambdaParentheseswhen usingEnforcedStyle: require_no_parenthesesand a line break or comment separates the parentheses from the arguments. ([@viralpraxis][])Style/StringConcatenationwith quotes in an interpolated percent literal. ([@Starlexxx][])Style/SymbolProcwith a lambda literal in a pattern. ([@bbatsov][])Style/TernaryParentheseswith a condition binding looser than?:. ([@bbatsov][])Style/TrailingUnderscoreVariablewith a nested group of underscores or a bracketless list of values. ([@bbatsov][])Style/WhileUntilModifierwith abeginblock body. ([@bbatsov][])Style/YodaExpressionwith a splat argument. ([@koic][])Layout/EmptyLinesAroundBlockBody,Layout/EmptyLinesAroundClassBodyorLayout/EmptyLinesAroundModuleBodywithEnforcedStyle: empty_linesand a cop indenting the sameend, such asLayout/BlockAlignmentorLayout/EndAlignment. ([@viralpraxis][])Layout/BlockAlignmentwithLayout/IndentationStyleenforcing tabs whenendis already indented like the line the block starts on. ([@viralpraxis][])Layout/BlockAlignmentwithLayout/IndentationStyleenforcing tabs. ([@koic][])Layout/CaseIndentationwithLayout/IndentationStyleenforcing tabs. ([@viralpraxis][])Layout/DefEndAlignmentwith a single-linedefafter a line continuation. ([@bbatsov][])Layout/EmptyLineAfterMultilineConditionwith a modifierwhile. ([@koic][])Layout/EmptyLineAfterMultilineConditionwith a body on the condition line. ([@koic][])Layout/EmptyLinesAroundAttributeAccessorwith code on the same line. ([@koic][])Layout/EmptyLinesAroundExceptionHandlingKeywordswith an empty clause. ([@koic][])Layout/EndAlignmentwithEnforcedStyleAlignWith: variable. ([@koic][])Layout/ExtraSpacingwith an assignment behind a comparison. ([@koic][])Layout/FirstArgumentIndentationwith a method chain beginning its line. ([@koic][])Layout/FirstHashElementIndentationwhenLayout/HashAlignmentuses the separator style and a key spans several lines. ([@koic][])Layout/HashAlignmentwith a key spanning multiple lines. ([@koic][])Layout/HeredocArgumentClosingParenthesiswith a heredoc in a block argument. ([@koic][])Layout/IndentationStylewhen usingEnforcedStyle: tabsand a line is aligned with spaces following the indenting tab. ([@viralpraxis][])Layout/IndentationWidthwith an inline access modifier andoutdentaccess modifier style. ([@Starlexxx][])Layout/LineEndStringConcatenationIndentationwith a long run of misaligned parts. ([@Starlexxx][])Layout/LineLengthcop withSplitStrings: truewhen the limit falls right after a string's opening quote. ([@Starlexxx][])Layout/LineLengthwith a string starting past the limit. ([@koic][])Layout/LineLengthwith a string starting with an interpolation. ([@koic][])Layout/RedundantLineBreakwith offenses sharing a line. ([@koic][])Layout/RescueEnsureAlignmentwithLayout/IndentationStyleenforcing tabs. ([@koic][])Layout/SpaceAroundBlockParameters,Layout/SpaceInsideParensandLayout/ExtraSpacingwhen both cops require a space inside a lambda's parameter parentheses. ([@viralpraxis][])Layout/SpaceAroundBlockParameterswith a trailing comma. ([@koic][])Layout/SpaceInsideArrayLiteralBracketswithEnforcedStyle: compact. ([@bbatsov][])Layout/SpaceInsideBlockBraceswhen usingEnforcedStyle: no_spaceand a multiline block's closing brace is not preceded by a space. ([@viralpraxis][])Layout/SpaceInsideBlockBraceswithEnforcedStyle: no_spacewhen a multiline block without block parameters has a line break after the opening brace. ([@viralpraxis][])Layout/SpaceInsideBlockBraceswith a comment after the left brace. ([@koic][])Layout/SpaceInsideBlockBraceswithLayout/BlockAlignmentwhen a leading-dot chained block has its closing brace on its own line. ([@viralpraxis][])Lint/AmbiguousOperatorPrecedencewith an operator method called with a dot. ([@bbatsov][])Lint/LiteralInInterpolationwithLayout/SpaceInsideStringInterpolation. ([@koic][])Lint/LiteralInInterpolationwith an ideographic space at the end of a heredoc line. ([@bbatsov][])Style/EmptyMethodwith a multiline argument. ([@bbatsov][])Style/EndlessMethodwhen tab indentation or a trailing comment puts the endless method definition overLayout/LineLength. ([@viralpraxis][])Style/EndlessMethodwithLayout/SpaceInsideParensadding spaces to new parentheses. ([@Starlexxx][])Style/HashLookupMethodwithStyle/FetchEnvVar. ([@koic][])Style/MethodCallWithArgsParentheseswith anonymous rest arguments forwarding. ([@koic][])Style/MultilineMethodSignaturewhen a method definition is preceded by other code on the same line, such asprivate def, and joining the signature would exceedLayout/LineLength. ([@viralpraxis][])Style/MultilineMethodSignaturewith a multiline parameter. ([@koic][])Style/MutableConstantwhen a constant is assigned a method call with arguments and without parentheses. ([@viralpraxis][])Style/MutableConstantwithEnforcedStyle: strictand a chained assignment. ([@koic][])Style/MutableConstantwithEnforcedStyle: strictand a logical operator. ([@koic][])Style/MutableConstantwithEnforcedStyle: strictand a parenthesized value. ([@koic][])Style/RedundantBegincop when joining a single statement onto the assignment line would exceedLayout/LineLength. ([@Starlexxx][])Style/RedundantParentheseswith a setter in an empty condition. ([@bbatsov][])Style/ReturnNilwith a top-levelreturn. ([@Starlexxx][])Style/DisableCopsWithinSourceCodeDirectiveto no longer autocorrect by removing a directive that only lacks a--justification whenAllowWithReasonis enabled. ([@koic][])autocorrect_incompatible_withbeing ignored when the declaring cop runs last. ([@bbatsov][])rubocop:enable-next,rubocop:pushandrubocop:nextdirectives not running cops disabled in the configuration when given a department name. ([@bbatsov][])Lint/UselessRuby2Keywords, which dropped the digits from the anchor. ([@bbatsov][])Lint/MisplacedMagicCommentwhen a misplacedencodingcomment overrode an effective one. ([@bbatsov][])--parallelnotice being shown for--no-parallel. ([@bbatsov][])Layout/EmptyLineswith CRLF line endings. ([@koic][])Style/AmbiguousEndlessMethodDefinitioncop with singleton methods. ([@Starlexxx][])Style/SelfAssignmentwith a parenthesized right-hand side. ([@koic][])Layout/MultilineMethodCallIndentationwhen a method chain is inside a block,begin,ifor loop body in a hash pair value. ([@amritk][])Lint/UselessAssignmentwhen a loop condition variable is reassigned in a loop body inside a method. ([@mattyb][])Lint/UselessAssignmentwhen a variable reassigned in a conditional inbeginis referenced inrescue. ([@mattyb][])Layout/CaseIndentationwhen usingIndentOneStep: truewith tab indentation. ([@koic][])Layout/SpaceAfterNotwhen the argument is a unary~. ([@koic][])Style/DoubleNegationwhen using three or more negations. ([@koic][])--changedmissing untracked files outside the current directory when run from a subdirectory. ([@bbatsov][])Lint/LiteralAsConditionwith anifused as a value or a post-loop containingbreak,nextorredo. ([@bbatsov][])--diffwriting the corrected file to disk, and leaving the removal out of the patch, when the file has a redundantrubocop:disable. ([@bbatsov][])Lint/RedundantCopDisableDirectivereporting directives for cops that only the preview defaults disable, which are needed again once preview is off. ([@bbatsov][])Lint/MisplacedMagicCommentthat pushed an effectiveencodingcomment off the first line when moving afrozen_string_literalcomment. ([@bbatsov][])Layout/HashAlignmentwithEnforcedHashRocketStyle: separatortogether withLayout/SpaceAroundOperatorsby aligning values one space after the separator instead of copying the first pair's value spacing. ([@Starlexxx][])Layout/HashAlignmentwithEnforcedHashRocketStyle: separatortogether withLayout/SpaceAroundOperatorsby skipping offenses for keys that are too wide to right-align with the first key. ([@Starlexxx][])Parser::ClobberingErrorforLayout/RedundantLineBreakwhen autocorrecting nested assignments with a multiline right-hand side. ([@Starlexxx][])Layout/SpaceAroundKeywordtogether withLayout/SpaceBeforeBlockBraceswithEnforcedStyle: no_spacefor a keyword followed by a brace block. ([@Starlexxx][])Style/NumericPredicateautocorrections. ([@saidM][])ExcludewhenAllCops: Previewcomes after the cop in an inherited file, or from an earlier file ininherit_from. ([@bbatsov][])AllCops: Previewbeing ignored, and--previewleaking into the default configuration, when an extension injects defaults viaConfigLoader.inject_defaults!or a plugin is loaded. ([@bbatsov][])--parallelis being ignored going to stdout, where it broke--format jsonoutput. ([@bbatsov][])AllCops: Previewvalue being silently treated asfalseinstead of rejected. ([@bbatsov][])--format json. ([@bbatsov][])noteas the default level ofSecuritycops, whose results are reported aswarning. ([@bbatsov][])--changedskipping staged files in a repository without any commits. ([@bbatsov][])--format sarifoutput being followed by the diff under--diffor the corrected source under--stdin --autocorrect, which made it invalid JSON. ([@bbatsov][])rubocop -aleaving the file empty when interrupted while writing the corrected source, by writing to a temporary file in the same directory and renaming it over the original. ([@koic][])mcpgem to versions below 1.0. ([@bbatsov][])Style/DisableCopsWithinSourceCodeDirectiveignoring the obsoleteAllowTrailingCommentsetting instead of treating it asAllowWithReason. ([@bbatsov][])Style/DisableCopsWithinSourceCodeDirectiveignoringAllowedCopsforrubocop:push/rubocop:nextarguments and leaving an orphanrubocop:popwhen correcting arubocop:push. ([@bbatsov][])Style/ExactRegexpMatchtreatingstring === regexpas a regexp match. ([@bbatsov][])Style/MethodCallWithArgsParentheseswithEnforcedStyle: require_parentheseswhen the argument is a grouped expression containing a keyword operator, modifier, or multiple statements. ([@Starlexxx][])Style/MissingElsetogether withStyle/GuardClausewhen the conditional branch is a guard clause. ([@Starlexxx][])Style/Semicolondropping arguments and erroring onyield/superwith hash value omission. ([@bbatsov][])--changed libfailing with an error instead of inspecting the changed files underlib. ([@bbatsov][])offensesandworstformatters printing "Total in 1 files". ([@bbatsov][])Changes
net/httponly when a remote config is fetched, instead of on every run. ([@bbatsov][])requires_gemrequirements againsttarget_gem_version, so that an extension can honor its own target version setting underAllCops, likeTargetRailsVersion, by overriding it. ([@koic][])Style/NegativeArrayIndexas unsafe. ([@bbatsov][])rubocop_inspectiontool in the--format jsonshape instead of as LSP diagnostics, with inline code results in the same files-and-summary form as file results. ([@bbatsov][])--show-copsand--show-docs-urlreport unrecognized cop names and exit non-zero, instead of silently ignoring them. ([@bbatsov][])Configuration
📅 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 has been generated by Mend Renovate CLI.
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.