This product is not supported for your selected Datadog site. ().

Metadata

ID: apex-code-style/class-name

Language: Apex

Severity: Notice

Category: Code Style

Description

This rule enforces specific naming conventions for class names. Adhering to consistent naming rules helps maintain code readability and ensures that classes are easily identifiable and understandable by other developers.

To comply with this rule, use clear and descriptive class names that follow established conventions, such as starting with an uppercase letter and using CamelCase for multi-word names. For example, MyClass is preferred over myClass or other variations. Consistently applying these practices will help avoid violations and improve overall code quality.

Non-Compliant Code Examples

class myClass {
    public void myFunction(){

    }
}

Compliant Code Examples

class MyClass {
    public void myFunction(){

    }
}
https://static.datadoghq.com/static/images/logos/github_avatar.svg https://static.datadoghq.com/static/images/logos/vscode_avatar.svg jetbrains

Seamless integrations. Try Datadog Code Security