class RuboCop::Cop::Lint::TopLevelReturnWithArgument

Checks for top level return with arguments. If there is a top-level return statement with an argument, then the argument is always ignored. This is detected automatically since Ruby 2.7.

@example

# bad
return 1

# good
return