fix(reference-source): recognize Kotlin files in imported inventories

Classify .kt and .kts at the source owner so imported entries and historical language summaries preserve Kotlin identity.

Validation: production inventory projection covers Kotlin, Gradle script, Java and backup-suffix controls.

Based on #3224.

Co-authored-by: Aurantium <280805072+Aurantium-47@users.noreply.github.com>
This commit is contained in:
morlutoandAurantium committed 2026-10-14 13:58:15 +08:00
1 parent 576b58cefe
commit 03ffb2c13d
2 files changed
+64

No files matched your search

@@ -27,6 +27,8 @@ const CODE_EXTENSIONS = new Set([
"rs",
"go",
"java",
"kt",
"kts",
"c",
"h",
"cpp",
@@ -54,6 +56,8 @@ const LANGUAGE_BY_EXTENSION = new Map<string, string>([
["rs", "Rust"],
["go", "Go"],
["java", "Java"],
["kt", "Kotlin"],
["kts", "Kotlin"],
["c", "C"],
["h", "C"],
["cpp", "C++"],