-
Notifications
You must be signed in to change notification settings - Fork 0
Update dependency rubocop to v1 #3
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
base: main
Are you sure you want to change the base?
Conversation
8087ea8 to
d63b91c
Compare
a656d9c to
f6b8e54
Compare
f6b8e54 to
2f74f46
Compare
|
Kudos, SonarCloud Quality Gate passed! |
2f74f46 to
6268252
Compare
6268252 to
2e16f17
Compare
2e16f17 to
8c0bccf
Compare
8c0bccf to
c48cc89
Compare
c48cc89 to
6b5946f
Compare
|
Kudos, SonarCloud Quality Gate passed! |
6b5946f to
1c955c3
Compare
1c955c3 to
e393b43
Compare
308f7e9 to
37f9cb4
Compare
37f9cb4 to
e8f0855
Compare
|
Kudos, SonarCloud Quality Gate passed! |
e8f0855 to
142bcdd
Compare
|
Kudos, SonarCloud Quality Gate passed! |
142bcdd to
d9db27e
Compare
d9db27e to
bc2483b
Compare
bc2483b to
eee04da
Compare
eee04da to
4d992fe
Compare
4d992fe to
44168ef
Compare
44168ef to
fb00941
Compare
fb00941 to
daa0c60
Compare
6be5825 to
3ca9d43
Compare
3ca9d43 to
68e5dca
Compare
68e5dca to
cbbea76
Compare
b2a7d3f to
e0d602b
Compare
e0d602b to
8521951
Compare
|
8521951 to
8ec92f0
Compare
|
8ec92f0 to
f18f9a3
Compare
f18f9a3 to
c012d7f
Compare
|
c012d7f to
74250a5
Compare
74250a5 to
2bd5f4a
Compare
2bd5f4a to
b456d6c
Compare
|
b456d6c to
94d447e
Compare
94d447e to
9610231
Compare
9610231 to
4bf01cd
Compare
4bf01cd to
60afa04
Compare
60afa04 to
83d3358
Compare
83d3358 to
9f87cbc
Compare
|
9f87cbc to
4d61a35
Compare
4d61a35 to
8e81b28
Compare
8e81b28 to
24f903f
Compare
24f903f to
41930a5
Compare
41930a5 to
661d76b
Compare
|
661d76b to
085bfdd
Compare
|
085bfdd to
36975ec
Compare
|












This PR contains the following updates:
'~> 0.66.0'→'~> 1.82.0'Release 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](https://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.