Open
Conversation
bff0515 to
3fc7c92
Compare
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.81.0'→'~> 1.84.0'Release Notes
rubocop/rubocop (rubocop)
v1.84.1Compare Source
Bug fixes
Layout/IndentationWidthcop. ([@viralpraxis][])Style/NegativeArrayIndexwhen usingselfas array with implicitselfreceiver. ([@koic][])Style/GuardClausewhen using heredoc as an argument of method call in raise inelsebranch. ([@koic][])Style/IfUnlessModifierwhen multipleif/unlessstatements share the same line in arrays, method arguments, or hash values. ([@ydakuka][])Layout/FirstArgumentIndentationandLayout/LineLengthwhen correcting method chains. ([@ydakuka][])Layout/MultilineMethodCallIndentationto properly handle method chains inside hash pair values. ([@ydakuka][])Changes
infinite?method to the allowlists forNaming/PredicateMethod,Style/IfWithBooleanLiteralBranches, andStyle/RedundantCondition, in addition to the existingnonzero?. ([@koic][])v1.84.0Compare Source
New features
AllowImplicitArrayLiteralstoLayout/FirstArrayElementLineBreak. ([@koic][])Style/ReverseFindcop. ([@koic][])Style/EmptyClassDefinitioncop to enforce consistent style for empty class definitions. The cop can enforce either a two-line class definition orClass.newfor classes with no body. ([@ydakuka][])Style/HashLookupMethodcop to enforceHash#[]vsHash#fetchpreference. ([@sferik][])Style/NegativeArrayIndexcop to enforce using negative array indices instead of calculating array length minus a value. The cop handles both simple index patterns and range patterns, and recognizes preserving methods and their combinations. ([@ydakuka][])TargetRubyVersion 4.1(experimental). ([@koic][])Bug fixes
CategoriesforLayout/ClassStructure. ([@fatkodima][])Style/GuardClausewhen using heredoc as an argument of raise inelsebranch andifbranch is empty. ([@koic][])Style/HashLookupMethodcop when there's no receiver. ([@viralpraxis][])ruby_extractorwhen usingoffset: 0and different source buffers. ([@ydakuka][])Style/RedundantConditionwhen the branches contains constant assignment. ([@koic][])--force-default-confignot preventing project config loading when used with options that access configuration. ([@sakuro][])Style/HashSyntaxwhen shorthand syntax is used in condition ofif/unless/while/until. ([@ydakuka][])Layout/IndentationWidthby adding a newEnforcedStyleAlignWithstyle parameter. ([@MikeMcQuaid][])Layout/LineLengthwhenSplitStringsoption is enabled and strings span multiple lines. ([@HariprasanthMSH][])Layout/IndentationWidthandLayout/IndentationConsistencywhen usingEnforcedStyle: indented_internal_methodswith method chain blocks. ([@ydakuka][])Layout/IndentationWidthwhen autocorrecting mixed tabs and spaces in blocks. Fix an infinite loop error forLayout/DefEndAlignmentandLayout/IndentationStylewhen autocorrecting mixed tabs and spaces. Autocorrection for tabs is disabled inAlignmentCorrectorfor indentation offenses, but enabled foralign_end. ([@ydakuka][])Layout/FirstArgumentIndentationto correct entire method calls and chains for nested calls. ([@ydakuka][])Offense#highlighted_areato return a validParser::Source::Range. ([@ydakuka][])Security/JSONLoadwhencreate_additionsoption is passed with other options in a hash. ([@wktk][])Changes
squishandsquish!applied to heredoc toLayout/HeredocIndentation. ([@lovro-bikic][])Forwardablemethods inLint/DuplicateMethods. ([@lovro-bikic][])Lint/RedundantSplatExpansionaware of constant assignment. ([@koic][])Style/AccessModifierDeclarationsaware of self class. ([@koic][])Modulemember existence methods toStyle/ModuleMemberExistenceCheck. ([@lovro-bikic][])AllowedMethodsconfiguration toStyle/ModuleMemberExistenceCheck. ([@lovro-bikic][])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][])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.