Skip to content

Scalastyle proposed rules (Naming Conventions)

Matthew Farwell edited this page Nov 16, 2011 · 8 revisions

This page contains proposed rules for Scalastyle, category Naming Conventions.

Naming Conventions

MethodNames

Checks that the method names follow the regular expression [a-z][a-zA-Z]*

Parameters

regex the regular expression to use ignoreNonAlphaMethodNames if true, only check method names with alphanumeric characters in, so def +() will not be checked, but def foo+() will be.

ClassNames

Checks that the class names follow the regular expression [A-Z][a-zA-Z]*

Parameters

regex the regular expression to use

ObjectNames

Checks that the object names follow the regular expression [A-Z][a-zA-Z]*

Parameters

regex the regular expression to use

VariableNames

Checks that the variable names follow the regular expression [a-z][a-zA-Z]*

Parameters

regex the regular expression to use