chore(deps): update dependency rubocop to v1.57.2 - autoclosed #85
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.52.1
->1.57.2
Release Notes
rubocop/rubocop (rubocop)
v1.57.2
Compare Source
Bug fixes
Lint/Void
wheneach
's receiver is an object ofEnumerator
to whichfilter
has been applied. ([@koic][])Metrics/ClassLength
when a class with a singleton class definition. ([@koic][])Style/RedundantDoubleSplatHashBraces
when using double splat hash braces withmerge
and method chain. ([@koic][])Style/RedundantParentheses
when using a parenthesized hash literal as the first argument in a method call without parentheses. ([@koic][])Style/SingleLineDoEndBlock
when using single linedo
...end
with no body. ([@koic][])Style/HashSyntax
when braced hash key and value are the same and it is used inif
...else
. ([@koic][])Layout/EndAlignment
whenEnforcedStyleAlignWith: variable
and using a conditional statement in a method argument on the same line andend
with method call is not aligned. ([@koic][])--auto-gen-config
generateinherit_from
correctly inside ERBif
. ([@jonas054][])base64
gem from runtime dependency. ([@koic][])Style/IdenticalConditionalBranches
whenif
...else
with identical leading lines and using index assign. ([@koic][])Style/RedundantDoubleSplatHashBraces
when using double splat with a hash literal enclosed in parenthesized ternary operator. ([@koic][])Lint/EmptyConditionalBody
when missing 2ndif
body with a comment. ([@koic][])Style/RedundantDoubleSplatHashBraces
when using double splat within block argument containing a hash literal in an array literal. ([@koic][])Style/SingleArgumentDig
when using some anonymous argument syntax. ([@koic][])Style/RedundantFilterChain
aware of safe navigation operator. ([@koic][])v1.57.1
Compare Source
Bug fixes
Lint/RedundantSafeNavigation
when using snake case constant receiver. ([@koic][])Layout/MultilineMethodCallIndentation
when usingarithmetic operation with block inside a grouped expression. ([@koic][])Style/RedundantException
. ([@ydah][])Layout/MultilineMethodCallIndentation
when multiline method chain with a block argument and method chain. ([@ydah][])Style/RedundantDoubleSplatHashBraces
when method call for no hash braced double splat receiver. ([@koic][])Style/RedundantDoubleSplatHashBraces
when using double splat hash braces withmerge
method call twice. ([@koic][])v1.57.0
Compare Source
New features
Style/SingleLineDoEndBlock
cop. ([@koic][])Lint/RedundantSafeNavigation
aware of constant receiver. ([@koic][])Style/RedundantDoubleSplatHashBraces
aware ofmerge
methods. ([@koic][])Bug fixes
Lint/Debugger
when using debugger method inside block. ([@koic][])Metrics/ModuleLength
when defining a singleton class in a module. ([@koic][])Style/IdenticalConditionalBranches
whenif
..else
with identical leading lines and assign to condition value. ([@koic][])Lint/LiteralInInterpolation
to accept an empty string literal interpolated in words literal. ([@knu][])Lint/MixedCaseRange
when using nested character class in regexp. ([@koic][])Style/NestedTernaryOperator
when a ternary operator has a nested ternary operator within anif
. ([@koic][])Style/MultilineBlockChain
when using multiline block chain with safe navigation operator. ([@koic][])Style/RedundantParentheses
when using logical or comparison expressions with redundant parentheses. ([@koic][])Layout/MultilineMethodCallIndentation
when aligning methods in multiline block chain. ([@koic][])Changes
Style/FormatString
's autocorrection when using known conversion methods whose return value is not an array. ([@koic][])Style/GuardClause
aware ofdefine_method
. ([@koic][])Style/RedundantFilterChain
aware ofselect.present?
whenActiveSupportExtensionsEnabled
config istrue
. ([@koic][])Lint/RedundantRequireStatement
as unsafe autocorrect. ([@koic][])Style/ClassEqualityComparison
. ([@koic][])Style/RedundantFilterChain
as unsafe autocorrect. ([@koic][])v1.56.4
Compare Source
Bug fixes
Layout/EmptyLineAfterGuardClause
when usingreturn
before guard condition with heredoc. ([@koic][])Lint/OrderedMagicComments
when comment text# encoding: ISO-8859-1
is embedded within example code as source code comment. ([@koic][])Style/OperatorMethodCall
when usingfoo bar./ baz
. ([@koic][])--disable-uncorrectable
command line option when registering an offense is outside a percent array. ([@koic][])Lint/SafeNavigationChain
when using safe navigation with comparison operator as an expression of logical operator or comparison operator's operand. ([@koic][])Style/OperatorMethodCall
when usingfoo./bar
. ([@koic][])Style/RedundantConditional
when unless/else with boolean results. ([@ydah][])Layout/MultilineMethodCallIndentation
when using safe navigation operator. ([@koic][])Changes
Style/CollectionMethods
aware ofcollect_concat
. ([@koic][])v1.56.3
Compare Source
Bug fixes
Layout/EmptyLineAfterGuardClause
allow:nocov:
directive after guard clause. ([@koic][])Layout/SpaceAfterNot
when a newline is present after!
. ([@ymap][])Layout/RedundantLineBreak
when using quoted symbols with a single newline. ([@ymap][])Layout/SpaceAroundOperators
when aligning operators vertically. ([@koic][])Style/ArrayIntersect
when using block argument forEnumerable#any?
. ([@koic][])Style/EmptyCaseCondition
when usingreturn
,break
,next
or method call before empty case condition. ([@koic][])Bundler/DuplicatedGroup
when there's a duplicate set of groups and thegroup
value contains a splat. ([@koic][])Lint/UselessAssignment
when variables are assigned using chained assignment and remain unreferenced. ([@koic][])Lint/UselessAssignment
when variables are assigned with sequential assignment using the comma operator and unreferenced. ([@koic][])Style/SoleNestedConditional
when comment is in an empty nestedif
body. ([@ymap][])Style/MultilineTernaryOperator
when returning a multiline ternary operator expression with safe navigation method call. ([@koic][])Style/ArgumentsForwarding
when there are repeated send nodes. ([@owst][])Layout/HeredocIndentation
. ([@tagliala][])v1.56.2
Compare Source
Bug fixes
Layout/LineContinuationLeadingSpace
when a backslash is part of a multiline string literal. ([@ymap][])Layout/RedundantLineBreak
when using a modified singleton method definition. ([@koic][])Lint/ToEnumArguments
when using anonymous keyword arguments forwarding. ([@koic][])Lint/NonAtomicFileOperation
when usingFileUtils.remove_dir
,FileUtils.remove_entry
, orFileUtils.remove_entry_secure
. ([@koic][])Style/ArgumentsForwarding
when method def includes additional kwargs. ([@owst][])diagnosticProvider
value of LSP. ([@koic][])v1.56.1
Compare Source
Bug fixes
Layout/LeadingCommentSpace
when using#+
or#-
as they are not RDoc comments. ([@koic][])Bundler/DuplicatedGroup
when groups are duplicated butsource
,git
,platforms
, orpath
values are different. ([@koic][])Style/MethodCallWithArgsParentheses
when parentheses are used in one-linein
pattern matching. ([@koic][])Bundler/DuplicatedGroup
group declaration has keyword option. ([@koic][])Style/ArgumentsForwarding
cop when forwarding kwargs/block arg and an additional arg. ([@ydah][])Style/ArgumentsForwarding
cop when not always forwarding block. ([@owst][])Style/Lambda
when using numbered parameter with a multiline->
call. ([@koic][])Style/RedundantParentheses
when parentheses insuper
oryield
call with multiline style argument. ([@koic][])Style/SymbolArray
when%i
array containing unescaped[
,]
,(
, or)
. ([@koic][])Style/RedundantSelfAssignmentBranch
to handle heredocs. ([@r7kamura][])Gem::Requirement
matcher and version parsing to support multiple version constraints. ([@ItsEcholot][])v1.56.0
Compare Source
New features
Bundler/DuplicatedGroup
cop. ([@OwlKing][])rubocop.formatAutocorrectsAll
execute command. ([@koic][])Bug fixes
Style/RedundantReturn
when returning value with guard clause andreturn
is used. ([@koic][])Style/Alias
whenEncforcedStyle: prefer_alias
and usingalias
with interpolated symbol argument. ([@koic][])Style/ClassEqualityComparison
when comparing interpolated string class name for equality. ([@koic][])Style/LambdaCall
when using nested lambda callx.().()
. ([@koic][])Style/Alias
whenEncforcedStyle: prefer_alias_method
and usingalias
with interpolated symbol argument. ([@koic][])Lint/SuppressedException
whenAllowNil: true
is set and endless method definition is used. ([@koic][])Style/ArgumentsForwarding
with additional args/kwargs in def/send nodes. ([@owst][])Style/SymbolArray
false positives when using square brackets or interpolation in a symbol literal in a percent style array. ([@jasondoc3][])--fail-level A
ignore non-correctable offenses at :info severity. ([@naveg][])Changes
base64
gem to runtime dependency to suppress Ruby 3.3's warning. ([@koic][])v1.55.1
Compare Source
Bug fixes
Style/ReturnNilInPredicateMethodDefinition
when the last method argument in method definition isnil
. ([@koic][])Lint/UselessAssignment
when a variable is assigned and unreferenced infor
with multiple variables. ([@koic][])Style/MixinGrouping
when mixin method has no arguments. ([@koic][])private_class_method
method documentation. ([@bigzed][])Style/ArgumentsForwarding
when receiver forwards args/kwargs. ([@owst][])v1.55.0
Compare Source
New features
Style/ArgumentsForwarding
for anonymous arg/kwarg forwarding in Ruby 3.2. ([@owst][])layoutMode
option to run layout cops. ([@koic][])lintMode
option to run lint cops. ([@koic][])ReturnNilInPredicateMethodDefinition
aware ofnil
at the end of predicate method definition. ([@koic][])Bug fixes
omit_parentheses
style ofStyle/MethodCallWithArgsParentheses
. ([@gsamokovarov][])Layout/RedundantLineBreak
when inspecting the%
form string%\n\n
. ([@koic][])Style/CombinableLoops
when one of the loops is empty. ([@fatkodima][])Style/StringLiteralsInInterpolation
for symbols with interpolation. ([@fatkodima][])[]
and()
with percent symbol arrays. ([@jasondoc3][])LoadError
when loading RuboCop from a symlinked location on Windows. ([@p0deje][])Changes
Style/RedundantArgument
aware ofexit
andexit!
. ([@koic][])Style/HashConversion
as unsafe autocorrection. ([@koic][])v1.54.2
Compare Source
Bug fixes
Layout/ExtraSpacing
when some characters are vertically aligned. ([@koic][])Layout/TrailingEmptyLines
to prevent the following incorrect autocorrection when inspecting the%
form string%\n\n
. ([@koic][])AllCops:Exclude
is empty in .rubocop.yml. ([@koic][])v1.54.1
Compare Source
Bug fixes
Lint/RedundantRegexpQuantifiers
when interpolation is used in a regexp literal. ([@koic][])Layout/SpaceAfterComma
withLayout/SpaceBeforeSemicolon
when autocorrection conflicts. ([@koic][])Lint/UselessAssignment
when part of a multiple assignment is enclosed in parentheses. ([@koic][])Metrics/MethodLength
when using a heredoc in a block without block arguments. ([@koic][])Style/RedundantRegexpArgument
when using safe navigation operator. ([@koic][])v1.54.0
Compare Source
New features
Bug fixes
Lint/Debugger
when using debugger method inside lambda. ([@koic][])Lint/MixedCaseRange
when the number of characters at the start or end of range is other than 1. ([@koic][])NoMethodError
for built-in language server when an internal error occurs. ([@koic][])Layout/LineEndStringConcatenationIndentation
when inspecting the%
from string%\n\n
. ([@koic][])Layout/SpaceAroundOperators
when using unary operator with double colon. ([@koic][])Style/IfWithSemicolon
when without branch bodies. ([@koic][])Style/YodaCondition
when equality check method is used without the first argument. ([@koic][])Style/RedundantRegexpArgument
when using unicode chars. ([@koic][])Lint/Void
cop for__ENCODING__
constant. ([@fatkodima][])Changes
Include
list. ([@ydah][])v1.53.1
Compare Source
Bug fixes
Style/RedundantCurrentDirectoryInPath
when using string interpolation inrequire_relative
. ([@koic][])Style/RedundantRegexpArgument
when using double quote and single quote characters. ([@koic][])Lint/SymbolConversion
. ([@KessaPassa][])v1.53.0
Compare Source
New features
Lint/MixedCaseRange
cop. ([@rwstauner][])Lint/RedundantRegexpQuantifiers
cop. ([@jaynetics][])Style/RedundantCurrentDirectoryInPath
cop. ([@koic][])Style/RedundantRegexpArgument
cop. ([@koic][])Style/ReturnNilInPredicateMethodDefinition
cop. ([@koic][])Style/YAMLFileRead
cop. ([@koic][])Bug fixes
Lint/DuplicateHashKey
when there is a duplicated constant key in the hash literal. ([@koic][])Style/RedundantSelfAssignmentBranch
when using method chaining or arguments in ternary branch. ([@koic][])Layout/RedundantLineBreak
when using a line broken string. ([@koic][])Lint/RedundantRequireStatement
when usingPP.pp
. ([@koic][])Lint/NumberConversion
when using multiple number conversion methods. ([@koic][])Lint/Void
whenCheckForMethodsWithNoSideEffects: true
and using a method definition. ([@koic][])Style/IdenticalConditionalBranches
when using empty parentheses in theif
branch. ([@koic][])Style/RedundantStringEscape
when an escaped double quote precedes interpolation in a symbol literal. ([@koic][])Style/ConditionalAssignment
with an assignment that usesif
branch bodies, which include a block. ([@koic][])Layout/EmptyLinesAroundExceptionHandlingKeywords
when using Ruby 2.5'srescue
inside block and Ruby 2.7's numbered block. ([@koic][])Style/RedundantRegexpEscape
string with invalid byte sequence in UTF-8. ([@ydah][])Lint/DuplicateRegexpCharacterClassElement
. ([@rwstauner][])Changes
Layout/ClassStructure
as unsafe to autocorrect. ([@nevans][])AllowedParentClasses
config toLint/MissingSuper
. ([@iMacTia][])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 has been generated by Mend Renovate. View repository job log here.