Enforce line comment spacing
This product is not supported for your selected
Datadog site. (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
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
シームレスな統合。 Datadog Code Security をお試しください