Why is this an issue?

Shared naming conventions improve readability and allow teams to collaborate efficiently. This rule checks that all package names match a provided regular expression.

How to fix it

Rename packages with the expected naming convention

Code examples

Noncompliant code example

With the default regular expression ^[a-z]+(\.[a-z][a-z0-9]*)*$:

package org.Example {  // Noncompliant
...
}

Compliant solution

package org.example {
...
}