Lightweight file hosting platform built on top of S3-compatible storage
This report presents the forensic synthetic code analysis of saltbo/zpan, a TypeScript project with 2,044 GitHub stars. SynthScan v2.0 examined 181,606 lines of code across 824 source files, recording 568 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 6.9 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 568 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | wrangler.toml | 43 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wrangler.toml | 48 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 10 | // ─── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 78 | // ─── Setup ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 85 | // ─── App-host passthrough tests ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 130 | // ─── Unverified custom domain ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 151 | // ─── Custom domain redirect ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 317 | // ─── Referer allowlist tests ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 359 | // ─── Cross-org isolation ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …er/middleware/image-hosting-domain.integration.test.ts | 397 | // ─── accessCount atomicity ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/middleware/image-hosting-domain.cf-test.ts | 61 | // ─── CF custom domain tests ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 27 | // ─── Helpers ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 54 | // ─── createShare ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 168 | // ─── resolveShareByToken ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 245 | // ─── verifyPassword ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 288 | // ─── isAccessibleByUser ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 308 | // ─── incrementViews ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 326 | // ─── incrementDownloadsAtomic ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 403 | // ─── revokeShareByToken ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 434 | // ─── listShareRecipientUserIds ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.integration.test.ts | 470 | // ─── cascadeDeleteByMatter ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 75 | // ─── findActiveConflict ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 148 | // ─── applyConflictResolution ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 366 | // ─── planConflictResolution ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …dapters/repos/matter-name-conflict.integration.test.ts | 419 | // ─── commitConflictPlan ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.cf-test.ts | 45 | // ─── Atomic counter race tests on D1 ───────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/share.cf-test.ts | 103 | // ─── cascadeDeleteByMatter on D1 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 95 | // ─── createMatter ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 244 | // ─── confirmUpload ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 274 | // ─── updateMatter (rename / move) ───────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 347 | // ─── move ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 385 | // ─── copyMatter ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 448 | // ─── restoreMatter ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 506 | // ─── case-insensitive conflict across service calls ─────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 538 | // ─── confirmUpload quota-then-replace atomicity ─────────────────────────────── | COMMENT |
| MEDIUM | …ver/adapters/repos/matter-conflict.integration.test.ts | 578 | // ─── restoreMatter rename-before-activate ordering ─────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 107 | // ─── storage usage reservations ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 319 | // ─── confirmUpload ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 406 | // ─── updateMatter — folder-into-itself error ────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/repos/matter.integration.test.ts | 441 | // ─── listTrashedRoots ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/providers/cf-custom-hostnames.test.ts | 24 | // ─── createCfClient factory ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/providers/cf-custom-hostnames.test.ts | 46 | // ─── register ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/providers/cf-custom-hostnames.test.ts | 94 | // ─── getStatus ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/adapters/providers/cf-custom-hostnames.test.ts | 157 | // ─── delete ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 56 | // ─── Public invite-link info ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 79 | // ─── POST /:teamId/invite-links ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 128 | // ─── GET /:teamId/invitations ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 166 | // ─── POST /:teamId/members ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 228 | // ─── Activity feed tests (from master) ──────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 276 | // ─── Auth guard ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 286 | // ─── Access control ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 367 | // ─── Happy path ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 454 | // ─── Pagination ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 535 | // ─── Ordering ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 555 | // ─── Metadata ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 590 | // ─── Multiple events across orgs ────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/teams.integration.test.ts | 664 | // ─── Org logo (PUT/DELETE /:teamId/logo) ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | server/http/teams.integration.test.ts | 864 | // ─── Admin Teams API (/api/teams admin-console resources) ───────────────────── | COMMENT |
| MEDIUM | server/http/shares.integration.test.ts | 13 | // ─── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/http/shares.integration.test.ts | 91 | // ─── POST /api/shares auth guard ───────────────────────────────────────────── | COMMENT |
| 243 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/entry-node.ts | 104 | function reportNodeInstanceTelemetry(): void { | CODE |
| LOW | server/app.ts | 275 | function shouldReportInitialTelemetry(requestUrl: string): boolean { | CODE |
| LOW | server/auth.ts | 97 | export function toBetterAuthCaptchaOptions(config: CaptchaConfig): CaptchaOptions { | CODE |
| LOW | server/auth.ts | 165 | function buildVerificationEmailHtml(url: string): string { | CODE |
| LOW | server/auth.ts | 177 | function buildResetPasswordEmailHtml(url: string): string { | CODE |
| LOW | server/auth.ts | 682 | async function findPersonalOrgFromExistingSession(db: Database, userId: string): Promise<string | null> { | CODE |
| LOW | server/auth.ts | 717 | async function createFreePlanEntitlementValues( | CODE |
| LOW | server/auth.ts | 801 | async function getDefaultOrgTrafficQuota(db: Database): Promise<number> { | CODE |
| LOW | …er/middleware/image-hosting-domain.integration.test.ts | 29 | async function setTrafficPlanEntitlement(db: TestDb, orgId: string, bytes: number) { | CODE |
| LOW | server/middleware/auth.integration.test.ts | 20 | async function authedHeadersWithFreshSession( | CODE |
| LOW | server/adapters/repos/archive-target-folder.ts | 31 | export function createArchiveTargetFolderRepo(db: Database): ArchiveTargetFolderRepo { | CODE |
| LOW | server/adapters/repos/webdav-state.ts | 282 | function lockConflictsWithResource(lock: DavLock, resourcePath: string): boolean { | CODE |
| LOW | server/adapters/repos/matter.ts | 33 | function descendantParentCondition(folderPath: string): SQL { | CODE |
| LOW | server/adapters/repos/image-hosting-config.ts | 6 | export function createImageHostingConfigRepo(db: Database): ImageHostingConfigRepo { | CODE |
| LOW | server/adapters/repos/license-binding.ts | 75 | async function updateLicenseBindingAfterRefresh(db: Database, input: UpdateLicenseBindingInput): Promise<void> { | CODE |
| LOW | server/adapters/repos/user-admin.ts | 31 | async function listUserPersonalEntitlements( | CODE |
| LOW | server/adapters/repos/user-admin.ts | 40 | async function grantUserPersonalEntitlement( | CODE |
| LOW | server/adapters/repos/user-admin.ts | 56 | async function updateUserPersonalEntitlement( | CODE |
| LOW | server/adapters/repos/user-admin.ts | 72 | async function revokeUserPersonalEntitlement( | CODE |
| LOW | server/adapters/repos/api-keys.ts | 91 | async function upgradeLegacyWebDavRateLimit( | CODE |
| LOW | server/adapters/repos/object-upload-session.ts | 26 | export function createObjectUploadSessionRepo(db: Database): ObjectUploadSessionRepo { | CODE |
| LOW | server/adapters/repos/zip.ts | 51 | function validateCompressionEntries(files: CompressionSourceFile[], directories: CompressionSourceDirectory[]): void { | CODE |
| LOW | server/adapters/repos/share-notification.ts | 6 | export function createShareNotificationRepo(db: Database): ShareNotificationRepo { | CODE |
| LOW | server/adapters/repos/webdav-path.ts | 102 | function preferredWorkspaceSegment(row: WorkspaceRow): string { | CODE |
| LOW | server/adapters/repos/cloud-store.test.ts | 6 | function processCloudOrderQuotaChange( | CODE |
| LOW | server/adapters/repos/quota.ts | 164 | async function resetExpiredTrafficQuotas(db: Database, now = new Date()): Promise<void> { | CODE |
| LOW | server/adapters/repos/quota.ts | 187 | async function consumeTrafficIfQuotaAllows( | CODE |
| LOW | server/adapters/repos/quota.ts | 269 | async function incrementUsageIfEffectiveQuotaAllows( | CODE |
| LOW | server/adapters/repos/quota.ts | 351 | function activePlanEntitlementWhere(orgId: string, resourceType: 'storage' | 'traffic', now: Date) { | CODE |
| LOW | server/adapters/repos/quota.ts | 372 | function activeEntitlementBytesSql({ | CODE |
| LOW | server/adapters/repos/remote-download-usage.ts | 29 | export function createRemoteDownloadUsageRepo(db: Database): RemoteDownloadUsageRepo { | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 51 | async function processCloudOrderQuotaChange( | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 70 | async function processQuotaChangeTransaction( | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 126 | function insertQuotaEntitlementQueries(db: Database, event: CloudOrderQuotaChange, now: Date): AtomicQuery[] { | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 139 | function revokeExistingPlanQueries( | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 161 | function revokeQuotaEntitlementQueries(db: Database, event: CloudOrderQuotaChange, now: Date): AtomicQuery[] { | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 169 | function revokeQuotaEntitlementQuery( | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 189 | function legacyQuotaDecreaseBatchValues(event: CloudOrderQuotaChange): Partial<typeof orgQuotas.$inferInsert> | null { | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 206 | function quotaEntitlementExistsSql(event: CloudOrderQuotaChange, resourceType: 'storage' | 'traffic') { | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 222 | function quotaEntitlementIncreaseValues(value: typeof orgQuotaEntitlements.$inferInsert, now: Date) { | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 239 | function quotaEntitlementDecreaseValues(bytes: number, now: Date) { | CODE |
| LOW | server/adapters/repos/cloud-store.ts | 276 | function quotaEntitlementSourceMatch(event: CloudOrderQuotaChange, resourceType: 'storage' | 'traffic') { | CODE |
| LOW | server/adapters/repos/download-tokens.ts | 31 | export function createDownloadTokenGateway(): DownloadTokenGateway { | CODE |
| LOW | server/adapters/repos/admin-stats.ts | 101 | async function getDashboardOverviewStats( | CODE |
| LOW | server/adapters/repos/admin-stats.ts | 175 | async function getDashboardOperationsStats( | CODE |
| LOW | server/adapters/repos/admin-stats.ts | 673 | async function getRollingActiveUserTrend( | CODE |
| LOW | server/adapters/repos/admin-stats.ts | 776 | async function getOperationalOutcomesByDay( | CODE |
| LOW | server/adapters/repos/admin-stats.ts | 793 | async function getActivityMetricDimensionTotalsFromRollup( | CODE |
| LOW | server/adapters/repos/admin-stats.ts | 833 | async function getActivityMetricDimensionTotals( | CODE |
| LOW | server/adapters/repos/admin-stats.ts | 1150 | function distinctUsersInCalendarWindow( | CODE |
| LOW | server/adapters/repos/cloud-traffic-report.ts | 31 | export function createCloudTrafficReportRepo(db: Database): CloudTrafficReportRepo { | CODE |
| LOW | server/adapters/providers/changelog.ts | 4 | async function fetchLatestReleaseVersion(): Promise<string | null> { | CODE |
| LOW | server/adapters/gateways/licensing-cloud.ts | 40 | function createAnonymousCloudClient(baseUrl: string): CloudClient { | CODE |
| LOW | server/adapters/gateways/licensing-cloud.ts | 184 | export function createLicensingCloudGateway(): LicensingCloudGateway { | CODE |
| LOW | server/adapters/gateways/zip.ts | 96 | function validateAndExtractZip(data: Uint8Array): ValidatedZip { | CODE |
| LOW | server/adapters/gateways/zip.ts | 289 | function readCentralDirectoryEntries(data: Uint8Array, entryCount: number, startOffset = 0): CentralDirectoryEntry[] { | CODE |
| LOW | server/adapters/gateways/zip.ts | 317 | function findEndOfCentralDirectory(data: Uint8Array): number { | CODE |
| LOW | server/http/shares.integration.test.ts | 32 | async function setStoragePlanEntitlement(db: TestDb, orgId: string, bytes: number) { | CODE |
| LOW | server/http/shares.integration.test.ts | 1071 | async function setTrafficPlanEntitlement( | CODE |
| LOW | server/http/redirect.integration.test.ts | 29 | async function setTrafficPlanEntitlement( | CODE |
| 115 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/auth.integration.test.ts | 285 | const res = await signUp(ctx, 'user@example.com') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 50 | await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 58 | await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 68 | const headers = await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW⚡ | server/middleware/auth.integration.test.ts | 75 | const headers = await authedHeadersWithFreshSession(app, 'admin@example.com', 'password123456', 'Admin') | CODE |
| LOW | server/test/setup.ts | 611 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/test/setup.ts | 616 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 75 | { key: 'email_smtp_user', value: 'user@example.com' }, | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 85 | expect(config.smtp.user).toBe('user@example.com') | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 191 | await gatewayFor(db).send(bareplatform(db), { to: 'user@example.com', subject: 'Hello', html: '<p>Hi</p>' }) | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 194 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 219 | await gatewayFor(db).send(bareplatform(db), { to: 'user@example.com', subject: 'Hello', html: '<p>Hi</p>' }) | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 229 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 274 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 280 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 310 | gatewayFor(db).send(bareplatform(db), { to: 'user@example.com', subject: 'Hi', html: '<p>Hi</p>' }), | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 369 | to: 'user@example.com', | CODE |
| LOW | server/adapters/gateways/email.integration.test.ts | 376 | to: 'user@example.com', | CODE |
| LOW⚡ | server/http/teams.integration.test.ts | 868 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW⚡ | server/http/teams.integration.test.ts | 872 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/teams.integration.test.ts | 919 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/teams.integration.test.ts | 934 | const adminId = await userId(db, 'admin@example.com') | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 12 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 16 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 33 | expect(body.users.map((u) => u.email)).toEqual(expect.arrayContaining(['admin@example.com', 'member@example.com'])) | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 38 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 52 | const adminRows = await db.all<{ id: string }>(sql`SELECT id FROM user WHERE email = 'admin@example.com'`) | CODE |
| LOW | server/http/admin-users-ba.integration.test.ts | 112 | const adminRows = await db.all<{ id: string }>(sql`SELECT id FROM user WHERE email = 'admin@example.com'`) | CODE |
| LOW | server/http/users.integration.test.ts | 8 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/users.integration.test.ts | 13 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/quotas.integration.test.ts | 7 | await authedHeaders(app, 'admin@example.com', 'password123456') | CODE |
| LOW | server/http/quotas.integration.test.ts | 12 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/quotas.integration.test.ts | 26 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW⚡ | server/http/auth/auth.integration.test.ts | 207 | body: JSON.stringify({ name: 'Admin User', email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW⚡ | server/http/auth/auth.integration.test.ts | 209 | const users = await db.select().from(authSchema.user).where(eq(authSchema.user.email, 'admin@example.com')) | CODE |
| LOW⚡ | server/http/auth/auth.integration.test.ts | 218 | body: JSON.stringify({ name: 'Admin User', email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/site/audit.integration.test.ts | 14 | const headers = await authedHeaders(app, 'user@example.com') | CODE |
| LOW | server/http/site/audit.integration.test.ts | 360 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | server/http/site/branding.integration.test.ts | 123 | const headers = await authedHeaders(app, 'user@example.com') | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 12 | { key: 'email_smtp_user', value: 'user@example.com' }, | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 45 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 115 | expect(smtp.user).toBe('user@example.com') | CODE |
| LOW | server/http/site/email-config.integration.test.ts | 175 | user: 'user@example.com', | CODE |
| LOW | server/http/site/licensing.integration.test.ts | 28 | cloudAccountEmail: 'user@example.com', | CODE |
| LOW | server/http/site/licensing.integration.test.ts | 40 | expect(body.account_email).toBe('user@example.com') | CODE |
| LOW | server/http/site/invitations.integration.test.ts | 321 | .where(eq(authSchema.user.email, 'admin@example.com')) | CODE |
| LOW | server/http/site/storages.integration.test.ts | 26 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW | server/http/site/announcements.integration.test.ts | 35 | const headers = await authedHeaders(app, 'user@example.com') | CODE |
| LOW | server/http/site/audit-events.integration.test.ts | 483 | const users = await db.all<{ id: string }>(sql`SELECT id FROM user WHERE email = 'admin@example.com' LIMIT 1`) | CODE |
| LOW | server/http/site/licensing-admin.integration.test.ts | 84 | await authedHeaders(app, 'admin@example.com') | CODE |
| LOW | server/usecases/webdav.test.ts | 189 | username: 'user@example.com', | CODE |
| LOW | server/usecases/site/email-config.test.ts | 21 | smtp: { host: 'smtp.example.com', port: 587, user: 'user@example.com', pass: 'supersecret', secure: true }, | CODE |
| LOW | server/usecases/site/email-config.test.ts | 88 | user: 'user@example.com', | CODE |
| LOW | server/usecases/site/signup-mode.integration.test.ts | 21 | await signUp(ctx, 'admin@example.com') | CODE |
| LOW⚡ | server/usecases/site/signup-mode.integration.test.ts | 149 | await signUp(ctx, 'admin@example.com') | CODE |
| LOW⚡ | server/usecases/site/signup-mode.integration.test.ts | 153 | body: JSON.stringify({ email: 'admin@example.com', password: 'password123456' }), | CODE |
| LOW | src/components/files/dialogs/share-dialog.test.ts | 10 | expect(EMAIL_RE.test('user@example.com')).toBe(true) | CODE |
| LOW | src/lib/api.test.ts | 3374 | account_email: 'user@example.com', | CODE |
| LOW⚡ | src/lib/api.test.ts | 3803 | await testEmail('user@example.com') | CODE |
| LOW⚡ | src/lib/api.test.ts | 3808 | expect(init.body).toBe(JSON.stringify({ to: 'user@example.com' })) | CODE |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | docs/deploy/vercel.md | 107 | "path": "/api/licensing/refresh-cron?secret=<YOUR_SECRET>", | CODE |
| HIGH⚡ | docs/deploy/vercel.md | 111 | "path": "/api/licensing/traffic-sync-runs?secret=<YOUR_SECRET>", | CODE |
| HIGH⚡ | docs/deploy/vercel.md | 117 | Replace `<YOUR_SECRET>` with the value of `REFRESH_CRON_SECRET`. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/app.ts | 161 | }) | COMMENT |
| LOW | server/http/events.ts | 61 | responses: { | COMMENT |
| LOW | server/domain/license-keys.ts | 1 | // Cloud public keys for verifying PASETO v4 entitlement certificates. | COMMENT |
| LOW | server/usecases/team.ts | 1 | // The team resource usecase. Owns every business decision behind both team | COMMENT |
| LOW | server/usecases/background-job.ts | 1 | // The background-jobs resource usecase (/api/background-jobs). Owns every | COMMENT |
| LOW | server/usecases/events.ts | 1 | // The events resource usecase. Owns the multiplexed-SSE *domain* side of the | COMMENT |
| LOW | server/usecases/object.ts | 1 | // The objects resource usecase. Owns every business decision behind the | COMMENT |
| LOW | server/usecases/user.ts | 1 | // The users resource usecase. Owns the front-of-house business decisions behind | COMMENT |
| LOW | server/usecases/webdav.ts | 1 | // The WebDAV resource usecase. WebDAV is special: the http handler owns the | COMMENT |
| LOW | server/usecases/image-hosting/images.ts | 1 | // The image-hosting (ihost) resource usecase. Owns every business decision behind | COMMENT |
| LOW | server/usecases/image-hosting/config.ts | 1 | // The image-hosting config resource usecase. Owns every business decision behind | COMMENT |
| LOW | server/usecases/ports/archive-target-folder.ts | 1 | // Validates that an explicit archive target folder exists and is a folder (not a | COMMENT |
| LOW | server/usecases/store/store.ts | 1 | // The cloud store resource usecase. Owns every business decision behind the | COMMENT |
| LOW | shared/content-disposition.ts | 1 | // Builds an RFC 6266 `Content-Disposition` for forced downloads. | COMMENT |
| LOW | shared/schemas/errors.ts | 1 | import { z } from '@hono/zod-openapi' | COMMENT |
| LOW | .github/workflows/deploy.yml | 1 | name: Deploy | COMMENT |
| LOW | src/components/files/files-toolbar.test.ts | 1 | import { describe, expect, it } from 'vitest' | COMMENT |
| LOW | src/routes/(auth)/sign-up.test.ts | 1 | import { SignupMode } from '@shared/constants' | COMMENT |
| LOW | src/routes/(auth)/sign-in.test.ts | 1 | import { SignupMode } from '@shared/constants' | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy/docker-compose.downloader.yml | 2 | # Usage: | COMMENT |