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
EDIT: This does seem fixed in the latest version of rubocop. But not from the OP. So I'm going to close this as completed "at some point". I tried using rubocop 1.50+ and the cop offense isn't flagging for the above code example.
This is a breakout / re-opening of the old ticket. Specifically to fix the "main" use issue. (Non
def
defined methods shouldn't trip this up).Expected behavior
None
def
defined methods should not trip this up. As an example the below code should be permissible - as it's the most common styleActual behavior
Same as prior to #5953 (Rubocop 0.x series)
Steps to reproduce the problem
Write the code as provided above
RuboCop version
Latest rubocop
The text was updated successfully, but these errors were encountered: