Shopify / rubocop-sorbet

A collection of RuboCop rules for Sorbet
MIT License
182 stars 27 forks source link

Add Sorbet/ForbidTStruct cop #177

Closed bitwise-aiden closed 1 year ago

bitwise-aiden commented 1 year ago

Through performance benchmarks, we've found that T::Struct is up to 5x slower than it's PORO counterpart. Along with being a catalyst for potential code smells, we've decided to create this cop to forbid the future usage of T::Struct in new code paths.