Skip to content

Comments

rubocop --autocorrect#1611

Merged
tompng merged 1 commit intomasterfrom
rubocop_def_param_autocorrect
Feb 14, 2026
Merged

rubocop --autocorrect#1611
tompng merged 1 commit intomasterfrom
rubocop_def_param_autocorrect

Conversation

@tompng
Copy link
Member

@tompng tompng commented Feb 14, 2026

Apply autocorrect with the latest rubocop.
Old rubocop missed some "Style/MethodDefParentheses" offences that has splat or kwarg splat.

The following code didn't get Style/MethodDefParentheses offences in rubocop <= 1.84.1, fixed in v1.84.2

def f a, b:, **c, &d
end

def g a, *b, c, d:, &e
end

Apply autocorrect with the latest rubocop.
Old rubocop missed some "Style/MethodDefParentheses" offences that has splat or kwarg splat.
@matzbot
Copy link
Collaborator

matzbot commented Feb 14, 2026

🚀 Preview deployment available at: https://bd8d5e45.rdoc-6cd.pages.dev (commit: 57f3641)

@tompng tompng merged commit 52e0817 into master Feb 14, 2026
60 checks passed
@tompng tompng deleted the rubocop_def_param_autocorrect branch February 14, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants