Closed denzelem closed 4 years ago
https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/ClassCheck
This cop enforces consistent use of Object#is_a? or Object#kind_of?.
Object#is_a?
Object#kind_of?
is_a? and kind_of? are not the same, so this cop does not make any sense imho. There are good reasons for using kind_of?, so we should not enforce is_a? here.
is_a?
kind_of?
https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/ClassCheck
is_a?
andkind_of?
are not the same, so this cop does not make any sense imho. There are good reasons for usingkind_of?
, so we should not enforceis_a?
here.