chore(deps): update dependency rubocop to '~> 1.73.1' #465
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.0'
->'~> 1.73.1'
Release Notes
rubocop/rubocop (rubocop)
v1.73.1
Compare Source
Bug fixes
Lint/MixedCaseRange
when/[[ ]]/
is used. ([@koic][])Lint/EmptyConditionalBody
when assigning to a variable with only a single branch. ([@earlopain][])Style/RedundantCondition
when using when true is used as the true branch and the condition is not a predicate method. ([@koic][])Layout/ClosingParenthesisIndentation
when first parameter is a hash. ([@tejasbubane][])Style/CommentedKeyword
. ([@dak2][])Lint/LiteralAsCondition
acting on the right hand side of && nodes. ([@zopolis4][])v1.73.0
Compare Source
New features
require_always
option toStyle/EndlessMethod
. ([@koic][])require_single_line
option toStyle/EndlessMethod
. ([@jtannas][])Bug fixes
Style/RedundantSelfAssignment
when the method receives a block. ([@vlad-pisanov][])Lint/MixedCaseRange
is enabled. ([@earlopain][])Lint/Void
when using operator method call without argument. ([@koic][])Style/TrivialAccessors
withinstance_eval
and numblocks. ([@earlopain][])Style/EndlessMethod
when using setter method definitions. ([@koic][])Layout/LineLength
with interpolated strings when not on the first line. ([@dvandersluis][])Layout/EmptyLinesAroundAccessModifier
andLayout/EmptyLinesAroundBlockBody
withEnforcedStyle: no_empty_lines
. ([@dvandersluis][])Style/AccessorGrouping
with constants. ([@tejasbubane][])Style/RedundantFormat
for annotated template strings with missing hash keys. ([@dvandersluis][])Style/RedundantFormat
when given double-splatted arguments. ([@dvandersluis][])Style/StringConcatenation
when numblocks are used. ([@earlopain][])require 'pp'
to be redundant forLint/RedundantRequireStatement
. ([@earlopain][])Style/HashExcept
andStyle/HashSlice
to not register an offense if selecting over the hash value. ([@dvandersluis][])Changes
ForbiddenNames
configuration toNaming/VariableName
to specify names that are forbidden. ([@dvandersluis][])Lint/LiteralAsCondition
cop to check for redundant conditions. ([@zopolis4][])Reference
to common params. ([@sambostock][])Lint/RedundantTypeConversion
to not register an offense when given a constructor withexception: false
. ([@dvandersluis][])Style/RedundantCondition
cop to detect conditional expressions where the true branch istrue
and suggest replacing them with a logical OR. ([@datpmt][])v1.72.2
Compare Source
Bug fixes
AllCops: Exclude
as expected. ([@koic][])Style/RedundantFormat
when a template argument is used without keyword arguments. ([@koic][])Style/RedundantFormat
when numeric placeholders is used in the template argument. ([@koic][])ArgumentError
related to two deprecatedAllowedPattern
APIs. ([@koic][])Lint/UselessConstantScoping
when multiple assigning to constants afterprivate
access modifier. ([@koic][])Lint/UselessConstantScoping
when a constant is used afterprivate
access modifier with arguments. ([@koic][])Changes
Style/RedundantFormat
as unsafe autocorrect. ([@koic][])v1.72.1
Compare Source
Bug fixes
Style/RedundantParentheses
when a different expression appears before a range literal. ([@koic][])Lint/RedundantTypeConversion
when passing block arguments when generating a Hash or a Set. ([@koic][])Changes
v1.72.0
Compare Source
New features
Lint/CopDirectiveSyntax
cop. ([@kyanagi][])Lint/SuppressedExceptionInNumberConversion
cop. ([@koic][])Lint/RedundantTypeConversion
cop. ([@dvandersluis][])Lint/UselessConstantScoping
cop. ([@koic][])Style/RedundantFormat
cop to check for uses offormat
orsprintf
with only a single string argument. ([@dvandersluis][])InternalAffairs/LocationExists
cop to check for code that can be replaced withNode#loc?
orNode#loc_is?
. ([@dvandersluis][])inherit_from
andrequire
for automatically restart. ([@koic][])Naming/PredicateName
: Optionally use Sorbet to detect predicate methods. ([@issyl0][])Bug fixes
Style/RedundantParentheses
when chaining[]
method calls. ([@koic][])Style/RedundantParentheses
when[]
method is called with variable or constant receivers. ([@koic][])Style/RedundantParentheses
when handling range literals with redundant parentheses. ([@koic][])Layout/EmptyLinesAroundMethodBody
for endless methods. ([@dvandersluis][])Lint/FormatParameterMismatch
when the width value is interpolated. ([@dvandersluis][])Layout/BlockAlignment
for blocks that are the body of an endless method. ([@dvandersluis][])v1.71.2
Compare Source
Bug fixes
Layout/ElseAlignment
whenelse
is part of a numblock. ([@earlopain][])Lint/UselessAssignment
when assigning in branch and block. ([@pCosta99][])Lint/Void
wheneach
numblock with conditional expressions that has multiple statements. ([@earlopain][])Style/ExplicitBlockArgument
when using arguments ofzsuper
in method definition. ([@koic][])Style/EachWithObject
cop error in case of single block argument. ([@viralpraxis][])Lint/UnmodifiedReduceAccumulator
when omitting the accumulator in a nested numblock. ([@earlopain][])v1.71.1
Compare Source
Bug fixes
include RuboCop::RSpec::ExpectOffense
in rubocop/rspec/support.rb. ([@d4rky-pl][])Lint/AmbiguousBlockAssociation
with numblocks. ([@earlopain][])Lint/ConstantDefinitionInBlock
with numblocks. ([@earlopain][])Naming/BlockForwarding
andStyle/ArgumentsForwarding
with Ruby >= 3.4 when the block argument is referenced inside a block. This was previously disabled because of a bug in Ruby 3.3.0. ([@earlopain][])Layout/EmptyLineBetweenDefs
withDefLikeMacros
and numblocks. ([@earlopain][])Style/RedundantParentheses
with numblocks. ([@earlopain][])Style/AccessModifierDeclarations
when using access modifier in a numblock. ([@earlopain][])Lint/AssignmentInCondition
when assigning in numblocks. ([@earlopain][])Layout/RedundantLineBreak
when using numbered block parameter. ([@koic][])Style/SuperArguments
when calling super in a numblock. ([@earlopain][])Lint/UnreachableCode
withinstance_eval
numblock. ([@earlopain][])Style/RedundantSelfAssignment
when assigning to attribute ofself
. ([@koic][])Style/HashExcept
andStyle/HashSlice
when checking for inclusion with a range. ([@dvandersluis][])Layout/ExtraSpacing
withForceEqualSignAlignment: true
for endless methods. ([@dvandersluis][])Style/IdenticalConditionalBranches
autocorrect when condition is inside assignment. ([@dvandersluis][])Layout/SingleLineBlockChain
with numblocks. ([@earlopain][])Style/SoleNestedConditional
when using numblocks. ([@earlopain][])v1.71.0
Compare Source
New features
Lint/ArrayLiteralInRegexp
cop. ([@dvandersluis][])Style/HashSlice
cop. ([@lovro-bikic][])Bug fixes
Style/FrozenStringLiteralComment
when using the frozen string literal magic comment in Active Admin's arb files. ([@koic][])rubocop_cache
to the path given by--cache-root
when pruning cache. ([@capncavedan][])Lint/OutOfRangeRegexpRef
when matching withmatch
using safe navigation. ([@koic][])Style/BlockDelimiters
when using brace blocks as conditions underEnforcedStyle: semantic
. ([@koic][])Style/RedundantLineContinuation
when the continuation is preceded by an interpolated string. ([@dvandersluis][])Style/RedundantLineContinuation
when the continuation is followed by a percent array. ([@dvandersluis][])Style/RedundantLineContinuation
when the ruby code ends with a commented continuation. ([@dvandersluis][])Style/ArrayFirstLast
when calling.[]
or&.[]
with 0 or -1. ([@dvandersluis][])Lint/SafeNavigationChain
when adding safe navigation to an operator call inside a hash. ([@dvandersluis][])Style/IfUnlessModifier
when using omitted hash values in an assignment. ([@elliottt][])Style/SoleNestedConditional
. ([@tejasbubane][])Style/RedundantLineContinuation
when calling methods with fully qualified constants. ([@earlopain][])Style/ConditionalAssignment
cop error onunless
withoutelse
andassign_inside_condition
enforced style. ([@viralpraxis][])Style/FrozenStringLiteralComment
cop error on unnormalized magic comment andnever
enforced style. ([@viralpraxis][])Metrics/CollectionLiteralLength
to only register for[]
when called onSet
. ([@dvandersluis][])Changes
Lint/FloatComparison
. ([@dvandersluis][])Layout/MultilineMethodCallBraceLayout
. ([@dvandersluis][])Layout/MultilineMethodArgumentLineBreaks
. ([@dvandersluis][])Security/CompoundHash
. ([@dvandersluis][])Style/BlockDelimiters
. ([@dvandersluis][])Style/CollectionMethods
. ([@dvandersluis][])Style/MapToSet
. ([@dvandersluis][])Style/MethodCallWithoutArgsParentheses
. ([@dvandersluis][])Lint/NumericOperationWithConstantResult
. ([@dvandersluis][])Lint/RedundantStringCoercion
. ([@dvandersluis][])Lint/UselessNumericOperation
. ([@dvandersluis][])--show-cops
. ([@kyanagi][])Style/RedundantParentheses
aware of parenthesized assignment. ([@koic][])Style/RedundantLineContinuation
to handle required continuations followingsuper
. ([@dvandersluis][])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][])v1.69.2
Compare Source
Bug fixes
Style/MultipleComparison
when a variable is compared multiple times after a method call. ([@koic][])Bundler/DuplicatedGem
cop error in case of empty branch. ([@viralpraxis][])Lint/UnescapedBracketInRegexp
cop failure with invalid multibyte escape. ([@earlopain][])Style/FileNull
when using'nul'
string. ([@koic][])--disable-uncorrectable
to not insert directives inside a string. ([@dvandersluis][])Layout/LineContinuationLeadingSpace
andStyle/StringLiterals
autocorrects in the same pass. ([@dvandersluis][])Style/BlockDelimiters
to always accept braces when an operator method argument is chained. ([@dvandersluis][])Style/RedundantLineContinuation
false negatives when a redundant continuation follows a required continuation. ([@dvandersluis][])Style/IfWithSemicolon
when using multi value assignment inif
with a semicolon is used. ([@koic][])Layout/LineLength
cop failure in case of YARD-comment-like string. ([@viralpraxis][])Lint/NonAtomicFileOperation
cop error in case of implicit receiver. ([@viralpraxis][])Metrics/ClassLength
cop error in case of chained assignments. ([@viralpraxis][])Naming/RescuedExceptionsVariableName
cop error when exception is assigned with writer method. ([@viralpraxis][])Style/RedundantLineContinuation
when a method definition is used as an argument for a method call. ([@davidrunger][])Style/ExactRegexpMatch
cop error on invalid regular expression literal. ([@viralpraxis][])Style/FrozenStringLiteralComment
false positive in case of non-downcased value literal. ([@viralpraxis][])Style/MethodCallWithoutArgsParentheses
cop error in case of mass hash assignment. ([@viralpraxis][])Style/RedundantCondition
cop failure in case of empty arguments. ([@viralpraxis][])Layout/ExtraSpacing
andLayout/SpaceAroundOperators
to handle preceding operators inside strings. ([@dvandersluis][])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][])Configuration
📅 Schedule: Branch creation - "after 8am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.