Enforce brace spacing for lambdas This product is not supported for your selected
Datadog site . (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください 。
このルールを試す ID: kotlin-code-style/brace-spacing
Language: Kotlin
Severity: Notice
Category: Code Style
Description In lambda expressions, there should be a space separating each brace from the function’s body. If the function takes parameters, there should also be a space on either side of the arrow.
Non-Compliant Code Examples val values = list . filter { it > 10 }
val values = list . filter { x -> x > 10 }
Compliant Code Examples val values = list . filter { it > 10 }
val values = list . filter { x -> x > 10 }
val values = list . filter int @ { it > 10 }
val values = list . filter {
it > 10
}
Seamless integrations. Try Datadog Code Security