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

Noncompliant Code Example

With the default regular expression ^[a-z][a-zA-Z0-9]*$:

class MyClass {
   private int my_field;
}

Compliant Solution

class MyClass {
   private int myField;
}