AI Slop Code Risk Monitor

stenciljs/core

SlopCodeMonitor badge for stenciljs/core Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, (+ more) and traditional web applications from a single, framework-agnostic codebase.

0.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for stenciljs/core, a TypeScript project with 13,147 GitHub stars. SynthScan examined 275,262 lines of code across 2027 source files, recording 137 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.5 (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.

0.5
Adjusted Signal
0.5
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
13.1K
Stars
TypeScript
Language
275.3K
Lines of Code
2.0K
Files
137
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 2.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 1.1/100 · LOW

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

PR Review Velocity Impact 2.6/100 · LOW

Which changes need focused human review? 137 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 0MEDIUM 3LOW 134

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 137 distinct pattern matches across 6 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.

Hyper-Verbose Identifiers63 hits · 64 pts
SeverityFileLineSnippetContext
LOWscripts/esbuild/internal-app-globals.ts17export async function getInternalAppGlobalsBundles(opts: BuildOptions): Promise<ESBuildOptions[]> {CODE
LOWscripts/esbuild/testing.ts125function ignorePuppeteerDependency(opts: BuildOptions): Plugin {CODE
LOWscripts/esbuild/internal-platform-hydrate.ts19export async function getInternalPlatformHydrateBundles(opts: BuildOptions): Promise<ESBuildOptions[]> {CODE
LOWscripts/esbuild/internal-platform-hydrate.ts81async function createHydrateRunnerDtsBundle(opts: BuildOptions, inputHydrateDir: string, outputDir: string) {CODE
LOWscripts/esbuild/internal-app-data.ts17export async function getInternalAppDataBundles(opts: BuildOptions): Promise<ESBuildOptions[]> {CODE
LOWscripts/esbuild/compiler.ts114async function getTypeScriptDefaultLibNames(opts: BuildOptions): Promise<string[]> {CODE
LOWscripts/esbuild/utils/typescript-source.ts55 // ts.someMethod = function myReplacementForSomeMethod () {COMMENT
LOWsrc/dev-server/serve-file.ts109export function appendDevServerClientScript(devServerConfig: d.DevServerConfig, req: d.HttpRequest, content: string) {CODE
LOWsrc/dev-server/serve-file.ts119export function appendDevServerClientIframe(content: string, iframe: string) {CODE
LOWsrc/dev-server/server-worker-main.ts6export function initServerProcessWorkerProxy(sendToMain: (msg: d.DevServerMessage) => void) {CODE
LOWsrc/hydrate/runner/render.ts279export function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions) {CODE
LOWsrc/runtime/dom-extras.ts573function patchHostOriginalAccessor(CODE
LOWsrc/runtime/vdom/test/set-accessor.spec.ts414 function expectStraightForwardAttribute(propName: string, newValue: any, oldValue: any) {CODE
LOWsrc/runtime/vdom/test/set-accessor.spec.ts465 function expectStraightForwardAttribute(propName: string, newValue: any, oldValue: any) {CODE
LOWsrc/runtime/vdom/test/set-accessor.spec.ts550 function expectSpecialAttributeDefined(propName: string, newValue: any, oldValue: any) {CODE
LOWsrc/runtime/vdom/test/set-accessor.spec.ts616 function expectBooleanAttributeDefined(propName: string, newValue: any, oldValue: any) {CODE
LOWsrc/runtime/vdom/test/set-accessor.spec.ts659 function expectMinMaxAttributeDefined(propName: string, newValue: any, oldValue: any) {CODE
LOWsrc/utils/output-target.ts214export function isValidConfigOutputTarget(targetType: string): targetType is ValidConfigOutputTarget {CODE
LOWsrc/utils/style.ts10export function createStyleSheetIfNeededAndSupported(styles: string): CSSStyleSheet | undefined {CODE
LOWsrc/cli/telemetry/telemetry.ts17export async function telemetryBuildFinishedAction(CODE
LOWsrc/mock-doc/serialize-node.ts19function normalizeSerializationOptions(opts: Partial<SerializeNodeToHtmlOptions> = {}) {CODE
LOWsrc/mock-doc/serialize-node.ts548function isWithinWhitespaceSensitive(node: Node | MockNode) {CODE
LOWsrc/mock-doc/css-style-declaration.ts60export function createCSSStyleDeclaration() {CODE
LOWsrc/mock-doc/global.ts90export function addGlobalsToWindowPrototype(mockWinPrototype: any) {CODE
LOWsrc/testing/test-transpile.ts38function parseStencilTranspilePaths(stencilTranspilePaths: string | undefined): boolean {CODE
LOWsrc/testing/puppeteer/puppeteer-screenshot.ts150export function createPuppeteerScreenshotOptions(CODE
LOWsrc/testing/jest/jest-29/jest-config.ts136export function getProjectListFromCLIArgs(config: d.ValidatedConfig, argv: Config.Argv): string[] {CODE
LOWsrc/testing/jest/jest-29/jest-environment.ts8export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstructor {CODE
LOWsrc/testing/jest/jest-29/matchers/events.ts48export function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-29/matchers/events.ts75export function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-29/matchers/events.ts102export function toHaveLastReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-29/matchers/events.ts129export function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-28/jest-config.ts136export function getProjectListFromCLIArgs(config: d.ValidatedConfig, argv: Config.Argv): string[] {CODE
LOWsrc/testing/jest/jest-28/jest-environment.ts8export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstructor {CODE
LOWsrc/testing/jest/jest-28/matchers/events.ts48export function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-28/matchers/events.ts75export function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-28/matchers/events.ts102export function toHaveLastReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-28/matchers/events.ts129export function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-27-and-under/jest-config.ts172export function getProjectListFromCLIArgs(config: d.ValidatedConfig, argv: Config.Argv): Config.Path[] {CODE
LOWsrc/testing/jest/jest-27-and-under/jest-environment.ts7export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstructor {CODE
LOWsrc/testing/jest/jest-27-and-under/matchers/events.ts48export function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-27-and-under/matchers/events.ts75export function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-27-and-under/matchers/events.ts102export function toHaveLastReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) {CODE
LOWsrc/testing/jest/jest-27-and-under/matchers/events.ts129export function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any) {CODE
LOWsrc/compiler/types/generate-component-types.ts175function generateStandardElementInterface(CODE
LOWsrc/compiler/types/generate-component-types.ts201function generateElementInterfaceWithConflictResolution(CODE
LOWsrc/compiler/entries/resolve-component-dependencies.ts16export function resolveComponentDependencies(cmps: d.ComponentCompilerMeta[]): void {CODE
LOWsrc/compiler/entries/resolve-component-dependencies.ts74function resolveTransitiveDependencies(CODE
LOWsrc/compiler/entries/resolve-component-dependencies.ts114function resolveTransitiveDependents(cmp: d.ComponentCompilerMeta, cmps: d.ComponentCompilerMeta[]): void {CODE
LOWsrc/compiler/optimize/optimize-module.ts199function getTerserManglePropertiesConfig(): ManglePropertiesOptions {CODE
LOWsrc/compiler/docs/generate-doc-data.ts64function findSupplementalPublicTypes(outputTargets: d.OutputTargetDocsJson[]): string {CODE
LOWsrc/compiler/transformers/type-library.ts102 function exportedTypesInSourceFile(CODE
LOWsrc/compiler/transformers/transform-utils.ts1489export function addTagTransformToCssString(cssCode: string, tagNames: string[]): string {CODE
LOWsrc/compiler/transformers/transform-utils.ts1517export function addTagTransformToCssTsAST(CODE
LOWsrc/compiler/transformers/rewrite-aliased-paths.ts14export function rewriteAliasedDTSImportPaths(CODE
LOWsrc/compiler/transformers/rewrite-aliased-paths.ts35export function rewriteAliasedSourceFileImportPaths(CODE
LOWsrc/compiler/transformers/test/lazy-component.spec.ts115 function verifyStylingUsingComponent(inputComponent: string, expectedOutput: string) {CODE
LOW…ompiler/transformers/static-to-meta/class-extension.ts73function resolveAndProcessExtendedClass(CODE
LOW…/transformers/decorators-to-static/attach-internals.ts89function parseCustomStatesFromDecorator(CODE
LOW…mpiler/transformers/component-lazy/attach-internals.ts46export function createLazyAttachInternalsBinding(cmp: d.ComponentCompilerMeta): ts.Statement[] {CODE
3 more matches not shown…
Over-Commented Block54 hits · 54 pts
SeverityFileLineSnippetContext
LOWtest/wdio/wdio.conf.ts61 // of the configuration file being run.COMMENT
LOWtest/wdio/wdio.conf.ts81 // order to group specific specs to a specific capability.COMMENT
LOWtest/wdio/wdio.conf.ts101 // Level of logging verbosity: trace | debug | info | warn | error | silentCOMMENT
LOWtest/wdio/wdio.conf.ts121 bail: 0,COMMENT
LOWtest/wdio/wdio.conf.ts141 // your test setup with almost no effort. Unlike plugins, they don't add newCOMMENT
LOWtest/wdio/wdio.conf.ts161 // specFileRetriesDeferred: false,COMMENT
LOWscripts/esbuild/utils/typescript-source.ts21 // get the source typescript.js file to modifyCOMMENT
LOWscripts/esbuild/utils/typescript-source.ts41 // Object.defineProperty(ts, name, value, { enumerable: true })COMMENT
LOWscripts/esbuild/utils/typescript-source.ts61 // properties.COMMENT
LOWscripts/esbuild/utils/typescript-source.ts81 // const minified = await minify(code, {COMMENT
LOW.github/workflows/test-component-starter.yml121 # - name: Verify Files ExistCOMMENT
LOW.github/workflows/test-component-starter.yml141 # run: npm run testCOMMENT
LOWsrc/runtime/proxy-component.ts301 // There is an edge case where a developer sets the attribute inline on a custom element and thenCOMMENT
LOWsrc/runtime/update-component.ts81 'For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime',COMMENT
LOWsrc/runtime/test/render-vdom.spec.tsx1181 root.state = false;COMMENT
LOWsrc/runtime/vdom/vdom-render.ts481 // since things are matched up in order.COMMENT
LOWsrc/runtime/vdom/vdom-render.ts501 // ^^^^^^^^^^^COMMENT
LOWsrc/runtime/vdom/vdom-render.ts521 // <next-sibling />COMMENT
LOWsrc/runtime/vdom/vdom-render.ts541 // ^^^^^^^^^^^COMMENT
LOWsrc/runtime/vdom/vdom-render.ts801 // first get the content reference comment node ('s-cr'), then we getCOMMENT
LOWsrc/runtime/vdom/vdom-render.ts821 node['s-hn'] !== childNode['s-hn'] &&COMMENT
LOWsrc/runtime/vdom/vdom-render.ts1181 if (slotRefNode) {COMMENT
LOWsrc/runtime/vdom/set-accessor.ts121 // <my-cmp on-click> // listens for "click"COMMENT
LOWsrc/runtime/vdom/test/scoped-slot.spec.tsx741 expect(root.firstElementChild.nodeName).toBe('TEST-1');COMMENT
LOWsrc/runtime/vdom/test/scoped-slot.spec.tsx761 // expect(root.firstElementChild.firstElementChild.children[1].firstElementChild.children[0].nodeName).toBe('SLOT-FBCOMMENT
LOWsrc/utils/shadow-css.ts421 let startIndex = 0;COMMENT
LOWsrc/mock-doc/performance.ts41 getEntriesByType() {COMMENT
LOWsrc/mock-doc/third-party/jquery.ts941 // Calculate position if both inputs belong to the same documentCOMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts41 tsconfig: '/tsconfig.json',COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts61 // "es2018",COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts101 // },COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts121COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts141 // expect(r.hmr.inlineStylesUpdated[0].styleText).toBe(``);COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts161COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts181 // expect(content).toContain(`color: green`);COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts201 // const rebuildListener = compiler.once('buildFinish');COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts221 // it('should build one component w/ styleUrl, and re-compile css import of css import changes', async () => {COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts241COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts261 // expect(content).not.toContain(`color: blue`);COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts281COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts301 // });COMMENT
LOWsrc/compiler/style/test/style-rebuild.spec.ts321 // const rebuildListener = compiler.once('buildFinish');COMMENT
LOWsrc/compiler/transformers/type-library.ts121 // we get each export specifier (`Pie`, `Cake`), use the typecheckerCOMMENT
LOWsrc/compiler/transformers/add-tag-transform.ts141 }COMMENT
LOWsrc/compiler/transformers/transform-utils.ts1421 // [argName] = "best property around";COMMENT
LOWsrc/compiler/transformers/rewrite-aliased-paths.ts181 //COMMENT
LOWsrc/compiler/transformers/rewrite-aliased-paths.ts201 // transformed to relative imports anyway, we check to see if the newCOMMENT
LOW…c/compiler/transformers/map-imports-to-path-aliases.ts81 //COMMENT
LOW…compiler/transformers/automatic-key-insertion/index.ts81 // We want to only keep going if there's a single return statement becauseCOMMENT
LOW…c/compiler/transformers/test/add-tag-transform.spec.ts281 // const cmp = `COMMENT
LOW…c/compiler/transformers/test/add-tag-transform.spec.ts301 // expect(res).toContain("if (__stencil_transformTag('cmp-b') == el.tagName) {");COMMENT
LOW…mpiler/transformers/test/rewrite-aliased-paths.spec.ts201 `,COMMENT
LOWsrc/compiler/worker/worker-thread.ts41 const fnName = msgToWorker.method;COMMENT
LOW…-targets/dist-custom-elements/custom-elements-types.ts61COMMENT
Fake / Example Data12 hits · 15 pts
SeverityFileLineSnippetContext
LOWsrc/runtime/vdom/test/set-accessor.spec.ts532 expectSpecialAttribute('placeholder', undefined, undefined);CODE
LOWsrc/runtime/vdom/test/set-accessor.spec.ts533 expectSpecialAttribute('placeholder', null, undefined);CODE
LOWsrc/runtime/vdom/test/set-accessor.spec.ts574 expectSpecialAttributeDefined('placeholder', 'text placeholder', undefined);CODE
LOW⚡src/utils/test/util.spec.ts196 text: 'Lorem ipsum',CODE
LOW⚡src/utils/test/util.spec.ts202 * Lorem ipsumCOMMENT
LOW⚡src/utils/test/util.spec.ts211 * Lorem ipsumCOMMENT
LOWsrc/testing/puppeteer/puppeteer-screenshot.ts68 id: 'placeholder',CODE
LOW…ler/types/tests/ComponentCompilerTypeReference.stub.ts15 id: 'placeholder',CODE
LOWsrc/compiler/types/tests/generate-app-types.spec.ts135 id: 'placeholder',CODE
LOW…compiler/types/tests/ComponentCompilerProperty.stub.ts20 id: 'placeholder',CODE
LOW…c/compiler/types/tests/ComponentCompilerMethod.stub.ts18 references: { Foo: { location: 'import', path: './resources', id: 'placeholder' } },CODE
LOWsrc/compiler/config/test/validate-dev-server.spec.ts253 inputConfig.devServer = { ...inputDevServerConfig, https: { key: 'fake-key', cert: 'fake-cert' } };CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMsrc/compiler/bundle/bundle-output.ts71 // Investigate if we can use this to leverage Stencil's in-memory fsCOMMENT
MEDIUMsrc/compiler/style/css-imports.ts311 // Extract supports() - handles nested parentheses with a more robust approachCOMMENT
MEDIUMsrc/compiler/transformers/type-library.ts36 // external packages so we can leverage the original type name whenCOMMENT
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/runtime.md127### Step 1: Component DiscoveryCOMMENT
LOWdocs/runtime.md155### Step 2: Build Feature AggregationCOMMENT
LOWdocs/runtime.md176### Step 3: Runtime GenerationCOMMENT
LOWdocs/runtime.md194### Step 4: Optimization MagicCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/runtime/client-hydrate.ts269 * so we need to check if the node is still in the array before appending it to avoid any errors like:COMMENT