New cop: Detect unexpected overwriting of Struct methods · Issue #7680 · rubocop/rubocop

Is your feature request related to a problem? Please describe. I've encountered an weird behavior on using Struct class: # good Good = Struct.new(:foo) Good.new.members #=> [:foo] # bad Bad = Struc...