-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cop idea: RedundantSuperArguments
#12309
Comments
Earlopain
added a commit
to Earlopain/rubocop
that referenced
this issue
Dec 1, 2023
8 tasks
Earlopain
added a commit
to Earlopain/rubocop
that referenced
this issue
May 22, 2024
Earlopain
added a commit
to Earlopain/rubocop
that referenced
this issue
May 22, 2024
Earlopain
added a commit
to Earlopain/rubocop
that referenced
this issue
May 22, 2024
Earlopain
added a commit
to Earlopain/rubocop
that referenced
this issue
May 22, 2024
Earlopain
added a commit
to Earlopain/rubocop
that referenced
this issue
May 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Consider the following code:
Ruby delegates all arguments to super if called without anything. Rubocop should detect this case and autocorrect to a plain super call.
Describe the solution you'd like
Autocorrect to the following if the arguments to super matches the method signature:
Additional context
Calling super with parents like
super()
has special meaning and will not pass any arguments to the inherited method. There should be no autocorrect in that case.The text was updated successfully, but these errors were encountered: