feat(health): promote Scala to Full tier (LanguageNodeMap + perf dialect)#745
Merged
Conversation
…ect) Scala LanguageNodeMap: complexity, nesting, cognitive, class metrics (class/object/trait/enum, LCOM4 via this.member field_expression), match/for-comprehension guards as flat branches, catch cases counted per handler, assertion runs for munit/plain assert calls. Scala perf dialect riding the JVM lexicon (Java sink tables) plus Scala-native boundaries: scala.io.Source, os-lib (method-gated), sttp/http4s (network-gated), Slick db.run (db-gated), doobie transact. Scala-specific markers: "...".r and Pattern.compile recompiled in a loop, string concat gated on a var-String binding (collection += never fires), Await.result/Thread.sleep inside a Future-returning def as blocking_sync_in_async, x.synchronized as lock scope, constant-bound (1 to N) loop suppression, same-collection quadratic fact. io_kind seeds for the Scala ecosystem (slick, doobie, scalikejdbc, anorm, getquill, sttp, http4s, akka-http, play-ws, scala.io). 15 new unit tests; os-lib smoke: 59 files, zero parse errors, both raw perf findings true positives on manual review; full suite green. Dataflow dialect deferred per plan; .map/.foreach combinator iteration is a documented recall ceiling pending the Ruby block-iteration design.
|
✅ Health: 7.7 (unchanged) 📋 At a glance Files & modules (2)
🚨 Change risk: high (riskier than 69% of this repo's commits · raw 9.4/10)
🩹 Review priority (files here with the most recent bug-fix history — defects cluster, so review these first)
🔎 More signals (2)🔥 Hotspots touched (5)
2 more
🔗 Hidden coupling (3 files)
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-10 09:03 UTC |
swati510
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Promotes Scala from the Good tier to the Full tier: code-health markers now run on Scala, backed by a new complexity-walker node map and a performance dialect. Dataflow (Extract Method) stays deferred.
LanguageNodeMap
Perf dialect
Rides the JVM lexicon (imports the Java dialect's sink tables, since java.* interop appears verbatim in Scala) and adds Scala-native boundaries:
Known recall ceiling, documented in the dialect docstring and the docs footnote: idiomatic .map / .foreach iteration bodies are lambdas, which reset loop depth, so combinator-driven loops produce no loop markers yet.
io_kind
Scala ecosystem seeds: slick, doobie, scalikejdbc, anorm, getquill (db); sttp, http4s, akka-http, play-ws (network); scala.io (filesystem).
Docs
README badges and tier tables, LANGUAGE_SUPPORT.md (Full-tier row, health checklist row with the assertion-gap footnote, roadmap), architecture doc and complexity README counts.
Testing