This repository has been archived by the owner on May 24, 2024. It is now read-only.
chore(deps): update dependency rubocop to v1 #44
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.63.0'
->'~> 1.64.0'
Release Notes
rubocop/rubocop (rubocop)
v1.64.0
Compare Source
New features
either_consistent
SupportedShorthandSyntax
toStyle/HashSyntax
. ([@pawelma][])Style/SendWithLiteralMethodName
cop. ([@koic][])Style/SuperArguments
cop. ([@earlopain][])--format
command line option. ([@koic][])AllowModifiersOnAttrs
option forStyle/AccessModifierDeclarations
. ([@krororo][])AllowedMethods
forStyle/DocumentationMethod
. ([@koic][])Bug fixes
Style/Copyright
when using multiline copyright notice. ([@koic][])Layout/EmptyComment
when using an empty comment next to code after comment line. ([@koic][])Style/ArgumentsForwarding
when forward target issuper
. ([@koic][])Style/ArgumentsForwarding
when forward target is safe navigation method. ([@koic][])Style/MapIntoArray
when usingeach
without receiver with<<
to build an array. ([@koic][])--no-exclude-limit
generating a todo withMax
config instead of listing everything out withExclude
. ([@earlopain][])TargetRailsVersion
when parsing from the lockfile with prerelease rails. ([@earlopain][])Changes
cop.documentation_url
with--show-docs-url
when passing a config as argument. ([@earlopain][])ActiveSupportExtensionsEnabled
forStyle/SymbolProc
. ([@koic][])workspace/executeCommand
LSP method. ([@koic][])v1.63.5
Compare Source
Bug fixes
Layout/FirstArgumentIndentation
when specifyingEnforcedStyle: with_fixed_indentation
ofLayout/ArrayAlignment
. ([@koic][])Metrics/BlockLength
when theCountAsOne
config is invalid. ([@koic][])Style/NumericPredicate
is used with negations. ([@fatkodima][])Layout/CommentIndentation
for comment-only pattern matching. ([@nekketsuuu][])v1.63.4
Compare Source
Bug fixes
rubocop -V
when.rubocop.yml
contains ERB. ([@earlopain][])Style/RedundantLineContinuation
when line continuations involvereturn
with a return value. ([@koic][])textDocument/diagnostic
. ([@muxcmux][])bundle exec
. ([@amomchilov][])v1.63.3
Compare Source
Bug fixes
Lint/UnreachableCode
when using pattern matching. ([@koic][])Lint/EmptyFile
in formatters when using cache. ([@earlopain][])RuboCop::Lockfile
when the constant Bundler is uninitialized. ([@koic][])Changes
v1.63.2
Compare Source
Bug fixes
Lint/MixedCaseRange
when a character betweenZ
anda
is used in the regexp range. ([@koic][])RuboCop::Lockfile
when there is no Bundler environment. ([@koic][])Style/ArgumentsForwarding
when using block arg in nested method definitions. ([@koic][])Lint/UnreachableLoop
when using pattern matching. ([@koic][])Changes
debug/open_nonstop
fromLint/Debugger
by default. ([@koic][])v1.63.1
Compare Source
Bug fixes
Lint/AssignmentInCondition
if assigning inside a method call. ([@earlopain][])RuboCop::Lockfile::Bundler
", caused when running RuboCop withoutbundler exec
on codebases that userubocop-rails
. ([@amomchilov][])v1.63.0
Compare Source
New features
Style/MapIntoArray
cop. ([@ymap][])requires_gem
API for declaring which gems a Cop needs. ([@amomchilov][])Bug fixes
Lint/RedundantWithIndex
when callingwith_index
with receiver and a block. ([@koic][])Style/Alias
withEnforcedStyle: prefer_alias
when callingalias_method
with fewer than 2 arguments. ([@earlopain][])Style/ExactRegexpMatch
when callingmatch
without a receiver. ([@earlopain][])Style/RedundantEach
when usingreverse_each.each
without a block. ([@earlopain][])&.
the same way as.
for setter methods inLint/AssignmentInCondition
. ([@jonas054][])Style/RedundantLineContinuation
when using line continuation with modifier. ([@koic][])Naming/BlockForwarding
when using explicit block forwarding in block method and others. ([@koic][])Style/EvalWithLocation
when usingeval
with a line number from a method call or a variable. ([@koic][])Style/RedundantArgument
when when single-quoted strings for cntrl character. ([@koic][])Style/RedundantLineContinuation
when using line continuations with&&
or||
operator in assignment. ([@koic][])Style/RedundantLineContinuation
when multi-line continuations with operators. ([@koic][])Style/CollectionCompact
when usingdelete_if
. ([@koic][])Style/RedundantPercentQ
safe on multiline strings. ([@boardfish][])Naming/FileName
andNaming/InclusiveLanguage
for empty files. ([@earlopain][])Style/Copyright
when the file is empty. ([@earlopain][])Changes
Lint/Debugger
. ([@ydah][])Rakefile.rb
inNaming/FileName
in the default config. ([@artur-intech][])Lint/Debugger
aware ofruby/debug
requires. ([@earlopain][])rubocop -V
display rubocop-rspec_rails version when using it. ([@ydah][])Bundler::LockfileParser
. ([@amomchilov][])v1.62.1
Compare Source
Bug fixes
Style/HashEachMethods
when the key block argument ofEnumerable#each
method is unused afterchunk
. ([@koic][])Style/NilComparison
without receiver andEnforcedStyle: comparison
. ([@earlopain][])Gemspec/RequiredRubyVersion
when the file is empty. ([@earlopain][])Lint/RedundantWithIndex
when the method has no receiver. ([@earlopain][])Lint/UselessTimes
when no block is present. ([@earlopain][])Style/ClassVars
when callingclass_variable_set
without arguments. ([@earlopain][])Style/For
withEnforcedStyle: for
when no receiver. ([@earlopain][])Layout/MultilineMethodCallIndentation
with safe navigation and assignment method. ([@earlopain][])Lint/MixedCaseRange
with invalid byte sequence in UTF-8. ([@earlopain][])RedundantCurrentDirectoryInPath
in case ofrequire_relative
without arguments. ([@viralpraxis][])Layout/EmptyLineAfterMagicComment
when the file is comments only. ([@earlopain][])Layout/RedundantLineBreak
when using&&
or||
after a backslash newline. ([@koic][])Style/MultilineMethodSignature
when there is a newline directly after the def keyword. ([@earlopain][])Style/RaiseArgs
withEnforcedStyle: compact
when passing more than 2 arguments toraise
. ([@earlopain][])Lint/Syntax
getting disabled byrubocop:disable Lint/Syntax
. ([@earlopain][])Changes
LineLength
phase on--auto-gen-only-exclude
. ([@sambostock][])v1.62.0
Compare Source
New features
TargetRubyVersion 3.4
(experimental). ([@koic][])Bug fixes
Lint/ToEnumArguments
when enumerator is created for another method in no arguments method definition. ([@koic][])Style/RedundantLineContinuation
when using line concatenation and calling a method with keyword arguments without parentheses. ([@koic][])Style/Encoding
when magic encoding with mixed case present. ([@koic][])required_ruby_version
is read from another file. ([@davidrunger][])Layout/SpaceInsideHashLiteralBraces
. ([@bquorning][])v1.61.0
Compare Source
New features
--editor-mode
CLI option. ([@koic][])AutoCorrect: contextual
option for LSP. ([@koic][])OffenseCountFormatter
display autocorrection information. ([@koic][])RuboCop::LSP.enable
API to enable LSP mode. ([@koic][]).rubocop.yml
andrubocop/config.yml
in compliance with dot-config. ([@koic][])Bug fixes
Style/ArgumentsForwarding
when using block arg forwarding to within block with Ruby 3.3.0. ([@koic][])Gemspec/RequiredRubyVersion
whenrequired_ruby_version
is specified withGem::Requirement.new
and is higher thanTargetRubyVersion
. ([@koic][])Style/CaseLikeIf
when using==
with literal and using ternary operator. ([@koic][])Lint/EmptyConditionalBody
when missingif
body with conditionalelse
body. ([@koic][])Style/MapCompactWithConditionalBlock
when using guard clause withnext
implicitly nil. ([@koic][])Style/ObjectThen
when usingyield_self
without receiver. ([@koic][])--auto-gen-config
bug forLayout/SpaceBeforeBlockBraces
. ([@jonas054][])Style/CommentedKeyword
. ([@jonas054][])Include
from inherited file in a parent directory. ([@jonas054][])Layout/RedundantLineBreak
when using index access call chained on multiline hash literal. ([@koic][])Style/MultilineTernaryOperator
when nesting multiline ternary operators. ([@koic][])Style/RedundantAssignment
when using pattern matching. ([@koic][])Style/RedundantReturn
when using pattern matching. ([@koic][])Lint/RedundantSafeNavigation
when using safe navigation operator for literal receiver. ([@koic][])Style/ArgumentsForwarding
when using forwardable block arguments with Ruby 3.2+. ([@koic][])Lint/Void
wheneach
block with conditional expressions that has multiple statements. ([@koic][])Style/InverseMethods
when using relational comparison operator with safe navigation. ([@koic][])Style/InvertibleUnlessCondition
. ([@sambostock][])omit_parentheses
Style/MethodCallWithArgsParentheses
. ([@gsamokovarov][])Changes
Style/RaiseArgs
as unsafe. ([@r7kamura][])v1.60.2
Compare Source
Bug fixes
Layout/RedundantLineBreak
when using index access call chained on multiple lines with backslash. ([@koic][])Style/ArgumentsForwarding
when naming a block argument&
. ([@koic][])Style/HashEachMethods
when both arguments are unused. ([@earlopain][])Style/HashEachMethods
when a block with both parameters has no body. ([@earlopain][])Errno::ENOENT
error when using server mode. ([@koic][])Style/ArgumentsForwarding
when using block arg forwarding with positional arguments forwarding to within block. ([@koic][])Style/HashEachMethods
when using array converter method. ([@koic][])EnforcedStyle: explicit
ofNaming/BlockForwarding
withStyle/ArgumentsForwarding
. ([@koic][])v1.60.1
Compare Source
Bug fixes
Style/ArgumentsForwarding
when using block argument forwarding with other arguments. ([@koic][])Style/RedundantParentheses
when parentheses in control flow keyword with multiline style argument. ([@koic][])Changes
Style/CollectionCompact
aware ofgrep_v
with nil. ([@koic][])v1.60.0
Compare Source
Bug fixes
Style/MultilineTernaryOperator
when using a method call as a ternary operator condition with a line break between receiver and method. ([@koic][])Style/RedundantLineContinuation
when line continuations for multiline leading dot method chain with a blank line. ([@koic][])Style/MethodCallWithArgsParentheses
omit_parentheses
style. ([@gsamokovarov][])Layout/EndAlignment
when misaligned in singleton class assignments withEnforcedStyleAlignWith: variable
. ([@koic][])Layout/FirstArgumentIndentation
when specifyingEnforcedStyle: with_fixed_indentation
ofLayout/ArrayAlignment
. ([@koic][])Lint/ShadowedArgument
when self assigning to a block argument infor
. ([@koic][])Style/IdenticalConditionalBranches
when usingif
...else
with identical leading lines that assign toself.foo
. ([@koic][])EnforcedStyle: omit_parentheses
ofStyle/MethodCallWithArgsParentheses
withStyle/SuperWithArgsParentheses
. ([@koic][])Style/MapToHash
when usingmap.to_h
without receiver. ([@koic][])--auto-gen-config
generateExclude
whenMax
is overridden. ([@jonas054][])Lint/MixedRegexpCaptureTypes
when using look-ahead matcher. ([@marocchino][])Style/RedundantParentheses
when regexp literal attempts to match against a parenthesized condition. ([@koic][])Lint/LiteralAssignmentInCondition
when a collection literal contains non-literal elements. ([@koic][])Naming/BlockForwarding
when using explicit block forwarding in block method. ([@koic][])Style/RedundantParentheses
whenAllowInMultilineConditions: true
ofStyle/ParenthesesAroundCondition
. ([@koic][])Style/ArgumentsForwarding
when rest arguments forwarding to a method in block. ([@koic][])Style/HashEachMethods
when rest block argument ofEnumerable#each
method is used. ([@koic][])Style/ParenthesesAroundCondition
. ([@koic][])Style/RedundantParentheses
when parentheses are used around a semantic operator in expressions within assignments. ([@koic][])Style/ArgumentsForwarding
when a block is forwarded but other args aren't. ([@dvandersluis][])Layout/LineContinuationLeadingSpace
. ([@eugeneius][])Style/EachForSimpleLoop
accept block with no parameters. ([@koic][])Changes
Security/Open
whenopen
with a literal string starting with a pipe. ([@koic][])Style/RedundantEach
aware of safe navigation operator. ([@koic][])Style/SlicingWithRange
aware of redundant and beginless range. ([@koic][])EnforcedStyle
options when--no-auto-gen-enforced-style
is given. ([@kpost][])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 iConfiguration
📅 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.