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
echo 'h={}; p h if !h or h.empty?' | rubocop --stdin --only Style/AndOr --auto-correct -
There is no issue if I change the condition by removing the not (!) : p h if h or h.empty?
There is no issue if I put parentheses around conditions : p h if (!h) or (h.empty?)
The text was updated successfully, but these errors were encountered:
Hi,
I've got this error when i enable auto-correct with the and/or style rule
Rubocop version : 0.35.1
To reproduce the issue :
There is no issue if I change the condition by removing the not (!) : p h if h or h.empty?
There is no issue if I put parentheses around conditions : p h if (!h) or (h.empty?)
The text was updated successfully, but these errors were encountered: