-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update dependency rubocop to v1.75.8 #2253
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
Conversation
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
CI Feedback 🧐(Feedback updated until commit a587872)A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
7610a61 to
c181c02
Compare
c181c02 to
d5c7788
Compare
66b514a to
d9789b4
Compare
d9789b4 to
a587872
Compare
a587872 to
73694a1
Compare
This PR contains the following updates:
1.72.2->1.75.8Release Notes
rubocop/rubocop (rubocop)
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][])Style/TrailingCommaInArgumentscop aware of trailing commas in[]method call. ([@viralpraxis][])Style/ClassAndModuleChildrencop error on tab-intended compactable modules. ([@viralpraxis][])Changes
Lint/CircularArgumentReferenceon Ruby 3.4. ([@earlopain][])v1.75.3Compare Source
Bug fixes
#:after end keyword inStyle/CommentedKeyword. ([@dak2][])Layout/EmptyLineAfterGuardClausewhen calling a method on the result of a single-lineifwithreturn. ([@koic][])Style/RedundantParentheseswhen using parens around singleton method body. ([@koic][])EnforcedStyleForMultiline: diff_commaofStyle/TrailingCommaInArrayLiteralandStyle/TrailingCommaInHashLiteralwhen trailing comma with comment. ([@koic][])Style/RedundantParentheseswhen using some operator methods with a parenthesized argument. ([@koic][])Layout/MultilineOperationIndentationcop error onindexasgnnode without arguments. ([@viralpraxis][])Style/ClassAndModuleChildrencop error on one-liner class definition and nested enforced style. ([@viralpraxis][])Style/ConditionalAssignmentcop error on one-line if-then-else. ([@viralpraxis][])Style/ConditionalAssignmentcop error on indexed assignment without arguments. ([@viralpraxis][])Style/RedundantLineContinuationcop error on multiline assignment with line continuation. ([@viralpraxis][])Style/SafeNavigationwith longer&&chain (e.g.a && a.b && a.b.c). ([@lovro-bikic][])Style/MapIntoArraywhen usingpushorappendwith hash argument without braces. ([@lovro-bikic][])Changes
Style/RedundantParentheses. ([@lovro-bikic][])ReferencesoverReferencein cop configs. ([@sambostock][])v1.75.2Compare Source
Changes
Lint/RedundantTypeConversionto register an offense forto_json.to_s. ([@lovro-bikic][])Bug fixes
Lint/DeprecatedOpenSSLConstantcipher constant argument is notcbc. ([@koic][])Style/RedundantConditionwhen true is used as the true branch and the condition takes arguments. ([@koic][])Lint/ReturnInVoidContextwhen returning insidedefine_methodor a nested singleton method. ([@earlopain][])Style/ConditionalAssignmentcop error on dynamic string node in branch. ([@viralpraxis][])Style/FrozenStringLiteralCommentcop errors on emacs-styled magic comment. ([@viralpraxis][])v1.75.1Compare Source
Changes
EnforcedStyle: allow_named_parametertoEnforcedStyle: only_numbered_parametersinStyle/ItBlockParameter. ([@koic][])v1.75.0Compare Source
New features
Style/HashFetchChaincop to detect chainedfetchcalls that can be replaced with a single call todig. ([@dvandersluis][])Style/ItBlockParametercop. ([@koic][])itblock parameter inLayoutcops. ([@koic][])itblock parameter inLintcops. ([@koic][])itblock parameter inMetricscops. ([@koic][])itblock parameter inStylecops. ([@koic][])TargetRubyVersion: 3.5(experimental). ([@earlopain][])Bug fixes
Style/HashFetchChainwhen no arguments are given tofetch. ([@koic][])Layout/MultilineMethodParameterLineBreakswhen class method definitions are used. ([@vlad-pisanov][])Layout/LineLengthwhen autocorrecting class method definitions. ([@vlad-pisanov][])Layout/SpaceAroundOperatorsandLayout/HashAlignmentwithEnforcedHashRocketStylebeing an array containingtable. ([@dvandersluis][])InternalAffairs/RedundantDescribedClassAsSubjectcop error on missingdescribe. ([@viralpraxis][])Lint/ShadowingOuterLocalVariablewhen block local variable is used inside a condition. ([@lovro-bikic][])Lint/UselessAssignmentwhen a variable is reassigned in a different branch. ([@eugeneius][])Style/SoleNestedConditional. ([@lovro-bikic][])Style/IfInsideElse. ([@lovro-bikic][])Changes
doesas a forbidden prefix toNaming/PredicateName. ([@dvandersluis][])ForbiddenIdentifiersandForbiddenPatternsconfig options toNaming/MethodNamecop. ([@tejasbubane][])Array#intersectiontoStyle/ArrayIntersect. ([@dvandersluis][])prismtranslation layer to analyze Ruby 3.4+ by default. ([@earlopain][])Style/RedundantParenthesesto offend parentheses for chained&&expressions. ([@lovro-bikic][])AllowConsecutiveConditionalssetting toStyle/Nextto allow consecutive conditional statements. ([@vlad-pisanov][])Style/RedundantFormatto register offenses when the only argument toformatorsprintfis a constant. ([@dvandersluis][])v1.74.0Compare Source
New features
Style/ComparableBetween. ([@lovro-bikic][])Style/CommentedKeyword. ([@dak2][])Bug fixes
Lint/SharedMutableDefaultwhencapacitykeyword argument is used. ([@koic][])Style/DoubleNegationwhen callingdefine_method/define_singleton_methodwith a numblock. ([@earlopain][])Lint/ReturnInVoidContextwhen returning out of a block. ([@earlopain][])Lint/UselessConstantScopingfor constants defined inclass << self. ([@earlopain][])Lint/NonLocalExitFromIteratorwith numblocks. ([@earlopain][])Style/RedundantCurrentDirectoryInPathwhen using a complex current directory path inrequire_relative. ([@koic][])Lint/LiteralAsConditionwhen the literal is followed byreturn,break, ornext. ([@earlopain][])Style/MethodCallWithArgsParentheseswithEnforcedStyle: omit_parenthesesstyle and numblocks. ([@earlopain][])rubocop-railsorrubocop-performanceextraction, even if they are already part of the Gemfile. ([@earlopain][])Lint/RedundantCopDisableDirectiveto register an offense when cop names are given with improper casing. ([@dvandersluis][])Style/RescueModifierwhen using parallel assignment and the right-hand-side is not a bracketed array. ([@earlopain][])Changes
EnforcedStyleForClassesandEnforcedStyleForModulesconfiguration options toStyle/ClassAndModuleChildren. ([@dvandersluis][])Mode: conservativeconfiguration toStyle/FormatStringTokento make the cop only register offenses for strings given toprintf,sprintf,format, and%. ([@dvandersluis][])TLS1_1andTLS1_2by default inNaming/VariableNumberto accommodate OpenSSL version parameter names. ([@koic][])Lint/RedundantTypeConversionaware of redundantto_d. ([@koic][])v1.73.2Compare Source
Bug fixes
Style/InverseMethodswhen usingany?ornone?with safe navigation operator. ([@koic][])Style/RedundantConditionwhen a variable or a constant is used. ([@koic][])Style/RedundantFreezewhen calling methods that produce frozen objects with numblocks. ([@earlopain][])end pattern with unmatched parenthesis: / (RegexpError)on Ruby 3.2.0. ([@dvandersluis][])Style/KeywordParametersOrderwhen the arguments are on multiple lines and contain comments. ([@earlopain][])Changes
Lint/EmptyConditionalBodyto be safe. ([@dvandersluis][])v1.73.1Compare Source
Bug fixes
Lint/MixedCaseRangewhen/[[ ]]/is used. ([@koic][])Lint/EmptyConditionalBodywhen assigning to a variable with only a single branch. ([@earlopain][])Style/RedundantConditionwhen using when true is used as the true branch and the condition is not a predicate method. ([@koic][])Layout/ClosingParenthesisIndentationwhen first parameter is a hash. ([@tejasbubane][])Style/CommentedKeyword. ([@dak2][])Lint/LiteralAsConditionacting on the right hand side of && nodes. ([@zopolis4][])v1.73.0Compare Source
New features
require_alwaysoption toStyle/EndlessMethod. ([@koic][])require_single_lineoption toStyle/EndlessMethod. ([@jtannas][])Bug fixes
Style/RedundantSelfAssignmentwhen the method receives a block. ([@vlad-pisanov][])Lint/MixedCaseRangeis enabled. ([@earlopain][])Lint/Voidwhen using operator method call without argument. ([@koic][])Style/TrivialAccessorswithinstance_evaland numblocks. ([@earlopain][])Style/EndlessMethodwhen using setter method definitions. ([@koic][])Layout/LineLengthwith interpolated strings when not on the first line. ([@dvandersluis][])Layout/EmptyLinesAroundAccessModifierandLayout/EmptyLinesAroundBlockBodywithEnforcedStyle: no_empty_lines. ([@dvandersluis][])Style/AccessorGroupingwith constants. ([@tejasbubane][])Style/RedundantFormatfor annotated template strings with missing hash keys. ([@dvandersluis][])Style/RedundantFormatwhen given double-splatted arguments. ([@dvandersluis][])Style/StringConcatenationwhen numblocks are used. ([@earlopain][])require 'pp'to be redundant forLint/RedundantRequireStatement. ([@earlopain][])Style/HashExceptandStyle/HashSliceto not register an offense if selecting over the hash value. ([@dvandersluis][])Changes
ForbiddenNamesconfiguration toNaming/VariableNameto specify names that are forbidden. ([@dvandersluis][])Lint/LiteralAsConditioncop to check for redundant conditions. ([@zopolis4][])Referenceto common params. ([@sambostock][])Lint/RedundantTypeConversionto not register an offense when given a constructor withexception: false. ([@dvandersluis][])Style/RedundantConditioncop to detect conditional expressions where the true branch istrueand suggest replacing them with a logical OR. ([@datpmt][])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.