Update dependency rubocop to v1.78.0#10793
Merged
renovate[bot] merged 1 commit intomainfrom Jul 22, 2025
Merged
Conversation
64934d2 to
312d887
Compare
312d887 to
f08766d
Compare
Contributor
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is |
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.75.5"->"1.78.0"Release Notes
rubocop/rubocop (rubocop)
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][])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.