Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.07 KB

ClassTypeParameter.md

File metadata and controls

30 lines (22 loc) · 1.07 KB

Pattern: Invalid class type parameter name

Issue: -

Description

Scala generic type names are generally single upper case letters (from the English alphabet). Note that this rule only checks the innermost type parameter to allow for List[T].

Parameters

NameDescriptionTypeDefault Value
regex Regular expression string ^[A-Z_]$

Example configuration

<check enabled="true" class="org.scalastyle.scalariform.ClassTypeParameterChecker" level="warning">
 <parameters>
  <parameter name="regex">^[A-Z_]$</parameter>
 </parameters>
</check>