Skip to content

Commit

Permalink
chore(deps): update dependency rubocop to '~> 1.70.0' (#360)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [rubocop](https://rubocop.org/)
([source](https://redirect.github.com/rubocop/rubocop),
[changelog](https://redirect.github.com/rubocop/rubocop/releases/tag/v1.70.0))
| `'~> 1.69.0'` -> `'~> 1.70.0'` |
[![age](https://developer.mend.io/api/mc/badges/age/rubygems/rubocop/1.70.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/rubygems/rubocop/1.70.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/rubygems/rubocop/1.69.2/1.70.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/rubocop/1.69.2/1.70.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>rubocop/rubocop (rubocop)</summary>

###
[`v1.70.0`](https://redirect.github.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1700-2025-01-10)

[Compare
Source](https://redirect.github.com/rubocop/rubocop/compare/v1.69.2...v1.70.0)

##### New features

-
[#&#8203;13474](https://redirect.github.com/rubocop/rubocop/pull/13474):
Add new `Style/ItAssignment` cop to detect local assignments to `it`
inside blocks.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;11013](https://redirect.github.com/rubocop/rubocop/issues/11013):
Add new `Lint/SharedMutableDefault` cop to alert on mutable Hash
defaults.
(\[[@&#8203;corsonknowles](https://redirect.github.com/corsonknowles)]\[])
-
[#&#8203;13612](https://redirect.github.com/rubocop/rubocop/pull/13612):
Create new cop `Lint/ConstantReassignment`.
(\[[@&#8203;lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#&#8203;13628](https://redirect.github.com/rubocop/rubocop/pull/13628):
Make LSP server support quick fix code action.
(\[[@&#8203;koic](https://redirect.github.com/koic)]\[])
-
[#&#8203;13607](https://redirect.github.com/rubocop/rubocop/pull/13607):
Support passing the target ruby version through an environment variable.
(\[[@&#8203;elliottt](https://redirect.github.com/elliottt)]\[])
-
[#&#8203;13628](https://redirect.github.com/rubocop/rubocop/pull/13628):
Add support for Ruby LSP as a built-in add-on.
(\[[@&#8203;koic](https://redirect.github.com/koic)]\[])
-
[#&#8203;13284](https://redirect.github.com/rubocop/rubocop/issues/13284):
Add new `target_gem_version` API to change behavior of a cop at runtime
depending on which gem version is present.
(\[[@&#8203;earlopain](https://redirect.github.com/earlopain)]\[])

##### Bug fixes

-
[#&#8203;13589](https://redirect.github.com/rubocop/rubocop/pull/13589):
Fix `Lint/NonAtomicFileOperation` to detect offenses with fully
qualified constants.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13630](https://redirect.github.com/rubocop/rubocop/pull/13630):
Fix CLI `--format` option to accept fully qualified formatter class
names.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13624](https://redirect.github.com/rubocop/rubocop/pull/13624):
Don't show warnings from `Lint/Syntax` when a syntax error occurs.
(\[[@&#8203;earlopain](https://redirect.github.com/earlopain)]\[])
-
[#&#8203;13605](https://redirect.github.com/rubocop/rubocop/pull/13605):
Fix `RuboCop::Cop::Util.to_string_literal` to work correctly with frozen
strings.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;12393](https://redirect.github.com/rubocop/rubocop/issues/12393):
Fix false negatives for `Lint/Void` inside of non-modifier conditionals.
(\[[@&#8203;GabeIsman](https://redirect.github.com/GabeIsman)]\[])
-
[#&#8203;13623](https://redirect.github.com/rubocop/rubocop/issues/13623):
Fix false negatives for `Style/MultipleComparison` when setting
`AllowMethodComparison: false` and comparing with simple method calls.
(\[[@&#8203;koic](https://redirect.github.com/koic)]\[])
-
[#&#8203;13644](https://redirect.github.com/rubocop/rubocop/pull/13644):
Fix a false positive for `Layout/EmptyLinesAroundAccessModifier` when an
access modifier and an expression are on the same line.
(\[[@&#8203;koic](https://redirect.github.com/koic)]\[])
-
[#&#8203;13645](https://redirect.github.com/rubocop/rubocop/issues/13645):
Fix a false positive for `Style/MethodCallWithArgsParentheses` when
setting `EnforcedStyle: omit_parentheses` and last argument is an
endless range.
(\[[@&#8203;earlopain](https://redirect.github.com/earlopain)]\[])
-
[#&#8203;13614](https://redirect.github.com/rubocop/rubocop/issues/13614):
Fix false positives for `Style/RaiseArgs` with anonymous splat and
triple dot forwarding.
(\[[@&#8203;earlopain](https://redirect.github.com/earlopain)]\[])
-
[#&#8203;13591](https://redirect.github.com/rubocop/rubocop/pull/13591):
Fix false positives for `Lint/NestedMethodDefinition` when defining a
method on a constant or a method call.
(\[[@&#8203;koic](https://redirect.github.com/koic)]\[])
-
[#&#8203;13594](https://redirect.github.com/rubocop/rubocop/pull/13594):
Fix false positives for `Style/MultipleComparison` when using multiple
safe navigation method calls.
(\[[@&#8203;koic](https://redirect.github.com/koic)]\[])
-
[#&#8203;13654](https://redirect.github.com/rubocop/rubocop/pull/13654):
Fix false positives for `Style/RedundantInitialize` when empty
initialize method has arguments.
(\[[@&#8203;marocchino](https://redirect.github.com/marocchino)]\[])
-
[#&#8203;13608](https://redirect.github.com/rubocop/rubocop/pull/13608):
Fix crash when running `rubocop -d` on a config with a remote
`inherit_from` that causes a duplicate setting warning.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;12430](https://redirect.github.com/rubocop/rubocop/issues/12430):
Fix false negatives in `Style/RedundantLineContinuation` with multiple
line continuations.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13638](https://redirect.github.com/rubocop/rubocop/pull/13638):
Fix false positive for `Naming/BlockForwarding` when method just returns
the block argument.
(\[[@&#8203;mvz](https://redirect.github.com/mvz)]\[])
-
[#&#8203;13599](https://redirect.github.com/rubocop/rubocop/issues/13599):
Fix incorrect autocorrect for `Layout/HashAlignment` when there is a
multiline positional argument and `Layout/ArgumentAlignment` is
configured with `EnforcedStyle: with_fixed_indentation`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13586](https://redirect.github.com/rubocop/rubocop/issues/13586):
Fix regression in `Layout/SpaceAroundOperators` when different
comparison operators were aligned with each other.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13603](https://redirect.github.com/rubocop/rubocop/pull/13603):
Fix `Lint/LiteralInInterpolation` cop error on invalid string literal.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13582](https://redirect.github.com/rubocop/rubocop/pull/13582):
Fix `Lint/NonAtomicFileOperation` cop error on non-constant receiver.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13598](https://redirect.github.com/rubocop/rubocop/pull/13598):
Fix `Lint/Void` cop error on `if` without body.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13634](https://redirect.github.com/rubocop/rubocop/pull/13634):
Fix `Style/ClassAndModuleChildren` cop error on `compact` enforced style
and unindented body.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13642](https://redirect.github.com/rubocop/rubocop/pull/13642):
Fix `Style/FloatDivision` cop error if `#to_f` has implicit receiver.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13517](https://redirect.github.com/rubocop/rubocop/pull/13517):
Fixes `Style/HashExcept` to recognize safe navigation when
`ActiveSupportExtensionsEnabled` config is enabled.
(\[[@&#8203;lovro-bikic](https://redirect.github.com/lovro-bikic)]\[])
-
[#&#8203;13585](https://redirect.github.com/rubocop/rubocop/pull/13585):
Fix `Style/HashSyntax` cop error on implicit `call` method.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13632](https://redirect.github.com/rubocop/rubocop/pull/13632):
Fix `Style/MissingElse` cop error if `Style/EmptyElse`'s `EnforcedStyle`
is not `both` and `if` expression contains `elsif`.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13659](https://redirect.github.com/rubocop/rubocop/pull/13659):
Fix `Style/MissingElse` cop error if `Style/EmptyElse`'s `EnforcedStyle`
is not `both` and `if` expression contains multiple `elsif`.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13596](https://redirect.github.com/rubocop/rubocop/pull/13596):
Fix `Style/RedundantCondition` cop error on parentheses and modifier
`if` in `else`.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13616](https://redirect.github.com/rubocop/rubocop/pull/13616):
Fix incorrect autocorrect for `Style/RedundantRegexpArgument` when the
regex contains a single quote.
(\[[@&#8203;mrzasa](https://redirect.github.com/mrzasa)]\[])
-
[#&#8203;13619](https://redirect.github.com/rubocop/rubocop/pull/13619):
Fix `Style/YodaExpression` cop error in case of suffix form of operator.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13578](https://redirect.github.com/rubocop/rubocop/issues/13578):
Update `Layout/LineContinuationSpacing` to ignore continuations inside a
`regexp` or `xstr`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13601](https://redirect.github.com/rubocop/rubocop/issues/13601):
Update `Style/SuperArguments` to handle `super` with a block or with a
chained method with a block.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13568](https://redirect.github.com/rubocop/rubocop/pull/13568):
Fix `NoMethodError` in `ConfigValidator` when a Cop's config is not a
`Hash` and raise `ValidationError` instead.
(\[[@&#8203;amomchilov](https://redirect.github.com/amomchilov)]\[])

##### Changes

-
[#&#8203;13665](https://redirect.github.com/rubocop/rubocop/pull/13665):
Add support for safe navigation to `Style/ObjectThen`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13657](https://redirect.github.com/rubocop/rubocop/pull/13657):
Add support for safe navigation to `Layout/HashAlignment`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13656](https://redirect.github.com/rubocop/rubocop/pull/13656):
Add support for safe navigation to
`Layout/HeredocArgumentClosingParenthesis`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13655](https://redirect.github.com/rubocop/rubocop/pull/13655):
Add support for safe navigation to `Layout/LineLength`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13662](https://redirect.github.com/rubocop/rubocop/pull/13662):
Add support for safe navigation to `Style/SendWithLiteralMethodName`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13557](https://redirect.github.com/rubocop/rubocop/issues/13557):
Fix false positives for `Lint/NumericOperationWithConstantResult`.
(\[[@&#8203;earlopain](https://redirect.github.com/earlopain)]\[])
-
[#&#8203;13658](https://redirect.github.com/rubocop/rubocop/pull/13658):
Fix invalid autocorrect for `Style/SlicingWithRange` when calling `.[]`
or `&.[]` with a correctable range.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13548](https://redirect.github.com/rubocop/rubocop/pull/13548):
Enhance `Lint/DuplicateSetElement` to detect offences within
`SortedSet`.
(\[[@&#8203;viralpraxis](https://redirect.github.com/viralpraxis)]\[])
-
[#&#8203;13646](https://redirect.github.com/rubocop/rubocop/pull/13646):
Update `Layout/TrailingWhitespace` to support blank characters other
than space and tab.
(\[[@&#8203;krororo](https://redirect.github.com/krororo)]\[])
-
[#&#8203;13652](https://redirect.github.com/rubocop/rubocop/pull/13652):
Update `Metrics/MethodLength` to make use of `AllowedMethods` and
`AllowedPatterns` for methods defined dynamically with `define_method`.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13606](https://redirect.github.com/rubocop/rubocop/issues/13606):
Update `Style/AccessModifierDeclarations` to add
`AllowModifiersOnAliasMethod` configuration (default `true`).
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])
-
[#&#8203;13662](https://redirect.github.com/rubocop/rubocop/pull/13662):
Update `Style/RedundantSelfAssignment` to handle safe navigation on the
right-hand side of the assignment.
(\[[@&#8203;dvandersluis](https://redirect.github.com/dvandersluis)]\[])

</details>

---

### Configuration

📅 **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 this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/line/line-bot-sdk-ruby).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJkZXBlbmRlbmN5IHVwZ3JhZGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Jan 10, 2025
1 parent ef691df commit 049f08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ gemspec

group :development, :test do
# ref: http://docs.rubocop.org/en/latest/installation/
gem 'rubocop', '~> 1.69.0', require: false
gem 'rubocop', '~> 1.70.0', require: false
gem 'yard', '~> 0.9.20'
end

0 comments on commit 049f08d

Please sign in to comment.