Shopify / rubocop-sorbet

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

Place constants right after the includes #113

Closed Morriar closed 2 years ago

Morriar commented 2 years ago

So type_member and type_template are at the top.

I feel like having:

class Foo
  extend T::Generics

  def foo; end

  Elem = type_member

  SOME_OTHER_CONST = 42
end

is worse than having:

class Foo
  extend T::Generics

  Elem = type_member

  SOME_OTHER_CONST = 42

  def foo; end
end