-
Notifications
You must be signed in to change notification settings - Fork 16
Update dependency rubocop to v1.81.7 #7255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/rubocop-1.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
c5d2a07 to
217114b
Compare
217114b to
bb3bb26
Compare
bb3bb26 to
e8d1a9c
Compare
e8d1a9c to
497348a
Compare
497348a to
30261c1
Compare
Contributor
Author
|
30261c1 to
9631394
Compare
9631394 to
1a6ac3e
Compare
1a6ac3e to
f6be72f
Compare
f6be72f to
84f65d6
Compare
84f65d6 to
cbdc6e9
Compare
cbdc6e9 to
1cb020a
Compare
1cb020a to
f7acbd8
Compare
f7acbd8 to
c1d7422
Compare
5b20e6c to
1fb9e13
Compare
1fb9e13 to
fccaa2d
Compare
fccaa2d to
2935d64
Compare
2935d64 to
ce21a03
Compare
ce21a03 to
e612615
Compare
e612615 to
cdabb5b
Compare
cdabb5b to
5917219
Compare
5917219 to
3037ec2
Compare
3037ec2 to
ea48fdd
Compare
ea48fdd to
050b91e
Compare
ecda0fe to
67b0262
Compare
67b0262 to
db699d8
Compare
db699d8 to
210a685
Compare
210a685 to
1357aca
Compare
1357aca to
c99726d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
'1.66.1'->'1.81.7'Release Notes
rubocop/rubocop (rubocop)
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][])Layout/RescueEnsureAlignmentwith a block whose send node is split over multiple lines. ([@dvandersluis][])Style/RedundantFormatwhen the format string has a variable width that isn't given as a literal value. ([@dvandersluis][])ParserEngine: parser_prismis configured in a base config file. ([@sudoremo][])Lint/Voidwhen using a return value in assignment method definition. ([@koic][])Style/RedundantRegexpArgumentwhen using escaped single quote character. ([@koic][])Style/UnlessElsewhen usingunlesswiththen. ([@koic][]).rubocop.yml,.rubocop_todo.yml) change. ([@earlopain][]).rubocopconfig file. ([@earlopain][])Layout/LineLengthautocorrection from splitting a block if its receiver contains a heredoc. ([@dvandersluis][])Lint/ShadowedArgumentwhen assigning inside arescueblock. ([@earlopain][])Changes
positionEncodingutf-8andutf-32. ([@tmtm][])v1.80.2Compare Source
Bug fixes
Style/SafeNavigationwhen using ternary expression with index access call with method chain. ([@koic][])Style/RedundantParentheseswith unary operators andyield,super, ordefined?. ([@earlopain][])Style/RedundantParentheseswith method calls taking argument without parentheses likereturn (x y) if z. ([@earlopain][])Style/StringConcatenationwhen a double-quoted string contains escaped quotes and interpolation. ([@earlopain][])Style/StringConcatenationwhen a single-quoted string contains interpolation like'#{foo}'. ([@earlopain][])Changes
Naming/PredicateMethodallow theinitializemethod. ([@koic][])v1.80.1Compare Source
Bug fixes
--display-timeoption is used on the CLI. ([@lovro-bikic][])Style/RedundantBeginusingbeginwith multiple statements withoutrescueorensure. ([@koic][])Changes
Layout/EndAlignmentwhenendis not on a separate line. ([@lovro-bikic][])v1.80.0Compare Source
Bug fixes
Style/BitwisePredicatewhen using&with LHS flags in conjunction with==for comparisons. ([@koic][])Style/Forwith save navigation in the collection. ([@earlopain][])Lint/DuplicateRegexpCharacterClassElementis enabled. ([@earlopain][])Lint/UselessAssignmentwhen duplicate assignments appear in nestedifbranches inside a loop and the variable is used outsidewhileloop. ([@koic][])Naming/MethodNamewhen an operator method is defined using a string. ([@koic][])Style/RedundantParentheseswhendo...endblock is wrapped in parentheses as a method argument. ([@koic][])Style/SafeNavigation. ([@issyl0][])Layout/EmptyLinesAfterModuleInclusionwhenincludedoes not have exactly one argument. ([@issyl0][])Style/SafeNavigationcop to preserve existing safe navigation in fixed code. ([@martinemde][])Lint/UselessAssignmentwithforloops when the variable is referenced in the collection. ([@earlopain][])Style/RedundantConditionwith a parenthesised method call in the condition. ([@earlopain][])Changes
Lint/SelfAssignmentto handle indexed assignment with multiple arguments. ([@viralpraxis][])AutoCorrectandIncludefrom configuration parameters. ([@r7kamura][])Style/RedundantBeginaware ofcasepattern matching. ([@koic][])Style/ArrayIntersect. ([@lovro-bikic][])TextDocumentSyncKind.Incremental. ([@tmtm][])Style/RedundantBeginto registerbeginblocks insideif,unless,case,whileanduntilas redundant. ([@dvandersluis][])v1.79.2Compare Source
Bug fixes
Layout/EmptyLinesAroundClassBodywhen a class body starts with a blank line and defines a multiline superclass. ([@koic][])Layout/EmptyLinesAroundArgumentswith multiline strings that contain only whitespace. ([@earlopain][])Layout/EmptyLinesAfterModuleInclusionwhen inclusion is called with modifier. ([@r7kamura][])Lint/UselessAssignmentwhen duplicate assignments appear inifbranch inside a loop and the variable is used outsidewhileloop. ([@koic][])Style/MapToHashwhen usingto_hwith block argument. ([@koic][])Style/MapToSetwhen usingto_setwith block argument. ([@koic][])Style/SafeNavigationwhen ternary expression with operator method call with method chain. ([@koic][])Changes
Style/RedundantParentheses. ([@lovro-bikic][])v1.79.1Compare Source
Bug fixes
Style/ArgumentsForwardingwhen the method arguments contain*,**or&, and the method call containsselfas the first argument. ([@earlopain][])Layout/EmptyLinesAfterModuleInclusionwhenprependis used with block methods. ([@koic][])Style/RedundantParentheseswhen parentheses are used around a one-linerescueexpression inside a ternary operator. ([@koic][])Lint/UselessAssignmentwhen duplicate assignments inifbranch inside a loop. ([@koic][])Lint/UselessAssignmentwithretryinrescuebranch. ([@earlopain][])Style/RedundantParentheseswhen parentheses are used around a one-linerescueexpression inside array or hash literals. ([@koic][])Changes
Naming/MethodNamecop to detect offenses withinaliasandalias_methodcalls. ([@viralpraxis][])||toLint/LiteralAsCondition. ([@zopolis4][])v1.79.0Compare Source
New features
Layout/EmptyLinesAfterModuleInclusion. ([@lovro-bikic][])Naming/MethodNamecop to detect offenses withinDatamembers. ([@viralpraxis][])Bug fixes
Style/ParallelAssignmentwhen a lambda with parallel assignment is used on the RHS. ([@koic][])Style/AccessorGroupingseparated autocorrect. ([@r7kamura][])Lint/UselessAssignmentwhen the assignment is inside a loop body. ([@5hun-s][])Style/RedundantParentheseswhen using parentheses around arescueexpression on a one-line. ([@koic][])Style/AccessModifierDeclarationswhen using a grouped access modifier declaration. ([@girasquid][])Style/SingleLineMethodswhen defining a single-line singleton method. ([@koic][])Style/SingleLineMethodswhen a single-line method definition contains a modifier. ([@koic][])Naming/MethodNamecop false positives withdefine_methodand operator names. ([@viralpraxis][])Naming/PredicateMethodignoring the implicitnilfrom missingelsebranches. ([@earlopain][])Style/ItBlockParametercop error onalwaysstyle and missing block body. ([@viralpraxis][])Lint/RequireRangeParenthesesto not register false positives when range elements span multiple lines. ([@dvandersluis][])Style/SoleNestedConditionalto properly correct assignments withinand. ([@dvandersluis][])Changes
tsortgem to runtime dependency for Ruby 3.5-dev. ([@koic][])Style/ItAssignmentto consider all local variable and method parameter names. ([@dvandersluis][])Layout/SpaceAroundKeywordto offend for missing whitespace betweenreturnand opening parenthesis. ([@lovro-bikic][])Layout/SpaceAroundOperatorsaware of alternative and as pattern matchings. ([@koic][])Lint/RedundantSafeNavigationaware of builtin convert methodsto_s,to_i,to_f,to_a, andto_h. ([@koic][])InferNonNilReceiverconfig toLint/RedundantSafeNavigationto check previous code paths if the receiver is non-nil. ([@fatkodima][])array1.any? { |elem| array2.member?(elem) }andarray1.none? { |elem| array2.member?(elem) }inStyle/ArrayIntersect. ([@lovro-bikic][])v1.78.0Compare Source
New features
Naming/MethodNamecop to detect offenses withindefine_methodcalls. ([@viralpraxis][])Naming/MethodNamecop to handle offenses withinStructmembers. ([@viralpraxis][])Security/Evalcop to detectKernel.evalcalls. ([@viralpraxis][])Bug fixes
Style/HashConversionto avoid syntax error. ([@koic][])Style/SingleLineMethods. ([@koic][])--formatdisables parallelization. ([@r7kamura][])Lint/DuplicateMethodscop when self-alias trick is used. ([@viralpraxis][])Lint/LiteralAsConditionwhen a literal is used inside||incasecondition. ([@koic][])Style/HashConversionfor nestedHash[]calls. ([@dvandersluis][])Lint/RedundantTypeConversionwhen using parentheses with no arguments or any arguments. ([@koic][])Style/ItBlockParameterwhen using a single numbered parameter after multiple numbered parameters in a method chain. ([@koic][])Changes
WaywardPredicatesconfig toNaming/PredicateMethodto handle methods that look like predicates but aren't. ([@dvandersluis][])v1.77.0Compare Source
New features
Gemspec/AttributeAssignmentcop. ([@viralpraxis][])Style/CollectionQuerying. ([@lovro-bikic][])DefaultToNiloption toStyle/FetchEnvVarcop. ([@Yuhi-Sato][])Gemspec/RequireMFAcop autocorrect to insert MFA directive after lastmetadataassignment. ([@viralpraxis][])Layout/SpaceInsideArrayLiteralBracketscop to analyze nested constant patterns. ([@viralpraxis][])Bug fixes
Style/HashConversionwhen using nestedHash[]. ([@koic][])Style/SoleNestedConditionalwhen autocorrecting nested if/unless/if. ([@ssagara00][])Layout/SpaceBeforeBracketswhen call desugaredHash#[]to lvar receiver with a space around the dot. ([@koic][])Style/RedundantParentheseswhen assigning a parenthesized one-lineinpattern matching. ([@koic][])Style/RedundantSelfwhen receiver and lvalue have the same name in or-assignment. ([@koic][])Lint/SelfAssignmentto allow inline RBS comments. ([@Morriar][])Style/MethodCallWithArgsParenthesesfalse positive on forwarded keyword argument with additional arguments. ([@viralpraxis][])Style/RedundantParentheses. ([@lovro-bikic][])Changes
Naming/PredicateMethodto consider negation (!/not) as boolean values. ([@dvandersluis][])Naming/PredicateMethodto treat returned predicate method calls as boolean values. ([@dvandersluis][])v1.76.2Compare Source
Bug fixes
Lint/EmptyInterpolationwhen using a boolean literal inside interpolation. ([@koic][])Lint/UselessDefaultValueArgumentwhenfetchcall without a receiver. ([@koic][])Style/ConditionalAssignmentcop when using one-line branches. ([@viralpraxis][])Style/RedundantParentheseswhen using parenthesized one-line pattern matching in endless method definition. ([@koic][])Style/RedundantSelfwhen local variable assignment name is used in nestedif. ([@koic][])Lint/SafeNavigationChainwhen a safe navigation is used on the left-hand side of a-operator when inside an array. ([@koic][])Changes
AllowedPatternsandAllowBangMethodsconfiguration toNaming/PredicateMethod. ([@dvandersluis][])Lint/AmbiguousRange. ([@lovro-bikic][])Lint/UselessAccessModifier. ([@lovro-bikic][])Style/MinMaxComparison. ([@lovro-bikic][])v1.76.1Compare Source
Bug fixes
Lint/EmptyInterpolationwhen using primitives in interpolation. ([@ka8725][])Style/SafeNavigationwhen using ternary expression with index access call. ([@koic][])Style/SafeNavigationwhen using ternary expression with operator method call. ([@koic][])Style/RedundantArrayFlattenwhenArray#joinis used with an argument other than the defaultnil. ([@koic][])Style/RedundantParentheseswhen using one-lineinpattern matching in operator. ([@koic][])Naming/PredicateMethodcop error on empty parentheses method body. ([@viralpraxis][])Style/SafeNavigationcop error on indexed assignment in ternary expression. ([@viralpraxis][])Style/SafeNavigationinvalid autocorrection on double colon method call. ([@viralpraxis][])v1.76.0Compare Source
New features
Naming/PredicateMethodcop to check that predicate methods end with?and non-predicate methods do not. ([@dvandersluis][])Style/EmptyStringInsideInterpolationcop. ([@zopolis4][])Style/RedundantArrayFlatten. ([@lovro-bikic][])Lint/UselessOr. ([@lovro-bikic][])Gemspecdepartment cops to detect offenses if specification variable isitor a numbered parameter. ([@viralpraxis][])Lint/UselessDefaultValueArgument. ([@lovro-bikic][])Bug fixes
Style/RedundantParentheseswhen using a one-linerescueexpression as a method argument. ([@koic][])Style/RedundantParentheseswhen using one-line pattern matching. ([@koic][])Style/SafeNavigationwhen a ternary expression is used in a method argument. ([@steiley][])Lint/LiteralAsConditionautocorrect when branches of a condition have comments. ([@zopolis4][])Changes
EnforcedStyle: allow_single_lineas the default toStyle/ItBlockParameter. ([@koic][])Lint/ShadowingOuterLocalVariableby default. ([@nekketsuuu][])!=) inLint/IdentityComparison. ([@lovro-bikic][])v1.75.8Compare Source
Bug fixes
Lint/FloatComparisoncop to detect floating-point number comparisons incasestatements. ([@daisuke][])Style/RedundantFormatwith invalid format arguments. ([@earlopain][])Style/DefWithParentheseswhen using endless method definition with empty parentheses and a space before=. ([@koic][])EnforcedStyle: with_fixed_indentationofLayout/ArgumentAlignmentandEnforcedStyle: consistentofLayout/FirstArgumentIndentationandLayout/HashAlignment. ([@koic][])Layout/EmptyLinesAroundAccessModifiercop error on trailing access modifier. ([@viralpraxis][])Lint/DuplicateMethodscop error ontooption is dynamically generated andprefixis enabled. ([@viralpraxis][])Style/MapToHashwith destructuring argument. ([@lovro-bikic][])rubocop:todoEOL comment. ([@jonas054][])v1.75.7Compare Source
Bug fixes
Style/IfUnlessModifierOfIfUnlesswhen using nested modifier. ([@koic][])Layout/SpaceBeforeBracketswhen using space between method argument parentheses and left bracket. ([@koic][])Layout/SpaceBeforeBracketswhen using space between receiver and left brackets, and a space inside left bracket. ([@koic][])Style/AccessModifierDeclarationscop error on semicolon after modifier. ([@viralpraxis][])Style/AccessModifierDeclarationscop error on symbol modifier without surrounding scope. ([@viralpraxis][])Style/AccessModifierDeclarationscop false positives when there are no method definitions and style isinline. ([@viralpraxis][])Lint/UselessAssignmentcop error when using nested assignment with splat. ([@earlopain][])Changes
Gemspec/DuplicatedAssignmentcop to detect duplicated indexed assignment. ([@viralpraxis][])prefixargument fordelegatemethod inLint/DuplicateMethods. ([@lovro-bikic][])v1.75.6Compare Source
Bug fixes
Style/MultilineIfModifierwhen using nested modifier. ([@koic][])nilrepresentation in todo file comments. ([@jonas054][])Lint/UselessAssignmentwhen variables are assigned using unary operator in chained assignment and remain unreferenced. ([@koic][])Style/StringConcatenationwhen using implicit concatenation with string interpolation. ([@koic][])Style/SoleNestedConditionalwhen using nestedifandnotin condition. ([@koic][])Layout/SpaceInsideArrayLiteralBracketscop error on array pattern without brackets. ([@viralpraxis][])Style/PercentQLiteralscop error on Unicode escape sequence. ([@viralpraxis][])Changes
Style/ComparableBetweenas unsafe. ([@earlopain][])Lint/DuplicateMethodsaware of Active Support'sdelegatemethod. ([@lovro-bikic][])Style/IfUnlessModifierallow endless method definition in theifbody. ([@koic][])v1.75.5Compare Source
Bug fixes
Layout/SpaceAfterSemicolonwithLayout/SpaceBeforeSemicolonwhen a sequence of semicolons appears. ([@koic][])Lint/ArrayLiteralInRegexpcop error on empty interpolation. ([@viralpraxis][])Layout/HashAlignment. ([@jonas054][])Style/ArgumentsForwardingwhen using anonymous block argument forwarding to a method with a block. ([@koic][])Layout/LeadingCommentSpaceto allow splitting long inline RBS comment signatures across multiple lines. ([@Morriar][])Lint/LiteralAsConditioncop error onifwithout body. ([@viralpraxis][])Lint/Voidcop error on nested emptybegin. ([@viralpraxis][])Style/IdenticalConditionalBranchescop failure in case ofifnode with implicitthen. ([@viralpraxis][])Style/MethodCallWithArgsParenthesescop error on complex numbers whenEnforcedStyleis set toomit_parentheses. ([@viralpraxis][])Style/TrailingCommaInArgumentscop error ifEnforcedStyleForMultilineis set tocomma. ([@viralpraxis][])Changes
Layout/SpaceInsideArrayLiteralBracketsmake aware of array pattern matching. ([@koic][])Layout/SpaceInsideHashLiteralBracesmake aware of hash pattern matching. ([@koic][])v1.75.4Compare Source
Bug fixes
Lint/BooleanSymbolwhen using the rocket hash syntax with a boolean symbol key. ([@koic][])Style/ComparableBetweenwhen comparing the value with itself. ([@earlopain][])Style/SafeNavigationwhen the RHS of&&is a complex||expression composed of&&conditions. ([@koic][])Style/ArgumentsForwardingwhen using default positional arg, keyword arg, and block arg in Ruby 3.1. ([@koic][])Style/RedundantParentheseswhen parens around basic conditional as the second argument of a parenthesized method call. ([@koic][])Style/RedundantParentheseswhen parens around unparenthesized method call as the second argument of a parenthesized method call. ([@koic][])Lint/LiteralAsConditionautocorrect when a literal is the condition of an elsif followed by an else. ([@zopolis4][])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.