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
The default rubocop configuration shouldn't return errors when using !! in the return of a define_method/define_singleton_method
Actual behavior
rubocop reports an error:
a.rb:2:3: C: [Correctable] Style/DoubleNegation: Avoid the use of double negation (!!).
!!good
^
a.rb:6:3: C: [Correctable] Style/DoubleNegation: Avoid the use of double negation (!!).
!!bad
^
Expected behavior
The default rubocop configuration shouldn't return errors when using
!!
in the return of adefine_method
/define_singleton_method
Actual behavior
rubocop reports an error:
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: