chore(deps): update dependency rubocop to v1.57.2
This MR contains the following updates:
Package | Update | Change |
---|---|---|
rubocop (source, changelog) | minor |
1.50.2 -> 1.57.2
|
Release Notes
rubocop/rubocop (rubocop)
v1.57.2
Bug fixes
-
#12274: Fix a false positive for
Lint/Void
wheneach
's receiver is an object ofEnumerator
to whichfilter
has been applied. ([@koic][]) -
#12291: Fix a false positive for
Metrics/ClassLength
when a class with a singleton class definition. ([@koic][]) -
#12293: Fix a false positive for
Style/RedundantDoubleSplatHashBraces
when using double splat hash braces withmerge
and method chain. ([@koic][]) -
#12298: Fix a false positive for
Style/RedundantParentheses
when using a parenthesized hash literal as the first argument in a method call without parentheses. ([@koic][]) -
#12283: Fix an error for
Style/SingleLineDoEndBlock
when using single linedo
...end
with no body. ([@koic][]) -
#12312: Fix an incorrect autocorrect for
Style/HashSyntax
when braced hash key and value are the same and it is used inif
...else
. ([@koic][]) -
#12307: Fix an infinite loop error for
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][]) -
#11652: Make
--auto-gen-config
generateinherit_from
correctly inside ERBif
. ([@jonas054][]) -
#12310: Drop
base64
gem from runtime dependency. ([@koic][]) -
#12300: Fix an error for
Style/IdenticalConditionalBranches
whenif
...else
with identical leading lines and using index assign. ([@koic][]) -
#12286: Fix false positives for
Style/RedundantDoubleSplatHashBraces
when using double splat with a hash literal enclosed in parenthesized ternary operator. ([@koic][]) -
#12279: Fix false positives for
Lint/EmptyConditionalBody
when missing 2ndif
body with a comment. ([@koic][]) -
#12275: Fix a false positive for
Style/RedundantDoubleSplatHashBraces
when using double splat within block argument containing a hash literal in an array literal. ([@koic][]) -
#12284: Fix false positives for
Style/SingleArgumentDig
when using some anonymous argument syntax. ([@koic][]) -
#12301: Make
Style/RedundantFilterChain
aware of safe navigation operator. ([@koic][])
v1.57.1
Bug fixes
-
#12271: Fix a false positive for
Lint/RedundantSafeNavigation
when using snake case constant receiver. ([@koic][]) -
#12265: Fix an error for
Layout/MultilineMethodCallIndentation
when usingarithmetic operation with block inside a grouped expression. ([@koic][]) -
#12177: Fix an incorrect autocorrect for
Style/RedundantException
. ([@ydah][]) -
#12261: Fix an infinite loop for
Layout/MultilineMethodCallIndentation
when multiline method chain with a block argument and method chain. ([@ydah][]) -
#12263: Fix false positives for
Style/RedundantDoubleSplatHashBraces
when method call for no hash braced double splat receiver. ([@koic][]) -
#12262: Fix an incorrect autocorrect for
Style/RedundantDoubleSplatHashBraces
when using double splat hash braces withmerge
method call twice. ([@koic][])
v1.57.0
New features
-
#12227: Add new
Style/SingleLineDoEndBlock
cop. ([@koic][]) -
#12246: Make
Lint/RedundantSafeNavigation
aware of constant receiver. ([@koic][]) -
#12257: Make
Style/RedundantDoubleSplatHashBraces
aware ofmerge
methods. ([@koic][])
Bug fixes
-
#12244: Fix a false negative for
Lint/Debugger
when using debugger method inside block. ([@koic][]) -
#12231: Fix a false negative for
Metrics/ModuleLength
when defining a singleton class in a module. ([@koic][]) -
#12249: Fix a false positive
Style/IdenticalConditionalBranches
whenif
..else
with identical leading lines and assign to condition value. ([@koic][]) -
#12253: Fix
Lint/LiteralInInterpolation
to accept an empty string literal interpolated in words literal. ([@knu][]) - #12198: Fix an error for flip-flop with beginless or endless ranges. ([@koic][])
-
#12259: Fix an error for
Lint/MixedCaseRange
when using nested character class in regexp. ([@koic][]) -
#12237: Fix an error for
Style/NestedTernaryOperator
when a ternary operator has a nested ternary operator within anif
. ([@koic][]) -
#12228: Fix false negatives for
Style/MultilineBlockChain
when using multiline block chain with safe navigation operator. ([@koic][]) -
#12247: Fix false negatives for
Style/RedundantParentheses
when using logical or comparison expressions with redundant parentheses. ([@koic][]) -
#12226: Fix false positives for
Layout/MultilineMethodCallIndentation
when aligning methods in multiline block chain. ([@koic][]) - #12076: Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. ([@K-S-A][])
Changes
- #12235: Enable auto parallel inspection when config file is specified. ([@aboutNisblee][])
-
#12234: Enhance
Style/FormatString
's autocorrection when using known conversion methods whose return value is not an array. ([@koic][]) -
#12128: Make
Style/GuardClause
aware ofdefine_method
. ([@koic][]) -
#12126: Make
Style/RedundantFilterChain
aware ofselect.present?
whenActiveSupportExtensionsEnabled
config istrue
. ([@koic][]) -
#12250: Mark
Lint/RedundantRequireStatement
as unsafe autocorrect. ([@koic][]) -
#12097: Mark unsafe autocorrect for
Style/ClassEqualityComparison
. ([@koic][]) -
#12210: Mark
Style/RedundantFilterChain
as unsafe autocorrect. ([@koic][])
v1.56.4
Bug fixes
-
#12221: Fix a false positive for
Layout/EmptyLineAfterGuardClause
when usingreturn
before guard condition with heredoc. ([@koic][]) -
#12213: Fix a false positive for
Lint/OrderedMagicComments
when comment text# encoding: ISO-8859-1
is embedded within example code as source code comment. ([@koic][]) -
#12205: Fix an error for
Style/OperatorMethodCall
when usingfoo bar./ baz
. ([@koic][]) -
#12208: Fix an incorrect autocorrect for the
--disable-uncorrectable
command line option when registering an offense is outside a percent array. ([@koic][]) -
#12203: Fix an incorrect autocorrect for
Lint/SafeNavigationChain
when using safe navigation with comparison operator as an expression of logical operator or comparison operator's operand. ([@koic][]) -
#12206: Fix an incorrect autocorrect for
Style/OperatorMethodCall
when usingfoo./bar
. ([@koic][]) -
#12202: Fix an incorrect autocorrect for
Style/RedundantConditional
when unless/else with boolean results. ([@ydah][]) -
#12199: Fix false negatives for
Layout/MultilineMethodCallIndentation
when using safe navigation operator. ([@koic][])
Changes
v1.56.3
Bug fixes
-
#12151: Make
Layout/EmptyLineAfterGuardClause
allow:nocov:
directive after guard clause. ([@koic][]) -
#12195: Fix a false negative for
Layout/SpaceAfterNot
when a newline is present after!
. ([@ymap][]) -
#12192: Fix a false positive for
Layout/RedundantLineBreak
when using quoted symbols with a single newline. ([@ymap][]) -
#12190: Fix a false positive for
Layout/SpaceAroundOperators
when aligning operators vertically. ([@koic][]) -
#12171: Fix a false positive for
Style/ArrayIntersect
when using block argument forEnumerable#any?
. ([@koic][]) -
#12172: Fix a false positive for
Style/EmptyCaseCondition
when usingreturn
,break
,next
or method call before empty case condition. ([@koic][]) -
#12162: Fix an error for
Bundler/DuplicatedGroup
when there's a duplicate set of groups and thegroup
value contains a splat. ([@koic][]) -
#12182: Fix an error for
Lint/UselessAssignment
when variables are assigned using chained assignment and remain unreferenced. ([@koic][]) -
#12181: Fix an incorrect autocorrect for
Lint/UselessAssignment
when variables are assigned with sequential assignment using the comma operator and unreferenced. ([@koic][]) -
#12187: Fix an incorrect autocorrect for
Style/SoleNestedConditional
when comment is in an empty nestedif
body. ([@ymap][]) -
#12183: Fix an incorrect autocorrect for
Style/MultilineTernaryOperator
when returning a multiline ternary operator expression with safe navigation method call. ([@koic][]) -
#12168: Fix bug in
Style/ArgumentsForwarding
when there are repeated send nodes. ([@owst][]) -
#12185: Set target version for
Layout/HeredocIndentation
. ([@tagliala][])
v1.56.2
Bug fixes
-
#12138: Fix a false positive for
Layout/LineContinuationLeadingSpace
when a backslash is part of a multiline string literal. ([@ymap][]) -
#12155: Fix false positive for
Layout/RedundantLineBreak
when using a modified singleton method definition. ([@koic][]) -
#12143: Fix a false positive for
Lint/ToEnumArguments
when using anonymous keyword arguments forwarding. ([@koic][]) -
#12148: Fix an incorrect autocorrect for
Lint/NonAtomicFileOperation
when usingFileUtils.remove_dir
,FileUtils.remove_entry
, orFileUtils.remove_entry_secure
. ([@koic][]) -
#12141: Fix false positive for
Style/ArgumentsForwarding
when method def includes additional kwargs. ([@owst][]) -
#12154: Fix incorrect
diagnosticProvider
value of LSP. ([@koic][])
v1.56.1
Bug fixes
-
#12136: Fix a false negative for
Layout/LeadingCommentSpace
when using#+
or#-
as they are not RDoc comments. ([@koic][]) -
#12113: Fix a false positive for
Bundler/DuplicatedGroup
when groups are duplicated butsource
,git
,platforms
, orpath
values are different. ([@koic][]) -
#12134: Fix a false positive for
Style/MethodCallWithArgsParentheses
when parentheses are used in one-linein
pattern matching. ([@koic][]) -
#12111: Fix an error for
Bundler/DuplicatedGroup
group declaration has keyword option. ([@koic][]) -
#12109: Fix an error for
Style/ArgumentsForwarding
cop when forwarding kwargs/block arg and an additional arg. ([@ydah][]) -
#12117: Fix a false positive for
Style/ArgumentsForwarding
cop when not always forwarding block. ([@owst][]) -
#12115: Fix an error for
Style/Lambda
when using numbered parameter with a multiline->
call. ([@koic][]) -
#12124: Fix false positives for
Style/RedundantParentheses
when parentheses insuper
oryield
call with multiline style argument. ([@koic][]) -
#12120: Fix false positives for
Style/SymbolArray
when%i
array containing unescaped[
,]
,(
, or)
. ([@koic][]) -
#12133: Fix
Style/RedundantSelfAssignmentBranch
to handle heredocs. ([@r7kamura][]) -
#12105: Fix target ruby
Gem::Requirement
matcher and version parsing to support multiple version constraints. ([@ItsEcholot][])
v1.56.0
New features
-
#12074: Add new
Bundler/DuplicatedGroup
cop. ([@OwlKing][]) -
#12078: Make LSP server support
rubocop.formatAutocorrectsAll
execute command. ([@koic][])
Bug fixes
-
#12106: Fix a false negative for
Style/RedundantReturn
when returning value with guard clause andreturn
is used. ([@koic][]) -
#12095: Fix a false positive for
Style/Alias
whenEncforcedStyle: prefer_alias
and usingalias
with interpolated symbol argument. ([@koic][]) -
#12098: Fix a false positive for
Style/ClassEqualityComparison
when comparing interpolated string class name for equality. ([@koic][]) -
#12102: Fix an error for
Style/LambdaCall
when using nested lambda callx.().()
. ([@koic][]) -
#12099: Fix an incorrect autocorrect for
Style/Alias
whenEncforcedStyle: prefer_alias_method
and usingalias
with interpolated symbol argument. ([@koic][]) -
#12085: Fix an error for
Lint/SuppressedException
whenAllowNil: true
is set and endless method definition is used. ([@koic][]) -
#12087: Fix false positives for
Style/ArgumentsForwarding
with additional args/kwargs in def/send nodes. ([@owst][]) -
#12071: Fix
Style/SymbolArray
false positives when using square brackets or interpolation in a symbol literal in a percent style array. ([@jasondoc3][]) - #12061: Support regex in StringLiteralsInInterpolation. ([@jonas054][])
-
#12091: With
--fail-level A
ignore non-correctable offenses at :info severity. ([@naveg][])
Changes
v1.55.1
Bug fixes
-
#12068: Fix a false positive for
Style/ReturnNilInPredicateMethodDefinition
when the last method argument in method definition isnil
. ([@koic][]) -
#12082: Fix an error for
Lint/UselessAssignment
when a variable is assigned and unreferenced infor
with multiple variables. ([@koic][]) -
#12079: Fix an error for
Style/MixinGrouping
when mixin method has no arguments. ([@koic][]) -
#11637: Correct Rubocop for
private_class_method
method documentation. ([@bigzed][]) -
#12070: Fix false positive in
Style/ArgumentsForwarding
when receiver forwards args/kwargs. ([@owst][])
v1.55.0
New features
-
#11794: Add support to
Style/ArgumentsForwarding
for anonymous arg/kwarg forwarding in Ruby 3.2. ([@owst][]) -
#12044: Make LSP server support
layoutMode
option to run layout cops. ([@koic][]) -
#12056: Make LSP server support
lintMode
option to run lint cops. ([@koic][]) -
#12046: Make
ReturnNilInPredicateMethodDefinition
aware ofnil
at the end of predicate method definition. ([@koic][])
Bug fixes
-
#12055: Allow parentheses in single-line match patterns when using the
omit_parentheses
style ofStyle/MethodCallWithArgsParentheses
. ([@gsamokovarov][]) -
#12050: Fix a false positive for
Layout/RedundantLineBreak
when inspecting the%
form string%\n\n
. ([@koic][]) -
#12063: Fix
Style/CombinableLoops
when one of the loops is empty. ([@fatkodima][]) -
#12059: Fix a false negative for
Style/StringLiteralsInInterpolation
for symbols with interpolation. ([@fatkodima][]) - #11834: Fix false positive for when variable in inside conditional branch in nested node. ([@alexeyschepin][])
-
#11802: Improve handling of
[]
and()
with percent symbol arrays. ([@jasondoc3][]) - #12052: Fix "Subfolders can't include glob special characters". ([@meric426][], [@loveo][])
-
#12062: Fix
LoadError
when loading RuboCop from a symlinked location on Windows. ([@p0deje][])
Changes
-
#12064: Make
Style/RedundantArgument
aware ofexit
andexit!
. ([@koic][]) -
#12015: Mark
Style/HashConversion
as unsafe autocorrection. ([@koic][])
v1.54.2
Bug fixes
-
#12043: Fix a false negative for
Layout/ExtraSpacing
when some characters are vertically aligned. ([@koic][]) -
#12040: Fix a false positive for
Layout/TrailingEmptyLines
to prevent the following incorrect autocorrection when inspecting the%
form string%\n\n
. ([@koic][]) -
#1867: Fix an error when
AllCops:Exclude
is empty in .rubocop.yml. ([@koic][]) - #12034: Fix invalid byte sequence in UTF-8 error when using an invalid encoding string. ([@koic][])
- #12038: Output the "server restarting" message to stderr. ([@knu][])
v1.54.1
Bug fixes
-
#12024: Fix a false positive for
Lint/RedundantRegexpQuantifiers
when interpolation is used in a regexp literal. ([@koic][]) -
#12020: This MR fixes an infinite loop error for
Layout/SpaceAfterComma
withLayout/SpaceBeforeSemicolon
when autocorrection conflicts. ([@koic][]) -
#12014: Fix an error for
Lint/UselessAssignment
when part of a multiple assignment is enclosed in parentheses. ([@koic][]) -
#12011: Fix an error for
Metrics/MethodLength
when using a heredoc in a block without block arguments. ([@koic][]) -
#12010: Fix false negatives for
Style/RedundantRegexpArgument
when using safe navigation operator. ([@koic][])
v1.54.0
New features
Bug fixes
-
#12005: Fix a false negative for
Lint/Debugger
when using debugger method inside lambda. ([@koic][]) -
#11986: Fix a false positive for
Lint/MixedCaseRange
when the number of characters at the start or end of range is other than 1. ([@koic][]) -
#11992: Fix an unexpected
NoMethodError
for built-in language server when an internal error occurs. ([@koic][]) -
#11994: Fix an error for
Layout/LineEndStringConcatenationIndentation
when inspecting the%
from string%\n\n
. ([@koic][]) -
#12007: Fix an error for
Layout/SpaceAroundOperators
when using unary operator with double colon. ([@koic][]) -
#11996: Fix an error for
Style/IfWithSemicolon
when without branch bodies. ([@koic][]) -
#12009: Fix an error for
Style/YodaCondition
when equality check method is used without the first argument. ([@koic][]) - #11998: Fix an error when inspecting blank heredoc delimiter. ([@koic][])
-
#11989: Fix an incorrect autocorrect for
Style/RedundantRegexpArgument
when using unicode chars. ([@koic][]) - #12001: Fix code length calculator for method calls with heredoc. ([@fatkodima][])
-
#12002: Fix
Lint/Void
cop for__ENCODING__
constant. ([@fatkodima][])
Changes
-
#11983: Add Ridgepole files to default
Include
list. ([@ydah][]) - #11738: Enhances empty_line_between_defs to treat configured macros like defs. ([@catwomey][])
v1.53.1
Bug fixes
-
#11974: Fix an error for
Style/RedundantCurrentDirectoryInPath
when using string interpolation inrequire_relative
. ([@koic][]) -
#11981: Fix an incorrect autocorrect for
Style/RedundantRegexpArgument
when using double quote and single quote characters. ([@koic][]) -
#11836: Should not offense single-quoted symbol containing double quotes in
Lint/SymbolConversion
. ([@KessaPassa][])
v1.53.0
New features
-
#11561: Add new
Lint/MixedCaseRange
cop. ([@rwstauner][]) -
#11565: Add new
Lint/RedundantRegexpQuantifiers
cop. ([@jaynetics][]) -
#11925: Add new
Style/RedundantCurrentDirectoryInPath
cop. ([@koic][]) -
#11595: Add new
Style/RedundantRegexpArgument
cop. ([@koic][]) -
#11967: Add new
Style/ReturnNilInPredicateMethodDefinition
cop. ([@koic][]) -
#11745: Add new
Style/YAMLFileRead
cop. ([@koic][]) - #11926: Support built-in LSP server. ([@koic][])
Bug fixes
-
#11953: Fix a false negative for
Lint/DuplicateHashKey
when there is a duplicated constant key in the hash literal. ([@koic][]) -
#11945: Fix a false negative for
Style/RedundantSelfAssignmentBranch
when using method chaining or arguments in ternary branch. ([@koic][]) -
#11949: Fix a false positive for
Layout/RedundantLineBreak
when using a line broken string. ([@koic][]) -
#11931: Fix a false positive for
Lint/RedundantRequireStatement
when usingPP.pp
. ([@koic][]) -
#11946: Fix an error for
Lint/NumberConversion
when using multiple number conversion methods. ([@koic][]) -
#11972: Fix an error for
Lint/Void
whenCheckForMethodsWithNoSideEffects: true
and using a method definition. ([@koic][]) -
#11958: Fix error for
Style/IdenticalConditionalBranches
when using empty parentheses in theif
branch. ([@koic][]) -
#11962: Fix an error for
Style/RedundantStringEscape
when an escaped double quote precedes interpolation in a symbol literal. ([@koic][]) -
#11947: Fix an error for
Style/ConditionalAssignment
with an assignment that usesif
branch bodies, which include a block. ([@koic][]) -
#11959: Fix false negatives for
Layout/EmptyLinesAroundExceptionHandlingKeywords
when using Ruby 2.5'srescue
inside block and Ruby 2.7's numbered block. ([@koic][]) -
#10902: Fix an error for
Style/RedundantRegexpEscape
string with invalid byte sequence in UTF-8. ([@ydah][]) -
#11562: Fixed escaped octal handling and detection in
Lint/DuplicateRegexpCharacterClassElement
. ([@rwstauner][])
Changes
-
#11904: Mark
Layout/ClassStructure
as unsafe to autocorrect. ([@nevans][]) -
#8506: Add
AllowedParentClasses
config toLint/MissingSuper
. ([@iMacTia][])
v1.52.1
Bug fixes
-
#11944: Fix an incorrect autocorrect for
Style/SoleNestedConditional
withStyle/MethodCallWithArgsParentheses
. ([@koic][]) -
#11930: Fix exception on
Lint/InheritException
when class definition has non-constant siblings. ([@rafaelfranca][]) -
#11919: Fix an error for
Lint/UselessAssignment
when a variable is assigned and unreferenced infor
. ([@koic][]) -
#11928: Fix an incorrect autocorrect for
Lint/AmbiguousBlockAssociation
. ([@koic][]) -
#11915: Fix a false positive for
Lint/RedundantSafeNavigation
when&.
is used forto_s
,to_i
,to_d
, and other coercion methods. ([@lucthev][])
Changes
v1.52.0
New features
-
#11873: Add
ComparisonsThreshold
config option toStyle/MultipleComparison
. ([@fatkodima][]) -
#11886: Add new
Style/RedundantArrayConstructor
cop. ([@koic][]) -
#11873: Add new
Style/RedundantRegexpConstructor
cop. ([@koic][]) -
#11841: Add new
Style/RedundantFilterChain
cop. ([@fatkodima][]) -
#11908: Support
AllowedReceivers
forStyle/CollectionMethods
. ([@koic][])
Bug fixes
-
#11890: Fix a false negative for
Lint/RedundantSafeNavigation
when&.
is used forto_d
. ([@koic][]) -
#11880: Fix a false positive for
Style/ExactRegexpMatch
when using literal with quantifier in regexp. ([@koic][]) -
#11902: Fix a false positive for
Style/RequireOrder
when single-quoted string and double-quoted string are mixed. ([@koic][]) -
#11879: Fix a false positive for
Style/SelectByRegexp
when Ruby 2.2 or lower analysis. ([@koic][]) -
#11891: Fix
Style/AccessorGrouping
to accept macros separated from accessors by space. ([@fatkodima][]) -
#11905: Fix an error for
Lint/UselessAssignment
when a variable is assigned with rest assignment and unreferenced. ([@koic][]) -
#11899: Fix an incorrect autocorrect for
Style/SingleLineMethods
when using Ruby 3.0 andStyle/EndlessMethod
is disabled. ([@koic][]) -
#11884: Make
rubocop -V
display rubocop-factory_bot version when using it. ([@koic][]) -
#11893: Fix a false positive for
Lint/InheritException
when inheritingException
with omitted namespace. ([@koic][]) -
#11898: Fix offences in calls inside blocks with braces for
Style/MethodCallWithArgsParentheses
withomit_parentheses
enforced style. ([@gsamokovarov][]) - #11857: Server mode: only read $stdin when -s or --stdin argument provided. ([@naveg][])
v1.51.0
New features
-
#11819: Add autocorrection for
Lint/AmbiguousBlockAssociation
. ([@r7kamura][]) -
#11597: Add autocorrection for
Lint/UselessAssignment
. ([@r7kamura][]) -
#11848: Add autocorrection for
Lint/Void
. ([@r7kamura][]) -
#11851: Add autocorrection for
Naming/MemoizedInstanceVariableName
. ([@r7kamura][]) -
#11856: Add autocorrection for
Style/CombinableLoops
. ([@r7kamura][]) -
#11824: Add autocorrection for
Lint/TopLevelReturnWithArgument
. ([@r7kamura][]) -
#11869: Add new
Style/ExactRegexpMatch
cop. ([@koic][]) -
#11814: Make
Style/CollectionCompact
aware ofdelete_if
. ([@koic][]) -
#11866: Make
Style/Semicolon
aware of redundant semicolons in string interpolation braces. ([@koic][])
Bug fixes
-
#11812: Fix a false negative for
Style/Attr
when usingattr
and method definitions. ([@koic][]) -
#11861: Fix a false positive for
Layout/SpaceAfterSemicolon
when no space between a semicolon and a closing brace of string interpolation. ([@koic][]) -
#11830: Fix a false positive for
Lint/IncompatibleIoSelectWithFiberScheduler
. ([@koic][]) -
#11846: Fix a false positive for
Lint/RedundantStringCoercion
when usingto_s(argument)
inputs
argument. ([@koic][]) -
#11865: Fix an error for
Naming/ConstantName
when assigning a constant from an empty branch ofelse
. ([@koic][]) -
#11844: Fix a false positive for
Style/RedundantLineContinuation
when using line concatenation for assigning a return value and without argument parentheses. ([@koic][]) -
#11808: Fix a false positive for
Style/RegexpLiteral
when using a regexp starts with equal as a method argument. ([@koic][]) -
#11822: Fix an error for
Layout/SpaceInsideBlockBraces
when a method call with a multiline block is used as an argument. ([@koic][]) -
#11849: Fix an error for
Style/ConditionalAssignment
whenEnforcedStyle: assign_inside_condition
and using emptycase
condition. ([@koic][]) -
#11967: Fix error for
Style/IfInsideElse
when a deep nested multilineif...then...elsif...else...end
. ([@koic][]) -
#11842: Fix an error for
Style/IfUnlessModifier
when using multipleif
modifier in the long one line. ([@koic][]) -
#11835: Fix an error for
Style/RequireOrder
when multiplerequire
are not sorted. ([@koic][]) -
#11809: Fix an incorrect autocorrect for
Naming/RescuedExceptionsVariableName
when exception variable is referenced afterrescue
statement. ([@koic][]) -
#11852: Fix an incorrect autocorrect for
Style/EvalWithLocation
when usingeval
without line number and with parenthesized method call. ([@koic][]) -
#11862: Fix an incorrect autocorrect for
Style/GuardClause
when usingraise
inelse
branch in a one-liner withthen
. ([@koic][]) -
#11868: Fix a false positive for
Style/HashExcept
when method's receiver/argument is not the same as block key argument. ([@fatkodima][]) - #11858: Fix false positives when using source comments in blocks. ([@reitermarkus][])
-
#11510: Fix
Lint/UselessAssignment
false positive when using numbered block parameters. ([@sambostock][]) -
#11872: Fix
Gemspec/DevelopmentDependencies
not trigger when add_development_dependency has more then one arguments. ([@Bhacaz][]) -
#11820: Fix
Lint/EmptyConditionalBody
false-positives for commented emptyelsif
body. ([@r7kamura][])
Changes
- #11859: Add rubocop-factory_bot to suggested extensions. ([@ydah][])
- #11791: (Breaking) Drop runtime support for Ruby 2.6 and JRuby 9.3 (CRuby 2.6 compatible). ([@koic][])
-
#11826: Exclude
**/*.jb
fromLint/TopLevelReturnWithArgument
. ([@r7kamura][]) -
#11871: Mark
Style/DataInheritance
as unsafe autocorrect,Style/OpenStructUse
as unsafe, andSecurity/CompoundHash
as unsafe. ([@koic][])
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.