Enforce comment placement in value argument
This product is not supported for your selected
Datadog site. (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
ID: kotlin-code-style/value-argument-comment
Language: Kotlin
Severity: Notice
Category: Code Style
Description
Having comments between the name of a named argument and its value makes code harder to read and can lead to confusion.
Non-Compliant Code Examples
doTask(name = "parse", filename = /* A list of IP addresses */ "ips.txt")
doTask(
name = "parse",
filename =
// A list of IP addresses
"ips.txt"
)
Compliant Code Examples
doTask(name = "parse", filename = "ips.txt")
Seamless integrations. Try Datadog Code Security