class Foo < T::Struct
const :fooConst, String # bad
const :foo_const, String # good
prop :fooProp, T::Boolean # bad
prop :foo_prop, T::Boolean # good
end
This isn't a priority for us because internally we utilize ForbidTStruct cop and have moved away from T::Struct usages however, contributions are welcome and we will merge it if it's implemented 🙂
It would be great to have a cop that works like Naming/MethodName, but for T::Struct props
Personally I only plan to use snake_case for this right now, but for completeness the cop could support the same options as Naming/MethodName.
Naming/MethodName source: https://github.com/rubocop/rubocop/blob/master/lib/rubocop/cop/naming/method_name.rb
Example: