Update dependency rubocop to v1.55.1 #357
Merged
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.50.2
->1.55.1
Release Notes
rubocop/rubocop (rubocop)
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][])v1.52.1
Compare Source
Bug fixes
Style/SoleNestedConditional
withStyle/MethodCallWithArgsParentheses
. ([@koic][])Lint/InheritException
when class definition has non-constant siblings. ([@rafaelfranca][])Lint/UselessAssignment
when a variable is assigned and unreferenced infor
. ([@koic][])Lint/AmbiguousBlockAssociation
. ([@koic][])Lint/RedundantSafeNavigation
when&.
is used forto_s
,to_i
,to_d
, and other coercion methods. ([@lucthev][])Changes
v1.52.0
Compare Source
New features
ComparisonsThreshold
config option toStyle/MultipleComparison
. ([@fatkodima][])Style/RedundantArrayConstructor
cop. ([@koic][])Style/RedundantRegexpConstructor
cop. ([@koic][])Style/RedundantFilterChain
cop. ([@fatkodima][])AllowedReceivers
forStyle/CollectionMethods
. ([@koic][])Bug fixes
Lint/RedundantSafeNavigation
when&.
is used forto_d
. ([@koic][])Style/ExactRegexpMatch
when using literal with quantifier in regexp. ([@koic][])Style/RequireOrder
when single-quoted string and double-quoted string are mixed. ([@koic][])Style/SelectByRegexp
when Ruby 2.2 or lower analysis. ([@koic][])Style/AccessorGrouping
to accept macros separated from accessors by space. ([@fatkodima][])Lint/UselessAssignment
when a variable is assigned with rest assignment and unreferenced. ([@koic][])Style/SingleLineMethods
when using Ruby 3.0 andStyle/EndlessMethod
is disabled. ([@koic][])rubocop -V
display rubocop-factory_bot version when using it. ([@koic][])Lint/InheritException
when inheritingException
with omitted namespace. ([@koic][])Style/MethodCallWithArgsParentheses
withomit_parentheses
enforced style. ([@gsamokovarov][])v1.51.0
Compare Source
New features
Lint/AmbiguousBlockAssociation
. ([@r7kamura][])Lint/UselessAssignment
. ([@r7kamura][])Lint/Void
. ([@r7kamura][])Naming/MemoizedInstanceVariableName
. ([@r7kamura][])Style/CombinableLoops
. ([@r7kamura][])Lint/TopLevelReturnWithArgument
. ([@r7kamura][])Style/ExactRegexpMatch
cop. ([@koic][])Style/CollectionCompact
aware ofdelete_if
. ([@koic][])Style/Semicolon
aware of redundant semicolons in string interpolation braces. ([@koic][])Bug fixes
Style/Attr
when usingattr
and method definitions. ([@koic][])Layout/SpaceAfterSemicolon
when no space between a semicolon and a closing brace of string interpolation. ([@koic][])Lint/IncompatibleIoSelectWithFiberScheduler
. ([@koic][])Lint/RedundantStringCoercion
when usingto_s(argument)
inputs
argument. ([@koic][])Naming/ConstantName
when assigning a constant from an empty branch ofelse
. ([@koic][])Style/RedundantLineContinuation
when using line concatenation for assigning a return value and without argument parentheses. ([@koic][])Style/RegexpLiteral
when using a regexp starts with equal as a method argument. ([@koic][])Layout/SpaceInsideBlockBraces
when a method call with a multiline block is used as an argument. ([@koic][])Style/ConditionalAssignment
whenEnforcedStyle: assign_inside_condition
and using emptycase
condition. ([@koic][])Style/IfInsideElse
when a deep nested multilineif...then...elsif...else...end
. ([@koic][])Style/IfUnlessModifier
when using multipleif
modifier in the long one line. ([@koic][])Style/RequireOrder
when multiplerequire
are not sorted. ([@koic][])Naming/RescuedExceptionsVariableName
when exception variable is referenced afterrescue
statement. ([@koic][])Style/EvalWithLocation
when usingeval
without line number and with parenthesized method call. ([@koic][])Style/GuardClause
when usingraise
inelse
branch in a one-liner withthen
. ([@koic][])Style/HashExcept
when method's receiver/argument is not the same as block key argument. ([@fatkodima][])Lint/UselessAssignment
false positive when using numbered block parameters. ([@sambostock][])Gemspec/DevelopmentDependencies
not trigger when add_development_dependency has more then one arguments. ([@Bhacaz][])Lint/EmptyConditionalBody
false-positives for commented emptyelsif
body. ([@r7kamura][])Changes
**/*.jb
fromLint/TopLevelReturnWithArgument
. ([@r7kamura][])Style/DataInheritance
as unsafe autocorrect,Style/OpenStructUse
as unsafe, andSecurity/CompoundHash
as unsafe. ([@koic][])Configuration
📅 Schedule: Branch creation - "before 6am" in timezone America/Los_Angeles, 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.