-
Notifications
You must be signed in to change notification settings - Fork 43
Update dependency rubocop to '~> 1.76.0' #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/rubocop-1.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7c44838
to
08fc288
Compare
08fc288
to
e4dd654
Compare
e4dd654
to
23e5f86
Compare
23e5f86
to
1a86077
Compare
1a86077
to
260fe55
Compare
260fe55
to
172a133
Compare
172a133
to
7da7c74
Compare
200e49b
to
4bd90b0
Compare
4bd90b0
to
18e57fb
Compare
82d5676
to
6eeeaa2
Compare
6eeeaa2
to
2485956
Compare
2485956
to
7969ece
Compare
7969ece
to
2216bde
Compare
2216bde
to
0991778
Compare
0991778
to
8390a5c
Compare
8390a5c
to
68b0274
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
68b0274
to
a9a115e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.65.0'
->'~> 1.76.0'
'~> 1.64.0'
->'~> 1.76.0'
Release Notes
rubocop/rubocop (rubocop)
v1.76.0
Compare Source
New features
Naming/PredicateMethod
cop to check that predicate methods end with?
and non-predicate methods do not. ([@dvandersluis][])Style/EmptyStringInsideInterpolation
cop. ([@zopolis4][])Style/RedundantArrayFlatten
. ([@lovro-bikic][])Lint/UselessOr
. ([@lovro-bikic][])Gemspec
department cops to detect offenses if specification variable isit
or a numbered parameter. ([@viralpraxis][])Lint/UselessDefaultValueArgument
. ([@lovro-bikic][])Bug fixes
Style/RedundantParentheses
when using a one-linerescue
expression as a method argument. ([@koic][])Style/RedundantParentheses
when using one-line pattern matching. ([@koic][])Style/SafeNavigation
when a ternary expression is used in a method argument. ([@steiley][])Lint/LiteralAsCondition
autocorrect when branches of a condition have comments. ([@zopolis4][])Changes
EnforcedStyle: allow_single_line
as the default toStyle/ItBlockParameter
. ([@koic][])Lint/ShadowingOuterLocalVariable
by default. ([@nekketsuuu][])!=
) inLint/IdentityComparison
. ([@lovro-bikic][])v1.75.8
Compare Source
Bug fixes
Lint/FloatComparison
cop to detect floating-point number comparisons incase
statements. ([@daisuke][])Style/RedundantFormat
with invalid format arguments. ([@earlopain][])Style/DefWithParentheses
when using endless method definition with empty parentheses and a space before=
. ([@koic][])EnforcedStyle: with_fixed_indentation
ofLayout/ArgumentAlignment
andEnforcedStyle: consistent
ofLayout/FirstArgumentIndentation
andLayout/HashAlignment
. ([@koic][])Layout/EmptyLinesAroundAccessModifier
cop error on trailing access modifier. ([@viralpraxis][])Lint/DuplicateMethods
cop error onto
option is dynamically generated andprefix
is enabled. ([@viralpraxis][])Style/MapToHash
with destructuring argument. ([@lovro-bikic][])rubocop:todo
EOL comment. ([@jonas054][])v1.75.7
Compare Source
Bug fixes
Style/IfUnlessModifierOfIfUnless
when using nested modifier. ([@koic][])Layout/SpaceBeforeBrackets
when using space between method argument parentheses and left bracket. ([@koic][])Layout/SpaceBeforeBrackets
when using space between receiver and left brackets, and a space inside left bracket. ([@koic][])Style/AccessModifierDeclarations
cop error on semicolon after modifier. ([@viralpraxis][])Style/AccessModifierDeclarations
cop error on symbol modifier without surrounding scope. ([@viralpraxis][])Style/AccessModifierDeclarations
cop false positives when there are no method definitions and style isinline
. ([@viralpraxis][])Lint/UselessAssignment
cop error when using nested assignment with splat. ([@earlopain][])Changes
Gemspec/DuplicatedAssignment
cop to detect duplicated indexed assignment. ([@viralpraxis][])prefix
argument fordelegate
method inLint/DuplicateMethods
. ([@lovro-bikic][])v1.75.6
Compare Source
Bug fixes
Style/MultilineIfModifier
when using nested modifier. ([@koic][])nil
representation in todo file comments. ([@jonas054][])Lint/UselessAssignment
when variables are assigned using unary operator in chained assignment and remain unreferenced. ([@koic][])Style/StringConcatenation
when using implicit concatenation with string interpolation. ([@koic][])Style/SoleNestedConditional
when using nestedif
andnot
in condition. ([@koic][])Layout/SpaceInsideArrayLiteralBrackets
cop error on array pattern without brackets. ([@viralpraxis][])Style/PercentQLiterals
cop error on Unicode escape sequence. ([@viralpraxis][])Changes
Style/ComparableBetween
as unsafe. ([@earlopain][])Lint/DuplicateMethods
aware of Active Support'sdelegate
method. ([@lovro-bikic][])Style/IfUnlessModifier
allow endless method definition in theif
body. ([@koic][])v1.75.5
Compare Source
Bug fixes
Layout/SpaceAfterSemicolon
withLayout/SpaceBeforeSemicolon
when a sequence of semicolons appears. ([@koic][])Lint/ArrayLiteralInRegexp
cop error on empty interpolation. ([@viralpraxis][])Layout/HashAlignment
. ([@jonas054][])Style/ArgumentsForwarding
when using anonymous block argument forwarding to a method with a block. ([@koic][])Layout/LeadingCommentSpace
to allow splitting long inline RBS comment signatures across multiple lines. ([@Morriar][])Lint/LiteralAsCondition
cop error onif
without body. ([@viralpraxis][])Lint/Void
cop error on nested emptybegin
. ([@viralpraxis][])Style/IdenticalConditionalBranches
cop failure in case ofif
node with implicitthen
. ([@viralpraxis][])Style/MethodCallWithArgsParentheses
cop error on complex numbers whenEnforcedStyle
is set toomit_parentheses
. ([@viralpraxis][])Style/TrailingCommaInArguments
cop error ifEnforcedStyleForMultiline
is set tocomma
. ([@viralpraxis][])Changes
Layout/SpaceInsideArrayLiteralBrackets
make aware of array pattern matching. ([@koic][])Layout/SpaceInsideHashLiteralBraces
make aware of hash pattern matching. ([@koic][])v1.75.4
Compare Source
Bug fixes
Lint/BooleanSymbol
when using the rocket hash syntax with a boolean symbol key. ([@koic][])Style/ComparableBetween
when comparing the value with itself. ([@earlopain][])Style/SafeNavigation
when the RHS of&&
is a complex||
expression composed of&&
conditions. ([@koic][])Style/ArgumentsForwarding
when using default positional arg, keyword arg, and block arg in Ruby 3.1. ([@koic][])Style/RedundantParentheses
when parens around basic conditional as the second argument of a parenthesized method call. ([@koic][])Style/RedundantParentheses
when parens around unparenthesized method call as the second argument of a parenthesized method call. ([@koic][])Lint/LiteralAsCondition
autocorrect when a literal is the condition of an elsif followed by an else. ([@zopolis4][])Style/TrailingCommaInArguments
cop aware of trailing commas in[]
method call. ([@viralpraxis][])Style/ClassAndModuleChildren
cop error on tab-intended compactable modules. ([@viralpraxis][])Changes
Lint/CircularArgumentReference
on Ruby 3.4. ([@earlopain][])v1.75.3
Compare Source
Bug fixes
#:
after end keyword inStyle/CommentedKeyword
. ([@dak2][])Layout/EmptyLineAfterGuardClause
when calling a method on the result of a single-lineif
withreturn
. ([@koic][])Style/RedundantParentheses
when using parens around singleton method body. ([@koic][])EnforcedStyleForMultiline: diff_comma
ofStyle/TrailingCommaInArrayLiteral
andStyle/TrailingCommaInHashLiteral
when trailing comma with comment. ([@koic][])Style/RedundantParentheses
when using some operator methods with a parenthesized argument. ([@koic][])Layout/MultilineOperationIndentation
cop error onindexasgn
node without arguments. ([@viralpraxis][])Style/ClassAndModuleChildren
cop error on one-liner class definition and nested enforced style. ([@viralpraxis][])Style/ConditionalAssignment
cop error on one-line if-then-else. ([@viralpraxis][])Style/ConditionalAssignment
cop error on indexed assignment without arguments. ([@viralpraxis][])Style/RedundantLineContinuation
cop error on multiline assignment with line continuation. ([@viralpraxis][])Style/SafeNavigation
with longer&&
chain (e.g.a && a.b && a.b.c
). ([@lovro-bikic][])Style/MapIntoArray
when usingpush
orappend
with hash argument without braces. ([@lovro-bikic][])Changes
Style/RedundantParentheses
. ([@lovro-bikic][])References
overReference
in cop configs. ([@sambostock][])v1.75.2
Compare Source
Changes
Lint/RedundantTypeConversion
to register an offense forto_json.to_s
. ([@lovro-bikic][])Bug fixes
Lint/DeprecatedOpenSSLConstant
cipher constant argument is notcbc
. ([@koic][])Style/RedundantCondition
when true is used as the true branch and the condition takes arguments. ([@koic][])Lint/ReturnInVoidContext
when returning insidedefine_method
or a nested singleton method. ([@earlopain][])Style/ConditionalAssignment
cop error on dynamic string node in branch. ([@viralpraxis][])Style/FrozenStringLiteralComment
cop errors on emacs-styled magic comment. ([@viralpraxis][])v1.75.1
Compare Source
Changes
EnforcedStyle: allow_named_parameter
toEnforcedStyle: only_numbered_parameters
inStyle/ItBlockParameter
. ([@koic][])v1.75.0
Compare Source
New features
Style/HashFetchChain
cop to detect chainedfetch
calls that can be replaced with a single call todig
. ([@dvandersluis][])Style/ItBlockParameter
cop. ([@koic][])it
block parameter inLayout
cops. ([@koic][])it
block parameter inLint
cops. ([@koic][])it
block parameter inMetrics
cops. ([@koic][])it
block parameter inStyle
cops. ([@koic][])TargetRubyVersion: 3.5
(experimental). ([@earlopain][])Bug fixes
Style/HashFetchChain
when no arguments are given tofetch
. ([@koic][])Layout/MultilineMethodParameterLineBreaks
when class method definitions are used. ([@vlad-pisanov][])Layout/LineLength
when autocorrecting class method definitions. ([@vlad-pisanov][])Layout/SpaceAroundOperators
andLayout/HashAlignment
withEnforcedHashRocketStyle
being an array containingtable
. ([@dvandersluis][])InternalAffairs/RedundantDescribedClassAsSubject
cop error on missingdescribe
. ([@viralpraxis][])Lint/ShadowingOuterLocalVariable
when block local variable is used inside a condition. ([@lovro-bikic][])Lint/UselessAssignment
when a variable is reassigned in a different branch. ([@eugeneius][])Style/SoleNestedConditional
. ([@lovro-bikic][])Style/IfInsideElse
. ([@lovro-bikic][])Changes
does
as a forbidden prefix toNaming/PredicateName
. ([@dvandersluis][])ForbiddenIdentifiers
andForbiddenPatterns
config options toNaming/MethodName
cop. ([@tejasbubane][])Array#intersection
toStyle/ArrayIntersect
. ([@dvandersluis][])prism
translation layer to analyze Ruby 3.4+ by default. ([@earlopain][])Style/RedundantParentheses
to offend parentheses for chained&&
expressions. ([@lovro-bikic][])AllowConsecutiveConditionals
setting toStyle/Next
to allow consecutive conditional statements. ([@vlad-pisanov][])Style/RedundantFormat
to register offenses when the only argument toformat
orsprintf
is a constant. ([@dvandersluis][])v1.74.0
Compare Source
New features
Style/ComparableBetween
. ([@lovro-bikic][])Style/CommentedKeyword
. ([@dak2][])Bug fixes
Lint/SharedMutableDefault
whencapacity
keyword argument is used. ([@koic][])Style/DoubleNegation
when callingdefine_method
/define_singleton_method
with a numblock. ([@earlopain][])Lint/ReturnInVoidContext
when returning out of a block. ([@earlopain][])Lint/UselessConstantScoping
for constants defined inclass << self
. ([@earlopain][])Lint/NonLocalExitFromIterator
with numblocks. ([@earlopain][])Style/RedundantCurrentDirectoryInPath
when using a complex current directory path inrequire_relative
. ([@koic][])Lint/LiteralAsCondition
when the literal is followed byreturn
,break
, ornext
. ([@earlopain][])Style/MethodCallWithArgsParentheses
withEnforcedStyle: omit_parentheses
style and numblocks. ([@earlopain][])rubocop-rails
orrubocop-performance
extraction, even if they are already part of the Gemfile. ([@earlopain][])Lint/RedundantCopDisableDirective
to register an offense when cop names are given with improper casing. ([@dvandersluis][])Style/RescueModifier
when using parallel assignment and the right-hand-side is not a bracketed array. ([@earlopain][])Changes
EnforcedStyleForClasses
andEnforcedStyleForModules
configuration options toStyle/ClassAndModuleChildren
. ([@dvandersluis][])Mode: conservative
configuration toStyle/FormatStringToken
to make the cop only register offenses for strings given toprintf
,sprintf
,format
, and%
. ([@dvandersluis][])TLS1_1
andTLS1_2
by default inNaming/VariableNumber
to accommodate OpenSSL version parameter names. ([@koic][])Lint/RedundantTypeConversion
aware of redundantto_d
. ([@koic][])v1.73.2
Compare Source
Bug fixes
Style/InverseMethods
when usingany?
ornone?
with safe navigation operator. ([@koic][])Style/RedundantCondition
when a variable or a constant is used. ([@koic][])Style/RedundantFreeze
when calling methods that produce frozen objects with numblocks. ([@earlopain][])end pattern with unmatched parenthesis: / (RegexpError)
on Ruby 3.2.0. ([@dvandersluis][])Style/KeywordParametersOrder
when the arguments are on multiple lines and contain comments. ([@earlopain][])Changes
Lint/EmptyConditionalBody
to be safe. ([@dvandersluis][])v1.73.1
Compare Source
Bug fixes
Lint/MixedCaseRange
when/[[ ]]/
is used. ([@koic][])Lint/EmptyConditionalBody
when assigning to a variable with only a single branch. ([@earlopain][])Style/RedundantCondition
when using when true is used as the true branch and the condition is not a predicate method. ([@koic][])Layout/ClosingParenthesisIndentation
when first parameter is a hash. ([@tejasbubane][])Style/CommentedKeyword
. ([@dak2][])Lint/LiteralAsCondition
acting on the right hand side of && nodes. ([@zopolis4][])v1.73.0
Compare Source
New features
require_always
option toStyle/EndlessMethod
. ([@koic][])require_single_line
option toStyle/EndlessMethod
. ([@jtannas][])Bug fixes
Style/RedundantSelfAssignment
when the method receives a block. ([@vlad-pisanov][])Lint/MixedCaseRange
is enabled. ([@earlopain][])Lint/Void
when using operator method call without argument. ([@koic][])Style/TrivialAccessors
withinstance_eval
and numblocks. ([@earlopain][])Style/EndlessMethod
when using setter method definitions. ([@koic][])Layout/LineLength
with interpolated strings when not on the first line. ([@dvandersluis][])Layout/EmptyLinesAroundAccessModifier
andLayout/EmptyLinesAroundBlockBody
withEnforcedStyle: no_empty_lines
. ([@dvandersluis][])Style/AccessorGrouping
with constants. ([@tejasbubane][])Style/RedundantFormat
for annotated template strings with missing hash keys. ([@dvandersluis][])Style/RedundantFormat
when given double-splatted arguments. ([@dvandersluis][])Style/StringConcatenation
when numblocks are used. ([@earlopain][])require 'pp'
to be redundant forLint/RedundantRequireStatement
. ([@earlopain][])Style/HashExcept
andStyle/HashSlice
to not register an offense if selecting over the hash value. ([@dvandersluis][])Changes
ForbiddenNames
configuration toNaming/VariableName
to specify names that are forbidden. ([@dvandersluis][])Lint/LiteralAsCondition
cop to check for redundant conditions. ([@zopolis4][])Reference
to common params. ([@sambostock][])Lint/RedundantTypeConversion
to not register an offense when given a constructor withexception: false
. ([@dvandersluis][])Style/RedundantCondition
cop to detect conditional expressions where the true branch istrue
and suggest replacing them with a logical OR. ([@datpmt][])v1.72.2
Compare Source
Bug fixes
AllCops: Exclude
as expected. ([@koic][])Style/RedundantFormat
when a template argument is used without keyword arguments. ([@koic][])Style/RedundantFormat
when numeric placeholders is used in the template argument. ([@koic][])ArgumentError
related to two deprecatedAllowedPattern
APIs. ([@koic][])Lint/UselessConstantScoping
when multiple assigning to constants afterprivate
access modifier. ([@koic][])Lint/UselessConstantScoping
when a constant is used afterprivate
access modifier with arguments. ([@koic][])Changes
Style/RedundantFormat
as unsafe autocorrect. ([@koic][])v1.72.1
Compare Source
Bug fixes
Style/RedundantParentheses
when a different expression appears before a range literal. ([@koic][])Lint/RedundantTypeConversion
when passing block arguments when generating a Hash or a Set. ([@koic][])Changes
v1.72.0
Compare Source
New features
Lint/CopDirectiveSyntax
cop. ([@kyanagi][])Lint/SuppressedExceptionInNumberConversion
cop. ([@koic][])Lint/RedundantTypeConversion
cop. ([@dvandersluis][])Lint/UselessConstantScoping
cop. ([@koic][])Style/RedundantFormat
cop to check for uses offormat
orsprintf
with only a single string argument. ([@dvandersluis][])InternalAffairs/LocationExists
cop to check for code that can be replaced withNode#loc?
orNode#loc_is?
. ([@dvandersluis][])inherit_from
andrequire
for automatically restart. ([@koic][])Naming/PredicateName
: Optionally use Sorbet to detect predicate methods. ([@issyl0][])Bug fixes
Style/RedundantParentheses
when chaining[]
method calls. ([@koic][])Style/RedundantParentheses
when[]
method is called with variable or constant receivers. ([@koic][])Style/RedundantParentheses
when handling range literals with redundant parentheses. ([@koic][])Layout/EmptyLinesAroundMethodBody
for endless methods. ([@dvandersluis][])Lint/FormatParameterMismatch
when the width value is interpolated. ([@dvandersluis][])Layout/BlockAlignment
for blocks that are the body of an endless method. ([@dvandersluis][])v1.71.2
Compare Source
Bug fixes
Layout/ElseAlignment
whenelse
is part of a numblock. ([@earlopain][])Lint/UselessAssignment
when assigning in branch and block. ([@pCosta99][])Lint/Void
wheneach
numblock with conditional expressions that has multiple statements. ([@earlopain][])Style/ExplicitBlockArgument
when using arguments ofzsuper
in method definition. ([@koic][])Style/EachWithObject
cop error in case of single block argument. ([@viralpraxis][])Lint/UnmodifiedReduceAccumulator
when omitting the accumulator in a nested numblock. ([@earlopain][])v1.71.1
Compare Source
Bug fixes
include RuboCop::RSpec::ExpectOffense
in rubocop/rspec/support.rb. ([@d4rky-pl][])Lint/AmbiguousBlockAssociation
with numblocks. ([@earlopain][])Lint/ConstantDefinitionInBlock
with numblocks. ([@earlopain][])Naming/BlockForwarding
andStyle/ArgumentsForwarding
with Ruby >= 3.4 when the block argument is referenced inside a block. This was previously disabled because of a bug in Ruby 3.3.0. ([@earlopain][])Layout/EmptyLineBetweenDefs
withDefLikeMacros
and numblocks. ([@earlopain][])Style/RedundantParentheses
with numblocks. ([@earlopain][])Style/AccessModifierDeclarations
when using access modifier in a numblock. ([@earlopain][])Lint/AssignmentInCondition
when assigning in numblocks. ([@earlopain][])Layout/RedundantLineBreak
when using numbered block parameter. ([@koic][])Style/SuperArguments
when calling super in a numblock. ([@earlopain][])Lint/UnreachableCode
withinstance_eval
numblock. ([@earlopain][])Style/RedundantSelfAssignment
when assigning to attribute ofself
. ([@koic][])Style/HashExcept
andStyle/HashSlice
when checking for inclusion with a range. ([@dvandersluis][])Layout/ExtraSpacing
withForceEqualSignAlignment: true
for endless methods. ([@dvandersluis][])Style/IdenticalConditionalBranches
autocorrect when condition is inside assignment. ([@dvandersluis][])Layout/SingleLineBlockChain
with numblocks. ([@earlopain][])Style/SoleNestedConditional
when using numblocks. ([@earlopain][])v1.71.0
Compare Source
New features
Lint/ArrayLiteralInRegexp
cop. ([@dvandersluis][])Style/HashSlice
cop. ([@lovro-bikic][])Bug fixes
Style/FrozenStringLiteralComment
when using the frozen string literal magic comment in Active Admin's arb files. ([@koic][])rubocop_cache
to the path given by--cache-root
when pruning cache. ([@capncavedan][])Lint/OutOfRangeRegexpRef
when matching withmatch
using safe navigation. ([@koic][])Style/BlockDelimiters
when using brace blocks as conditions underEnforcedStyle: semantic
. ([@koic][])Style/RedundantLineContinuation
when the continuation is preceded by an interpolated string. ([@dvandersluis][])Style/RedundantLineContinuation
when the continuation is followConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.