Enforce comment placement in class parameter
This product is not supported for your selected
Datadog site. (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
ID: kotlin-code-style/class-parameter-comment
Language: Kotlin
Severity: Notice
Category: Code Style
Description
When defining a class, comments should be placed on a separate line, before the class parameter they document.
Non-Compliant Code Examples
class Foo(
foo: /** some kdoc */ String
)
class Bar(
bar:
// some comment
String
)
Compliant Code Examples
class Foo(
/** some kdoc */
foo: String
)
class Bar(
// some comment
bar: String
)
シームレスな統合。 Datadog Code Security をお試しください