Update dependency rubocop to v1.70.0 #737
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.69.2'
->'1.70.0'
Release Notes
rubocop/rubocop (rubocop)
v1.70.0
Compare Source
New features
Style/ItAssignment
cop to detect local assignments toit
inside blocks. ([@dvandersluis][])Lint/SharedMutableDefault
cop to alert on mutable Hash defaults. ([@corsonknowles][])Lint/ConstantReassignment
. ([@lovro-bikic][])target_gem_version
API to change behavior of a cop at runtime depending on which gem version is present. ([@earlopain][])Bug fixes
Lint/NonAtomicFileOperation
to detect offenses with fully qualified constants. ([@viralpraxis][])--format
option to accept fully qualified formatter class names. ([@viralpraxis][])Lint/Syntax
when a syntax error occurs. ([@earlopain][])RuboCop::Cop::Util.to_string_literal
to work correctly with frozen strings. ([@viralpraxis][])Lint/Void
inside of non-modifier conditionals. ([@GabeIsman][])Style/MultipleComparison
when settingAllowMethodComparison: false
and comparing with simple method calls. ([@koic][])Layout/EmptyLinesAroundAccessModifier
when an access modifier and an expression are on the same line. ([@koic][])Style/MethodCallWithArgsParentheses
when settingEnforcedStyle: omit_parentheses
and last argument is an endless range. ([@earlopain][])Style/RaiseArgs
with anonymous splat and triple dot forwarding. ([@earlopain][])Lint/NestedMethodDefinition
when defining a method on a constant or a method call. ([@koic][])Style/MultipleComparison
when using multiple safe navigation method calls. ([@koic][])Style/RedundantInitialize
when empty initialize method has arguments. ([@marocchino][])rubocop -d
on a config with a remoteinherit_from
that causes a duplicate setting warning. ([@dvandersluis][])Style/RedundantLineContinuation
with multiple line continuations. ([@dvandersluis][])Naming/BlockForwarding
when method just returns the block argument. ([@mvz][])Layout/HashAlignment
when there is a multiline positional argument andLayout/ArgumentAlignment
is configured withEnforcedStyle: with_fixed_indentation
. ([@dvandersluis][])Layout/SpaceAroundOperators
when different comparison operators were aligned with each other. ([@dvandersluis][])Lint/LiteralInInterpolation
cop error on invalid string literal. ([@viralpraxis][])Lint/NonAtomicFileOperation
cop error on non-constant receiver. ([@viralpraxis][])Lint/Void
cop error onif
without body. ([@viralpraxis][])Style/ClassAndModuleChildren
cop error oncompact
enforced style and unindented body. ([@viralpraxis][])Style/FloatDivision
cop error if#to_f
has implicit receiver. ([@viralpraxis][])Style/HashExcept
to recognize safe navigation whenActiveSupportExtensionsEnabled
config is enabled. ([@lovro-bikic][])Style/HashSyntax
cop error on implicitcall
method. ([@viralpraxis][])Style/MissingElse
cop error ifStyle/EmptyElse
'sEnforcedStyle
is notboth
andif
expression containselsif
. ([@viralpraxis][])Style/MissingElse
cop error ifStyle/EmptyElse
'sEnforcedStyle
is notboth
andif
expression contains multipleelsif
. ([@viralpraxis][])Style/RedundantCondition
cop error on parentheses and modifierif
inelse
. ([@viralpraxis][])Style/RedundantRegexpArgument
when the regex contains a single quote. ([@mrzasa][])Style/YodaExpression
cop error in case of suffix form of operator. ([@viralpraxis][])Layout/LineContinuationSpacing
to ignore continuations inside aregexp
orxstr
. ([@dvandersluis][])Style/SuperArguments
to handlesuper
with a block or with a chained method with a block. ([@dvandersluis][])NoMethodError
inConfigValidator
when a Cop's config is not aHash
and raiseValidationError
instead. ([@amomchilov][])Changes
Style/ObjectThen
. ([@dvandersluis][])Layout/HashAlignment
. ([@dvandersluis][])Layout/HeredocArgumentClosingParenthesis
. ([@dvandersluis][])Layout/LineLength
. ([@dvandersluis][])Style/SendWithLiteralMethodName
. ([@dvandersluis][])Lint/NumericOperationWithConstantResult
. ([@earlopain][])Style/SlicingWithRange
when calling.[]
or&.[]
with a correctable range. ([@dvandersluis][])Lint/DuplicateSetElement
to detect offences withinSortedSet
. ([@viralpraxis][])Layout/TrailingWhitespace
to support blank characters other than space and tab. ([@krororo][])Metrics/MethodLength
to make use ofAllowedMethods
andAllowedPatterns
for methods defined dynamically withdefine_method
. ([@dvandersluis][])Style/AccessModifierDeclarations
to addAllowModifiersOnAliasMethod
configuration (defaulttrue
). ([@dvandersluis][])Style/RedundantSelfAssignment
to handle safe navigation on the right-hand side of the assignment. ([@dvandersluis][])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.