-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update dependency rubocop to v1.73.2 #36
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.
Open
+6
−5
Conversation
This file contains 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
@rultor please, try to merge, since 8 checks have passed |
@renovate[bot] @yegor256 Oops, I failed. You can see the full log here (spent 3min).
|
7590b4c
to
44f7ca4
Compare
44f7ca4
to
87c3465
Compare
87c3465
to
e6f743d
Compare
fafd3e7
to
933f316
Compare
29c625e
to
b0ad62d
Compare
83f5b99
to
f574a34
Compare
f574a34
to
13118ee
Compare
13118ee
to
929fcc2
Compare
929fcc2
to
69a674e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.69.2'
->'1.73.2'
Release Notes
rubocop/rubocop (rubocop)
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 followed by a percent array. ([@dvandersluis][])Style/RedundantLineContinuation
when the ruby code ends with a commented continuation. ([@dvandersluis][])Style/ArrayFirstLast
when calling.[]
or&.[]
with 0 or -1. ([@dvandersluis][])Lint/SafeNavigationChain
when adding safe navigation to an operator call inside a hash. ([@dvandersluis][])Style/IfUnlessModifier
when using omitted hash values in an assignment. ([@elliottt][])Style/SoleNestedConditional
. ([@tejasbubane][])Style/RedundantLineContinuation
when calling methods with fully qualified constants. ([@earlopain][])Style/ConditionalAssignment
cop error onunless
withoutelse
andassign_inside_condition
enforced style. ([@viralpraxis][])Style/FrozenStringLiteralComment
cop error on unnormalized magic comment andnever
enforced style. ([@viralpraxis][])Metrics/CollectionLiteralLength
to only register for[]
when called onSet
. ([@dvandersluis][])Changes
Lint/FloatComparison
. ([@dvandersluis][])Layout/MultilineMethodCallBraceLayout
. ([@dvandersluis][])Layout/MultilineMethodArgumentLineBreaks
. ([@dvandersluis][])Security/CompoundHash
. ([@dvandersluis][])Style/BlockDelimiters
. ([@dvandersluis][])Style/CollectionMethods
. ([@dvandersluis][])Style/MapToSet
. ([@dvandersluis][])Style/MethodCallWithoutArgsParentheses
. ([@dvandersluis][])Lint/NumericOperationWithConstantResult
. ([@dvandersluis][])Lint/RedundantStringCoercion
. ([@dvandersluis][])Lint/UselessNumericOperation
. ([@dvandersluis][])--show-cops
. ([@kyanagi][])Style/RedundantParentheses
aware of parenthesized assignment. ([@koic][])Style/RedundantLineContinuation
to handle required continuations followingsuper
. ([@dvandersluis][])v1.70.0
Compare Source
New features
Style/ItAssignment
cop to detect local assignments toit
inside blocks. ([@dvandersluis][])Lint/SharedMutableDefault
cop to alert on mutable Hash defaults. ([@corsonknowles][])Lint/ConstantReassignment
. ([@lovro-bikic][])target_gem_version
API to change behavior of a cop at runtime depending on which gem version is present. ([@earlopain][])Bug fixes
Lint/NonAtomicFileOperation
to detect offenses with fully qualified constants. ([@viralpraxis][])--format
option to accept fully qualified formatter class names. ([@viralpraxis][])Lint/Syntax
when a syntax error occurs. ([@earlopain][])RuboCop::Cop::Util.to_string_literal
to work correctly with frozen strings. ([@viralpraxis][])Lint/Void
inside of non-modifier conditionals. ([@GabeIsman][])Style/MultipleComparison
when settingAllowMethodComparison: false
and comparing with simple method calls. ([@koic][])Layout/EmptyLinesAroundAccessModifier
when an access modifier and an expression are on the same line. ([@koic][])Style/MethodCallWithArgsParentheses
when settingEnforcedStyle: omit_parentheses
and last argument is an endless range. ([@earlopain][])Style/RaiseArgs
with anonymous splat and triple dot forwarding. ([@earlopain][])Lint/NestedMethodDefinition
when defining a method on a constant or a method call. ([@koic][])Style/MultipleComparison
when using multiple safe navigation method calls. ([@koic][])Style/RedundantInitialize
when empty initialize method has arguments. ([@marocchino][])rubocop -d
on a config with a remoteinherit_from
that causes a duplicate setting warning. ([@dvandersluis][])Style/RedundantLineContinuation
with multiple line continuations. ([@dvandersluis][])Naming/BlockForwarding
when method just returns the block argument. ([@mvz][])Layout/HashAlignment
when there is a multiline positional argument andLayout/ArgumentAlignment
is configured withEnforcedStyle: with_fixed_indentation
. ([@dvandersluis][])Layout/SpaceAroundOperators
when different comparison operators were aligned with each other. ([@dvandersluis][])Lint/LiteralInInterpolation
cop error on invalid string literal. ([@viralpraxis][])Lint/NonAtomicFileOperation
cop error on non-constant receiver. ([@viralpraxis][])Lint/Void
cop error onif
without body. ([@viralpraxis][])Style/ClassAndModuleChildren
cop error oncompact
enforced style and unindented body. ([@viralpraxis][])Style/FloatDivision
cop error if#to_f
has implicit receiver. ([@viralpraxis][])Style/HashExcept
to recognize safe navigation whenActiveSupportExtensionsEnabled
config is enabled. ([@lovro-bikic][])Style/HashSyntax
cop error on implicitcall
method. ([@viralpraxis][])Style/MissingElse
cop error ifStyle/EmptyElse
'sEnforcedStyle
is notboth
andif
expression containselsif
. ([@viralpraxis][])Style/MissingElse
cop error ifStyle/EmptyElse
'sEnforcedStyle
is notboth
andif
expression contains multipleelsif
. ([@viralpraxis][])Style/RedundantCondition
cop error on parentheses and modifierif
inelse
. ([@viralpraxis][])Style/RedundantRegexpArgument
when the regex contains a single quote. ([@mrzasa][])Style/YodaExpression
cop error in case of suffix form of operator. ([@viralpraxis][])Layout/LineContinuationSpacing
to ignore continuations inside aregexp
orxstr
. ([@dvandersluis][])Style/SuperArguments
to handlesuper
with a block or with a chained method with a block. ([@dvandersluis][])NoMethodError
inConfigValidator
when a Cop's config is not aHash
and raiseValidationError
instead. ([@amomchilov][])Changes
Style/ObjectThen
. ([@dvandersluis][])Layout/HashAlignment
. ([@dvandersluis][])Layout/HeredocArgumentClosingParenthesis
. ([@dvandersluis][])Layout/LineLength
. ([@dvandersluis][])Style/SendWithLiteralMethodName
. ([@dvandersluis][])Lint/NumericOperationWithConstantResult
. ([@earlopain][])Style/SlicingWithRange
when calling.[]
or&.[]
with a correctable range. ([@dvandersluis][])Lint/DuplicateSetElement
to detect offences withinSortedSet
. ([@viralpraxis][])Layout/TrailingWhitespace
to support blank characters other than space and tab. ([@krororo][])Metrics/MethodLength
to make use ofAllowedMethods
andAllowedPatterns
for methods defined dynamically withdefine_method
. ([@dvandersluis][])Style/AccessModifierDeclarations
to addAllowModifiersOnAliasMethod
configuration (defaulttrue
). ([@dvandersluis][])Style/RedundantSelfAssignment
to handle safe navigation on the right-hand side of the assignment. ([@dvandersluis][])Configuration
📅 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 was generated by Mend Renovate. View the repository job log.