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

シームレスな統合。 Datadog Code Security をお試しください