solid_lints icon indicating copy to clipboard operation
solid_lints copied to clipboard

New rule: use_descriptive_names_for_type_parameters (when there's 3 or more)

Open danylo-safonov-solid opened this issue 2 years ago • 1 comments

BAD:

class SomeClass<T, U, K> {
  ...
}

GOOD:

class SomeClass<$firstParam, $secondParam, $thidParam> {
  ...
}

GOOD:

class OtherClass<T> {
  ...
}

danylo-safonov-solid avatar Dec 15 '23 16:12 danylo-safonov-solid

How we can define what is descriptive? By length? How often this case happens?

illia-romanenko avatar Apr 24 '25 13:04 illia-romanenko