AI Slop Code Risk Monitor

tradingview/lightweight-charts

SlopCodeMonitor badge for tradingview/lightweight-charts Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Performant financial charts built with HTML5 canvas

0.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for tradingview/lightweight-charts, a TypeScript project with 17,736 GitHub stars. SynthScan examined 211,020 lines of code across 1907 source files, recording 170 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.8 (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.8
Adjusted Signal
0.8
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
17.7K
Stars
TypeScript
Language
211.0K
Lines of Code
1.9K
Files
170
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 4.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 3.5/100 · LOW

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

PR Review Velocity Impact 4.1/100 · LOW

Which changes need focused human review? 170 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 4LOW 166

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 170 distinct pattern matches across 5 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 Identifiers146 hits · 149 pts
SeverityFileLineSnippetContext
LOWwebsite/plugins/suppress-resize-observer-error/index.js6module.exports = function suppressResizeObserverError() {CODE
LOW…e/plugins/enhanced-codeblock/theme/CodeBlock/index.jsx16export function replaceThemeConstantStrings(originalString, isDarkTheme) {CODE
LOWwebsite/plugins/docs-markdown/index.js733function rewriteReferenceDefinitions(body, ctx) {CODE
LOW…docs/plugins/pixel-perfect-rendering/widths/columns.md148function fixPositionsAndReturnSmallestWidth(CODE
LOW…docs/plugins/pixel-perfect-rendering/widths/columns.md161function fixAlignmentForNarrowColumns(CODE
LOW…docs/plugins/pixel-perfect-rendering/widths/columns.md227export function calculateColumnPositionsInPlace(CODE
LOW…cs/plugins/pixel-perfect-rendering/widths/crosshair.md35export function gridAndCrosshairBitmapWidth(CODE
LOW…cs/plugins/pixel-perfect-rendering/widths/crosshair.md46export function gridAndCrosshairMediaWidth(CODE
LOWwebsite/tutorials/a11y/assets/a11y-chart.html448 function setTooltipContentFromTemplate(id) {CODE
LOWwebsite/tutorials/demos/moving-average.js89function calculateMovingAverageSeriesData(candleData, maLength) {CODE
LOW…-5.1/plugins/pixel-perfect-rendering/widths/columns.md148function fixPositionsAndReturnSmallestWidth(CODE
LOW…-5.1/plugins/pixel-perfect-rendering/widths/columns.md161function fixAlignmentForNarrowColumns(CODE
LOW…-5.1/plugins/pixel-perfect-rendering/widths/columns.md227export function calculateColumnPositionsInPlace(CODE
LOW….1/plugins/pixel-perfect-rendering/widths/crosshair.md35export function gridAndCrosshairBitmapWidth(CODE
LOW….1/plugins/pixel-perfect-rendering/widths/crosshair.md46export function gridAndCrosshairMediaWidth(CODE
LOW…-5.0/plugins/pixel-perfect-rendering/widths/columns.md148function fixPositionsAndReturnSmallestWidth(CODE
LOW…-5.0/plugins/pixel-perfect-rendering/widths/columns.md161function fixAlignmentForNarrowColumns(CODE
LOW…-5.0/plugins/pixel-perfect-rendering/widths/columns.md227export function calculateColumnPositionsInPlace(CODE
LOW….0/plugins/pixel-perfect-rendering/widths/crosshair.md35export function gridAndCrosshairBitmapWidth(CODE
LOW….0/plugins/pixel-perfect-rendering/widths/crosshair.md46export function gridAndCrosshairMediaWidth(CODE
LOW…-4.2/plugins/pixel-perfect-rendering/widths/columns.md148function fixPositionsAndReturnSmallestWidth(CODE
LOW…-4.2/plugins/pixel-perfect-rendering/widths/columns.md161function fixAlignmentForNarrowColumns(CODE
LOW…-4.2/plugins/pixel-perfect-rendering/widths/columns.md227export function calculateColumnPositionsInPlace(CODE
LOW….2/plugins/pixel-perfect-rendering/widths/crosshair.md35export function gridAndCrosshairBitmapWidth(CODE
LOW….2/plugins/pixel-perfect-rendering/widths/crosshair.md46export function gridAndCrosshairMediaWidth(CODE
LOW…-5.2/plugins/pixel-perfect-rendering/widths/columns.md148function fixPositionsAndReturnSmallestWidth(CODE
LOW…-5.2/plugins/pixel-perfect-rendering/widths/columns.md161function fixAlignmentForNarrowColumns(CODE
LOW…-5.2/plugins/pixel-perfect-rendering/widths/columns.md227export function calculateColumnPositionsInPlace(CODE
LOW….2/plugins/pixel-perfect-rendering/widths/crosshair.md35export function gridAndCrosshairBitmapWidth(CODE
LOW….2/plugins/pixel-perfect-rendering/widths/crosshair.md46export function gridAndCrosshairMediaWidth(CODE
LOW…-4.1/plugins/pixel-perfect-rendering/widths/columns.md148function fixPositionsAndReturnSmallestWidth(CODE
LOW…-4.1/plugins/pixel-perfect-rendering/widths/columns.md161function fixAlignmentForNarrowColumns(CODE
LOW…-4.1/plugins/pixel-perfect-rendering/widths/columns.md227export function calculateColumnPositionsInPlace(CODE
LOW….1/plugins/pixel-perfect-rendering/widths/crosshair.md35export function gridAndCrosshairBitmapWidth(CODE
LOW….1/plugins/pixel-perfect-rendering/widths/crosshair.md46export function gridAndCrosshairMediaWidth(CODE
LOWwebsite/src/components/landing-page/HeroChart/index.tsx51function useThemeAwareLayoutOptions(): DeepPartial<LayoutOptions> {CODE
LOWwebsite/src/theme/DocItem/Content/markdown-actions.tsx31export function MarkdownActionsInContentProvider({ title, children }: { title: string | null; children: ReactNode }): ReCODE
LOWwebsite/src/theme/DocItem/Content/markdown-actions.tsx35export function useMarkdownActionsInContent(): string | null {CODE
LOWtests/unittests/walk-line.spec.ts13function expectControlPointsWithinYRange(CODE
LOWtests/unittests/price-scale-api-options.spec.ts25function createLineSeriesOnOverlayScale(model: ChartModel<Time>): Series<'Line'> {CODE
LOW…tions/test-cases/markers/hit-test-priceline-overlap.js15function initialInteractionsToPerform() {CODE
LOW…tions/test-cases/markers/hit-test-priceline-overlap.js21function finalInteractionsToPerform() {CODE
LOW…s/test-cases/markers/price-positioned-text-hit-test.js15function initialInteractionsToPerform() {CODE
LOW…s/test-cases/markers/price-positioned-text-hit-test.js21function finalInteractionsToPerform() {CODE
LOW…/test-cases/markers/hit-test-after-timescale-change.js15function initialInteractionsToPerform() {CODE
LOW…/test-cases/markers/hit-test-after-timescale-change.js21function finalInteractionsToPerform() {CODE
LOW…s/e2e/interactions/test-cases/markers/text-hit-test.js15function initialInteractionsToPerform() {CODE
LOW…s/e2e/interactions/test-cases/markers/text-hit-test.js21function finalInteractionsToPerform() {CODE
LOW…uch/horz-page-scroll-when-handle-scroll-is-disabled.js15function initialInteractionsToPerform() {CODE
LOW…uch/horz-page-scroll-when-handle-scroll-is-disabled.js19function finalInteractionsToPerform() {CODE
LOW…dont-horz-page-scroll-when-handle-scroll-is-enabled.js15function initialInteractionsToPerform() {CODE
LOW…dont-horz-page-scroll-when-handle-scroll-is-enabled.js19function finalInteractionsToPerform() {CODE
LOW…-vertical-page-scroll-when-handle-scroll-is-enabled.js15function initialInteractionsToPerform() {CODE
LOW…-vertical-page-scroll-when-handle-scroll-is-enabled.js19function finalInteractionsToPerform() {CODE
LOW…vertical-page-scroll-when-handle-scroll-is-disabled.js15function initialInteractionsToPerform() {CODE
LOW…vertical-page-scroll-when-handle-scroll-is-disabled.js19function finalInteractionsToPerform() {CODE
LOW…t-cases/plugins/custom-series-fallback-mouse-params.js91function initialInteractionsToPerform() {CODE
LOW…t-cases/plugins/custom-series-fallback-mouse-params.js103function finalInteractionsToPerform() {CODE
LOW…ractions/test-cases/plugins/pane-primitive-hit-test.js112function initialInteractionsToPerform() {CODE
LOW…ractions/test-cases/plugins/pane-primitive-hit-test.js116function finalInteractionsToPerform() {CODE
86 more matches not shown…
Over-Commented Block15 hits · 15 pts
SeverityFileLineSnippetContext
LOWpnpm-workspace.yaml21# pnpm does not run lifecycle scripts of dependencies unless they areCOMMENT
LOWwebsite/plugins/docs-markdown/components.js1// @ts-checkCOMMENT
LOW…s/test-cases/time-scale/add-data-to-left-two-series.js201 // shift timescale (right end of line is visible, left end of line is visible)COMMENT
LOW…2e/graphics/test-cases/time-scale/add-data-to-right.js181 // ------------COMMENT
LOW…e2e/graphics/test-cases/time-scale/add-data-to-left.js161COMMENT
LOW…/test-cases/time-scale/add-data-to-right-two-series.js201 addDataToRight(data2, areaSeries2);COMMENT
LOW…e-lwc-plugin/template-workspace/src/example/preview.ts1//* The plugin catalogue frames this page next to the README, in a frame only aCOMMENT
LOW…er-series/tests/interactions/options-all-or-nothing.js1// Options and data are taken all or nothing. `null` for an option holding anCOMMENT
LOW…ugin-scatter-series/tests/interactions/x-follow-fit.js1// With scrolling and zooming on, whether the X axis follows the fit is decidedCOMMENT
LOW…in-scatter-series/tests/interactions/user-zoom-kept.js1// With zooming switched back on, the user's zoom survives data refreshes on theCOMMENT
LOW…n-scatter-series/tests/interactions/x-labels-inside.js1// With scrolling and zooming on, the chart keeps an end label of the X axisCOMMENT
LOW…n-scatter-series/tests/interactions/x-labels-zoomed.js1// Zoomed in by the user (the host switches zooming on), the X labels areCOMMENT
LOW…gin-scatter-series/tests/interactions/x-coordinates.js1// xToCoordinate and coordinateToX convert X values to pane coordinates andCOMMENT
LOW…ges/lwc-plugin-scatter-series/src/x-axis-controller.ts181 #slots: readonly ScatterSlotItem[] | null = null;COMMENT
LOW.circleci/config.yml221 # findings. `node16 (from ESM)` and `bundler` are the modes thatCOMMENT
Modern AI Meta-Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMwebsite/versioned_docs/version-5.1/plugins/intro.md18- Use the [create-lwc-plugin](https://www.npmjs.com/package/create-lwc-plugin) npm package to quickly scaffold a projectCODE
MEDIUMwebsite/versioned_docs/version-5.0/plugins/intro.md18- Use the [create-lwc-plugin](https://www.npmjs.com/package/create-lwc-plugin) npm package to quickly scaffold a projectCODE
MEDIUM…ub/skills/lightweight-charts-plugin-authoring/SKILL.md343`### CDN` tabs) and `## Usage`, and the demo page it declares. The scaffoldCODE
Overly Generic Function Names5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…e/realign-partially-hidden-time-scale-mark-on-right.js1function getData() {CODE
LOW…le/realign-partially-hidden-time-scale-mark-on-left.js1function getData() {CODE
LOW…s/test-cases/initial-options/tick-marks-formatter-2.js5function getData() {CODE
LOW…raphics/test-cases/initial-options/time-formatter-2.js5function getData() {CODE
LOW…ics/test-cases/initial-options/tick-marks-formatter.js8function getData() {CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/githooks/install.js43# This file is autogeneratedCOMMENT