Update dependency rubocop to v1.69.1 #118
Open
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.67.0'
->'1.69.1'
Release Notes
rubocop/rubocop (rubocop)
v1.69.1
Compare Source
Bug fixes
Style/DigChain
when using safe navigation method chain withdig
method. ([@koic][])Style/ParallelAssignment
when using the anonymous splat operator. ([@earlopain][])Lint/UnreachableCode
. ([@isuckatcs][])Style/HashExcept
cop when usingreject/!include?
,reject/!in?
orselect/!exclude?
combinations. ([@lovro-bikic][])Lint/UnescapedBracketInRegexp
cop failure with invalid regular expression. ([@viralpraxis][])Style::AccessModifierDeclarations
cop failure in case ofif
node withoutelse
. ([@viralpraxis][])Style/RedundantArgument
cop failure while inspecting string literal with invalid encoding. ([@viralpraxis][])Style/RedundantParentheses
cop failure in case of splattedcase
node without condition. ([@viralpraxis][])Style/RedundantSelf
cop failure withkwnilarg
argument node. ([@viralpraxis][])Style/StringConcatenation
cop failure when there are mixed implicit and explicit concatenations. ([@viralpraxis][])Lint/UnescapedBracketInRegexp
when using regexp_parser 2.9.2 and earlier. ([@dvandersluis][])Style/BlockDelimiters
to not change braces when they are required for syntax. ([@dvandersluis][])Style/LambdaCall
to be aware of safe navigation. ([@dvandersluis][])v1.69.0
Compare Source
New features
Lint/HashNewWithKeywordArgumentsAsDefault
cop. ([@koic][])Lint/NumericOperationWithConstantResult
cop. ([@zopolis4][])Style/DigChain
cop. ([@dvandersluis][])Style/FileNull
cop. ([@dvandersluis][])Style/FileTouch
cop. ([@lovro-bikic][])Lint/UselessDefined
to detect cases such asdefined?('Foo')
whendefined?(Foo)
was intended. ([@earlopain][])Bug fixes
Layout/EmptyLineAfterGuardClause
when using a guard clause outside oneliner block. ([@koic][])Style/RedundantLineContinuation
when there is a line continuation at the end of Ruby code followed by__END__
data. ([@koic][])Style/CommentedKeyword
. ([@dak2][])Style/IfWithSemicolon
when usingreturn
with value inif
with a semicolon is used. ([@koic][])Style/IfWithSemicolon
when the then body contains an arithmetic operator method call with an argument. ([@koic][])Style/RedundantCondition
skip autocorrection when a branch has a comment. ([@koic][])Style/BitwisePredicate
when having regular method. ([@d4be4st][])Lint/FloatComparison
against nil. ([@lovro-bikic][])Lint/InterpolationCheck
when using invalid syntax in interpolation. ([@koic][])Lint/SafeNavigationConsistency
when using unsafe navigation with both&&
and||
. ([@koic][])Naming/MemoizedInstanceVariableName
for assignment methods`. ([@earlopain][])Naming/MemoizedInstanceVariableName
when usinginitialize_clone
,initialize_copy
, orinitialize_dup
. ([@koic][])Style/SafeNavigation
when using a method chain that exceeds theMaxChainLength
value and includes safe navigation operator. ([@koic][])Style/AccessModifierDeclarations
for multiple inline symbols. ([@dvandersluis][])Lint/Void
if an operator is called in a void context using a dot. ([@dvandersluis][])Lint/DeprecatedOpenSSLConstant
false positive when the argument is a safe navigation method call. ([@dvandersluis][])Style/AccessModifierDeclarations
to register (as positive or negative, depending onAllowModifiersOnSymbols
value) access modifiers with multiple symbols. ([@dvandersluis][])Lint/RedundantSplatExpansion
when percent literal array is used in a safe navigation method call. ([@lovro-bikic][])Style/NestedTernaryOperator
when ternary operators are nested and the inner condition is parenthesized. ([@koic][])Style/OneLineConditional
when the else branch of a ternary operator has multiple expressions. ([@koic][])Style/RedundantRegexpArgument
when using escaped double quote character. ([@koic][])Style/IfWithSemicolon
when using nested if/;/end in if body. ([@koic][])Layout/LeadingCommentSpace
to accept multiline shebangs at the top of the file. ([@dvandersluis][])Style/AccessModifierDeclarations
to handleattr_*
methods with multiple parameters. ([@dvandersluis][])Style/SingleLineDoEndBlock
to not register an offense if it will introduce a conflictingLayout/RedundantLineBreak
offense. ([@dvandersluis][])Changes
Layout/LineLength
whenSplitStrings
is set totrue
. ([@dvandersluis][])Style/ArrayIntersect
aware ofnone?
. ([@earlopain][])Lint/ItWithoutArgumentsInBlock
to not register offenses in Ruby 3.4. ([@dvandersluis][])Lint/RedundantSafeNavigation
to register an offense when the receiver isself
. ([@dvandersluis][])Lint/UnusedMethodArgument
to allow the class names forIgnoreNotImplementedMethods
to be configured. ([@dvandersluis][])Style/AccessModifierDeclarations
to accept modifier with splatted method call. ([@dvandersluis][])v1.68.0
Compare Source
New features
Style/BitwisePredicate
cop. ([@koic][])Style/CombinableDefined
cop. ([@dvandersluis][])Style/AmbiguousEndlessMethodDefinition
cop. ([@dvandersluis][])Lint/UnescapedBracketInRegexp
cop. ([@dvandersluis][])AllowSteepAnnotation
config option toLayout/LeadingCommentSpace
. ([@tk0miya][])IgnoreDuplicateElseBranch
option toLint/DuplicateBranch
. ([@fatkodima][])Style/SafeNavigationChainLength
cop. ([@fatkodima][])Style/KeywordArgumentsMerging
cop. ([@fatkodima][])Bug fixes
Style/RedundantLineContinuation
when there is a line continuation at the EOF. ([@koic][])Naming/BlockForwarding
withStyle/ExplicitBlockArgument
. ([@koic][])Style/BlockDelimiters
autocorrection does not move other code between the block and comment. ([@dvandersluis][])Lint/UselessAssignment
cop when there is a useless assignment followed by a block. ([@pCosta99][])Style/MapIntoArray
when using non-splatted arguments. ([@vlad-pisanov][])Layout/SpaceBeforeBrackets
when there is a dot before[]=
. ([@earlopain][])Lint/SafeNavigationConsistency
when using safe navigation on the LHS with operator method on the RHS of&&
. ([@koic][])Style/GuardClause
when using a local variable assigned in a conditional expression in a branch. ([@koic][])Style/RedundantLineContinuation
when required line continuations for&&
is used with an assignment after a line break. ([@koic][])Style/RedundantParentheses
when parentheses are used around method chain withdo
...end
block in keyword argument. ([@koic][])Lint/SafeNavigationChain
when a safe navigation operator is used with a method call as the RHS operand of&&
for the same receiver. ([@koic][])--disable-uncorrectable
to not insert a comment inside a string continuation. ([@dvandersluis][])Lint/UselessAssignment
a multiple assignment orfor
contains an inner assignment. ([@dvandersluis][])Style/BlockDelimiters
whenEnforcedStyle: semantic
is set and used withLayout/SpaceInsideBlockBraces
. ([@koic][])Style/RedundantInterpolationUnfreeze
andStyle/RedundantFreeze
when strings contain interpolated global, instance, and class variables. ([@vlad-pisanov][])Layout/LineLength
from breaking up a method with arguments chained onto a heredoc delimiter. ([@dvandersluis][])--display-only-correctable
and--display-only-safe-correctable
when no offenses are displayed. ([@dvandersluis][])Style/MultipleComparison
whenComparisonsThreshold
exceeds 2. ([@fatkodima][],[@vlad-pisanov][])Lint/NonAtomicFileOperation
when using a postfixunless
for file existence checks before creating a file, in cases withDir.mkdir
. ([@kotaro0522][])PercentLiteralCorrector
to be able to write pairs of delimiters without excessive escaping. ([@dvandersluis][])Style/SafeNavigation
to not autocorrect if the RHS of anand
node is anor
node. ([@dvandersluis][])Style/TernaryParentheses
with asend
node condition, ensure its arguments are parenthesized. ([@dvandersluis][])Changes
rubocop -V
, show the analysis Ruby version of the current directory. ([@earlopain][])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.