This product is not supported for your selected Datadog site. ().
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Metadata

ID: kotlin-code-style/comment-spacing

Language: Kotlin

Severity: Notice

Category: Code Style

Description

To improve clarity, the // symbol of a line comment should be padded by at least one space on both sides.

Non-Compliant Code Examples

val count: Int = 1//non-compliant
val count: Int = 2// non-compliant
val count: Int = 3 //non-compliant

//non-compliant

    //non-compliant

Compliant Code Examples

val count: Int = 1 // compliant

// compliant

    // compliant
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

PREVIEWING: ida.adjivon/rtrieu/DOCS-10715-ET-standalone