Skip to content

Update rubocop 1.74.0 → 1.75.2 (minor)#1446

Closed
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/rubocop-1.75.2
Closed

Update rubocop 1.74.0 → 1.75.2 (minor)#1446
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/rubocop-1.75.2

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Apr 4, 2025

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop (1.74.0 → 1.75.2) · Repo · Changelog

Release Notes

1.75.2

Changes

  • #14065: Update Lint/RedundantTypeConversion to register an offense for to_json.to_s. (@lovro-bikic)

Bug fixes

  • #14041: Fix an error when using ERB templated config YAML with server mode. (@koic)
  • #14048: Do not emit a warning for a zero-sized file while checking if it is executable. (@viralpraxis)
  • #14053: Fix incorrect autocorrect for Lint/DeprecatedOpenSSLConstant cipher constant argument is not cbc. (@koic)
  • #14051: Fix incorrect autocorrect for Style/RedundantCondition when true is used as the true branch and the condition takes arguments. (@koic)
  • #14062: Fix false positives for Lint/ReturnInVoidContext when returning inside define_method or a nested singleton method. (@earlopain)
  • #14057: Fix Style/ConditionalAssignment cop error on dynamic string node in branch. (@viralpraxis)
  • #14047: Fix Style/FrozenStringLiteralComment cop errors on emacs-styled magic comment. (@viralpraxis)

1.75.1

Changes

  • #14038: Rename EnforcedStyle: allow_named_parameter to EnforcedStyle: only_numbered_parameters in Style/ItBlockParameter. (@koic)

1.75.0

New features

  • #12049: Add new Style/HashFetchChain cop to detect chained fetch calls that can be replaced with a single call to dig. (@dvandersluis)
  • #13597: Add new Style/ItBlockParameter cop. (@koic)
  • #13899: Enable reusable Prism parse result for Ruby LSP add-on. (@koic)
  • #14015: Support it block parameter in Layout cops. (@koic)
  • #14017: Support it block parameter in Lint cops. (@koic)
  • #14018: Support it block parameter in Metrics cops. (@koic)
  • #14013: Support it block parameter in Style cops. (@koic)
  • #14025: Support TargetRubyVersion: 3.5 (experimental). (@earlopain)

Bug fixes

  • #14022: Fix an error for Style/HashFetchChain when no arguments are given to fetch. (@koic)
  • #14028: Fix false negative for Layout/MultilineMethodParameterLineBreaks when class method definitions are used. (@vlad-pisanov)
  • #14027: Fix false negative for Layout/LineLength when autocorrecting class method definitions. (@vlad-pisanov)
  • #8099: Fix infinite loop between Layout/SpaceAroundOperators and Layout/HashAlignment with EnforcedHashRocketStyle being an array containing table. (@dvandersluis)
  • #14021: Fix handling of long heredoc lines with SplitStrings enabled. (@mauro-oto)
  • #13968: Fix InternalAffairs/RedundantDescribedClassAsSubject cop error on missing describe. (@viralpraxis)
  • #14036: Fix false negative for Lint/ShadowingOuterLocalVariable when block local variable is used inside a condition. (@lovro-bikic)
  • #13990: Fix a false positive for Lint/UselessAssignment when a variable is reassigned in a different branch. (@eugeneius)
  • #14012: Fix incorrect autocorrections for Style/SoleNestedConditional. (@lovro-bikic)
  • #14020: Fix comment autocorrection for Style/IfInsideElse. (@lovro-bikic)

Changes

  • #12358: Add does as a forbidden prefix to Naming/PredicateName. (@dvandersluis)
  • #13621: Add ForbiddenIdentifiers and ForbiddenPatterns config options to Naming/MethodName cop. (@tejasbubane)
  • #13986: Add support for Array#intersection to Style/ArrayIntersect. (@dvandersluis)
  • #14006: Allow cop renames to trigger warnings instead of fatal errors. (@dvandersluis)
  • #13617: Use the prism translation layer to analyze Ruby 3.4+ by default. (@earlopain)
  • #14024: Change Style/RedundantParentheses to offend parentheses for chained && expressions. (@lovro-bikic)
  • #14029: Add AllowConsecutiveConditionals setting to Style/Next to allow consecutive conditional statements. (@vlad-pisanov)
  • #14016: Update Style/RedundantFormat to register offenses when the only argument to format or sprintf is a constant. (@dvandersluis)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ ast (indirect, 2.4.2 → 2.4.3) · Repo · Changelog

Commits

See the full diff on Github. The new version differs by 10 commits:

↗️ parser (indirect, 3.3.7.1 → 3.3.7.4) · Repo · Changelog

Release Notes

3.3.7.4 (from changelog)

Bugs fixed:

  • lexer-strings.rb: Avoid an exception on utf8 surrogate pair codepoints (#1051) (Earlopain)
  • builder.rb: emit kwargs node for indexasgn when opted in (#1053) (Earlopain)
  • builder.rb: correctly handle ... forwarding to super with explicit block (#1049) (Earlopain)
  • numbered parameters are valid for pattern matching pinning (#1060) (Earlopain)

3.3.7.3 (from changelog)

API modifications:

  • Bump maintenance branches to 3.2.8 and 3.1.7 (#1074) (Koichi ITO)

3.3.7.2 (from changelog)

Features implemented:

  • add prism-specific node types (#1071) (Earlopain)

Bugs fixed:

  • builder.rb: fix hash value omission considering some local vars as constants (#1064) (Earlopain)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 20 commits:

↗️ rubocop-ast (indirect, 1.38.1 → 1.44.0) · Repo · Changelog

Release Notes

1.44.0

New features

  • #377: Support RuboCop::AST::Node#any_def_type? method. (@koic)

1.43.0

Changes

  • #374: Use the prism translation layer to analyze Ruby 3.4 by default. ([@Earlopain])
  • #373: Add prism as a runtime dependency. ([@Earlopain])

1.42.0

New features

  • #370: Support Prism::Translation::Parser35 for Ruby 3.5 parser (experimental). (@earlopain, @koic)

1.41.0

New features

1.40.0

Changes

  • #354: Use Prism::Translation::Parser::Builder when parsing with prism. (@earlopain)

1.39.0 (from changelog)

New features

  • #359: Enable reusable Prism parse result. (@koic)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 35 commits:

🆕 prism (added, 1.4.0)


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Apr 4, 2025
@mitlib mitlib temporarily deployed to thesis-submit-pr-1446 April 4, 2025 12:51 Inactive
@coveralls
Copy link

Coverage Status

coverage: 98.313%. remained the same
when pulling 8bba75e on depfu/update/rubocop-1.75.2
into c26476d on main.

@depfu
Copy link
Contributor Author

depfu bot commented Apr 23, 2025

Closed in favor of #1450.

@depfu depfu bot closed this Apr 23, 2025
@depfu depfu bot deleted the depfu/update/rubocop-1.75.2 branch April 23, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants