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;