Add Kotlin section to .editorconfig.

This commit is contained in:
Gerrit Meier
2019-09-26 11:55:33 +02:00
parent 78abeaf6b1
commit e493ba250b
2 changed files with 9 additions and 2 deletions

View File

@@ -252,6 +252,13 @@ ij_java_wrap_comments = false
ij_java_wrap_first_method_in_call_chain = false
ij_java_wrap_long_lines = false
[*{kt,kts}]
indent_style = space
indent_size = 4
ij_kotlin_name_count_to_use_star_import = 100
ij_kotlin_name_count_to_use_star_import_for_members = 100
ij_kotlin_keep_line_breaks = true
[.editorconfig]
ij_editorconfig_align_group_field_declarations = false
ij_editorconfig_space_after_colon = false

View File

@@ -27,6 +27,6 @@ import kotlin.reflect.KClass
* @since 1.0
*/
class PreparedQueryFactory<T : Any>(val c: KClass<T>) {
fun withCypherQuery(cypherQuery: String): PreparedQuery.OptionalBuildSteps<T> = c.javaObjectType.let { PreparedQuery.queryFor(it) }
.withCypherQuery(cypherQuery)
fun withCypherQuery(cypherQuery: String): PreparedQuery.OptionalBuildSteps<T> = c.javaObjectType.let { PreparedQuery.queryFor(it) }
.withCypherQuery(cypherQuery)
}