-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps): update dependency rubocop to v1.82.1 #33
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
main
Choose a base branch
from
renovate/rubocop-1.x-lockfile
base: main
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.
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
cc04526 to
de5546f
Compare
de5546f to
d2d9a42
Compare
d2d9a42 to
ba48ede
Compare
ba48ede to
e05d197
Compare
e05d197 to
6d97f28
Compare
6d97f28 to
c6d49d9
Compare
c6d49d9 to
9392973
Compare
9392973 to
947e318
Compare
947e318 to
78e3223
Compare
78e3223 to
b7a91bc
Compare
b7a91bc to
c33e01e
Compare
c33e01e to
50ae6bd
Compare
50ae6bd to
a774b0d
Compare
a774b0d to
873e73c
Compare
873e73c to
23df651
Compare
b117d66 to
a113305
Compare
a113305 to
4edfffd
Compare
4edfffd to
11ef5ed
Compare
11ef5ed to
89f1a3d
Compare
89f1a3d to
a8b8d6e
Compare
a8b8d6e to
ac3563e
Compare
ac3563e to
467c6e2
Compare
467c6e2 to
c04d524
Compare
c04d524 to
ccf4aaf
Compare
ccf4aaf to
279b2d9
Compare
279b2d9 to
7997637
Compare
7997637 to
11ce282
Compare
11ce282 to
4fe69d4
Compare
4fe69d4 to
7d30d28
Compare
7d30d28 to
d4e4543
Compare
d4e4543 to
d0f4fbc
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.68.0→1.82.1Release Notes
rubocop/rubocop (rubocop)
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][])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.7](httpConfiguration
📅 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 is behind base branch, 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.