Kotlin SQL Framework
This report summarizes scanner evidence for JetBrains/Exposed, a Kotlin project with 9,302 GitHub stars. SynthScan examined 1,108,071 lines of code across 5676 source files, recording 59 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 21 finding(s).
Are imports declared and package/API names verified? 28 finding(s).
Are wrappers, guards, and repeated structures necessary? 13 finding(s).
Which changes need focused human review? 59 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 59 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …lin/org/jetbrains/exposed/v1/datetime/MiscTableTest.kt | 1275 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.drop(ZeroDateTimeTable) | STRING |
| CRITICAL | …osed/v1/r2dbc/sql/tests/shared/ddl/CreateTableTests.kt | 258 | val tableName = org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current().identity(user) | CODE |
| CRITICAL | …osed/v1/r2dbc/sql/tests/shared/ddl/CreateTableTests.kt | 373 | val t = org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current() | CODE |
| CRITICAL | …osed/v1/r2dbc/sql/tests/shared/ddl/CreateTableTests.kt | 466 | val t = org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current() | CODE |
| CRITICAL | …osed/v1/r2dbc/sql/tests/shared/ddl/CreateTableTests.kt | 501 | val t = org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current() | CODE |
| CRITICAL | …osed/v1/r2dbc/sql/tests/shared/ddl/CreateTableTests.kt | 539 | val t = org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current() | CODE |
| CRITICAL | …osed/v1/r2dbc/sql/tests/shared/ddl/CreateTableTests.kt | 583 | val t = org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current() | CODE |
| CRITICAL | …osed/v1/r2dbc/sql/tests/shared/ddl/CreateTableTests.kt | 632 | val t = org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current() | CODE |
| CRITICAL | …tbrains/exposed/v1/r2dbc/sql/tests/mysql/MysqlTests.kt | 33 | org.jetbrains.exposed.v1.r2dbc.transactions.TransactionManager.current().exec("SELECT VERSION();") { | CODE |
| CRITICAL | …ion-website/Writerside/topics/Migration-Guide-1-0-0.md | 1401 | | `org.jetbrains.exposed.sql.jodatime.DateColumnType(time=false)` | `org.jetbrains.exposed.v1.jodatime.JodaLocalDat | CODE |
| CRITICAL | …ion-website/Writerside/topics/Migration-Guide-1-0-0.md | 1402 | | `org.jetbrains.exposed.sql.jodatime.DateColumnType(time=true)` | `org.jetbrains.exposed.v1.jodatime.JodaLocalDat | CODE |
| CRITICAL | …brains/exposed/v1/test/mixed/MixedDatabaseTestsBase.kt | 21 | val abc: Collection<Array<Any>> = org.jetbrains.exposed.v1.r2dbc.tests.TestDB.enabledDialects() | CODE |
| CRITICAL | …brains/exposed/v1/test/mixed/MixedDatabaseTestsBase.kt | 23 | org.jetbrains.exposed.v1.tests.TestDB.enabledDialects() | CODE |
| CRITICAL | …ples/exposed-ktor-r2dbc/src/main/kotlin/Application.kt | 12 | io.ktor.server.netty.EngineMain.main(args) | CODE |
| CRITICAL | samples/exposed-ktor/src/main/kotlin/Application.kt | 8 | io.ktor.server.netty.EngineMain.main(args) | CODE |
| CRITICAL | …g/jetbrains/exposed/samples/broker/jdbc/Application.kt | 9 | io.ktor.server.netty.EngineMain.main(args) | CODE |
| CRITICAL | …/jetbrains/exposed/samples/broker/r2dbc/Application.kt | 9 | io.ktor.server.netty.EngineMain.main(args) | CODE |
| CRITICAL⚡ | …brains/exposed/v1/tests/shared/ddl/CreateTableTests.kt | 742 | assertTrue(org.jetbrains.exposed.v1.jdbc.SchemaUtils.listTablesInAllSchemas().any { it.equals(OneOne | CODE |
| CRITICAL⚡ | …brains/exposed/v1/tests/shared/ddl/CreateTableTests.kt | 745 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.drop(OneOneTable) | CODE |
| CRITICAL⚡ | …brains/exposed/v1/tests/shared/ddl/CreateTableTests.kt | 747 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.dropSchema(one, cascade = cascade) | CODE |
| CRITICAL | …brains/exposed/v1/tests/shared/ddl/CreateTableTests.kt | 761 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.create(testTable) | CODE |
| CRITICAL | …brains/exposed/v1/tests/shared/ddl/CreateTableTests.kt | 766 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.drop(testTable) | CODE |
| CRITICAL | …brains/exposed/v1/tests/shared/ddl/CreateTableTests.kt | 791 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.create(tester) | CODE |
| CRITICAL | …brains/exposed/v1/tests/shared/ddl/CreateTableTests.kt | 798 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.drop(tester) | CODE |
| CRITICAL | …brains/exposed/v1/tests/shared/entities/EntityTests.kt | 1612 | val missingStatements = org.jetbrains.exposed.v1.jdbc.SchemaUtils.addMissingColumnsStatements(credit | CODE |
| CRITICAL | …exposed/v1/r2dbc/statements/InsertSuspendExecutable.kt | 70 | // see: org.mariadb.r2dbc.util.ClientParser.parameterPartsCheckReturning() switch case 82 -> 114 | COMMENT |
| CRITICAL | …lin/org/jetbrains/exposed/v1/javatime/MiscTableTest.kt | 1276 | org.jetbrains.exposed.v1.jdbc.SchemaUtils.drop(ZeroDateTimeTable) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …jetbrains/exposed/v1/jodatime/JodaTimeMiscTableTest.kt | 0 | create table `zerodatetimetable` ( `id` int not null auto_increment, `dt1` datetime not null, `dt2` datetime null, `ts1` | STRING |
| HIGH | …lin/org/jetbrains/exposed/v1/datetime/MiscTableTest.kt | 0 | create table `zerodatetimetable` ( `id` int not null auto_increment, `dt1` datetime not null, `dt2` datetime null, `ts1` | STRING |
| HIGH | …d/v1/r2dbc/sql/tests/jodatime/JodaTimeMiscTableTest.kt | 0 | create table `zerodatetimetable` ( `id` int not null auto_increment, `dt1` datetime not null, `dt2` datetime null, `ts1` | STRING |
| HIGH | …sed/v1/r2dbc/sql/tests/kotlindatetime/MiscTableTest.kt | 0 | create table `zerodatetimetable` ( `id` int not null auto_increment, `dt1` datetime not null, `dt2` datetime null, `ts1` | STRING |
| HIGH | …s/exposed/v1/r2dbc/sql/tests/javatime/MiscTableTest.kt | 0 | create table `zerodatetimetable` ( `id` int not null auto_increment, `dt1` datetime not null, `dt2` datetime null, `ts1` | STRING |
| HIGH | …lin/org/jetbrains/exposed/v1/javatime/MiscTableTest.kt | 0 | create table `zerodatetimetable` ( `id` int not null auto_increment, `dt1` datetime not null, `dt2` datetime null, `ts1` | STRING |
| HIGH | …exposed/v1/datetime/sqlserver/SQLServerDefaultsTest.kt | 0 | create table temporaltable ( id uniqueidentifier primary key, "name" varchar(100) not null, sysstart datetime2 generated | STRING |
| HIGH | …ests/kotlindatetime/sqlserver/SQLServerDefaultsTest.kt | 0 | create table temporaltable ( id uniqueidentifier primary key, "name" varchar(100) not null, sysstart datetime2 generated | STRING |
| HIGH | …/sql/tests/javatime/sqlserver/SQLServerDefaultsTest.kt | 0 | create table temporaltable ( id uniqueidentifier primary key, "name" varchar(100) not null, sysstart datetime2 generated | STRING |
| HIGH | …exposed/v1/javatime/sqlserver/SQLServerDefaultsTest.kt | 0 | create table temporaltable ( id uniqueidentifier primary key, "name" varchar(100) not null, sysstart datetime2 generated | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .claude/skills/fix-bug/SKILL.md | 47 | ## Step 1: Assign Issue and Set In Progress | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 68 | ## Step 2: Understand the Codebase Context | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 84 | ## Step 3: Create branch | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 100 | ## Step 4: Write a Failing Reproducer Test | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 148 | ## Step 5: Commit the Reproducer | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 161 | ## Step 6: Plan the Fix | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 180 | ## Step 7: Implement the Fix | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 188 | ## Step 8: Validate the Fix | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 216 | ## Step 9: Code Style Validation | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 228 | ## Step 10: API Documentation Update | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 246 | ## Step 11: Update Documentation Website | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 287 | ## Step 12: Commit the Fix | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 305 | ## Step 13: Push and Create PR | COMMENT |
| LOW | .claude/skills/fix-bug/SKILL.md | 379 | ## Step 14: Documentation Issue (if needed) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/api/scripts/main.js | 14 | */function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&ar | COMMENT |
| MEDIUM | docs/api/scripts/main.js | 14 | */function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&ar | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/api/scripts/platform-content-handler.js | 182 | function addSourcesetFilterToCache(sourceset) { | CODE |
| LOW | docs/api/scripts/platform-content-handler.js | 192 | function removeSourcesetFilterFromCache(sourceset) { | CODE |
| LOW | docs/api/scripts/platform-content-handler.js | 245 | function refreshNoContentNotification() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/pull-request-title-validation.yml | 34 | # Check if PR title matches the regex | COMMENT |
| LOW | .github/workflows/commit-message-validation.yml | 45 | # Check if commit message matches the regex | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/api/scripts/main.js | 44 | */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",n=0;n<arguments.length;n++){var t=arguments | COMMENT |