Enforce nullable type spacing

Metadata

ID: kotlin-code-style/nullable-type-spacing

Language: Kotlin

Severity: Notice

Category: Code Style

Description

No description found

Non-Compliant Code Examples

val foo: String ? = null
val foo: List<String ?> = listOf(null)

Compliant Code Examples

val foo: String? = null
val foo: List<String?> = listOf(null)
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 Analysis