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: kotlin-code-style/comment-declaration-spacing

Language: Kotlin

Severity: Notice

Category: Code Style

Description

Declarations with comments should be separated by a blank line to improve readability of code.

Non-Compliant Code Examples

// some comment 1
bar()
/*
 * some comment 2
 */
foo()
// some comment 1
bar()
/*
 * some comment 2
 */
foo()
// testing 1
/*
 * some comment 2
 */
foo()

Compliant Code Examples

// some comment 1
bar()

/*
 * some comment 2
 */
foo()
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