Bump rubocop from 1.69.2 to 1.70.0 #202
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.
Bumps rubocop from 1.69.2 to 1.70.0.
Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
e2f2d5c
Cut 1.703994f94
Update Changelog3123800
Dont show parser warnings inLint/Syntax
9eaedd0
Add Lint/ConstantReassignment cop4981738
Fix to recognize safe navigation when config is enabled6f066b8
Fix build errors related to the RubyLSP add-on specs45cd66a
[Fix #13601] UpdateStyle/SuperArguments
to handlesuper
with a block or ...2bfe0f7
UpdateStyle/SuperArguments
to handlesuper
with a block or with a chaine...5d2be60
UpdateStyle/SuperArguments
to handlesuper
with a blocke3bcc67
Add range formatting method to the formatter add-onDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by Sourcery
Update Rubocop to version 1.70.0.
New Features:
Style/ItAssignment
cop to detect local assignments toit
inside blocks.Lint/SharedMutableDefault
cop to alert on mutable Hash defaults.Lint/ConstantReassignment
cop.target_gem_version
API to change behavior of a cop at runtime depending on which gem version is present.Tests:
Lint/Void
inside of non-modifier conditionals.Style/MultipleComparison
when settingAllowMethodComparison: false
and comparing with simple method calls.Layout/EmptyLinesAroundAccessModifier
when an access modifier and an expression are on the same line.Style/MethodCallWithArgsParentheses
when settingEnforcedStyle: omit_parentheses
and last argument is an endless range.Style/RaiseArgs
with anonymous splat and triple dot forwarding.Lint/NestedMethodDefinition
when defining a method on a constant or a method call.Style/MultipleComparison
when using multiple safe navigation method calls.Style/RedundantInitialize
when empty initialize method has arguments.