You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesrubocop#12353.
This PR adds new `Style/SuperWithArgsParentheses` cop
```ruby
# bad
super name, age
# good
super(name, age)
```
The cop is named `Style/SuperWithArgsParentheses`, contrasting with `Style/MethodCallWithArgsParentheses`.
Unlike `Style/MethodCallWithArgsParentheses`, which requires consideration for no-parentheses usage in DSL.
`super` is not used as a DSL, so it is enabled by default.
For these reasons, it has been made into a separate, new cop.
Fixes#12353.
This PR adds new `Style/SuperWithArgsParentheses` cop
```ruby
# bad
super name, age
# good
super(name, age)
```
The cop is named `Style/SuperWithArgsParentheses`, contrasting with `Style/MethodCallWithArgsParentheses`.
Unlike `Style/MethodCallWithArgsParentheses`, which requires consideration for no-parentheses usage in DSL.
`super` is not used as a DSL, so it is enabled by default.
For these reasons, it has been made into a separate, new cop.
Description
Always use parentheses when calling
super
with argumentshttps://rubystyle.guide/#super-with-args
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: