Skip to content

Update rubocop 1.74.0 → 1.75.3 (minor) #1444

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Apr 23, 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.3) · Repo · Changelog

Release Notes

1.75.3

Bug fixes

  • #13676: Allow RuboCop to inspect hidden directories if they are explicitly provided. (@viralpraxis)
  • #14080: Allow writing RBS::Inline annotation #: after end keyword in Style/CommentedKeyword. (@dak2)
  • #14075: Fix an error for Layout/EmptyLineAfterGuardClause when calling a method on the result of a single-line if with return. (@koic)
  • #14067: Fix false negatives for Style/RedundantParentheses when using parens around singleton method body. (@koic)
  • #14070: Fix false positives for EnforcedStyleForMultiline: diff_comma of Style/TrailingCommaInArrayLiteral and Style/TrailingCommaInHashLiteral when trailing comma with comment. (@koic)
  • #14092: Fix false negative for Style/RedundantParentheses when using some operator methods with a parenthesized argument. (@koic)
  • #14103: Fix Layout/MultilineOperationIndentation cop error on indexasgn node without arguments. (@viralpraxis)
  • #14089: Fix redundant current directory prefix regexp. (@sferik)
  • #14099: Fix Style/ClassAndModuleChildren cop error on one-liner class definition and nested enforced style. (@viralpraxis)
  • #14083: Fix Style/ConditionalAssignment cop error on one-line if-then-else. (@viralpraxis)
  • #14104: Fix Style/ConditionalAssignment cop error on indexed assignment without arguments. (@viralpraxis)
  • #14084: Fix Style/RedundantLineContinuation cop error on multiline assignment with line continuation. (@viralpraxis)
  • #14096: Fix error for Style/SafeNavigation with longer && chain (e.g. a && a.b && a.b.c). (@lovro-bikic)
  • #14068: Fix wrong autocorrection for Style/MapIntoArray when using push or append with hash argument without braces. (@lovro-bikic)

Changes

  • #14093: Register offenses for redundant parens around method arguments for Style/RedundantParentheses. (@lovro-bikic)
  • #14064: Prefer References over Reference in cop configs. (@sambostock)

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:

↗️ parallel (indirect, 1.26.3 → 1.27.0) · Repo

Commits

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

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

Release Notes

3.3.8.0 (from changelog)

API modifications:

  • Bump maintenance branches to 3.3.8 (#1077) (Koichi ITO)
  • YARD docs for Parser::CurrentRuby and Parser::Base#version (#1076) (Vince Broz)

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 28 commits:

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

Release Notes

1.44.1

Bug fixes

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 39 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 23, 2025
@mitlib mitlib temporarily deployed to mit-bento-pr-1444 April 23, 2025 10:27 Inactive
@coveralls
Copy link

Coverage Status

coverage: 99.07%. remained the same
when pulling ee26cec on depfu/update/rubocop-1.75.3
into 04fcd3a on main.

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