AI Slop Code RIsk Monitor

electron-userland/electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box

6.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for electron-userland/electron-builder, a TypeScript project with 14,666 GitHub stars. SynthScan examined 200,135 lines of code across 997 source files, recording 575 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 6.1 (Moderate 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.

6.1
Adjusted Signal
6.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
14.7K
Stars
TypeScript
Language
200.1K
Lines of Code
997
Files
575
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 7.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 257 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.7/100 · LOW

Are imports declared and package/API names verified? 37 finding(s).

Agent Over-Engineering Ratio 23.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 464 finding(s).

PR Review Velocity Impact 25.7/100 · MEDIUM

Which changes need focused human review? 575 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 7MEDIUM 290LOW 278

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 575 distinct pattern matches across 10 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.

Decorative Section Separators281 hits · 868 pts
SeverityFileLineSnippetContext
MEDIUMtest/vitest-scripts/test-summary.ts236// ── rendering ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/vitest-scripts/refresh-tests.ts12// ─── Types ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/vitest-scripts/refresh-tests.ts21// ─── Platform filter ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/vitest-scripts/refresh-tests.ts61// ─── Snapshot cleanup ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/vitest-scripts/refresh-tests.ts94// ─── File list ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/vitest-scripts/refresh-tests.ts123// ─── CLI ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts17// ─── Test fixture paths ───────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts136// ─── Unit tests ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts170// ─── Additional logic-path tests ─────────────────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts195// ─── Security: pkcs12PasswordToUtf16 encoding ────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts222// ─── Security: pkcs12PbeDeriveKey key derivation ─────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts271 // ── DoS prevention: iteration count bounds ────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts317// ─── readCertInfo — multiple certificates in one PFX ─────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts334// ─── readCertInfo — legacy PBE error path ────────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts344// ─── readCertInfo — malformed / corrupted input ───────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts364// ─── rc2CbcDecrypt — known-answer tests (RFC 2268) ───────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts423// ─── readCertInfo — RC2-40 encrypted PFX ─────────────────────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts440// ─── rc2CbcDecrypt — input validation / security guards ──────────────────────COMMENT
MEDIUMtest/src/certInfoTest.ts499// ─── pkcs12PbeDeriveKey — salt size guard ────────────────────────────────────COMMENT
MEDIUMtest/src/cliTest.ts6// ─── Module mocks (hoisted by vitest above all imports) ───────────────────────COMMENT
MEDIUMtest/src/cliTest.ts41// ─── Imports ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/cliTest.ts59// ─── clearCache ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/cliTest.ts152// ─── wrap ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/cliTest.ts208// ─── quoteString ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/cliTest.ts232// ─── Command configuration ───────────────────────────────────────────────────COMMENT
MEDIUMtest/src/cliTest.ts304// ─── CLI entry-point ESM smoke tests ─────────────────────────────────────────COMMENT
MEDIUMtest/src/ksuidTest.ts30// ─── Unit tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/differentialOneLineBenchTest.ts60// ─── parameters ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/differentialOneLineBenchTest.ts94// ─── deterministic synthetic app ──────────────────────────────────────────────COMMENT
MEDIUMtest/src/differentialOneLineBenchTest.ts283// ─── asar / 7z helpers ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/differentialOneLineBenchTest.ts435// ─── measurement ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/differentialOneLineBenchTest.ts523// ─── reporting ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/differentialOneLineBenchTest.ts573// ─── the benchmark ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/blockmapTest.ts199// ─── Golden-output suite: JS snapshots + optional binary cross-check ─────────COMMENT
MEDIUMtest/src/blockmapTest.ts334// ─── Region-aware chunking (BuildBlockMapOptions.regions) ───────────────────COMMENT
MEDIUMtest/src/extractArchiveTest.ts156// ─── extractArchive .tar.7z (snap template layout) ────────────────────────────COMMENT
MEDIUMtest/src/extractArchiveTest.ts210// ─── isSafeExtractPath ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/extractArchiveTest.ts258// ─── moveDirAtomic ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/updateManifestSignatureTest.ts126// ── trust lists and multi-signature manifests (key rotation) ─────────────────COMMENT
MEDIUMtest/src/updateManifestSignatureTest.ts317// ── minimumSystemVersion and NSIS web-installer packages ─────────────────────COMMENT
MEDIUMtest/src/updateManifestSignatureTest.ts449// ── injective canonical encoding and signed-manifest shape checks ────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts62// ─── compute7zCompressArgs ───────────────────────────────────────────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts223// ─── archive() — path-level guards (no binary needed) ───────────────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts246// ─── shouldPreserveSymlinks — target platform → -snl policy ──────────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts262// ─── archive() — symlink preservation (non-Windows hosts) ────────────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts325// ─── archive() — 7z branch filter (#9983) ────────────────────────────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts325// ─── archive() — 7z branch filter (#9983) ────────────────────────────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts368// ─── buildExcludeArgs (via archive()) — happy-path coverage ───────────────────COMMENT
MEDIUMtest/src/archiveUtilTest.ts387// ─── archive() — storedPaths (differential-friendly Copy members) ────────────COMMENT
MEDIUMtest/src/electronGetTest.ts32// ─── Test helpers ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts75// ─── getCacheDirectory ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts238// ─── shouldRetryDownloadError ─────────────────────────────────────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts311// ─── Shared temp cache dir for functional tests ───────────────────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts325// ─── downloadArtifact: generic artifacts (.tar.gz) ───────────────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts488// ─── downloadBuilderToolset: filenameWithExt validation ──────────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts504// ─── Toolset archive cache (no network) ──────────────────────────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts622// ─── Checksum formats: SHA-256 hex vs base64 SHA-512 (#10040) ────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts622// ─── Checksum formats: SHA-256 hex vs base64 SHA-512 (#10040) ────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts783// ─── Seeded SHASUMS256 checksums (air-gapped builds, #10039) ─────────────────COMMENT
MEDIUMtest/src/electronGetTest.ts783// ─── Seeded SHASUMS256 checksums (air-gapped builds, #10039) ─────────────────COMMENT
221 more matches not shown…
Hyper-Verbose Identifiers183 hits · 180 pts
SeverityFileLineSnippetContext
LOWtest/vitest-scripts/refresh-tests.ts63function deleteStaleGeneratedSnapshots(): void {CODE
LOW…cripts/runtime-tests/generate-toolset-tests-windows.ts209export function generateWindowsToolsetTests(): void {CODE
LOW…-scripts/runtime-tests/generate-toolset-tests-linux.ts64export function generateLinuxToolsetTests(): void {CODE
LOWtest/src/HoistedNodeModuleTest.ts1074async function assertLazystreamKeepsNestedReadableStream(expect: ExpectStatic, resourceDir: string, extraPackages: ArrayCODE
LOWtest/src/archiveUtilTest.ts487 async function expectCompressedPassUndisturbed(expect: ExpectStatic, tmpDirPath: string, files: Record<string, string CODE
LOWtest/src/asarIntegrityTest.ts22async function verifyAsarPerFileIntegrity(expect: ExpectStatic, resourceDir: string) {CODE
LOWtest/src/updateInfoBuilderTest.ts553function makeAppUpdateConfigPackager(signingKeys: Array<KeyObject> = [], updateManifest?: any, publishConfig?: any): anyCODE
LOWtest/src/updateInfoBuilderTest.ts752function makeWinAppUpdateConfigPackager(sign: any, verifyUpdateCodeSignature = true): any {CODE
LOWtest/src/publisher/PublishManagerCacheTest.ts50function getOrCreatePublisher(manager: PublishManager, publishConfig: GithubOptions) {CODE
LOWtest/src/updater/differentialUpdateLinuxSuite.ts11export function registerDifferentialLinuxTests(toolset: Required<Pick<ToolsetConfig, "appimage">>): void {CODE
LOWtest/src/updater/nsisUpdaterTest.ts1011 async function createNsisUpdaterWithPackageType(tmpDir: TmpDir, packageType: string) {CODE
LOWtest/src/updater/manifestDownloadOriginTest.ts161 function captureRangeRequestHeaders(downloaderClass: typeof GenericDifferentialDownloader | typeof FileWithEmbeddedBloCODE
LOWtest/src/updater/manifestDownloadOriginTest.ts170 async function differentialDownloadInstaller(updater: AppUpdater, provider: Provider<any>, info: UpdateInfo, tmpDir: TCODE
LOWtest/src/updater/multipleRangeDownloaderTest.ts9function createFakeDifferentialDownloader(response: PassThrough): DifferentialDownloader {CODE
LOWtest/src/updater/blackboxUpdateHelpers.ts213async function assertEmbeddedPublisherName(expect: ExpectStatic, distDir: string): Promise<void> {CODE
LOWtest/src/updater/blackboxUpdateHelpers.ts227async function handleInitialInstallPerOS({CODE
LOWtest/src/updater/blackboxUpdateHelpers.ts473async function pollUntilNewVersionInstalled(CODE
LOWtest/src/updater/blackboxUpdateHelpers.ts548export async function runInstallOnNextLaunchTest(CODE
LOWtest/src/updater/blackboxUpdateHelpers.ts1157async function assertWebInstallerUpdateInfo(expect: ExpectStatic, dist: ApplicationUpdatePaths, version: string, perMachCODE
LOWtest/src/updater/blackboxUpdateHelpers.ts1199export async function runWebInstallerUpdateTest(context: TestContext, toolsets: ToolsetConfig, extraConfig?: Partial<ConCODE
LOWtest/src/updater/blackboxUpdateHelpers.ts1277export async function runWebInstallerInstallOnNextLaunchTest(context: TestContext, toolsets: ToolsetConfig): Promise<voiCODE
LOWtest/src/updater/blackboxUpdateHelpers.ts1318export async function runWebInstallerRejectedTest(context: TestContext, toolsets: ToolsetConfig): Promise<void> {CODE
LOWtest/src/updater/installOnNextLaunchTest.ts569 async function createPackagedNsisUpdater(version: string, context: { tmpDir: import("temp-file").TmpDir }) {CODE
LOWtest/src/updater/blackboxInstallWindows.ts36export async function clearWindowsUpdaterCaches(): Promise<void> {CODE
LOWtest/src/updater/blackboxInstallWindows.ts54export async function waitForWindowsProcessExit(imageName: string, timeoutMs = 2 * 60 * 1000): Promise<void> {CODE
LOWtest/src/updater/blackboxInstallWindows.ts102export async function describeWindowsInstallDir(appPath: string): Promise<string> {CODE
LOWtest/src/updater/blackboxInstallWindows.ts122export async function resetWindowsNativeInstall(installerImageName: string, pathsToRemove: ReadonlyArray<string> = []): CODE
LOW…/updater/windowsExecutableCodeSignatureVerifierTest.ts39function expectVerificationSuccess(result: VerifyUpdateFileResult): void {CODE
LOW…/updater/windowsExecutableCodeSignatureVerifierTest.ts43function expectVerificationFailure(result: VerifyUpdateFileResult): string {CODE
LOWtest/src/updater/blackboxUpdateLinuxSuite.ts16export function registerBlackboxLinuxTests(toolset: Required<Pick<ToolsetConfig, "appimage">>): void {CODE
LOWtest/src/updater/blackboxUpdateLinuxSuite.ts67export function registerBlackboxLinuxPackageManagerTests(): void {CODE
LOWtest/src/updater/blackboxUpdateWinSuite.ts39function isLatestToolsetExceptNsis(toolsets: Required<Pick<ToolsetConfig, "winCodeSign" | "wine">>): boolean {CODE
LOWtest/src/updater/blackboxUpdateWebWinSuite.ts13export function registerBlackboxWebWinUpdateTests(toolsets: WebWinToolsets): void {CODE
LOWtest/src/updater/blackboxUpdateWebWinSuite.ts38export function registerBlackboxWebWinNextLaunchTests(toolsets: WebWinToolsets): void {CODE
LOWtest/src/updater/blackboxUpdateWebWinSuite.ts52export function registerBlackboxWebWinRejectedTests(toolsets: WebWinToolsets): void {CODE
LOWtest/src/updater/differentialUpdateWinSuite.ts12export function registerDifferentialWinTests(toolsets: ToolsetConfig): void {CODE
LOWtest/src/mac/keychainPartitionListTest.ts56 function keychainPasswordFromCalls(): string {CODE
LOWtest/src/mac/macArchive.e2e.ts25function createMacFrameworkSymlinkTest(expect: ExpectStatic, format: "zip" | "7z") {CODE
LOWtest/src/linux/linuxPackagerTestSuite.ts19export function registerLinuxPackagerTests(toolsets: ToolsetConfig): void {CODE
LOWtest/src/windows/winCodeSignTest.ts29function makeSignQueueTestPackager(signIfResults: SignIfResult[]) {CODE
LOWtest/src/windows/winCodeSignTest.ts51function makeSequentialSignTestPackager() {CODE
LOWtest/src/windows/squirrelWindowsTestSuite.ts8export function registerSquirrelWindowsTests(toolsets: ToolsetConfig): void {CODE
LOWtest/src/windows/winSignToolManagerTest.ts930 async function writeNoCommonNameCertificate(tmpDir: TmpDir): Promise<string> {CODE
LOWtest/src/windows/winSignToolManagerTest.ts959 async function expectMissingPublisherNameError(manager: SigntoolBaseSignManager) {CODE
LOWtest/src/windows/assistedInstallerTestSuite.ts10export function registerAssistedInstallerTests(toolsets: ToolsetConfig): void {CODE
LOWtest/src/helpers/updaterTestUtil.ts74export function createVerifyUpdateFileMock(onVerify: (params: Parameters<VerifyUpdateFile>[0]) => VerifyUpdateFileResultCODE
LOWtest/src/helpers/updaterTestUtil.ts105export async function expectVerifyUpdateFileFailure({CODE
LOWtest/src/helpers/selfSignedIdentity.ts46export async function createSelfSignedCodeSigningIdentity(commonName: string, tmpDir: TmpDir, options: SelfSignedIdentitCODE
LOWtest/src/helpers/launchAppCrossPlatform.ts486export async function deliverAndInstallSnapInVm(vm: VmManager, snapPath: string, opts: VmSnapOptions): Promise<{ versionCODE
LOWtest/src/helpers/launchAppCrossPlatform.ts574export async function installAndLaunchSnapLocally(snapPath: string, opts: VmSnapOptions): Promise<{ version: string }> {CODE
LOWtest/src/helpers/downloadElectron.ts41export function downloadAllRequiredElectronVersions(): Promise<any> {CODE
LOWtest/src/helpers/packTester.ts57export function getPackageManagerWithVersion(pm: PM, packageManagerAndVersionString?: string) {CODE
LOWtest/src/helpers/packTester.ts93function getIgnoreScriptsInstallArgs(pm: PM): Array<string> {CODE
LOWtest/src/helpers/packTester.ts129async function writePackageManagerSettings(projectDir: string, appDir: string, pm: PM, settings: Record<string, any> | uCODE
LOWtest/src/helpers/packTester.ts216function getLockfileFixtureNameCandidates(currentTestName: string): Array<string> {CODE
LOWtest/src/helpers/packTester.ts1087export async function getWindowsSigningIdentity(): Promise<SelfSignedIdentity> {CODE
LOWtest/src/helpers/packTester.ts1101export async function expectedWindowsPublisherName(expect: ExpectStatic): Promise<Array<unknown>> {CODE
LOWtest/src/helpers/providerTestUtil.ts38export function assertDownloadNotTriggered(expect: ExpectStatic, result: any, actualEvents: string[]): void {CODE
LOWtest/src/helpers/windowsSignedFixture.ts150export async function cleanupWindowsSignedFixture(): Promise<void> {CODE
LOWpackages/electron-updater/src/types.ts186export function verificationFailureMessage(result: VerifyUpdateFileResult | null | undefined): string | null {CODE
123 more matches not shown…
Over-Commented Block35 hits · 35 pts
SeverityFileLineSnippetContext
LOWtest/vitest-scripts/vitest-config/vitest-tmpdir.ts1import { afterEach, beforeEach } from "vitest"COMMENT
LOWtest/src/HoistTest.ts81 // it(`should support simple cyclic peer dependencies`, () => {COMMENT
LOWtest/src/HoistTest.ts101COMMENT
LOWtest/src/HoistTest.ts121 }COMMENT
LOWtest/src/HoistTest.ts261 // . -> A -> BCOMMENT
LOWtest/src/HoistTest.ts381 // -> F -> G -> B@X -> C@X -> D@XCOMMENT
LOWtest/src/HoistTest.ts421 "B@X#1": { dependencies: [`C@Y`], peerNames: [`C`] },COMMENT
LOWtest/src/HoistTest.ts521 // -> B@XCOMMENT
LOWtest/src/differentialOneLineBenchTest.ts1// Benchmark: what does a ONE-LINE source change under app.asar cost on the wire withCOMMENT
LOWtest/src/differentialOneLineBenchTest.ts21//COMMENT
LOWtest/src/blockmapTest.ts201// Every test here ALWAYS runs the JS implementation and snapshots its output.COMMENT
LOWtest/src/asarIntegrityTest.ts1import { Platform } from "app-builder-lib"COMMENT
LOWtest/src/updater/test-specific-platforms.sh1#!/bin/bashCOMMENT
LOW…/updater/windowsExecutableCodeSignatureVerifierTest.ts101 data.SignatureType = 1COMMENT
LOW…/updater/windowsExecutableCodeSignatureVerifierTest.ts621// E2e tests — Windows only, real PowerShellCOMMENT
LOW…/updater/windowsExecutableCodeSignatureVerifierTest.ts701 // The $OutputEncoding + [Console]::OutputEncoding setup must handle non-ASCII dir names.COMMENT
LOWtest/src/updater/blackboxUpdateWinSuite.ts221 // the update info of a per-machine build has isAdminRightsRequired, so the update installer is started through COMMENT
LOWtest/src/linux/snapHeavy.e2e.ts21 }COMMENT
LOWtest/src/linux/test-snap.sh1#!/bin/bashCOMMENT
LOWtest/src/linux/test-snap.sh21#COMMENT
LOWtest/src/linux/test-snap.sh61export TEST_FILES="${TEST_FILES:-snapTest,snapHeavy}"COMMENT
LOWtest/src/helpers/packTester.ts101//COMMENT
LOWtest/src/helpers/windowsSignedFixture.ts1import { appendFile, copyFile, writeFile } from "fs/promises"COMMENT
LOWwebsite/docusaurus.config.ts41// Base URL of *this* instance. build-versioned-site.sh sets DOCS_BASE_URL perCOMMENT
LOWwebsite/scripts/build-versioned-site.sh1#!/usr/bin/env bashCOMMENT
LOWwebsite/scripts/build-versioned-site.sh21# sub-path comes from the matching config entry whenCOMMENT
LOW…-updater/src/windowsExecutableCodeSignatureVerifier.ts1import { parseDn } from "builder-util-runtime"COMMENT
LOW…-builder-squirrel-windows/src/SquirrelWindowsTarget.ts21 this.options = packager.getOptionsForTarget<SquirrelWindowsOptions>("squirrelWindows")COMMENT
LOW…/src/node-module-collector/pnpmNodeModulesCollector.ts181 // land at `<root>/node_modules/A/node_modules/B` — downward BFS is needed to find them.COMMENT
LOWpackages/app-builder-lib/src/util/electronGet.ts481 if (stateData?.state === CacheState.complete) {COMMENT
LOWpackages/app-builder-lib/src/util/toolsetLock.ts41// invocation reserves a large `WebAssembly.Memory`. A single build converting one icon is fine, butCOMMENT
LOW…ges/app-builder-lib/src/util/config/schemaValidator.ts21// unsupported or typo'd key validates here and is then dropped at build time with no error.COMMENT
LOW…kages/app-builder-lib/src/targets/blockmap/blockmap.ts1import { createHash } from "crypto"COMMENT
LOWpackages/builder-util-runtime/src/uuid.ts221COMMENT
LOW.github/actions/pretest/action.yml101COMMENT
Cross-Language Confusion (JS/TS)7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHtest/src/helpers/launchAppCrossPlatform.ts521elif [ -n "\$XVFB_BIN" ]; thenCODE
HIGH…builder-lib/src/targets/linux/appimage/appImageUtil.ts335 elif [ -x /usr/bin/kdialog ] ; thenCODE
HIGH…builder-lib/src/targets/linux/appimage/appImageUtil.ts337 elif [ -x /usr/bin/Xdialog ] ; thenCODE
HIGH…builder-lib/src/targets/linux/appimage/appImageUtil.ts351 elif [ -x /usr/bin/kdialog ] ; thenCODE
HIGH…builder-lib/src/targets/linux/appimage/appImageUtil.ts353 elif [ -x /usr/bin/Xdialog ] ; thenCODE
HIGH…builder-lib/src/targets/linux/appimage/appImageUtil.ts386 elif [ -x /usr/bin/Xdialog ] ; thenCODE
HIGH…builder-lib/src/targets/linux/appimage/appImageUtil.ts389 elif [ -x /usr/bin/kdialog ] ; thenCODE
Fake / Example Data30 hits · 34 pts
SeverityFileLineSnippetContext
LOWtest/src/ArtifactPublisherTest.ts138 username: "user@example.com",CODE
LOWtest/src/cliTest.ts212 expect(quoteString("Acme Corp")).toBe("Acme Corp")CODE
LOWtest/src/updater/nsisUpdaterSignatureGuardTest.ts51 publisherName: ["Acme Corp"],CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts63 expect(verifyHook).toHaveBeenCalledWith(["Acme Corp"], "/path/to/installer.exe")CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts72 publisherName: "Acme Corp" as any,CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts81 expect(verifyHook).toHaveBeenCalledWith(["Acme Corp"], "/path/to/installer.exe")CODE
LOWtest/src/updater/nsisUpdaterSignatureGuardTest.ts106 publisherName: ["Acme Corp"],CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts123 expect(verifyHook).toHaveBeenNthCalledWith(1, ["Acme Corp"], "/path/to/installer.exe")CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts125 const newGetterMethodResult = await updater.verifyUpdateFileAuthenticodeSignature(["Acme Corp"], "/path/to/installCODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts128 expect(verifyHook).toHaveBeenNthCalledWith(2, ["Acme Corp"], "/path/to/installer.exe")CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts130 const legacyGetterMethodResult = await updater.verifyUpdateCodeSignature(["Acme Corp"], "/path/to/installer.exe")CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts133 expect(verifyHook).toHaveBeenNthCalledWith(3, ["Acme Corp"], "/path/to/installer.exe")CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts143 const newGetterMethodResult = await updater.verifyUpdateFileAuthenticodeSignature(["Acme Corp"], "/path/to/installCODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts146 const legacyGetterMethodResult = await updater.verifyUpdateCodeSignature(["Acme Corp"], "/path/to/installer.exe")CODE
LOWtest/src/updater/nsisUpdaterSignatureGuardTest.ts157 await expect(updater.verifyUpdateCodeSignature(["Acme Corp"], "/path/to/installer.exe")).resolves.toBe("unknown erCODE
LOWtest/src/updater/nsisUpdaterSignatureGuardTest.ts167 await expect(updater.verifyUpdateCodeSignature(["Acme Corp"], "/path/to/installer.exe")).resolves.toBe("unknown erCODE
LOWtest/src/updater/nsisUpdaterSignatureGuardTest.ts179 await expect(updater.verifyUpdateCodeSignature(["Acme Corp"], "/path/to/installer.exe")).resolves.toBe("nope")CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts198 publisherName: ["Acme Corp"],CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts207 expect(nativeVerifier).toHaveBeenCalledWith(["Acme Corp"], "/path/to/installer.exe")CODE
LOW⚡test/src/updater/nsisUpdaterSignatureGuardTest.ts215 publisherName: ["Acme Corp"],CODE
LOWtest/src/updater/nsisUpdaterSignatureGuardTest.ts226 await expect(updater.verifyUpdateCodeSignature(["Acme Corp"], "/path/to/installer.exe")).resolves.toBeNull()CODE
LOW…/updater/windowsExecutableCodeSignatureVerifierTest.ts266 expectVerificationSuccess(await verifySignature(["Acme Corp"], defaultFile, logger))CODE
LOW…/updater/windowsExecutableCodeSignatureVerifierTest.ts267 expect(logger.warn).toHaveBeenCalledWith(expect.stringContaining("Acme Corp"))CODE
LOW⚡test/src/windows/winSignToolManagerTest.ts801 commonName: "Acme Corp",CODE
LOW⚡test/src/windows/winSignToolManagerTest.ts807 expect(publisherNameMatchesCertificate(["Acme Corp"], acmeCertInfo)).toBe(true)CODE
LOWtest/src/windows/winSignToolManagerTest.ts832 expect(publisherNameMatchesCertificate(["Old Corp Name", "Acme Corp"], acmeCertInfo)).toBe(true)CODE
LOWtest/src/windows/winSignToolManagerTest.ts854 const manager = makeValidationManager({ type: "signtool", publisherName: "Acme Corp" }, acmeCertInfo)CODE
LOWtest/src/windows/winSignToolManagerTest.ts872 const manager = makeValidationManager({ type: "signtool", publisherName: ["Old Corp Name", "Acme Corp"] }, acmeCertICODE
LOWtest/src/windows/winSignToolManagerTest.ts1024 ["certificateSubjectName", { type: "signtool", sign: "./customSign.js", certificateSubjectName: "Acme Corp" }, {}],CODE
LOWwebsite/docs/features/build-lifecycle.md305 xml = xml.replace('Manufacturer="PLACEHOLDER"', 'Manufacturer="Acme Corp"')CODE
Structural Annotation Overuse13 hits · 24 pts
SeverityFileLineSnippetContext
LOWMIGRATION.md15### Step 0: run the automated migratorCOMMENT
LOWtest/src/updater/blackboxWebInstallerTest.ts69 // Step 1: Start the HTTP server first so we know the port before building.COMMENT
LOW⚡test/src/updater/blackboxWebInstallerTest.ts85 // Step 2: Build the nsis-web installer with the server URL baked in.COMMENT
LOW⚡test/src/updater/blackboxWebInstallerTest.ts90 // Step 3: Copy the .nsis.7z app package into the HTTP server root so theCOMMENT
LOWwebsite/docs/migration/v26-to-v27.md27## Step 1: Run the automated migratorCOMMENT
LOWwebsite/docs/migration/v26-to-v27.md99## Step 2: Update Node.jsCOMMENT
LOWwebsite/docs/migration/v26-to-v27.md149## Step 3: Apply the manual stepsCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts249 // Step 1: D = ID byte repeated v timesCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts252 // Step 2: S = salt bytes repeated to fill ceil(salt.length / v) * v bytesCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts259 // Step 3: P = password bytes repeated to fill ceil(password.length / v) * v bytesCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts266 // Step 4: I = S || P (mutable, updated in step 6C)COMMENT
LOWpackages/app-builder-lib/src/codeSign/certInfo.ts391 // Step 1: Verify MAC (or signature) integrity and parse the AuthenticatedSafe container.COMMENT
LOWpackages/app-builder-lib/src/codeSign/certInfo.ts410 // Step 2: Iterate over the authenticated-safe ContentInfos and extract all certificates.COMMENT
Verbosity Indicators9 hits · 18 pts
SeverityFileLineSnippetContext
LOWtest/src/updater/blackboxWebInstallerTest.ts69 // Step 1: Start the HTTP server first so we know the port before building.COMMENT
LOW⚡test/src/updater/blackboxWebInstallerTest.ts85 // Step 2: Build the nsis-web installer with the server URL baked in.COMMENT
LOW⚡test/src/updater/blackboxWebInstallerTest.ts90 // Step 3: Copy the .nsis.7z app package into the HTTP server root so theCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts249 // Step 1: D = ID byte repeated v timesCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts252 // Step 2: S = salt bytes repeated to fill ceil(salt.length / v) * v bytesCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts259 // Step 3: P = password bytes repeated to fill ceil(password.length / v) * v bytesCOMMENT
LOW⚡packages/app-builder-lib/src/codeSign/certInfo.ts266 // Step 4: I = S || P (mutable, updated in step 6C)COMMENT
LOWpackages/app-builder-lib/src/codeSign/certInfo.ts391 // Step 1: Verify MAC (or signature) integrity and parse the AuthenticatedSafe container.COMMENT
LOWpackages/app-builder-lib/src/codeSign/certInfo.ts410 // Step 2: Iterate over the authenticated-safe ContentInfos and extract all certificates.COMMENT
Slop Phrases11 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMpackages/app-builder-lib/scheme.json2381 "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](htCODE
MEDIUMpackages/app-builder-lib/scheme.json3045 "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](htCODE
MEDIUMpackages/app-builder-lib/scheme.json3540 "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](htCODE
LOWpackages/app-builder-lib/scheme.json4546 "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants)CODE
LOWpackages/app-builder-lib/scheme.json4906 "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants)CODE
LOWpackages/app-builder-lib/scheme.json5908 "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants)CODE
MEDIUMpackages/app-builder-lib/scheme.json8822 "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](htCODE
MEDIUMpackages/app-builder-lib/scheme.json9865 "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](https:CODE
LOWpackages/app-builder-lib/src/options/pkgOptions.ts66 * The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). In addition to `txtCOMMENT
MEDIUM…uilder-lib/src/options/PlatformSpecificBuildOptions.ts112You can use [file macros](https://www.electron.build/file-patterns#file-macros) in the `from` and `to` fields as well. `CODE
LOW…es/app-builder-lib/src/targets/win/nsis/nsisOptions.ts154 * The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). In addition to `txtCOMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtest/src/concurrentBuilds.e2e.ts156// Regression test for #9852: elevate.exe must reach the dir-target output (win-unpacked/resources)COMMENT
MEDIUMtest/src/helpers/archiveHelper.ts5// listing (`-slt`), which prints one `Path = <entry>` line per entry — robust against entry namesCOMMENT
MEDIUM…/src/node-module-collector/yarnNodeModulesCollector.ts6// Instead of parsing Yarn's custom NDJSON output, we leverage npm's list commandCOMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/src/linux/test-snap.sh132# Set SNAP_CORE to test a single core (ideal for CI matrix jobs).COMMENT
LOW…kages/app-builder-lib/templates/snap/desktop-common.sh124# Set XDG_DATA_HOME to local pathCOMMENT
LOW…kages/app-builder-lib/templates/snap/desktop-common.sh189# Check if we can actually read the contents of each xdg dirCOMMENT