chore(deps): update dependency rubocop to v1.86.1#11
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
cc9cbb5 to
69bc0e7
Compare
69bc0e7 to
36514eb
Compare
36514eb to
a28c3fa
Compare
a28c3fa to
0f6b2b0
Compare
0f6b2b0 to
acf241b
Compare
acf241b to
1d07061
Compare
1d07061 to
f8dd77b
Compare
f8dd77b to
4ef5ae8
Compare
4ef5ae8 to
59a612c
Compare
59a612c to
92230fd
Compare
92230fd to
08623ed
Compare
08623ed to
e376009
Compare
e376009 to
bdb1830
Compare
bdb1830 to
12258c3
Compare
12258c3 to
6e9820e
Compare
7c4cdc0 to
22c19e1
Compare
22c19e1 to
45feef3
Compare
45feef3 to
264db7d
Compare
264db7d to
607553d
Compare
607553d to
1f5210f
Compare
1f5210f to
8ed5c4b
Compare
8ed5c4b to
de96ef7
Compare
de96ef7 to
e44a2cf
Compare
e44a2cf to
9a58ee3
Compare
9a58ee3 to
d1f3698
Compare
d1f3698 to
5ad7ef5
Compare
5ad7ef5 to
8ea7a7e
Compare
8ea7a7e to
8714637
Compare
8714637 to
b57342e
Compare
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:
'1.60.1'→'1.86.1'Release Notes
rubocop/rubocop (rubocop)
v1.86.1Compare Source
Bug fixes
Style/AccessModifierDeclarationsinline autocorrect dropping comments between the access modifier and the following method definition. ([@dduugg][])Lint/DuplicateMethodsfalse positives for anonymous classes in constant assignments and method return values. ([@eugeneius][])Lint/DuplicateMethodsfalse positives with anonymous classes inside blocks (e.g. RSpeclet,describe). ([@ShkumbinDelija][])included_modulesfromStyle/ModuleMemberExistenceCheck. ([@koic][])Style/RedundantLineContinuationwhen using interpolated string literals. ([@koic][])file_to_include?when a relativeIncludepattern matches a parent directory name in the absolute file path. ([@jonas054][])Layout/EmptyLineAfterGuardClausewhen consecutive guard clauses useand return. ([@eugeneius][])Lint/RedundantSafeNavigationwhen chained safe navigation is used in a conditional expression withInferNonNilReceiverenabled. ([@koic][])Style/RedundantParentheseswhen using parentheses around an endless range in assignment. ([@koic][])Style/RedundantParentheseshandling of beginless ranges. ([@oggy][])Lint/Syntaxzero-length diagnostic range for syntax errors at EOF. ([@55728][])Includepath adjustment when local config overrides an inheritedInclude. ([@jonas054][])Layout/EndAlignmentcop error on an emptybegin. ([@viralpraxis][])Layout/LineLengthwhenSplitStringsoption is enabled and__FILE__is used. ([@jeromedalbert][])Lint/UnusedMethodArgumentfalse positive when block argument is used viayield. ([@dduugg][])Changes
Style/OneClassPerFileexcludespec/**/*andtest/**/*by default. ([@koic][])paralleldependency to>= 1.10. ([@koic][])Style/RedundantStructKeywordInitcop by default. ([@koic][])v1.86.0Compare Source
New features
AllowedParentClassesoption toStyle/EmptyClassDefinition. ([@hammadkhan][])AllowedReceiversforStyle/HashLookupMethod. ([@koic][])Bug fixes
Style/ConcatArrayLiteralsautocorrect deleting code for percent literals with interpolation. ([@bbatsov][])Lint/ConstantReassignment. ([@ydakuka][])Lint/DuplicateMethodswhen duplicate methods are defined in anonymous classes and modules not assigned to a constant. ([@Darhazer][])Style/RedundantParentheseswhen redundant parentheses around range literals in block body. ([@koic][])Layout/MultilineMethodCallIndentationwhen method chain is inside a hash pair value passed to a multiline chained method call. ([@ydakuka][])Lint/DuplicateMethodswhen modules blocks are passed as method arguments. ([@5hun-s][])Lint/DuplicateMethodswhen the same method is defined in different anonymous module blocks passed to a no-receiver call (e.g.stub_const). ([@Darhazer][])Layout/EmptyLineAfterGuardClausewhen using a guard clause followed by a multi-line guard clause withraise,fail,return,break, ornext. ([@koic][])Layout/RedundantLineBreakwhen settingInspectBlocks: trueand usingrescueorensurein the block. ([@koic][])Style/FileOpenwhen assigningFile.opento an instance variable, class variable, global variable, or constant. ([@koic][])Lint/DuplicateMethodswhen the same method is defined in anonymous module blocks passed to different receivers. ([@koic][])Style/IfWithSemicolonwhenreturnwith value is in theelsebranch. ([@koic][])Style/IfUnlessModifierwhen multipleif/unlessmodifier forms are on the same line inside a collection. ([@ydakuka][])Lint/SafeNavigationChainwhen chaining a method call after safe navigation in the if branch of a ternary. ([@koic][])Layout/EndAlignmentwhenendis followed by||or&&. ([@koic][])Safe/SafeAutoCorrectparameter" when those parameters are set for cops that don't have them in their default configuration. ([@dduugg][])Lint/UselessDefaultValueArgumentwhenfetchwithout a receiver is inside afetchblock. ([@koic][])Style/IfWithSemicolonwhen using single-lineunless/;/end. ([@koic][])Style/NonNilCheckautocorrect for receivers containing spaces. ([@bbatsov][])Style/RaiseArgsto allow anonymous keyword forwarding (raise Ex.new(**)). ([@bbatsov][])Lint/RedundantCopDisableDirectivewhen arubocop:disablecomment is used to suppressLint/EmptyWhen,Lint/EmptyConditionalBody,Lint/EmptyInPattern, orStyle/SymbolProc. ([@eugeneius][])Style/RedundantPercentQfor%qstrings with interpolation-like syntax. ([@bbatsov][])Style/AndOradding unnecessary parentheses aroundreturnwithout arguments. ([@eugeneius][])Lint/UselessConstantScoping. ([@h-lame][])Style/TrailingMethodEndStatementto detect singleton methods (def self.foo). ([@bbatsov][])Changes
MaxFilesInCachetofalseto entirely disable cache pruning. ([@byroot][])Lint/RedundantSafeNavigationaware of safe navigation in conditional true branch. ([@koic][])mcpgem from runtime dependencies. ([@koic][])v1.85.1Compare Source
Bug fixes
Style/FileOpenwhenFile.openis passed as an argument or returned from a method. ([@sferik][])Style/ReduceToHashfalse positive when accumulator is read in key/value. ([@sferik][])Style/RedundantParentheseswhen parenthesizing a range in a block body. ([@koic][])Changes
v1.85.0Compare Source
New features
mise.tomlas source for TargetRubyVersion. ([@kitsane][])Lint/UnreachablePatternBranchcop. ([@sferik][])Style/FileOpencop. ([@sferik][])Style/MapJoincop. ([@sferik][])Style/OneClassPerFilecop. ([@sferik][])Style/PartitionInsteadOfDoubleSelectcop. ([@sferik][])Style/PredicateWithKindcop. ([@sferik][])Style/ReduceToHashcop. ([@sferik][])Style/RedundantMinMaxBycop. ([@sferik][])Style/RedundantStructKeywordInitcop. ([@koic][])Style/SelectByKindcop. ([@sferik][])Style/SelectByRangecop. ([@sferik][])Style/TallyMethodcop. ([@sferik][])Lint/DataDefineOverridecop. ([@bbatsov][])InternalAffairs/ItblockHandlercop. ([@bbatsov][])Bug fixes
Style/EmptyClassDefinition. ([@koic][])Style/NegatedWhilewhen the last expression of anuntilcondition is negated. ([@koic][])Style/EmptyClassDefinitionmessage wording. ([@bbatsov][])Lint/Voidwhennilis used incasebranch. ([@5hun-s][])Style/IfUnlessModifierwhen modifier forms are used inside string interpolations. ([@koic][])Style/HashTransformKeysandStyle/HashTransformValues. ([@sferik][])Lint/Voidforeachblocks where the return value may be meaningful (e.g.,Enumerator#each). ([@sferik][])Layout/IndentationWidthfalse positive for chained method blocks whenEnforcedStyleAlignWithisstart_of_line. ([@krororo][])Lint/Voidto detect void expressions incase/whenbranches. ([@bbatsov][])Parser::ClobberingErrorinLint/UselessAssignmentwhen autocorrecting a useless assignment that wraps a block containing another useless assignment. ([@koic][])Layout/MultilineAssignmentLayoutwhen usingnumblockoritblockwithSupportedTypes: ['block']. ([@bbatsov][])Layout/FirstHashElementIndentation. ([@ydakuka][])Layout/MultilineAssignmentLayout. ([@sanfrecce-osaka][])Lint/RedundantSafeNavigationwhen using&.respond_to?with methods defined onObject(e.g.,:class). ([@bbatsov][])Lint/SafeNavigationConsistencyautocorrect as unsafe. ([@bbatsov][])SyntaxErrorinLint/InterpolationCheckwhen single quoted string contains double quotes with invalid interpolation. ([@ydakuka][])Changes
Style/HashAsLastArrayItemwhen multiline hash elements. ([@koic][])Style/EndlessMethodcop to consider receivers. ([@fatkodima][])class_definitiontoclass_keywordinEnforcedStyleofStyle/EmptyClassDefinition. ([@koic][])String.newwith interpolated strings toStyle/RedundantInterpolationUnfreeze. ([@lovro-bikic][])Style/RedundantParentheses. ([@lovro-bikic][])v1.84.2Compare Source
Bug fixes
Style/BlockDelimiterswhen autocorrecting nested multi-line blocks with adjacent curly braces. ([@koic][])Style/IfUnlessModifierwhen the first value uses a normalifand the others use modifierif. ([@koic][])Layout/FirstArgumentIndentationwhen first arguments are over-indented in nested method calls. ([@koic][])Layout/MultilineMethodCallIndentationwhen a multiline method call follows a hash access. ([@koic][])Layout/MultilineMethodCallIndentationwhen a multiline method call includes a keyword argument whose value is a method call with a block. ([@koic][])Layout/EmptyLinesAfterModuleInclusionwhenincludeis nested inside an array. ([@eugeneius][])Style/FormatStringTokento not autocorrect strings outside of format method context in aggressive mode. ([@ydakuka][])Style/HashAsLastArrayItemwhen an array contains only a single hash element. ([@koic][])Style/MethodDefParentheseswhen using splat or forwarding arguments without parentheses. ([@koic][])Layout/MultilineMethodCallIndentationwhen a multi-dot method chain is inside a hash pair value. ([@ydakuka][])Layout/MultilineMethodCallIndentationwhen a method is chained after a single-line block. ([@ydakuka][])Offense#highlighted_areaforPseudoSourceRangelocations. ([@rafaelfranca][])Style/IfUnlessModifierwhen the first value uses a normalifand the others use ternary operator. ([@koic][])v1.84.1Compare Source
Bug fixes
Layout/IndentationWidthcop. ([@viralpraxis][])Style/NegativeArrayIndexwhen usingselfas array with implicitselfreceiver. ([@koic][])Style/GuardClausewhen using heredoc as an argument of method call in raise inelsebranch. ([@koic][])Style/IfUnlessModifierwhen multipleif/unlessstatements share the same line in arrays, method arguments, or hash values. ([@ydakuka][])Layout/FirstArgumentIndentationandLayout/LineLengthwhen correcting method chains. ([@ydakuka][])Layout/MultilineMethodCallIndentationto properly handle method chains inside hash pair values. ([@ydakuka][])Changes
infinite?method to the allowlists forNaming/PredicateMethod,Style/IfWithBooleanLiteralBranches, andStyle/RedundantCondition, in addition to the existingnonzero?. ([@koic][])v1.84.0Compare Source
New features
AllowImplicitArrayLiteralstoLayout/FirstArrayElementLineBreak. ([@koic][])Style/ReverseFindcop. ([@koic][])Style/EmptyClassDefinitioncop to enforce consistent style for empty class definitions. The cop can enforce either a two-line class definition orClass.newfor classes with no body. ([@ydakuka][])Style/HashLookupMethodcop to enforceHash#[]vsHash#fetchpreference. ([@sferik][])Style/NegativeArrayIndexcop to enforce using negative array indices instead of calculating array length minus a value. The cop handles both simple index patterns and range patterns, and recognizes preserving methods and their combinations. ([@ydakuka][])TargetRubyVersion 4.1(experimental). ([@koic][])Bug fixes
CategoriesforLayout/ClassStructure. ([@fatkodima][])Style/GuardClausewhen using heredoc as an argument of raise inelsebranch andifbranch is empty. ([@koic][])Style/HashLookupMethodcop when there's no receiver. ([@viralpraxis][])ruby_extractorwhen usingoffset: 0and different source buffers. ([@ydakuka][])Style/RedundantConditionwhen the branches contains constant assignment. ([@koic][])--force-default-confignot preventing project config loading when used with options that access configuration. ([@sakuro][])Style/HashSyntaxwhen shorthand syntax is used in condition ofif/unless/while/until. ([@ydakuka][])Layout/IndentationWidthby adding a newEnforcedStyleAlignWithstyle parameter. ([@MikeMcQuaid][])Layout/LineLengthwhenSplitStringsoption is enabled and strings span multiple lines. ([@HariprasanthMSH][])Layout/IndentationWidthandLayout/IndentationConsistencywhen usingEnforcedStyle: indented_internal_methodswith method chain blocks. ([@ydakuka][])Layout/IndentationWidthwhen autocorrecting mixed tabs and spaces in blocks. Fix an infinite loop error forLayout/DefEndAlignmentandLayout/IndentationStylewhen autocorrecting mixed tabs and spaces. Autocorrection for tabs is disabled inAlignmentCorrectorfor indentation offenses, but enabled foralign_end. ([@ydakuka][])Layout/FirstArgumentIndentationto correct entire method calls and chains for nested calls. ([@ydakuka][])Offense#highlighted_areato return a validParser::Source::Range. ([@ydakuka][])Security/JSONLoadwhencreate_additionsoption is passed with other options in a hash. ([@wktk][])Changes
squishandsquish!applied to heredoc toLayout/HeredocIndentation. ([@lovro-bikic][])Forwardablemethods inLint/DuplicateMethods. ([@lovro-bikic][])Lint/RedundantSplatExpansionaware of constant assignment. ([@koic][])Style/AccessModifierDeclarationsaware of self class. ([@koic][])Modulemember existence methods toStyle/ModuleMemberExistenceCheck. ([@lovro-bikic][])AllowedMethodsconfiguration toStyle/ModuleMemberExistenceCheck. ([@lovro-bikic][])v1.82.1Compare Source
Bug fixes
Style/TrailingCommaInArgumentswhenEnforcedStyleForMultilineisconsistent_commaand keyword arguments use a trailing comma. ([@koic][])Layout/RedundantLineBreakwhenLayout/LineLengthis disabled. ([@ydakuka][])Layout/LineLengthis disabled. ([@floriandejonckheere][])Layout/MultilineMethodCallIndentationwhen multiline method chain with block has expected indent width and the method is preceded by splat or double splat. ([@koic][])Layout/IndentationWidthfor multiline method chain blocks. ([@rscq][])Lint/UselessAssignmentwhen a variable is assigned in loop body and used in loop condition. ([@ydakuka][])v1.82.0Compare Source
New features
AllowRBSInlineAnnotationoption toLayout/LineLength. ([@koic][])IncludedMacroPatternsconfiguration option toStyle/MethodCallWithArgsParenthesesfor pattern-based macro method enforcement. ([@mmenanno][])Style/ModuleMemberExistenceCheck. ([@lovro-bikic][])TargetRubyVersion 4.0(experimental). ([@koic][])Bug fixes
Lint/LiteralAsConditionwhen there are literals in multiple branches. ([@viralpraxis][])rake rubocop:auto_correcttask. ([@koic][])Lint/RedundantSplatExpansionwhen splatting a single literal. ([@earlopain][])Layout/RescueEnsureAlignmentwhen using self class definition. ([@koic][])Lint/NoReturnInBeginEndBlockswhen assigning instance variable, class variable, global variable, or constant. ([@koic][])Layout/EmptyLineAfterGuardClausewhen a guard clause follows a multiline heredoc in a parenthesized method call. ([@koic][])Layout/EndAlignmentwhen a conditional assignment is used on the same line and theendwith a safe navigation method call is aligned. ([@koic][])Layout/EndAlignmentwhen a conditional assignment is used on the same line and theendwith a numbered block oritblock method call is aligned. ([@koic][])Lint/RedundantSafeNavigationwhen the receiver is used outside the singleton method definition scope. ([@koic][])Style/EndlessMethodwhen multiline or xstring heredoc is used in method body. ([@koic][])Style/TrailingCommaInArgumentswhenEnforcedStyleForMultilineis set toconsistent_commaand a multiline braced hash argument appears after another argument. ([@koic][])OptionParsererrors when runningrubocopwith input that causes an error. ([@dvandersluis][])Layout/LineLengthis disabled. ([@koic][])Style/ClassAndModuleChildrento skip compact style definitions inside another class or module whenEnforcedStyle: nested. ([@rscq][])Layout/EndAlignmentwithEnforcedStyleAlignWith: variableto handle conditionals insidebeginnodes properly. ([@dvandersluis][])Changes
Lint/UselessOr. ([@r7kamura][])Severityfrom configuration parameters. ([@r7kamura][])Style/CaseEqualityallow regexp case equality where the receiver is a regexp literal. ([@koic][])Lint/CircularArgumentReferenceto detect offenses within long assignment chains. ([@viralpraxis][])Gemspec/RubyVersionGlobalsUsageaware ofRuby::VERSION. ([@koic][])Layout/EmptyLineAfterMagicCommentaware of# rbs_inlinemagic comment. ([@koic][])Lint/ElseLayoutallow a single-lineelsebody inthensingle-line conditional. ([@koic][])Lint/RedundantRequireStatementaware ofpathnamewhen analyzing Ruby 4.0. ([@koic][])Lint/UnreachableCodeaware of singleton method redefinition. ([@koic][])Style/RedundantArgumentaware ofto_i. ([@koic][])IgnoreCopDirectivestoAllowCopDirectivesinLayout/LineLength. ([@koic][])v1.81.7Compare Source
Bug fixes
Layout/HashAlignmentwhenEnforcedStyle: with_fixed_indentationis specified forLayout/ArgumentAlignment. ([@koic][])Naming/PredicateMethodwhen using aninpattern with empty parentheses body. ([@koic][])Style/SoleNestedConditionalwhen using nested single lineif. ([@koic][])Style/ConstantVisibilitywhen visibility is declared with multiple constants. ([@koic][])Style/FloatDivisionwhen usingRegexp.last_matchor nth reference (e.g.,$1). ([@koic][])Naming/MethodNamewhen the first argument toaliascontains interpolation. ([@earlopain][])v1.81.6Compare Source
Bug fixes
Lint/SelfAssignmentwhen using[]=assignment with no arguments. ([@koic][])Style/ArrayIntersectwhenintersection(other).any?is called without a receiver. ([@koic][])Style/ConditionalAssignmentis configured withassign_inside_conditionaland the conditional contains a multi-line regex. ([@martinemde][])Style/RedundantInterpolationwhen using a one-line=>pattern matching. ([@koic][])Style/EndlessMethodwhen heredoc is used in method body. ([@koic][])Style/EndlessMethodwhen the endless method would exceed the maximum line length. ([@koic][])Lint/EmptyInterpolationwhen interpolation is inside a%Wliteral. ([@dvandersluis][])Style/RedundantFormatfalse positive when a interpolated value is given to a specifier with a width or precision. ([@dvandersluis][])Style/RedundantFormathandling control characters like\n. ([@dvandersluis][])Style/Semicolonwhen a method call using hash value omission without parentheses is terminated with a semicolon. ([@koic][])Security/JSONLoadwhencreate_additionsis explicitly specified. ([@earlopain][])Changes
Lint::ConstantOverwrittenInRescuecop to detect offenses within fully qualified constants. ([@viralpraxis][])Lint/ConstantOverwrittenInRescuecop to detect offenses within nested constants. ([@viralpraxis][])Lint/ConstantOverwrittenInRescueto detect any constant assignment. ([@viralpraxis][])Style/LambdaCallautocorrection contextual. ([@koic][])v1.81.1Compare Source
Bug fixes
Lint/DeprecatedOpenSSLConstantwhenCipherappears twice. ([@koic][])Changes
Style/NumberedParametersandStyle/ItBlockParameterwithEnforcedStyle: allow_single_linewhen the block itself is on a single line. ([@earlopain][])v1.81.0Compare Source
New features
Style/ArrayIntersectWithSingleElementcop. ([@r7kamura][])EnforcedStyleForMultiline: diff_commainStyle/TrailingCommaInArguments. ([@akouryy][])Bug fixes
Style/NilComparisoncop when using thevar.==(nil)andvar.===(nil)syntax. ([@viralpraxis][])Style/ExplicitBlockArgumentwhen there are two methods that share the same implementation. ([@earlopain][])Style/NumberedParametersandStyle/ItBlockParameterwhen using multiline method chain withEnforcedStyle: allow_single_line. ([@koic][])Layout/MultilineOperationIndentationwhen using indented code on LHS of equality operator in modifier method definition. ([@koic][])Layout/EmptyLineBetweenDefsforAllowAdjacentOneLineDefs: falseandDefLikeMacrosthat take no block. ([@earlopain][])EnforcedStyle: allowed_in_returnsand!!appears across multiple lines in return position. ([@koic][])Style/RedundantParentheseswhen parentheses are used around a one-linerescueexpression as a condition. ([@koic][])Style/RedundantRegexpEscapewhen an escaped variable sigil follows#(e.g.,/#\@​foo/,/#\@​@​bar/,/#\$baz/). ([@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.