Update dependency rubocop to v1.77.0 #97
Open
+3
−3
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.75.8
->1.77.0
Release Notes
rubocop/rubocop (rubocop)
v1.77.0
Compare Source
New features
Gemspec/AttributeAssignment
cop. ([@viralpraxis][])Style/CollectionQuerying
. ([@lovro-bikic][])DefaultToNil
option toStyle/FetchEnvVar
cop. ([@Yuhi-Sato][])Gemspec/RequireMFA
cop autocorrect to insert MFA directive after lastmetadata
assignment. ([@viralpraxis][])Layout/SpaceInsideArrayLiteralBrackets
cop to analyze nested constant patterns. ([@viralpraxis][])Bug fixes
Style/HashConversion
when using nestedHash[]
. ([@koic][])Style/SoleNestedConditional
when autocorrecting nested if/unless/if. ([@ssagara00][])Layout/SpaceBeforeBrackets
when call desugaredHash#[]
to lvar receiver with a space around the dot. ([@koic][])Style/RedundantParentheses
when assigning a parenthesized one-linein
pattern matching. ([@koic][])Style/RedundantSelf
when receiver and lvalue have the same name in or-assignment. ([@koic][])Lint/SelfAssignment
to allow inline RBS comments. ([@Morriar][])Style/MethodCallWithArgsParentheses
false positive on forwarded keyword argument with additional arguments. ([@viralpraxis][])Style/RedundantParentheses
. ([@lovro-bikic][])Changes
Naming/PredicateMethod
to consider negation (!
/not
) as boolean values. ([@dvandersluis][])Naming/PredicateMethod
to treat returned predicate method calls as boolean values. ([@dvandersluis][])v1.76.2
Compare Source
Bug fixes
Lint/EmptyInterpolation
when using a boolean literal inside interpolation. ([@koic][])Lint/UselessDefaultValueArgument
whenfetch
call without a receiver. ([@koic][])Style/ConditionalAssignment
cop when using one-line branches. ([@viralpraxis][])Style/RedundantParentheses
when using parenthesized one-line pattern matching in endless method definition. ([@koic][])Style/RedundantSelf
when local variable assignment name is used in nestedif
. ([@koic][])Lint/SafeNavigationChain
when a safe navigation is used on the left-hand side of a-
operator when inside an array. ([@koic][])Changes
AllowedPatterns
andAllowBangMethods
configuration toNaming/PredicateMethod
. ([@dvandersluis][])Lint/AmbiguousRange
. ([@lovro-bikic][])Lint/UselessAccessModifier
. ([@lovro-bikic][])Style/MinMaxComparison
. ([@lovro-bikic][])v1.76.1
Compare Source
Bug fixes
Lint/EmptyInterpolation
when using primitives in interpolation. ([@ka8725][])Style/SafeNavigation
when using ternary expression with index access call. ([@koic][])Style/SafeNavigation
when using ternary expression with operator method call. ([@koic][])Style/RedundantArrayFlatten
whenArray#join
is used with an argument other than the defaultnil
. ([@koic][])Style/RedundantParentheses
when using one-linein
pattern matching in operator. ([@koic][])Naming/PredicateMethod
cop error on empty parentheses method body. ([@viralpraxis][])Style/SafeNavigation
cop error on indexed assignment in ternary expression. ([@viralpraxis][])Style/SafeNavigation
invalid autocorrection on double colon method call. ([@viralpraxis][])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][])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.