Enforce extension function spacing
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
ID: kotlin-code-style/extension-function-spacing
Language: Kotlin
Severity: Notice
Category: Code Style
Description
To keep code consistently styled, ensure there are no superfluous spaces in extension function declarations.
Non-Compliant Code Examples
fun <T> List<T>.printAll() {}
fun <T> List <T>.printAll() {}
fun <T> List<T> .printAll() {}
fun <T> List<T>. printAll() {}
fun String ?.printAll() {}
fun String? .printAll() {}
fun String?. printAll() {}
fun Foo .Bar.printAll() {}
fun Foo. Bar.printAll() {}
fun Foo.Bar .printAll() {}
fun Foo.Bar. printAll() {}
fun Foo.Bar.printAll () {}
fun Foo.Bar.printAll (
) {}
Compliant Code Examples
fun <T> List<T>.printAll() {}
fun String?.printAll() {}
fun Foo.Bar.printAll() {}
fun Foo.Bar.printAll(
) {}
Seamless integrations. Try Datadog Code Security