Sunday, 20 March 2016

Checkstyle Coding practices - Naming conventions


Naming practices provided by CheckStyle

AbstractClassName
Ensures that the names of abstract classes conforming to some regular expression.

ConstantName
Checks that constant names conform to a format specified by the format property.

MemberName
Checks that instance variable names conform to a format specified by the format property.

MethodName
Checks that method names conform to a format specified by the format property.

LocalFinalVariableName
Checks that local final variable names conform to a format specified by the format property.

LocalVariableName
Checks that local, non-final variable names conform to a format specified by the format property.

PackageName
Checks that package names conform to a format specified by the format property.

ParameterName
Checks that parameter names conform to a format specified by the format property.

StaticVariableName
Checks that static, non-final variable names conform to a format specified by the format property.

TypeName
Checks that type names conform to a format specified by the format property.

MethodTypeParameterName
Checks that class type parameter names conform to a format specified by the format property.

OuterTypeFilename
Checks that the outer type name and the file name match.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.