kotlinStdLibNames
From Detekt, again: https://github.com/detekt/detekt/blob/2d00cab3680f49a94a95e4d8b9da08303315619b/detekt-psi-utils/src/main/kotlin/io/github/detekt/psi/internal/KotlinNoImportClasses.kt
The entries of this map was generate with this script:
#!/usr/bin/env bash
print_classes() {
packages=(kotlin kotlin.annotation kotlin.collections kotlin.comparisons kotlin.io kotlin.ranges kotlin.sequences kotlin.text kotlin.jvm)
for package in "${packages[@]}"; do
curl -s "https://kotlinlang.org/api/latest/jvm/stdlib/$package/" | gsed -n -E "s|<h4><a href=\".*\">([a-zA-Z].*)</a></h4>|\"\1\" to \"$package.\1\",|p"
done
}
print_classes | sort -u | gsed '/^"[A-Z_]*"/d'
Content copied to clipboard
And the list of packages that should be considered was extracted from the kotlin documentation: https://kotlinlang.org/docs/packages.html#default-imports