chore(deps): update dependency rubocop to '~> 1.59.0' #125
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.56.0'
->'~> 1.59.0'
Release Notes
rubocop/rubocop (rubocop)
v1.59.0
Compare Source
New features
Lint/ItWithoutArgumentsInBlock
cop. ([@koic][])Bug fixes
Lint/LiteralAssignmentInCondition
when using interpolated string or xstring literals. ([@koic][])Lint/SelfAssignment
when using attribute assignment with method call with arguments. ([@koic][])Style/HashEachMethods
when receiver literal is not a hash literal. ([@koic][])Style/MethodCallWithArgsParentheses
whenEnforcedStyle: omit_parentheses
and parens inwhen
clause is used to pass an argument. ([@koic][])Style/RedundantParentheses
when using parenthesizedlambda
orproc
withdo
...end
block. ([@koic][])Style/CombinableLoops
when looping over the same data as previous loop indo
...end
and{
...}
blocks. ([@koic][])Lint/LiteralAssignmentInCondition
when using parallel assignment with splat operator in block of guard condition. ([@koic][])Style/HashEachMethods
when using destructed block arguments. ([@koic][])Style/RedundantParentheses
when a part of range is a parenthesized condition. ([@koic][])Style/MapToHash
when using dot method calls forto_h
. ([@koic][])Lint/HashCompareByIdentity
aware of safe navigation operator. ([@koic][])Lint/NextWithoutAccumulator
aware of safe navigation operator. ([@koic][])Lint/NumberConversion
aware of safe navigation operator. ([@koic][])Lint/RedundantWithIndex
aware of safe navigation operator. ([@koic][])Lint/RedundantWithObject
aware of safe navigation operator. ([@koic][])Lint/UnmodifiedReduceAccumulator
aware of safe navigation operator. ([@koic][])Style/ClassCheck
aware of safe navigation operator. ([@koic][])Style/CollectionCompact
aware of safe navigation operator. ([@koic][])Style/ConcatArrayLiterals
aware of safe navigation operator. ([@koic][])Style/DateTime
aware of safe navigation operator. ([@koic][])Style/EachWithObject
aware of safe navigation operator. ([@koic][])Style/HashExcept
aware of safe navigation operator. ([@koic][])Style/MapCompactWithConditionalBlock
aware of safe navigation operator. ([@koic][])Style/Next
aware of safe navigation operator. ([@koic][])Style/RedundantArgument
aware of safe navigation operator. ([@koic][])Style/RedundantFetchBlock
aware of safe navigation operator. ([@koic][])Layout/RedundantLineBreak
aware of safe navigation operator. ([@koic][])Style/RedundantSortBy
aware of safe navigation operator. ([@koic][])Style/RedundantSortBy
aware of safe navigation operator. ([@koic][])Style/ExactRegexpMatch
aware of safe navigation operator. ([@koic][])Style/Sample
aware of safe navigation operator. ([@koic][])Style/SelectByRegexp
cops aware of safe navigation operator. ([@koic][])Layout/SingleLineBlockChain
aware of safe navigation operator. ([@koic][])Style/StringChars
aware of safe navigation operator. ([@koic][])Style/Strip
aware of safe navigation operator. ([@koic][])Style/UnpackFirst
aware of safe navigation operator. ([@koic][])Changes
Style/MethodCallWithoutArgsParentheses
allow the parenthesizedit
method in a block. ([@koic][])Style/RedundantSelf
allow theself.it
method in a block. ([@koic][])v1.58.0
Compare Source
New features
Lint/LiteralAssignmentInCondition
cop. ([@koic][])Style/SuperWithArgsParentheses
cop. ([@koic][])Style/ArrayFirstLast
cop. ([@fatkodima][])Bug fixes
Lint/Debugger
when used within method arguments abegin
...end
block. ([@koic][])Style/Semicolon
when a semicolon at the beginning of a lambda block. ([@koic][])Lint/FloatComparison
when comparing against zero. ([@earlopain][])Layout/RescueEnsureAlignment
when alignedrescue
indo
-end
numbered block in a method. ([@koic][])Layout/SpaceBeforeSemicolon
when a space between an opening lambda brace and a semicolon. ([@koic][])Style/RedundantDoubleSplatHashBraces
when method call for parenthesized no hash double double splat. ([@koic][])Naming/BlockForwarding
andStyle/ArgumentsForwarding
when autocorrection conflicts for anonymous arguments. ([@koic][])Layout/RescueEnsureAlignment
when usingrescue
indo
...end
block assigned to object attribute. ([@koic][])Style/CombinableLoops
when looping over the same data for the third consecutive time or more. ([@koic][])Layout/ExtraSpacing
when a file has exactly two comments. ([@eugeneius][])Lint/SymbolConversion
when using string interpolation. ([@earlopain][])Style/RedundantLineContinuation
when redundant line continuations for a block are used, especially without parentheses around first argument. ([@koic][])Style/RedundantParentheses
when parentheses around logical operator keywords in method definition. ([@koic][])Style/RedundantReturn
whenlambda
(->
) ending withreturn
. ([@koic][])Lint/Void
when a collection literal that includes non-literal elements in a method definition. ([@koic][])Style/MapToHash
withLayout/SingleLineBlockChain
. ([@koic][])Lint/SafeNavigationChain
when ordinary method chain exists after safe navigation leading dot method call. ([@koic][])HTMLFormatter
formatter. ([@koic][])Style/HashEachMethods
aware of safe navigation operator. ([@koic][])Style/InverseMethods
aware of safe navigation operator. ([@koic][])Style/MapToHash
aware of safe navigation operator. ([@koic][])Changes
Style/AutoResourceCleanup
aware ofTempfile.open
. ([@koic][])Lint/RedundantSafeNavigation
to handle conversion methods with defaults. ([@fatkodima][])Lint/SelfAssignment
to check attribute assignment and key assignment. ([@fatkodima][])Style/HashEachMethods
aware of unused block value. ([@koic][])Style/RedundantParentheses
aware of lambda or proc. ([@koic][])Style/SelfAssignment
aware of%
,^
,<<
, and>>
operators. ([@koic][])rubocop-ast
version 1.30 or greater. ([@sambostock][])EnforcedStyleForRationalLiterals
option forLayout/SpaceAroundOperators
. ([@koic][])RedundantRestArgumentNames
,RedundantKeywordRestArgumentNames
, andRedundantBlockArgumentNames
options forStyle/ArgumentsForwarding
. ([@koic][])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][])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.