Repository Analysis

kysely-org/kysely

A type-safe TypeScript SQL query builder

0.8 Likely human-written View on GitHub
0.8
Adjusted Score
0.8
Raw Score
100%
Time Factor
2026-05-29
Last Push
13,893
Stars
TypeScript
Language
119,465
Lines of Code
597
Files
92
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 92

Pattern Findings

92 matches across 5 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers75 hits · 75 pts
SeverityFileLineSnippet
LOWdeno.check.d.ts93 export function functionThatExpectsPersonWithNonNullValue(
LOWtest/typings/test-d/postgres-json.test-d.ts121async function testPostgresConditionalJsonSelects(db: Kysely<Database>) {
LOWtest/typings/test-d/expression.test-d.ts213async function testExpressionBuilderAnyWithColumnType(
LOWtest/typings/test-d/expression.test-d.ts237function testExpressionBuilderTuple(db: Kysely<Database>) {
LOWtest/typings/test-d/expression.test-d.ts302function testExpressionBuilderConstructor(db: Kysely<Database>) {
LOWtest/typings/test-d/expression.test-d.ts316function testTablelessExpressionBuilder(
LOWtest/typings/test-d/merge.test-d.ts189async function testWhenNotMatchedBySource(
LOWtest/typings/test-d/infer-result.test-d.ts15function testInferResultSelectQuery(db: Kysely<Database>) {
LOWtest/typings/test-d/infer-result.test-d.ts41function testInferResultInsertQuery(db: Kysely<Database>) {
LOWtest/typings/test-d/infer-result.test-d.ts69function testInferResultUpdateQuery(db: Kysely<Database>) {
LOWtest/typings/test-d/infer-result.test-d.ts110function testInferResultDeleteQuery(db: Kysely<Database>) {
LOWtest/typings/test-d/infer-result.test-d.ts133function testInferResultMergeQuery(db: Kysely<Database>) {
LOWtest/typings/test-d/create-table.test-d.ts5async function testCreateTableWithSeveralColumns(db: Kysely<Database>) {
LOWtest/typings/test-d/create-table.test-d.ts32async function testCreateTableWithAddUniqueConstraint(db: Kysely<Database>) {
LOWtest/typings/test-d/create-table.test-d.ts85async function testCreateTableWithAsStatement(db: Kysely<Database>) {
LOWtest/typings/test-d/index.test-d.ts25async function testKyselyAndTransactionTypes(db: Kysely<Database>) {
LOWtest/typings/test-d/index.test-d.ts35async function testExecuteTakeFirstOrThrow(db: Kysely<Database>) {
LOWtest/typings/test-d/generic-pre-5.4.test-d.ts14function testSelectQueryBuilderExtends() {
LOWtest/typings/test-d/generic-pre-5.4.test-d.ts28function testExpressionBuilderExtends() {
LOWtest/typings/test-d/generic-pre-5.4.test-d.ts42function testExpressionBuilderExtendsFuncArg() {
LOWtest/typings/test-d/alter-table.test-d.ts6async function testAlterTableWithAddUniqueConstraint(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts80async function testSelectWithDefaultGenerics(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts110async function testSelectExpressionBuilderWithDefaultGenerics(
LOWtest/typings/test-d/aggregate-function.test-d.ts142async function testSelectExpressionBuilderWithCustomGenerics(
LOWtest/typings/test-d/aggregate-function.test-d.ts169async function testSelectExpressionBuilderWithSubExpressions(
LOWtest/typings/test-d/aggregate-function.test-d.ts195async function testSelectWithCustomGenerics(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts233async function testSelectUnexpectedColumn(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts307async function testSelectWithDynamicReference(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts703async function testSelectWithOverAndPartitionBySingle(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts742async function testSelectWithOverAndPartitionByMultiple(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts789async function testSelectWithOverAndPartitionByUnexpectedColumns(
LOWtest/typings/test-d/aggregate-function.test-d.ts896async function testSelectWithOverAndOrderBySingle(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts935async function testSelectWithOverAndOrderByMultiple(db: Kysely<Database>) {
LOWtest/typings/test-d/aggregate-function.test-d.ts974async function testSelectWithOverAndOrderByUnexpectedColumns(
LOWtest/typings/test-d/aggregate-function.test-d.ts1031async function testSelectAsCustomFunctionArgument(db: Kysely<Database>) {
LOWtest/typings/test-d/readonly.test-d.ts414async function testReadonlyControlledTransaction(
LOWtest/typings/test-d/generic.test-d.ts15function testSelectQueryBuilderExtends() {
LOWtest/typings/test-d/generic.test-d.ts29function testExpressionBuilderExtends() {
LOWtest/typings/test-d/generic.test-d.ts43function testExpressionBuilderExtendsFuncArg() {
LOWtest/node/src/test-setup.ts555function createNoopTransformerPlugin(): KyselyPlugin {
LOWtest/node/src/test-setup.ts655export function resolveJSONColumnDataType(
LOWexample/test/user/user.test.ts135 async function createPasswordSignInMethod(
LOW…e/src/user/sign-in-method/sign-in-method.repository.ts23export async function insertPasswordSignInMethod(
LOW…/docs/getting-started/IUseADifferentPackageManager.tsx8export function IUseADifferentPackageManager(
LOWsite/docs/getting-started/Instantiation.tsx121function getDialectSpecificCodeSnippet(
LOWsite/docs/recipes/0001-reusable-helpers.md127function idsOfPersonsThatHaveDogNamed(name: Expression<string>) {
LOWsite/src/components/playground-example-types.ts95 export function functionThatExpectsPersonWithNonNullValue(
LOWsrc/kysely.ts1307function assertNotCommittedOrRolledBack(
LOWsrc/dynamic/dynamic-reference-builder.ts39export function isDynamicReferenceBuilder(
LOWsrc/dynamic/dynamic-table-builder.ts54export function isAliasedDynamicTableBuilder(
LOWsrc/util/provide-controlled-connection.ts12export async function provideControlledConnection(
LOWsrc/util/abort.ts53export function getInflightQueryAbortHandler(
LOWsrc/util/abort.ts95function throwUnsupportedInflightQueryAbortStrategyError(
LOWsrc/driver/driver.ts104export function validateTransactionSettings(
LOW…/plugin/handle-empty-in-lists/handle-empty-in-lists.ts44export function replaceWithNoncontingentExpression(
LOWsrc/parser/update-set-parser.ts65export function parseUpdateObjectExpression(
LOWsrc/parser/order-by-parser.ts129function parseOrderByWithModifiers(
LOWsrc/parser/binary-operation-parser.ts71export function parseValueBinaryOperationOrExpression(
LOWsrc/parser/binary-operation-parser.ts83export function parseValueBinaryOperation(
LOWsrc/parser/binary-operation-parser.ts103export function parseReferentialBinaryOperation(
15 more matches not shown…
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippet
LOWpnpm-workspace.yaml61 # https://github.com/advisories/GHSA-4fh9-h7wg-q85m
LOWsite/docs/examples/select/0051-not-null.js21 // The special \`NotNull\` type can be used to make a
LOWsrc/dialect/mssql/mssql-introspector.ts181 // encryption_type: null
LOWsrc/dialect/mssql/mssql-introspector.ts221 'sys.schemas': {
LOWsrc/dialect/mssql/mssql-introspector.ts241 // is_edge: boolean
LOWsrc/dialect/mssql/mssql-introspector.ts261 // lock_on_bulk_load: boolean
LOWsrc/dialect/mssql/mssql-introspector.ts281 // is_table_type: boolean
LOWsrc/dialect/mssql/mssql-introspector.ts301 // is_msh_shipped: boolean
Overly Generic Function Names5 hits · 8 pts
SeverityFileLineSnippet
LOWsrc/kysely.ts1028 * async function doSomething(kysely: Kysely<Database>) {}
LOWsrc/kysely.ts1064 * async function doSomething(kysely: Kysely<Database>) {}
LOWsrc/kysely.ts1105 * async function doSomething(kysely: Kysely<Database>) {}
LOWsrc/kysely.ts1153 * async function doSomething(kysely: Kysely<Database>) {}
LOWsrc/kysely.ts1209 * async function doSomething(kysely: Kysely<Database>) {}
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOW.github/workflows/publish.yml57 # Check if tag points to a commit that exists on the expected branch
LOW.github/workflows/bench.yml89 # Check if there are benchmark changes
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWtest/node/src/camel-case.test.ts70 addressRow1: '123 Main St',
LOWtest/node/src/camel-case.test.ts76 addressRow1: '123 Main St',