Este producto no es compatible con el sitio Datadog seleccionado. ().
Esta página aún no está disponible en español. Estamos trabajando en su traducción.
Si tienes alguna pregunta o comentario sobre nuestro actual proyecto de traducción, no dudes en ponerte en contacto con nosotros.

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

Integraciones sin problemas. Prueba Datadog Code Security