Repository navigation
Update dependency rubocop to v1.92.2 - #29
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
This branch has not been deployed
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.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
1.64.1→1.92.2Release Notes
rubocop/rubocop (rubocop)
v1.92.2Compare Source
Bug fixes
Lint/RedundantCopDisableDirectivewhen autocorrection shifts lines. ([@koic][])Style/FloatDivisionwith a trailing comment. ([@a-lavis][])Lint/RedundantCopDisableDirectivewith a repeated disable. ([@koic][])Style/RaiseArgswithEnforcedStyle: compactand constructor arguments. ([@bbatsov][])Layout/RescueEnsureAlignmentwith index or-assignment. ([@koic][])Style/NumericPredicatewith a predicate nested in the receiver of another. ([@Starlexxx][])Style/RedundantConditionwith a nested modifierif. ([@koic][])Layout/HashAlignmentwith multiple styles and pairs on one line. ([@bbatsov][])Layout/LineLengthwith code after a heredoc opener. ([@koic][])Layout/SingleLineBlockChainwithStyle/MapToSet. ([@koic][])Layout/SpaceBeforeBlockBraceswith a brace after a line continuation. ([@Starlexxx][])Layout/SpaceBeforeBlockBraceswith a brace after a heredoc body. ([@bbatsov][])Lint/InterpolationCheckin a split string. ([@Starlexxx][])Lint/ParenthesesAsGroupedExpressionwith a command call operand. ([@koic][])Lint/RedundantSplatExpansionwithArray.newas a method argument. ([@wleeaf][])Style/AndOrwith a binary operator method operand. ([@bbatsov][])Style/AndOrwith a command call that takes adoblock. ([@Starlexxx][])Style/AndOrwith a method chained onto a command call's do block. ([@bbatsov][])Style/AndOrwith a negated command call that takes a do block. ([@bbatsov][])Style/AndOrwith a pattern matching, ternary, range ordefined?operand. ([@bbatsov][])Style/AndOrwithsupercalled with arguments. ([@bbatsov][])Style/CaseEqualitywith a non-numeric range. ([@wleeaf][])Style/ClassAndModuleChildrenwithStyle/DataInheritance. ([@koic][])Style/EndlessMethodwith modifier cops. ([@koic][])Style/HashAsLastArrayItemwithLayout/MultilineArrayBraceLayout. ([@Starlexxx][])Style/HashLookupMethodwith forwarded or splatted arguments. ([@koic][])Style/MethodCallWithArgsParentheseswithLayout/HeredocArgumentClosingParenthesis. ([@koic][])Style/MethodDefParentheseswith a line continuation. ([@koic][])Style/ParenthesesAroundConditionwith a command call assignment. ([@koic][])Style/QuotedSymbolswith a trailing backslash. ([@koic][])Style/RaiseArgscompact style withe.classas the exception. ([@bbatsov][])Style/RaiseArgswith a heredoc message. ([@Starlexxx][])Style/RaiseArgswith a parenthesizedraise. ([@koic][])Style/ReduceToHashwith a heredoc. ([@koic][])Style/RedundantBeginwith a ternary branch. ([@koic][])Style/RedundantExceptionwith a heredoc in a multiline call. ([@bbatsov][])Style/SingleLineMethodswith code after the method'send. ([@bbatsov][])Style/StringConcatenationwhen joining parts forms an interpolation. ([@Starlexxx][])Style/TrailingCommaInArgumentswith argument forwarding. ([@koic][])Layout/EmptyLinesAfterModuleInclusionwith a logical operator. ([@Starlexxx][])Layout/EmptyLinesAroundClassBodywithLayout/IndentationWidth. ([@koic][])Layout/EndAlignmentwith a class or module assigned to a constant. ([@Starlexxx][])Layout/ExtraSpacingwithLayout/LineLength. ([@koic][])Layout/SpaceAroundOperatorswithLayout/LineContinuationSpacing. ([@Starlexxx][])Layout/SpaceAroundOperatorswith hash rockets aligned on non-adjacent lines. ([@koic][])Layout/SpaceInsideBlockBraceswithLayout/BlockAlignment. ([@koic][])Layout/SpaceInsideRangeLiteralwith a nested endless range. ([@koic][])Style/EndlessMethodwhen the method definition itself has a modifierif/unless/while/untilor is followed byand/or/&&/||. ([@Starlexxx][])Style/RedundantBeginandStyle/IfUnlessModifierwithLayout/SpaceInsideParens. ([@koic][])Lint/NestedPercentLiteralwhen a percent literal contains format sequences such as%-5sor%.2f. ([@Vitalini][])Style/RedundantSelfwith a splat in multiple assignment. ([@koic][])Layout/HashAlignmentdeleting a double splat before a pair on the same line. ([@Starlexxx][]).rubocop.yml. ([@ihamzatarar][])Changes
Lint/PercentStringArraysuggest an array literal for quoted strings split at whitespace. ([@koic][])v1.92.1Compare Source
Bug fixes
Layout/HashAlignmentwith a key spanning multiple lines. ([@koic][])Style/ClassAndModuleChildrenwhen compacting a namespace that contains another compactable one. ([@Starlexxx][])Style/ClassMethodsDefinitionswith a nestedclass << self. ([@Starlexxx][])Style/EmptyStringInsideInterpolationwith nested conditionals. ([@koic][])Style/RedundantInterpolationUnfreezewith an unfrozen string interpolated into another one. ([@Starlexxx][])Style/RescueModifierwith a rescue modifier in the rescue body of another one. ([@Starlexxx][])Layout/ClassStructurewith code after a heredoc. ([@koic][])Layout/DotPositionwith a dot removed by another cop. ([@koic][])Layout/HeredocArgumentClosingParenthesiswithLayout/MultilineMethodCallBraceLayout. ([@koic][])Layout/LineLengthwith an unparenthesized method definition. ([@koic][])Layout/MultilineHashBraceLayoutwith a nested literal. ([@koic][])Layout/MultilineMethodCallIndentationwith a single-line block. ([@koic][])Layout/SingleLineBlockChainwithStyle/RedundantSort. ([@koic][])Lint/AmbiguousRegexpLiteralwith a regexp hash key. ([@koic][])Lint/SymbolConversionwith hash value omission. ([@koic][])Naming/RescuedExceptionsVariableNamewithStyle/HashSyntax. ([@koic][])Style/AccessModifierDeclarationswithStyle/EndlessMethod. ([@Starlexxx][])Style/AccessModifierDeclarationswith an endless method command body. ([@Starlexxx][])Style/AccessModifierDeclarationswith an endless method with ado...endblock body. ([@koic][])Style/AndOrwith a safe navigation command call. ([@Starlexxx][])Style/AndOrwithStyle/ReturnNil. ([@koic][])Style/ArgumentsForwardingwhen another call forwards anonymous arguments without the block. ([@Starlexxx][])Style/ArgumentsForwardingwith index assignment and setter methods. ([@koic][])Style/CollectionQueryingwhencountis used without a block. ([@Starlexxx][], [@wwenrr][])Style/CombinableLoopswithLayout/BlockEndNewline. ([@Starlexxx][])Style/CombinableLoopswithLayout/RedundantLineBreak. ([@koic][])Style/ConcatArrayLiteralswith a multiline call without parentheses. ([@koic][])Style/EmptyStringInsideInterpolationwith a command call. ([@koic][])Style/EndlessMethodwith a command body in a method definition passed as an argument. ([@Starlexxx][])Style/EndlessMethodwith ado...endblock body in a method definition passed as an argument. ([@koic][])Style/EndlessMethodwith a negated command call. ([@koic][])Style/EndlessMethodwithStyle/GuardClause. ([@koic][])Style/EndlessMethodwithStyle/RaiseArgs. ([@Starlexxx][])Style/Forwith a numbered oritblock. ([@koic][])Style/Forwith block parameters invalid as loop variables. ([@koic][])Style/ForwithStyle/ItBlockParameter. ([@koic][])Style/GuardClausewith a heredoc in a multiline guard clause. ([@Starlexxx][])Style/GuardClausewith a heredoc in the kept branch. ([@Starlexxx][])Style/HashAsLastArrayItemwithStyle/TrailingCommaInArrayLiteral. ([@Starlexxx][])Style/IfUnlessModifierwith a heredoc in the condition. ([@koic][])Style/Lambdawith extra spacing before the block. ([@koic][])Style/MethodCallWithArgsParentheseswith a trailing comma. ([@koic][])Style/MethodCallWithArgsParentheseswith a parenthesized argument. ([@koic][])Style/MethodCallWithArgsParentheseswith an assignment used as an argument. ([@koic][])Style/MethodDefParentheseswithLayout/LineLength. ([@koic][])Style/MixinGroupingwith parenthesized arguments. ([@koic][])Style/MutableConstantwith an omitted hash value. ([@koic][])Style/MutableConstantwithRecursive: trueandStyle/HashAsLastArrayItem. ([@koic][])Style/RaiseArgsdropping required parentheses. ([@Starlexxx][])Style/RedundantInterpolationUnfreezewithLayout/MultilineMethodCallBraceLayout. ([@koic][])Style/RedundantInterpolationUnfreezewith a comment. ([@koic][])Style/RedundantSelfAssignmentBranchwith assignment used as value. ([@koic][])Style/RedundantSortwith a line break before the accessor. ([@koic][])Style/RequireOrderwithout a trailing newline. ([@koic][])Style/SendWithLiteralMethodNamewithLayout/MultilineMethodArgumentLineBreaks. ([@koic][])Style/StructInheritancewithStyle/MethodCallWithArgsParentheses. ([@koic][])Style/SymbolProcwithStyle/TrailingCommaInArguments. ([@koic][])Layout/ArgumentAlignmentwith a binary operator. ([@koic][])Layout/EmptyLineAfterMultilineConditionwith a statement on the condition line. ([@koic][])Layout/EmptyLineAfterMultilineConditionwithrescue. ([@koic][])Layout/EmptyLinesAroundBlockBodywith block arguments on the next line. ([@koic][])Layout/EndAlignmentwith a conditional in a method argument. ([@koic][])Layout/FirstArgumentIndentationwith a multiline hash first argument. ([@koic][])Layout/FirstArrayElementLineBreakwithLayout/SpaceInsideArrayLiteralBracketscompact style. ([@Starlexxx][])Layout/FirstHashElementIndentationwith a double splat. ([@koic][])Layout/HeredocArgumentClosingParenthesiswith a HEREDOC nested in a hash argument. ([@Starlexxx][])Layout/IndentationConsistencywithLayout/IndentationWidthdisabled on a line. ([@koic][])Layout/LineLengthsplitting off a blank string. ([@Starlexxx][])Layout/LineLengthwithLayout/SpaceInsideArrayLiteralBracketscompact style. ([@koic][])Layout/LineLengthwith a run of spaces at the break. ([@koic][])Layout/LineLengthwith a very long string. ([@koic][])Layout/RedundantLineBreakwithLayout/ExtraSpacing. ([@koic][])Style/IfUnlessModifierwith multiple modifiers in a logical operator. ([@koic][])Style/IfUnlessModifierwith spaces inside parentheses. ([@koic][])Style/LambdawithLayout/SpaceInLambdaLiteral. ([@koic][])Style/LambdawithLayout/SpaceInsideParens. ([@koic][])Style/MutableConstantwith a splat in a frozen array. ([@koic][])Style/MutableConstantwithRecursive: trueand a hash without braces. ([@koic][])Style/RequireOrderwith a long list of unsorted requires. ([@Starlexxx][])RuboCop::Cop::Badgeequality comparing only hash values, which could treat unrelated cops as the same on platforms with narrow object hashes such as Windows and JRuby. ([@koic][])Style/BlockDelimitersmoving a trailing directive comment before the block. ([@Starlexxx][])Layout/SpaceInsideReferenceBracketswith chained reference brackets inside. ([@koic][])Lint/SafeNavigationConsistencyacross||branches. ([@koic][])Style/ItBlockParameterwhen a local variable nameditis in scope. ([@koic][])Style/ItBlockParameterwhen the block reassigns its parameter. ([@koic][])Lint/HeredocMethodCallPositionwithStyle/MethodCallWithArgsParentheses. ([@Starlexxx][])Layout/ClassStructureaware of the symbol-list forms of visibility modifiers, such asprivate :foo, :barandprivate_class_method :foo. ([@dduugg][])Parser::ClobberingErrorforLint/NumberConversionwith a symbol conversion in a corrected receiver. ([@Starlexxx][])Style/ParenthesesAroundConditionwith a multiple assignment. ([@Starlexxx][])Parser::ClobberingErrorforStyle/RaiseArgswith araisenested in another. ([@Starlexxx][])Style/RedundantBeginwith a multilinebeginas the condition of a modifierif. ([@Starlexxx][])Layout/RedundantLineBreakwithLayout/LineLengthand tab indentation. ([@Starlexxx][])Style/ClassMethodsDefinitionsandStyle/DocumentationMethodtreating methods named in a multi-symbolprivatecall as public, which made the former correctclass << selfto code raisingNameError. ([@dduugg][])Lint/UselessSetterCallwithLint/Voidininitializeand setter methods. ([@Starlexxx][])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][])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 was generated by Mend Renovate. View the repository job log.