Jakub Gwóźdź
08/13/2019, 10:59 AMwildcard import
does not seem to be enabled by standard config and I wonder why. After all, most of bikesheding circles around those two issues (number of spaces and wildcard imports) 🙂
my test case below:
jakub@jgw-pc:~/IdeaProjects/aaa$ cat src/main/kotlin/ktlinttest/KtLintTest.kt
package ktlinttest
import java.io.*
fun foo() {
val x = listOf(1, 2, 3)
.map { it + 1 }
.sum()
println(x)
val y = File("a.txt")
println(y)
}
jakub@jgw-pc:~/IdeaProjects/aaa$ ktlint src/main/kotlin/ktlinttest/KtLintTest.kt
jakub@jgw-pc:~/IdeaProjects/aaa$