Skip to content

Commit 89c0f43

Browse files
aksOpsclaude
andcommitted
Document Kotlin Compiler API evaluation: regex approach sufficient
Evaluated kotlin-compiler-embeddable (50-70MB) for 2 Kotlin detectors. Current regex/ANTLR approach provides sufficient detection quality — adding the compiler dependency is not justified for the marginal benefit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 245d856 commit 89c0f43

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/io/github/randomcodespace/iq/detector/kotlin/KotlinStructuresDetector.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
import io.github.randomcodespace.iq.detector.DetectorInfo;
1919
import io.github.randomcodespace.iq.detector.ParserType;
2020

21+
// Kotlin Compiler API (kotlin-compiler-embeddable) evaluated 2026-03-28 but regex/ANTLR
22+
// approach provides sufficient detection quality for Kotlin structures. The compiler JAR
23+
// adds 50-70MB for only 2 Kotlin detectors — not justified. Revisit if complex semantic
24+
// analysis (type resolution, coroutine flow tracking) is needed in the future.
2125
@DetectorInfo(
2226
name = "kotlin_structures",
2327
category = "structures",

src/main/java/io/github/randomcodespace/iq/detector/kotlin/KtorRouteDetector.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
import io.github.randomcodespace.iq.detector.DetectorInfo;
1515
import io.github.randomcodespace.iq.detector.ParserType;
1616

17+
// Kotlin Compiler API (kotlin-compiler-embeddable) evaluated 2026-03-28 but regex/ANTLR
18+
// approach provides sufficient detection quality for Ktor route detection. The compiler JAR
19+
// adds 50-70MB for only 2 Kotlin detectors — not justified. Revisit if complex semantic
20+
// analysis (type resolution, coroutine flow tracking) is needed in the future.
1721
@DetectorInfo(
1822
name = "ktor_routes",
1923
category = "endpoints",

0 commit comments

Comments
 (0)