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-best-practices/final-newline

Language: Kotlin

Severity: Notice

Category: Best Practices

Description

This rule enforces the inclusion of a final newline at the end of every file. Many command-line utilities expect or require the presence of a final newline to function correctly.

Non-Compliant Code Examples

package main 

fun main(args : Array<String>) {
    println("Hello world!")
}

Compliant Code Examples

package main 

fun main(args : Array<String>) {
    println("Hello world!")
}
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