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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!
Is your feature request related to a problem? Please describe.
return
has been allowed on the top-level since Ruby 2.4.But the argument of
return
is ignored always.It will be detected since Ruby 2.7. ruby/ruby@aa97410
But RuboCop doesn't.
Describe the solution you'd like
Add a new cop to detect the problem. Maybe it will be named
Lint/TopLevelReturnWithArgument
.Describe alternatives you've considered
nothing
Additional context
nothing
The text was updated successfully, but these errors were encountered: