Package names should comply with a naming convention

  • squid : S00120

Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all package names match a provided regular expression.

The following code snippet illustrates this rule when the regular expression value is "^[a-z]+(\\.[a-z][a-z0-9]*)*$":

package org.Example; // Non-Compliant

package org.example; // Compliant
Close