Public report of leeoniya/uPlot, published 30 October 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 30 October 2026, 02:31 UTC · Survey ID cd_3c4803c67ddd4e5b8b2d8330ef563043

leeoniya/uPlot

Measured 30 October 2026, 02:27 UTC, at code version 5d75b3f

Regression: 1 dimension fell since the last survey

A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.

CAI score 42out of 100 Weak
CriticalWeakAdequateStrongExemplary
Down 6 since the last survey

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A medium codebase: 51,675 lines of product code in 1 project, tests not counted · Estimated rebuild effort: about 0.8 person-years · Weakest lens: Production Readiness, 28

Findings by how serious they are

9 critical 378 serious 73 minor

12 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
30 October 2026, 02:27 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that implements it, and today Watchdog is the only one that does.

The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

62of 62 dimensions measured by tools.
450of 460 findings point to an exact file and line, so you can open each one in the code. The other 10 concern the repository as a whole, such as missing documentation.
62dimensions across 6 lenses, read from 51,675 lines of product code in 1 project.
Chapters

Executive summary

leeoniya/uPlot falls short of our standard for production because we found no working pipeline that builds or tests changes to the code and no logging, tracing or health checks in the code. It scores 42 out of 100 and is rated Weak, and all nine of its critical findings are security problems in its code.

Production Readiness, at 28, is the weakest lens and counts most in the score. The best first steps are adding an automated build and test pipeline and adopting a logging library, each worth about 5 points. Raising Production Readiness to 70 would lift the score to about 54.

Nine places in the code run text as code, which an attacker could use. Replacing text run as code with direct calls would close this risk.

The product code is 51,675 lines, about €110,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Production Readiness 28 · counts for 46%Code Health 47 · counts for 25%Maturity 53 · counts for 14%Performance 60 · counts for 8%Security and Compliance 80 · counts for 4%Architecture 87 · counts for 2%

If Production Readiness rose from 28 to 70, the lowest score rated Strong, the score would rise from 42 to about 54.

Code composition: what the lines of code are
Product code 41%Tests 59%
New since the last survey: 260 findings

These 260 critical or serious findings weren't in the previous survey, on 16 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.

  • Cyclomatic Complexity · benchmarks-trace-browser.validateChart (cyclomatic 103) scripts/benchmarks-trace-browser.mjs
  • Cyclomatic Complexity · benchmarks-trace-browser.validateInput (cyclomatic 85) scripts/benchmarks-trace-browser.mjs
  • Cyclomatic Complexity · points.points (cyclomatic 65) src/paths/points.js
  • Cyclomatic Complexity · uPlot::setScales (cyclomatic 60) src/uPlot.js
  • Cyclomatic Complexity · bars (cyclomatic 57) src/paths/bars.js
  • Cyclomatic Complexity · benchmarks-samples.captureBenchmarkSamples (cyclomatic 55) scripts/benchmarks-samples.mjs
  • Cyclomatic Complexity · benchmarks-trace-browser.teardown (cyclomatic 54) scripts/benchmarks-trace-browser.mjs
  • Cyclomatic Complexity · benchmarks-trace.captureBenchmarkTrace (cyclomatic 45) scripts/benchmarks-trace.mjs
  • Cyclomatic Complexity · benchmarks-paths-browser.runCase (cyclomatic 45) scripts/benchmarks-paths-browser.mjs
  • Cyclomatic Complexity · bench-webgl.createWebGLCapture.complete (cyclomatic 43) scripts/bench-webgl.mjs
  • Cyclomatic Complexity · TraceJSON.token (cyclomatic 39) scripts/bench-trace-stream.mjs
  • Cyclomatic Complexity · benchmarks-suite.runBenchmarkSuite (cyclomatic 38) scripts/benchmarks-suite.mjs
  • Cyclomatic Complexity · investigate-g2-webgl-fill.sample (cyclomatic 37) scripts/investigate-g2-webgl-fill.mjs
  • Cyclomatic Complexity · benchmarks-mouse.installBenchmarkMouseInput (cyclomatic 34) scripts/benchmarks-mouse.mjs
  • Cyclomatic Complexity · bench-process-memory.readProcessMemory (cyclomatic 33) scripts/bench-process-memory.mjs
  • Cyclomatic Complexity · analyze-benchmarks-trace.createTraceAnalyzer::finish (cyclomatic 31) scripts/analyze-benchmarks-trace.mjs
  • Cyclomatic Complexity · points::(anonymous)::(anonymous)::drawPoint (cyclomatic 30) src/paths/points.js
  • Cyclomatic Complexity · analyze-benchmarks-trace.createTraceAnalyzer::push (cyclomatic 29) scripts/analyze-benchmarks-trace.mjs
  • Cyclomatic Complexity · bench-module-bundle.bundleModuleDependencies (cyclomatic 29) scripts/bench-module-bundle.mjs
  • Cyclomatic Complexity · benchmarks-display.formatTable (cyclomatic 29) scripts/benchmarks-display.mjs
  • Cyclomatic Complexity · bench-webgpu.createWebGPUCapture.complete (cyclomatic 28) scripts/bench-webgpu.mjs
  • Cyclomatic Complexity · bench-demo-sources.loadBenchDemoSources (cyclomatic 28) scripts/bench-demo-sources.mjs
  • Cyclomatic Complexity · benchmarks-display.cellWidths (cyclomatic 27) scripts/benchmarks-display.mjs
  • Cyclomatic Complexity · analyze-benchmarks-raf.summarizeBenchmarkRaf (cyclomatic 26) scripts/analyze-benchmarks-raf.mjs
  • Cyclomatic Complexity · benchmarks-phases.benchmarkOperations (cyclomatic 25) scripts/benchmarks-phases.mjs
  • Cyclomatic Complexity · analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cyclomatic 25) scripts/analyze-benchmarks-process-memory.mjs
  • Cyclomatic Complexity · bench-browser-process.killBenchmarkBrowser (cyclomatic 25) scripts/bench-browser-process.mjs
  • Cyclomatic Complexity · benchmarks-suite.benchmarkView (cyclomatic 25) scripts/benchmarks-suite.mjs
  • Cyclomatic Complexity · number-format-virtual.fmtNumEn (cyclomatic 24) docs/investigations/number-format-virtual.mjs
  • Cyclomatic Complexity · bench-heatmap-asinh.benchmark (cyclomatic 24) scripts/bench-heatmap-asinh.mjs
  • Cyclomatic Complexity · bench-heatmap-minmax.benchmark (cyclomatic 23) REDACTED
  • Cyclomatic Complexity · uPlot::drawSeries (cyclomatic 23) src/uPlot.js
  • Cyclomatic Complexity · number-format-structural-variants.directFixed (cyclomatic 22) docs/investigations/number-format-structural-variants.mjs
  • Cyclomatic Complexity · benchmarks-suite.benchmarkView.rows (cyclomatic 22) scripts/benchmarks-suite.mjs
  • Cyclomatic Complexity · uPlot.uPlot::selectLegend (cyclomatic 21) src/uPlot.js
  • Cyclomatic Complexity · number-format-en-baseline.fmtNumEn (cyclomatic 21) docs/investigations/number-format-en-baseline.mjs
  • Cyclomatic Complexity · bench-heatmap-grid.validate (cyclomatic 21) scripts/bench-heatmap-grid.mjs
  • Cyclomatic Complexity · investigate-g2-webgl-fill.run (cyclomatic 21) scripts/investigate-g2-webgl-fill.mjs
  • Cyclomatic Complexity · utils.fmtNumDec (cyclomatic 20) src/utils.js
  • Cyclomatic Complexity · number-format-en-611.fmtNumEn (cyclomatic 20) docs/investigations/number-format-en-611.mjs
  • Cyclomatic Complexity · number-format-en.fmtNumEn (cyclomatic 20) docs/investigations/number-format-en.mjs
  • Cyclomatic Complexity · bench-heatmap-grid.runBenchmark (cyclomatic 20) scripts/bench-heatmap-grid.mjs
  • Cyclomatic Complexity · bench-heatmap-log-blocks.buildLog (cyclomatic 20) REDACTED
  • Cyclomatic Complexity · uPlot::setCursorPointPos (cyclomatic 20) src/uPlot.js
  • Cyclomatic Complexity · analyze-benchmarks-process-memory.summarizeProcessMemory (cyclomatic 19) scripts/analyze-benchmarks-process-memory.mjs
  • Cyclomatic Complexity · number-format-en-compact.fmtNumEn (cyclomatic 19) docs/investigations/number-format-en-compact.mjs
  • Cyclomatic Complexity · benchmarks-phases.benchmarkTimingSamples (cyclomatic 18) scripts/benchmarks-phases.mjs
  • Cyclomatic Complexity · Tokens.write (cyclomatic 18) scripts/bench-trace-stream.mjs
  • Cyclomatic Complexity · uPlot.uPlot::resizeOverlays (cyclomatic 17) src/uPlot.js
  • Cyclomatic Complexity · uPlot.uPlot::drawSeriesPart (cyclomatic 16) src/uPlot.js
  • Cyclomatic Complexity · bench-heatmap-grid.setup (cyclomatic 16) scripts/bench-heatmap-grid.mjs
  • Cyclomatic Complexity · benchmarks-suite.assertCompatibleReports (cyclomatic 16) scripts/benchmarks-suite.mjs
  • Cyclomatic Complexity · benchmarks-suite.summarizeSavedBenchmarks (cyclomatic 16) scripts/benchmarks-suite.mjs
  • Cyclomatic Complexity · uPlot::rangeYScales (cyclomatic 16) src/uPlot.js
  • Cognitive Complexity · benchmarks-trace-browser.validateChart (cognitive 99) scripts/benchmarks-trace-browser.mjs
  • Cognitive Complexity · benchmarks-samples.captureBenchmarkSamples (cognitive 91) scripts/benchmarks-samples.mjs
  • Cognitive Complexity · bench-heatmap-asinh.benchmark (cognitive 87) scripts/bench-heatmap-asinh.mjs
  • Cognitive Complexity · benchmarks-trace-browser.validateInput (cognitive 81) scripts/benchmarks-trace-browser.mjs
  • Cognitive Complexity · bars (cognitive 78) src/paths/bars.js
  • Cognitive Complexity · points.points (cognitive 77) src/paths/points.js
  • Cognitive Complexity · bench-webgl.createWebGLCapture.complete (cognitive 69) scripts/bench-webgl.mjs
  • Cognitive Complexity · bench-heatmap-grid.runBenchmark (cognitive 69) scripts/bench-heatmap-grid.mjs
  • Cognitive Complexity · benchmarks-paths-browser.runCase (cognitive 64) scripts/benchmarks-paths-browser.mjs
  • Cognitive Complexity · bench-demo-sources.loadBenchDemoSources (cognitive 61) scripts/bench-demo-sources.mjs
  • Cognitive Complexity · bench-browser-process.killBenchmarkBrowser (cognitive 58) scripts/bench-browser-process.mjs
  • Cognitive Complexity · benchmarks-trace-browser.teardown (cognitive 56) scripts/benchmarks-trace-browser.mjs
  • Cognitive Complexity · analyze-benchmarks-raf.summarizeBenchmarkRaf (cognitive 53) scripts/analyze-benchmarks-raf.mjs
  • Cognitive Complexity · bench-heatmap-minmax.benchmark (cognitive 50) REDACTED
  • Cognitive Complexity · TraceJSON.token (cognitive 49) scripts/bench-trace-stream.mjs
  • Cognitive Complexity · benchmarks-suite.runBenchmarkSuite (cognitive 47) scripts/benchmarks-suite.mjs
  • Cognitive Complexity · benchmarks-trace.captureBenchmarkTrace (cognitive 45) scripts/benchmarks-trace.mjs
  • Cognitive Complexity · benchmarks-display.formatTable (cognitive 40) scripts/benchmarks-display.mjs
  • Cognitive Complexity · investigate-g2-webgl-fill.sample (cognitive 39) scripts/investigate-g2-webgl-fill.mjs
  • Cognitive Complexity · analyze-benchmarks-trace.createTraceAnalyzer::finish (cognitive 38) scripts/analyze-benchmarks-trace.mjs
  • Cognitive Complexity · benchmarks-mouse.installBenchmarkMouseInput (cognitive 35) scripts/benchmarks-mouse.mjs
  • Cognitive Complexity · bench-webgpu.createWebGPUCapture.complete (cognitive 35) scripts/bench-webgpu.mjs
  • Cognitive Complexity · bench-process-memory.readProcessMemory (cognitive 34) scripts/bench-process-memory.mjs
  • Cognitive Complexity · bench-heatmap-grid.validate (cognitive 34) scripts/bench-heatmap-grid.mjs
  • Cognitive Complexity · points::(anonymous)::(anonymous)::drawPoint (cognitive 34) src/paths/points.js
  • Cognitive Complexity · analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cognitive 33) scripts/analyze-benchmarks-process-memory.mjs
  • Cognitive Complexity · bench-module-bundle.bundleModuleDependencies (cognitive 33) scripts/bench-module-bundle.mjs
  • Cognitive Complexity · benchmarks-suite.benchmarkView.rows (cognitive 32) scripts/benchmarks-suite.mjs
  • Cognitive Complexity · number-format-structural-variants.directFixed (cognitive 31) docs/investigations/number-format-structural-variants.mjs
  • Cognitive Complexity · benchmarks-suite.benchmarkView (cognitive 31) scripts/benchmarks-suite.mjs
  • Cognitive Complexity · analyze-benchmarks-trace.createTraceAnalyzer::push (cognitive 28) scripts/analyze-benchmarks-trace.mjs
  • Cognitive Complexity · fmtNumDec (cognitive 28) src/utils.js
  • Cognitive Complexity · bench-heatmap-log-blocks.buildLog (cognitive 27) REDACTED
  • Cognitive Complexity · investigate-g2-webgl-fill.run (cognitive 27) scripts/investigate-g2-webgl-fill.mjs
  • Cognitive Complexity · number-format-en-611.fmtNumEn (cognitive 26) docs/investigations/number-format-en-611.mjs
  • Cognitive Complexity · number-format-en-baseline.fmtNumEn (cognitive 26) docs/investigations/number-format-en-baseline.mjs
  • Cognitive Complexity · number-format-en.fmtNumEn (cognitive 26) docs/investigations/number-format-en.mjs
  • Cognitive Complexity · number-format-virtual.fmtNumEn (cognitive 26) docs/investigations/number-format-virtual.mjs
  • Cognitive Complexity · Tokens.write (cognitive 26) scripts/bench-trace-stream.mjs
  • Cognitive Complexity · uPlot.uPlot::selectLegend (cognitive 25) src/uPlot.js
  • Cognitive Complexity · number-format-en-compact.fmtNumEn (cognitive 22) docs/investigations/number-format-en-compact.mjs
  • Cognitive Complexity · benchmark-d3-shared-probe.snapshot (cognitive 21) docs/investigations/benchmark-d3-shared-probe.mjs
  • Cognitive Complexity · bench-instrument.worker (cognitive 21) scripts/bench-instrument.mjs
  • Cognitive Complexity · uPlot::resizeOverlays (cognitive 21) src/uPlot.js
  • Cognitive Complexity · analyze-benchmarks-process-memory.summarizeProcessMemory (cognitive 20) scripts/analyze-benchmarks-process-memory.mjs
  • Cognitive Complexity · bench-heatmap-asinh.fixture (cognitive 20) scripts/bench-heatmap-asinh.mjs

Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 31 findings

These 31 critical or serious findings were in the previous survey, on 16 October 2026, and are gone from this one.

  • Cyclomatic Complexity · bars (cyclomatic 61) src/paths/bars.js
  • Cyclomatic Complexity · uPlot.uPlot::setScales (cyclomatic 52) src/uPlot.js
  • Cyclomatic Complexity · opts.asinhScale (cyclomatic 17) src/opts.js
  • Cyclomatic Complexity · uPlot.uPlot::drawSeries (cyclomatic 17) src/uPlot.js
  • Cyclomatic Complexity · bench-range-layout.browserBenchmark (cyclomatic 17) scripts/bench-range-layout.mjs
  • Cognitive Complexity · bars (cognitive 90) src/paths/bars.js
  • Cognitive Complexity · bench-range-layout.browserBenchmark (cognitive 49) scripts/bench-range-layout.mjs
  • Cognitive Complexity · asinhScale (cognitive 42) src/opts.js
  • Cognitive Complexity · bench-range-layout.server (cognitive 17) scripts/bench-range-layout.mjs
  • Cognitive Complexity · createKeyedList.update (cognitive 17) src/keyed-list.js
  • Churn × Complexity Hotspots · Hotspot: test/bar-chart-plugin.mjs test/bar-chart-plugin.mjs
  • Churn × Complexity Hotspots · Hotspot: src/opts.js src/opts.js
  • Churn × Complexity Hotspots · Hotspot: demos/grouped-bars.js demos/grouped-bars.js
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] bun.lock
  • Code Duplication · Duplicated block (14 lines × 2 locations) src/uPlot.js
  • Code Duplication · Duplicated block (12 lines × 2 locations) src/uPlot.js
  • Import Boundaries · Boundary violation [package:test-suite-dependency] scripts/recorder.mjs
  • Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 49, cognitive 75) src/paths/bars.js
  • Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 28, cognitive 36) src/paths/stepped.js
  • Cyclomatic Complexity · Complex function _rangeNum (cyclomatic 28, cognitive 35) src/utils.js
  • Cyclomatic Complexity · Complex function strokeFill (cyclomatic 28, cognitive 30) src/uPlot.js
  • Cyclomatic Complexity · Complex function prepareDoubleMad (cyclomatic 27, cognitive 34) demos/lib/double-mad.js
  • Cyclomatic Complexity · Complex function each (cyclomatic 27, cognitive 29) demos/lib/barValues.js
  • Large Files · src/uPlot.js: 3251 lines of code src/uPlot.js
  • Large Files · src/opts.js: 757 lines of code src/opts.js
  • Large Files · src/utils.js: 623 lines of code src/utils.js
  • Test Coverage · No test reaches this file scripts/test.mjs
  • Test Coverage · No test reaches this file scripts/report-coverage.mjs
  • Dead Code · Benchmark script nothing runs (~72 LoC) bench/double-mad.mjs
  • Cancellation propagation · Async function without AbortSignal: browserBenchmark scripts/bench-range-layout.mjs
  • Async & latency hygiene · Sync-over-async blocking scripts/bench-range-layout.mjs
Rebuild cost: about €110,000 · Estimate
Cost to rebuild€36,000 to €180,000, for 606 to 1,921 hours of work, about 0.8 person-years for 1 to 2 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 42. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeMedium: 51,675 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Add a CI workflow that builds and runs the test suite on every push/PR.
Raises the score by about 5 points · Medium effort · CI/CD gates
2
Adopt pino (or winston) and log at meaningful points in the services you run.
Raises the score by about 5 points · Medium effort · Observability
3
Run what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/javascript`, or eslint-plugin-security — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
Raises the score by about 5 points · Medium effort · Security & performance tooling

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €110,000 to build again, about 0.8 person-years of work. Its weakest lens is Production Readiness, at 28 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Add a CI workflow that builds and runs the test suite on every push/PR. Of all the actions in this report, it raises the score most for the work it takes: about 5 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 4.5 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 9% to 20% on every change. The history of the code shows how much it changes: about 232,047 lines over the last 90 days, which is about 941,080 lines a year. At that pace, the extra work comes to an estimated 203.9 to 1223.4 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of Watchdog's own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

At a glance — Code Health · 47% · Weak · gated by D1, D2, R1 ·

At a glance — Architecture · 87% · Adequate · gated by D26 ·

At a glance — Maturity · 53% · Adequate · gated by M2 ·

At a glance — Readiness · 28% · Weak · gated by R6, P1, P2, P3 ·

At a glance — Security · 80% · Adequate · gated by D29 ·

At a glance — Performance · 60% · Adequate ·

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A05:2025 — Injection9High / Critical

Roadmap

Establish a CI pipeline to automatically build, test, and run security scans on every pull request to prevent regressions. Simultaneously, implement structured logging across services to improve observability and health monitoring. Refactor the most complex functions to reduce cognitive load and migrate remaining JavaScript files to TypeScript to ensure type safety and maintainability.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Add a CI workflow that builds and runs the test suite on every push/PR.+5.0 ptsMediumCI/CD gates
Adopt pino (or winston) and log at meaningful points in the services you run.+5.0 ptsMediumObservability
Run what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/javascript`, or eslint-plugin-security — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.+5.0 ptsMediumSecurity & performance tooling
Bring the 148 bodies over 15 down to 15 or less in Cognitive Complexity — start with uPlot::updateCursor (cognitive 329), uPlot.uPlot::updateCursor (cognitive 288), uPlot.uPlot::drawAxesGrid (cognitive 115).+3.6 ptsHighCognitive Complexity
Migrate the remaining .js/.jsx files to TypeScript.+2.8 ptsMediumType Safety
Add eslint and `tsc --noEmit` as package.json scripts and run them in CI.+2.7 ptsMediumTooling
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+2.6 ptsMediumArchitecture documentation
Resolve the 34 Hotspot finding(s) in Churn × Complexity Hotspots — start with uPlot.js, benchmarks-trace-browser.mjs, analyze-benchmarks-trace.mjs.+2.3 ptsHighChurn × Complexity Hotspots

File quality

Per-file score 0–10 — a quality signature. Of 72 files carrying findings, judged against the Production bar: 1% slop · 71% mixed · 28% near-clean.

FileScoreBandWorst signal
REDACTED3.6SlopStatic Analysis (SAST): High: REDACTED
REDACTED4.6MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
src/uPlot.js7.0MixedCyclomatic Complexity: uPlot.uPlot::updateCursor (cyclomatic 120)
scripts/benchmarks-suite.mjs7.0MixedCyclomatic Complexity: benchmarks-suite.runBenchmarkSuite (cyclomatic 38)
src/utils.js7.0MixedCyclomatic Complexity: _rangeNum (cyclomatic 28)
test/integration/bench-demo-fixture.mjs7.0MixedTest Quality: No assertions: creates variant-scoped hosts and shares one awaited stylesheet load
scripts/benchmarks-trace-browser.mjs7.0MixedCyclomatic Complexity: benchmarks-trace-browser.validateChart (cyclomatic 103)
src/paths/points.js7.1MixedCyclomatic Complexity: points.points (cyclomatic 65)
src/opts.js7.1MixedCyclomatic Complexity: genTimeStuffs (cyclomatic 38)
scripts/investigate-g2-webgl-fill.mjs7.1MixedCyclomatic Complexity: investigate-g2-webgl-fill.sample (cyclomatic 37)
scripts/analyze-benchmarks-trace.mjs7.1MixedCyclomatic Complexity: analyze-benchmarks-trace.createTraceAnalyzer::finish (cyclomatic 31)
scripts/bench-heatmap-grid.mjs7.1MixedCyclomatic Complexity: bench-heatmap-grid.validate (cyclomatic 21)
test/master-lifecycle-bugs.mjs7.1MixedTest Quality: Skipped test: delSeries preserves the shared cursor point when deleting a null point slot
test/master-scheduler-bugs.mjs7.1MixedTest Quality: Skipped test: schedules later canvas work after a batch callback throws (deferHooks=${deferHooks})
src/rangeY.js7.2MixedCyclomatic Complexity: selectRangeY (cyclomatic 58)
scripts/bench-trace-stream.mjs7.2MixedCyclomatic Complexity: TraceJSON.token (cyclomatic 39)
scripts/benchmarks-display.mjs7.2MixedCyclomatic Complexity: benchmarks-display.formatTable (cyclomatic 29)
scripts/analyze-benchmarks-process-memory.mjs7.2MixedCyclomatic Complexity: analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cyclomatic 25)

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 9

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 378

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 73

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 12

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 62 of 62 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 62 dimensions across the health lenses
D1D2D3D6D9D10D11D13D15D17D19D26D28D29D30D34D35D43AX10AX3AX4GD1IC1M1M2M3M4P1P10P2P3P6PF3R1R10R2R3R4R5R6R7R8R9X1X12X13X14X15X16X17X18X19X2X21X22X23X24X25X28X29X3X30

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 450 of 460 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Watchdog duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement—◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a18aa2-5ee1-7ed8-90d0-e217a7fd6995.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D4 Code Duplication — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. The language model for this repository listed its production source (.html) but exposed no token stream for any of it, so nothing reached the token comparison.
  • D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.ts, .mjs) and the coverage collector does support this ecosystem — it drives jest, vitest and mocha — but the test script invokes plain node, a bespoke harness the collector has no way to instrument, so no coverage was collected. Read from the manifests: the root package has a `scripts.test` of `node ./scripts/test.mjs "test/*.mjs" "test/plugins/*.mjs"`. Not scored — this is a gap in the analyzer's runner coverage, not a missing .ts/.mjs runner and not a defect in this repository. To have real coverage read, produce a coverage report in a standard format (lcov — `nyc --reporter=lcovonly <your existing test command>` (nyc is already a devDependency here)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `nyc --reporter=lcovonly <your existing test command>` (nyc is already a devDependency here)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — a committed report is read whatever runner produced it.
  • D12 Dependency Hygiene — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. This repository's 1 package.json manifest(s) and its 2 committed lockfile(s) WERE read; what went unanswered is the currency half, because it grades the production `dependencies` a lockfile resolves and these manifests declare none — only 12 devDependencies, which D12 does not grade. So registry.npmjs.org was never asked, and there was nothing here for it to grade. This is a true statement about the repository and NOT a gap on our side: the lockfile was resolved, and no reader we could write would find a production dependency in it.
  • D14 License Compliance — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This repository declares no npm dependency a consumer installs, but 6 of the 6 code file(s) it ships carry a sign of vendored or bundled third-party code (for example `dist/uPlot.cjs.js` is committed build output, which a bundler can inline undeclared third-party code into; `dist/uPlot.d.ts` is committed build output, which a bundler can inline undeclared third-party code into; `dist/uPlot.esm.js` is committed build output, which a bundler can inline undeclared third-party code into; `dist/uPlot.iife.js` is committed build output, which a bundler can inline undeclared third-party code into; `dist/uPlot.iife.min.js` is committed build output, which a bundler can inline undeclared third-party code into). Code copied or bundled into a repository ships under its upstream licence, and this pass has no reader for it: it grades the licences of DECLARED packages only. So there is a licence to grade here and it was not graded — a missing collector, not a statement about this repository.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (56 contributor(s) across 1680 commit(s) sampled, automation and bot accounts excluded). One of them holds 94% of the history; the other 55 hold 0.1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
  • D19 Documentation Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D21 Naming Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
  • D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (package.json), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
  • D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
  • D44 Platform End-of-Life — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
  • AXB1 Runtime evidence locked — no reproducible boot — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: 1 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. Watchdog then boots it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
  • M4 Documentation accuracy — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and none applies: this repository publishes a library and deploys nothing (no container, IaC or deployment manifest), so it holds no runtime state of its own. Any data-access dependency it declares is the store it is a CLIENT for, not one it operates. The DR control belongs to whoever runs that data.
  • R7 Dead Code — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 28 further occurrence(s) are not listed individually; the score already reflects all 68.
  • S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 100 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled certificate validation and obsolete TLS versions, and none was found. The server controls this dimension also scores were not assessed, so no score is given.
  • X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

116 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was uPlot.uPlot::updateCursor at 120.

uPlot.uPlot::updateCursor (cyclomatic 120) · ×11src/uPlot.js:3386
uPlot::setScales (cyclomatic 60) · ×9src/uPlot.js:1786
analyze-benchmarks-trace.createTraceAnalyzer::finish (cyclomatic 31) · ×2scripts/analyze-benchmarks-trace.mjs:190
benchmarks-trace-browser.validateChart (cyclomatic 103)scripts/benchmarks-trace-browser.mjs:260
uPlot.uPlot (cyclomatic 91)src/uPlot.js:422

+ 59 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 7 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with uPlot.uPlot::updateCursor (cyclomatic 120), uPlot::updateCursor (cyclomatic 120), benchmarks-trace-browser.validateChart (cyclomatic 103). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 7 together lifts Cyclomatic Complexity from 2.0 to about 3.2/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
  2. Stand up a CI pipeline, then gate Cyclomatic Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

148 method(s) exceeded the cognitive complexity threshold of 15; the worst was uPlot::updateCursor at 329.

uPlot::updateCursor (cognitive 329) · ×19src/uPlot.js:3386
uPlot.uPlot::drawAxesGrid (cognitive 115) · ×6src/uPlot.js:2443
analyze-benchmarks-trace.createTraceAnalyzer::finish (cognitive 38) · ×2scripts/analyze-benchmarks-trace.mjs:190
benchmarks-trace-browser.validateChart (cognitive 99)scripts/benchmarks-trace-browser.mjs:260
selectRangeY (cognitive 99)src/rangeY.js:110

+ 80 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 148 bodies over 15 down to 15 or less in Cognitive Complexity — start with uPlot::updateCursor (cognitive 329), uPlot.uPlot::updateCursor (cognitive 288), uPlot.uPlot::drawAxesGrid (cognitive 115). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 148 together lifts Cognitive Complexity from 2.0 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
  2. Stand up a CI pipeline, then gate Cognitive Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes8.3 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: Documented → Verified → Prevented · effective 8.3 / 10 · rule-coverage 100% · ceiling Prevented

20 god class(es) detected.

FunctionTooLong: uPlot.uPlot · ×15src/uPlot.js:422
FileTooLong: src/uPlot.js · ×4src/uPlot.js
ClassTooLong: uPlotsrc/uPlot.js:1

What to do

  1. Resolve the 15 FunctionTooLong finding(s) in God Classes — start with uPlot.js, analyze-benchmarks-trace.mjs, benchmarks-paths-browser.mjs. — One of this dimension's main actionable groups (15 warning-level).
  2. Resolve the 4 FileTooLong finding(s) in God Classes — start with uPlot.js, benchmarks-trace-browser.mjs, opts.js. — One of this dimension's main actionable groups (4 warning-level).
  3. Resolve the 1 ClassTooLong finding(s) in God Classes — start with uPlot.js. — One of this dimension's main actionable groups (1 warning-level).
  4. Stand up a CI pipeline, then gate God Classes in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D6 · Cohesion (LCOM4)9.6 / 10Stronggated by 1 serious finding✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Verified

1 of 30 classes have LCOM4 above 3.

Low cohesion: Element (LCOM4 5)test/tooling/bench-dashboard-lifecycle.mjs:17

What to do

  1. Resolve the 1 Low cohesion finding(s) in Cohesion (LCOM4) — start with bench-dashboard-lifecycle.mjs. — One of this dimension's main actionable groups (1 warning-level).
  2. Stand up a CI pipeline, then gate Cohesion (LCOM4) in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

2526 test methods: 2186 unit, 340 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 2526 `it`/`test` case(s) across 191 test file(s) declaring at least one; its tier split is read from package names and paths only.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality9.8 / 10Stronggated by 32 serious findings✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Prevented

23 skipped (12 with a documented reason), 19 zero-assertion, 2 synchronised by a fixed sleep, no mocking-framework packages referenced (hand-written doubles or no mocking) across 2526 tests.

No assertions: rejects nonfinite and invalid tick bounds without looping · ×19test/asinh.mjs:73
Skipped test: paints changed cursor-derived focus in the same data commit · ×11test/cursor-focus.mjs:19
Fixed-sleep synchronisation: bounds a stalled ${phase} poll drain and skips destruction · ×2test/tooling/benchmarks-samples.mjs:2147
Skipped (documented): releases raw, cumulative, baseline, and options data with the chart retained (typed=${typed}) · ×12test/destroy.mjs:342

What to do

  1. Resolve the 19 No assertions finding(s) in Test Quality — start with bench-demo-fixture.mjs (11), precision-scales.mjs (2), bench-demo-sources.mjs (2). — One of this dimension's main actionable groups (19 warning-level).
  2. Resolve the 11 Skipped test finding(s) in Test Quality — start with master-lifecycle-bugs.mjs (5), master-scheduler-bugs.mjs (5), cursor-focus.mjs. — One of this dimension's main actionable groups (11 warning-level).
  3. Resolve the 2 Fixed-sleep synchronisation finding(s) in Test Quality — start with benchmarks-samples.mjs, bench-scientific-adapters.mjs. — One of this dimension's main actionable groups (2 warning-level).
  4. Stand up a CI pipeline, then gate Test Quality in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.

D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests pass reliably, with no flakiness.

Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 flaky across 1 measured tier(s). JavaScript/TypeScript (the plain-node harness `node ./scripts/test.mjs test/*.mjs test/plugins/*.mjs` in the repository root, re-run per test file by exit status — coarser than per test (1 files)): measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots5.2 / 10Adequate✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented → Verified → Prevented · effective 5.2 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: src/uPlot.js (51×1166=59466); scripts/benchmarks-trace-browser.mjs (15×103=1545); scripts/analyze-benchmarks-trace.mjs (9×121=1089)

Hotspot: src/uPlot.js · ×34src/uPlot.js:422

What to do

  1. Resolve the 34 Hotspot finding(s) in Churn × Complexity Hotspots — start with uPlot.js, benchmarks-trace-browser.mjs, analyze-benchmarks-trace.mjs. — One of this dimension's main actionable groups (34 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt10.0 / 10Exemplary○ Nothing flagged

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 deducted task-comment markers across 0 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1 documentation facets pass in full. 42 document(s) read across 1 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D26 · Project Cohesion0.0 / 10Critical✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1 build units (npm) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion

What to do

  1. Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)2.1 / 10Critical✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 2.1 / 10 · rule-coverage 100% · ceiling Documented

9 finding(s): 0 critical, 9 high, 0 medium, 0 low. semgrep hit a parse error in 8 file(s) — `demos/axis-range-policies.html` (line 34), `demos/issues/issue-1133-dynamic-backend-range.html` (lines 53–59), `demos/issues/issue-648-auto-reset-vs-zoom.html` (lines 42–44), `demos/issues/issue-823-full-domain-scan.html` (lines 33–45), `demos/soft-minmax.html` (line 47), … (+3 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.

REDACTED

What to do

  1. Resolve the 9 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (9 issue-level).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No known-vulnerable dependencies in any ecosystem this repository declares.

✓ On the Gold path — maintain.

Detailed fixes: d30_recommendation.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 127 of the 207 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue in this repository's JavaScript/TypeScript: functions whose whole body still throws a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings and JSX of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

IC1 · Incompleteness & stubs8.0 / 10Strong✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's JavaScript/TypeScript: functions that only throw a "not implemented" error, functions that take inputs and return a constant or do nothing, async functions that never await, dead `if (false)` branches, and skeleton classes most of whose methods are holes.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • `<` against NaN is false for every value, including NaN itself. Use `Number.isNaN(…)` — the test that was intended. — REDACTED:277
  • `retNull` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — src/utils.js:426
  • `retTrue` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — src/utils.js:428
  • `flush` has an empty body — confirm it's an intentional no-op and not an unfinished method. — scripts/audit-grafana-scales.mjs:140
  • A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something. (×11) — test/cursor-focus.mjs:19, test/master-lifecycle-bugs.mjs:50, test/master-lifecycle-bugs.mjs:68, …

What to do

  • Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
  • Clear the softer debt: re-enable or delete skipped tests, decide whether each empty function is a deliberate no-op (and say so in a comment), and replace blanket `eslint-disable` / `@ts-nocheck` with targeted, justified suppressions.
M1 · Documentation (README)6.0 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
  • No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

  • No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.

What to do

  • Add a CI workflow that builds and runs the test suite on every push/PR.
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

P2 · Observability0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • No logging call was found in the 42 JavaScript/TypeScript production file(s) this check read across 1 module(s). Each was searched for its ecosystem's logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.

What to do

  • Adopt pino (or winston) and log at meaningful points in the services you run.
  • Consider OpenTelemetry tracing/metrics (@opentelemetry/sdk-node) and a health-check endpoint (@godaddy/terminus or a /health route) for operability.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/javascript`, or eslint-plugin-security — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
  • `package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — package.json:57

What to do

  • Run what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/javascript`, or eslint-plugin-security — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

  • No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF3 · Async & latency hygiene6.0 / 10Adequate✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

  • a busy-wait on `i` in `sort` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — demos/lib/flatbush.js:438
  • a busy-wait on `j` in `sort` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — demos/lib/flatbush.js:439
  • `mkdirSync` in `runBenchmarkSuite` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/benchmarks-suite.mjs:364
  • `writeFileSync` in `save` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/benchmarks-suite.mjs:389
  • `rmSync` in `runBenchmarkSuite` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/benchmarks-suite.mjs:398
  • `readFileSync` in `runBenchmarkSuite` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/benchmarks-suite.mjs:412
  • `existsSync` in `captureBenchmarkTrace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/benchmarks-trace.mjs:66
  • `readFileSync` in `captureBenchmarkTrace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/benchmarks-trace.mjs:71
  • `gzipSync` in `anonymous function` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/investigate-g2-webgl-fill.mjs:304
  • `fs.mkdirSync` in `callback to captureStep` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/recorder.mjs:66
  • `fs.writeFileSync` in `callback to captureStep` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/recorder.mjs:67
  • `fs.readFileSync` in `callback to captureStep` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/recorder.mjs:70
  • `existsSync` in `anonymous function` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/integration/bench-framework-adapters.mjs:291
  • `readFileSync` in `callback to map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/integration/bench-framework-adapters.mjs:301
  • `existsSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/integration/bench-lifecycle-frameworks.mjs:156
  • `readFileSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×6) — test/integration/bench-lifecycle-frameworks.mjs:158, test/integration/bench-lifecycle-frameworks.mjs:159, test/integration/bench-lifecycle-frameworks.mjs:165, …
  • `readdirSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/integration/bench-lifecycle-frameworks.mjs:161
  • `readFileSync` in `callback to metadata.find` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/integration/bench-lifecycle-frameworks.mjs:163
  • `readFileSync` in `callback to createServer` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/integration/bench-managed-adapters.mjs:421

What to do

  • TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety0.1 / 10Critical✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 2 typed · 174 plain JS — the untyped files are scripts/audit-grafana-scales.mjs, scripts/chrome-headless-shell.mjs, scripts/coverage-files.mjs, scripts/demoSteps.mjs, scripts/demos.mjs, scripts/instrument-source.mjs (+168 more).

What to do

  • Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication9.6 / 10Exemplary✓ Tool-verified

React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Deterministic.

  • src/paths/linear.js:22 · src/paths/spline.js:6 — the two spans are one implementation copied and then locally edited — 465 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/paths/linear.js:22
  • scripts/patch-bokeh-highp.mjs:66 · scripts/patch-echarts-heatmap.mjs:37 — the two spans are one implementation copied and then locally edited — 332 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/patch-bokeh-highp.mjs:66
  • src/uPlot.js:3623 · src/uPlot.js:3643 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/uPlot.js:3623
  • src/uPlot.js:3704 · src/uPlot.js:3720 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/uPlot.js:3704
  • src/opts.js:720 · src/opts.js:755 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/opts.js:720
  • src/paths/spline.js:59 · src/paths/stepped.js:82 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — src/paths/spline.js:59
  • scripts/investigate-g2-webgl-fill.mjs:245 · scripts/investigate-webgpu.mjs:117 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — scripts/investigate-g2-webgl-fill.mjs:245
  • src/paths/bars.js:59 · src/paths/stepped.js:9 — the two spans are one implementation copied and then locally edited — 60 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/paths/bars.js:59
  • src/paths/linear.js:130 · src/paths/stepped.js:80 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/paths/linear.js:130
  • src/paths/disp.js:65 · src/paths/points.js:30 — the two spans are one implementation copied and then locally edited — 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/paths/disp.js:65

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity7.0 / 10Strong✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • updateCursor has cyclomatic complexity 120 and cognitive complexity 329; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:3386
  • uPlot has cyclomatic complexity 88 and cognitive complexity 98; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:422
  • setScales has cyclomatic complexity 60 and cognitive complexity 102; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:1786
  • selectRangeY has cyclomatic complexity 58 and cognitive complexity 99; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/rangeY.js:110
  • generateHeatmapCells has cyclomatic complexity 48 and cognitive complexity 85; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — demos/lib/heatmapCellsData.js:3
  • initAxis has cyclomatic complexity 48 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:1450
  • (anonymous) has cyclomatic complexity 46 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/paths/bars.js:64
  • drawAxesGrid has cyclomatic complexity 45 and cognitive complexity 109; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:2443
  • initScale has cyclomatic complexity 44 and cognitive complexity 100; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:569
  • (anonymous) has cyclomatic complexity 38 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/paths/linear.js:22
  • draw has cyclomatic complexity 37 and cognitive complexity 81; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — demos/lib/barValues.js:203
  • (anonymous) has cyclomatic complexity 37 and cognitive complexity 77; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/opts.js:163
  • (anonymous) has cyclomatic complexity 35 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/paths/points.js:24
  • _commit has cyclomatic complexity 34 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:2807
  • detect has cyclomatic complexity 33 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — demos/lib/dbscan1d.js:34
  • opts has cyclomatic complexity 32 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — demos/lib/barChartPlugin.js:274
  • drawPoint has cyclomatic complexity 30 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/paths/points.js:76
  • initSeries has cyclomatic complexity 30 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:1316
  • dataIdx has cyclomatic complexity 29 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/uPlot.js:1177
  • assertDrawing has cyclomatic complexity 29 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — test/high-low-bands-toggle.mjs:6

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files7.3 / 10Strong✓ Tool-verified

React / JS · Code Health — How many source files exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • src/uPlot.js has 3444 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/uPlot.js:1
  • src/opts.js has 739 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/opts.js:1
  • src/utils.js has 679 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/utils.js:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage9.7 / 10Exemplary✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • test/issue-demos.mjs:7 imports '../demos/issues/', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — test/issue-demos.mjs:7
  • test/time-lazy.mjs:19 imports './src/fmtDate.js', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — test/time-lazy.mjs:19
  • test/time-local.mjs:8 imports './src/fmtDate.js', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — test/time-local.mjs:8
  • test/tooling/bench-dashboard-demo.mjs:103 imports '../../bench/dashboard/', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — test/tooling/bench-dashboard-demo.mjs:103
  • test/tooling/instrument-estree-chains.mjs:8 imports './estree-chains-fixture.js', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing. — test/tooling/instrument-estree-chains.mjs:8
  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×3) — scripts/audit-grafana-scales.mjs:1, scripts/investigate-g2-webgl-fill.mjs:1, scripts/investigate-webgpu.mjs:1

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness9.9 / 10Exemplary✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D30 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.

What to do

  • Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling3.4 / 10Weak✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • This repository declares test tooling, and the ✓ above records that declaration — but test/issue-demos.mjs and 4 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) — each one is reported with its failing import under Test Coverage — then the declared script exercises what it claims to. — test/issue-demos.mjs:7

What to do

  • Add eslint and `tsc --noEmit` as package.json scripts and run them in CI.
R7 · Dead Code7.8 / 10Strong✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • Unreachable from the 235 application, 1 tooling and 200 test entry point(s) detected in this repo. Gate removals on `bun run build` — an undetected custom entry would make these reachable.
  • no import path from any entry point (235 application, 1 tooling, 200 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×2) — scripts/benchmarks-paths-browser.mjs, scripts/bench-join.mjs
  • This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it. (×37) — demos/high-low-bands.js:3, demos/line-paths.js:69, demos/timezones-dst.js:19, …

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

R9 · Circular Imports10.0 / 10Exemplary✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.

X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.

X2 · Cancellation propagation9.0 / 10Exemplary✓ Tool-verified

Other · Code Health — Whether async functions that make a cancellable request accept or pass on an AbortSignal (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.

  • Only 5/6 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
  • `post` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — scripts/benchmarks-paths-browser.mjs:12

What to do

  • Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.

X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

X3 · Exception handling4.8 / 10Weak✓ Tool-verified

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

  • `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. (×14) — scripts/bench-heatmap-grid-browser.mjs:34, scripts/bench-hover.mjs:32, scripts/bench-legend.mjs:26, …
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×9) — scripts/bench-heatmap-grid-browser.mjs:69, scripts/bench-heatmap-grid-browser.mjs:71, scripts/bench-hover.mjs:105, …
  • `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — scripts/benchmarks-mouse.mjs:65

What to do

  • Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health47%Weak — gated by D1, D2, R1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture87%Adequate — gated by D26Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity53%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness28%Weak — gated by R6, P1, P2, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security80%Adequate — gated by D29Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance60%AdequateStrongest area.
Unscored — 1 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • X10 Duplicated predicate — 4 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 66 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — Frontend below the scale floor (16 DOM element(s) < 25) — too little surface to assess accessibility.
  • AC2 Forms & labels — Frontend below the scale floor (16 DOM element(s) < 25) — too little surface to assess accessibility.
  • AC3 Page structure — Frontend below the scale floor (16 DOM element(s) < 25) — too little surface to assess accessibility.
  • AC4 Keyboard semantics — Frontend below the scale floor (16 DOM element(s) < 25) — too little surface to assess accessibility.
  • AC5 ARIA correctness — Frontend below the scale floor (16 DOM element(s) < 25) — too little surface to assess accessibility.
  • AC6 Visual & motion safety — Frontend below the scale floor (16 DOM element(s) < 25) — too little surface to assess accessibility.
  • AC7 A11y enforcement — Frontend below the scale floor (16 DOM element(s) < 25) — too little surface to assess accessibility.
  • AX1 Captive dependencies — Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
  • AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation — no exported interface declares behaviour
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
  • C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server (no Express, Fastify, Koa, Hono, NestJS or similar app, no Next.js/SvelteKit/Nuxt server route, no edge function), creates no Supabase tables and talks to no hosted backend. Access control is therefore N/A here — a browser application or library is authorized by the server it calls, not by itself; a client-side route guard hides a page and authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
  • D12 Dependency Hygiene — Dependency currency not established — this repository declares no production dependency to grade
  • D14 License Compliance — Vendored third-party code's licences not graded — D14 grades declared npm dependencies only
  • D16 Bus Factor — single-maintainer repository — bus factor is not applicable
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D21 Naming Consistency — Naming consistency is measured on C# only; JavaScript, TypeScript, html not measured.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — No hand-written C# or Visual Basic source; comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.html,.mjs), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
  • D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D4 Code Duplication — Duplication not measured — .html not exposed to the token comparison
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
  • D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — the test script invokes plain node, which the collector cannot instrument
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P12 CI test-gate honesty — no CI workflow found
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JavaScript/TypeScript source, so there is no service whose uptime a failing dependency could take down
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `nyc --reporter=lcovonly <your existing test command>` (nyc is already a devDependency here)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a package.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • PF2 Allocation hygiene — Not applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • S1 Web-Security Posture — Not assessed: 100 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled TLS certificate validation and obsolete TLS versions, and none was found. That half of the dimension is clean, but it is not scored on its own: a C# repository with the same clean reading is scored on its server controls as well, or is N/A for having no web surface, and neither can be decided here. The server controls — HTTPS enforcement, HSTS, cookie flags, input validation — are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
  • X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — Not applicable: this check asks whether the null-typed discipline a language offers is switched on, and how much of that the assertion operator takes back, and in this repository's languages there is no such switch and no such operator. Plain JavaScript carries no type annotations and commits no tsconfig, so it states no null-typed discipline for this check to grade: there is nothing here that switches null checking on or off, and TypeScript (or `// @ts-check`) is how a repository acquires one — advice, not a defect this card measures. Not a gap in the analyzer and not a finding about your code.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 9 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
Serious — 378 finding(s)
D15 · Churn × Complexity Hotspots · Hotspot · ×34
  • Hotspot: src/uPlot.js src/uPlot.js:422 — src/uPlot.js changed 51 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 1166 in uPlot.uPlot at line 422. 3 of those changes were fix/bug commits, and the other 48 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- src/uPlot.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/benchmarks-trace-browser.mjs scripts/benchmarks-trace-browser.mjs:260 — scripts/benchmarks-trace-browser.mjs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in benchmarks-trace-browser.validateChart at line 260. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/benchmarks-trace-browser.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/analyze-benchmarks-trace.mjs scripts/analyze-benchmarks-trace.mjs:114 — scripts/analyze-benchmarks-trace.mjs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 121 in analyze-benchmarks-trace.createTraceAnalyzer at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/analyze-benchmarks-trace.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/benchmarks-suite.mjs scripts/benchmarks-suite.mjs:347 — scripts/benchmarks-suite.mjs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in benchmarks-suite.runBenchmarkSuite at line 347. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/benchmarks-suite.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/rangeY.js src/rangeY.js:110 — src/rangeY.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in rangeY.selectRangeY at line 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- src/rangeY.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: test/plugins/bar-chart-plugin.mjs test/plugins/bar-chart-plugin.mjs:10 — test/plugins/bar-chart-plugin.mjs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in (anonymous) at line 10. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- test/plugins/bar-chart-plugin.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/benchmarks-trace.mjs scripts/benchmarks-trace.mjs:59 — scripts/benchmarks-trace.mjs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in benchmarks-trace.captureBenchmarkTrace at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/benchmarks-trace.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/benchmarks-samples.mjs scripts/benchmarks-samples.mjs:17 — scripts/benchmarks-samples.mjs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in benchmarks-samples.captureBenchmarkSamples at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/benchmarks-samples.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/utils.js src/utils.js:259 — src/utils.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in utils._rangeNum at line 259. 3 of those changes were fix/bug commits, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- src/utils.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/bench-demo-sources.mjs scripts/bench-demo-sources.mjs:6 — scripts/bench-demo-sources.mjs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in bench-demo-sources.loadBenchDemoSources at line 6. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/bench-demo-sources.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: demos/lib/barChartPlugin.js demos/lib/barChartPlugin.js:274 — demos/lib/barChartPlugin.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in barChartPlugin.barChartPlugin.opts at line 274. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- demos/lib/barChartPlugin.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/benchmarks-display.mjs scripts/benchmarks-display.mjs:105 — scripts/benchmarks-display.mjs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in benchmarks-display.formatTable at line 105. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/benchmarks-display.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/paths/points.js src/paths/points.js:14 — src/paths/points.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in points.points at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- src/paths/points.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: test/range-y-chart-poc.mjs test/range-y-chart-poc.mjs:81 — test/range-y-chart-poc.mjs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in (anonymous) at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- test/range-y-chart-poc.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/paths/bars.js src/paths/bars.js:35 — src/paths/bars.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in bars.bars at line 35. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- src/paths/bars.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: bench/d3.mjs bench/d3.mjs:324 — bench/d3.mjs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in d3.makeChartWithOptions at line 324. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- bench/d3.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: demos/lib/barValues.js demos/lib/barValues.js:203 — demos/lib/barValues.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in barValues.createBarValues.draw at line 203. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- demos/lib/barValues.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: bench/d3fc.mjs bench/d3fc.mjs:49 — bench/d3fc.mjs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in d3fc.makeChartWithOptions at line 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- bench/d3fc.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/analyze-benchmarks-raf.mjs scripts/analyze-benchmarks-raf.mjs:16 — scripts/analyze-benchmarks-raf.mjs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in analyze-benchmarks-raf.summarizeBenchmarkRaf at line 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/analyze-benchmarks-raf.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: test/plugins/heatmap-plugin.mjs test/plugins/heatmap-plugin.mjs:364 — test/plugins/heatmap-plugin.mjs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in (anonymous) at line 364. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- test/plugins/heatmap-plugin.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: bench/deckgl.mjs bench/deckgl.mjs:29 — bench/deckgl.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in deckgl.makeChart at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- bench/deckgl.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: demos/timeline-discrete.html demos/timeline-discrete.html:282 — demos/timeline-discrete.html changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in timeline-discrete.html.timelinePlugin.opts at line 282. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- demos/timeline-discrete.html`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/analyze-benchmarks-process-memory.mjs scripts/analyze-benchmarks-process-memory.mjs:111 — scripts/analyze-benchmarks-process-memory.mjs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/analyze-benchmarks-process-memory.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: scripts/benchmarks-phases.mjs scripts/benchmarks-phases.mjs:26 — scripts/benchmarks-phases.mjs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in benchmarks-phases.benchmarkOperations at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- scripts/benchmarks-phases.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: test/legend-contracts.mjs test/legend-contracts.mjs:53 — test/legend-contracts.mjs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in (anonymous) at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-29 13:09:45 -05:00' --until='2026-10-27 13:09:45 -05:00' --full-history --no-merges -- test/legend-contracts.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 9 more in this group — see findings.md.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×24
  • Sync-over-async blocking demos/lib/flatbush.js:438 — a busy-wait on `i` in `sort` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking demos/lib/flatbush.js:439 — a busy-wait on `j` in `sort` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/benchmarks-suite.mjs:364 — `mkdirSync` in `runBenchmarkSuite` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/benchmarks-suite.mjs:389 — `writeFileSync` in `save` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/benchmarks-suite.mjs:398 — `rmSync` in `runBenchmarkSuite` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/benchmarks-suite.mjs:412 — `readFileSync` in `runBenchmarkSuite` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/benchmarks-trace.mjs:66 — `existsSync` in `captureBenchmarkTrace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/benchmarks-trace.mjs:71 — `readFileSync` in `captureBenchmarkTrace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/investigate-g2-webgl-fill.mjs:304 — `gzipSync` in `anonymous function` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/recorder.mjs:66 — `fs.mkdirSync` in `callback to captureStep` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/recorder.mjs:67 — `fs.writeFileSync` in `callback to captureStep` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/recorder.mjs:70 — `fs.readFileSync` in `callback to captureStep` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-framework-adapters.mjs:291 — `existsSync` in `anonymous function` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-framework-adapters.mjs:301 — `readFileSync` in `callback to map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:156 — `existsSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:158 — `readFileSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:159 — `readFileSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:161 — `readdirSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:163 — `readFileSync` in `callback to metadata.find` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:165 — `readFileSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:166 — `readFileSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-lifecycle-frameworks.mjs:170 — `readFileSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-managed-adapters.mjs:421 — `readFileSync` in `callback to createServer` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/integration/bench-managed-adapters.mjs:434 — `readFileSync` in `callback to before` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
X3 · Exception handling · Swallowed exception (empty catch) · ×23
  • Swallowed exception (empty catch) scripts/bench-heatmap-grid-browser.mjs:34 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-heatmap-grid-browser.mjs:69 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-heatmap-grid-browser.mjs:71 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-hover.mjs:32 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-hover.mjs:105 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-hover.mjs:107 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-legend.mjs:26 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-sample-timeout.mjs:26 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-sample-timeout.mjs:28 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-webgl.mjs:67 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/bench-webgl.mjs:207 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/benchmarks-mouse.mjs:110 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/benchmarks-trace.mjs:83 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/benchmarks-trace.mjs:122 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) scripts/benchmarks-trace.mjs:226 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/benchmarks.mjs:309 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/investigate-g2-webgl-fill.mjs:210 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/investigate-g2-webgl-fill.mjs:287 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/investigate-g2-webgl-fill.mjs:311 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/investigate-webgpu.mjs:91 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/investigate-webgpu.mjs:133 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/profile-manual.mjs:253 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) scripts/profile-manual.mjs:256 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
D10 · Test Quality · No assertions · ×19
  • No assertions: rejects nonfinite and invalid tick bounds without looping test/asinh.mjs:73 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: imports without DOM globals test/keyed-list.mjs:120 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: (unnamed test) test/precision-scales.mjs:64 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: (unnamed test) test/precision-scales.mjs:72 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: does not scan trace data in measured creation or update paths test/tooling/bench-dashboard-plotly.mjs:400 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: creates variant-scoped hosts and shares one awaited stylesheet load test/integration/bench-demo-fixture.mjs:75 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: boots JSCharting through the standalone runner despite its benchmark-only restriction test/integration/bench-demo-fixture.mjs:215 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: rejects restricted standalone demos before loading dependencies or fetching data test/integration/bench-demo-fixture.mjs:253 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: prefetches SciChart binaries before data preparation, preserves options, and never loads WASM as scripts test/integration/bench-demo-fixture.mjs:267 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: reports a standalone binary download failure before creating a chart host or fetching data test/integration/bench-demo-fixture.mjs:307 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: loads module namespaces before host/data setup without inserting module script tags test/integration/bench-demo-fixture.mjs:325 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: reports a module import failure before styles, host creation, or data fetch test/integration/bench-demo-fixture.mjs:359 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: awaits Google runtime preparation before host/data setup and leaves table construction and draw in the render callback test/integration/bench-demo-fixture.mjs:373 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: propagates Google preparation errors before creating a host or fetching data test/integration/bench-demo-fixture.mjs:447 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: rejects a failed shared stylesheet load test/integration/bench-demo-fixture.mjs:461 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: boots the actual uPlot module with ordered local dependencies, prepared data, host, wait, and instance return test/integration/bench-demo-fixture.mjs:470 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: ${id}: parses its ES module test/integration/bench-demo-sources.mjs:66 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: imports the actual ES modules without fetching or creating charts test/integration/bench-demo-sources.mjs:83 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: ${variant} DPR ${dpr}: three real GL samples with full data, axes, readiness, and cleanup test/integration/bench-webgl-adapters.mjs:463 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D2 · Cognitive Complexity · uPlot · ×19
  • uPlot::updateCursor (cognitive 329) src/uPlot.js:3386 — uPlot::updateCursor has cognitive complexity 329 (threshold 15). Drivers by points: if/else 62 (178 pts), ternaries 27 (111 pts), boolean chains 36, loops 2 (4 pts) (nesting depth added 202). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::setScales (cognitive 102) src/uPlot.js:1786 — uPlot::setScales has cognitive complexity 102 (threshold 15). Drivers by points: if/else 23 (48 pts), ternaries 7 (21 pts), boolean chains 20, loops 9 (12 pts), other 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::initScale (cognitive 100) src/uPlot.js:569 — uPlot::initScale has cognitive complexity 100 (threshold 15). Drivers by points: ternaries 18 (58 pts), if/else 9 (25 pts), boolean chains 15, other 2 (nesting depth added 56). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::dataIdx (cognitive 72) src/uPlot.js:1177 — uPlot::dataIdx has cognitive complexity 72 (threshold 15). Drivers by points: if/else 15 (38 pts), ternaries 6 (21 pts), boolean chains 6, loops 2 (6 pts), other 1 (nesting depth added 42). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::drawSeries (cognitive 67) src/uPlot.js:2006 — uPlot::drawSeries has cognitive complexity 67 (threshold 15). Drivers by points: loops 9 (38 pts), if/else 8 (21 pts), boolean chains 4, ternaries 1 (3 pts), other 1 (nesting depth added 44). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::initAxis (cognitive 61) src/uPlot.js:1450 — uPlot::initAxis has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 15 (31 pts), boolean chains 23, if/else 4 (7 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::cacheMouse (cognitive 49) src/uPlot.js:3825 — uPlot::cacheMouse has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 10 (24 pts), if/else 14 (20 pts), boolean chains 5 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::fillStroke (cognitive 46) src/uPlot.js:2191 — uPlot::fillStroke has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 11, ternaries 3 (7 pts), loops 2, other 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::initSeries (cognitive 32) src/uPlot.js:1316 — uPlot::initSeries has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (10 pts), ternaries 3 (6 pts), other 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::strokeFill (cognitive 30) src/uPlot.js:2250 — uPlot::strokeFill has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 12, other 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::drawSeriesPart (cognitive 28) src/uPlot.js:2100 — uPlot::drawSeriesPart has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 3 (9 pts), boolean chains 5 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::mouseUp (cognitive 27) src/uPlot.js:3951 — uPlot::mouseUp has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 9, loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::mouseLeave (cognitive 24) src/uPlot.js:4035 — uPlot::mouseLeave has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (6 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::resizeOverlays (cognitive 21) src/uPlot.js:2768 — uPlot::resizeOverlays has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, loops 2 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::rangeYScales (cognitive 20) src/uPlot.js:1021 — uPlot::rangeYScales has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (7 pts), other 2, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::setData (cognitive 17) src/uPlot.js:1670 — uPlot::setData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1 (2 pts), other 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::setCursorPointPos (cognitive 17) src/uPlot.js:3305 — uPlot::setCursorPointPos has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, other 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::syncCursorPointLegend (cognitive 16) src/uPlot.js:1279 — uPlot::syncCursorPointLegend has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (6 pts), if/else 4 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
  • uPlot::autoPadSide (cognitive 16) src/uPlot.js:1539 — uPlot::autoPadSide has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, ternaries 2 (4 pts), if/else 2 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D3 · God Classes · FunctionTooLong · ×15
  • FunctionTooLong: uPlot.uPlot src/uPlot.js:422 — FunctionTooLong — uPlot runs 2434 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2334 over it, 24.34× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: analyze-benchmarks-trace.createTraceAnalyzer scripts/analyze-benchmarks-trace.mjs:114 — FunctionTooLong — createTraceAnalyzer runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: benchmarks-paths-browser.runCase scripts/benchmarks-paths-browser.mjs:83 — FunctionTooLong — runCase runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: bench-webgl.createWebGLCapture scripts/bench-webgl.mjs:9 — FunctionTooLong — createWebGLCapture runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: benchmarks-samples.captureBenchmarkSamples scripts/benchmarks-samples.mjs:17 — FunctionTooLong — captureBenchmarkSamples runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: benchmarks-trace-browser.reportMetadata scripts/benchmarks-trace-browser.mjs:675 — FunctionTooLong — reportMetadata runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: opts.genTimeStuffs src/opts.js:83 — FunctionTooLong — genTimeStuffs runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: benchmarks-trace.captureBenchmarkTrace scripts/benchmarks-trace.mjs:59 — FunctionTooLong — captureBenchmarkTrace runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: investigate-g2-webgl-fill.sample scripts/investigate-g2-webgl-fill.mjs:46 — FunctionTooLong — sample runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: bars.bars src/paths/bars.js:35 — FunctionTooLong — bars runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: points.points src/paths/points.js:14 — FunctionTooLong — points runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: legend-dom-template.createLegendTemplate src/legend-dom-template.js:38 — FunctionTooLong — createLegendTemplate runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: bench-legend.benchmark scripts/bench-legend.mjs:19 — FunctionTooLong — benchmark runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: probe-worker.createProbeWorker scripts/probe-worker.mjs:4 — FunctionTooLong — createProbeWorker runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: bench-instrument.main scripts/bench-instrument.mjs:155 — FunctionTooLong — main runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D1 · Cyclomatic Complexity · uPlot.uPlot · ×11
  • uPlot.uPlot::updateCursor (cyclomatic 120) src/uPlot.js:3386 — uPlot.uPlot::updateCursor has cyclomatic complexity 120 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::initAxis (cyclomatic 48) src/uPlot.js:1450 — uPlot.uPlot::initAxis has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::drawAxesGrid (cyclomatic 45) src/uPlot.js:2443 — uPlot.uPlot::drawAxesGrid has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::_commit (cyclomatic 34) src/uPlot.js:2807 — uPlot.uPlot::_commit has cyclomatic complexity 34 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::cacheMouse (cyclomatic 26) src/uPlot.js:3825 — uPlot.uPlot::cacheMouse has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::mouseUp (cyclomatic 26) src/uPlot.js:3951 — uPlot.uPlot::mouseUp has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::updateLayout (cyclomatic 24) src/uPlot.js:1047 — uPlot.uPlot::updateLayout has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::initAxis, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::selectLegend (cyclomatic 21) src/uPlot.js:804 — uPlot.uPlot::selectLegend has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::updateLayout, uPlot.uPlot::initAxis, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::resizeOverlays (cyclomatic 17) src/uPlot.js:2768 — uPlot.uPlot::resizeOverlays has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::drawSeriesPart (cyclomatic 16) src/uPlot.js:2100 — uPlot.uPlot::drawSeriesPart has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::mouseLeave (cyclomatic 16) src/uPlot.js:4035 — uPlot.uPlot::mouseLeave has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot, uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D10 · Test Quality · Skipped test · ×11
  • Skipped test: paints changed cursor-derived focus in the same data commit test/cursor-focus.mjs:19 — Skipped — switched off by it.skip
  • Skipped test: delSeries preserves the shared cursor point when deleting a null point slot test/master-lifecycle-bugs.mjs:50 — Skipped — switched off by it.skip
  • Skipped test: delSeries accepts a custom cursor points.show returning no HTMLElement test/master-lifecycle-bugs.mjs:68 — Skipped — switched off by it.skip
  • Skipped test: delSeries clears focus opacity after deleting the focused Y series and committing matching data test/master-lifecycle-bugs.mjs:86 — Skipped — switched off by it.skip
  • Skipped test: destroy during a drag detaches the document mouseup listener test/master-lifecycle-bugs.mjs:136 — Skipped — switched off by it.skip
  • Skipped test: destroy in drawClear stops the active commit before subsequent paint or draw hooks test/master-lifecycle-bugs.mjs:180 — Skipped — switched off by it.skip
  • Skipped test: schedules later canvas work after a batch callback throws (deferHooks=${deferHooks}) test/master-scheduler-bugs.mjs:52 — Skipped — switched off by it.skip
  • Skipped test: restores ordinary hook delivery after a deferred batch callback throws test/master-scheduler-bugs.mjs:67 — Skipped — switched off by it.skip
  • Skipped test: preserves outer hook deferral across an inner nondeferred batch test/master-scheduler-bugs.mjs:79 — Skipped — switched off by it.skip
  • Skipped test: retains a cursor refresh requested by setData in a setCursor hook with unchanged ranges test/master-scheduler-bugs.mjs:100 — Skipped — switched off by it.skip
  • Skipped test: retains a legend refresh requested by setData in a setLegend hook with unchanged ranges test/master-scheduler-bugs.mjs:127 — Skipped — switched off by it.skip
D1 · Cyclomatic Complexity · uPlot · ×9
  • uPlot::setScales (cyclomatic 60) src/uPlot.js:1786 — uPlot::setScales has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • uPlot::initScale (cyclomatic 44) src/uPlot.js:569 — uPlot::initScale has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • uPlot::initSeries (cyclomatic 30) src/uPlot.js:1316 — uPlot::initSeries has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • uPlot::dataIdx (cyclomatic 29) src/uPlot.js:1177 — uPlot::dataIdx has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • uPlot::fillStroke (cyclomatic 29) src/uPlot.js:2191 — uPlot::fillStroke has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • uPlot::strokeFill (cyclomatic 28) src/uPlot.js:2250 — uPlot::strokeFill has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • uPlot::drawSeries (cyclomatic 23) src/uPlot.js:2006 — uPlot::drawSeries has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
  • uPlot::setCursorPointPos (cyclomatic 20) src/uPlot.js:3305 — uPlot::setCursorPointPos has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • uPlot::rangeYScales (cyclomatic 16) src/uPlot.js:1021 — uPlot::rangeYScales has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · uPlot.uPlot · ×6
  • uPlot.uPlot::drawAxesGrid (cognitive 115) src/uPlot.js:2443 — uPlot.uPlot::drawAxesGrid has cognitive complexity 115 (threshold 15). Drivers by points: ternaries 24 (75 pts), if/else 13 (30 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 72). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: 5 other methods here (uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, uPlot.uPlot::_commit, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::_commit (cognitive 30) src/uPlot.js:2807 — uPlot.uPlot::_commit has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 11, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: 5 other methods here (uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, uPlot.uPlot::drawAxesGrid, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::selectLegend (cognitive 25) src/uPlot.js:804 — uPlot.uPlot::selectLegend has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 9, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (uPlot.uPlot::updateLayout, uPlot.uPlot::drawAxesGrid, uPlot.uPlot::_commit, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::setRange (cognitive 23) src/uPlot.js:2931 — uPlot.uPlot::setRange has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, uPlot.uPlot::drawAxesGrid, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::updateLayout (cognitive 19) src/uPlot.js:1047 — uPlot.uPlot::updateLayout has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 5 other methods here (uPlot.uPlot::selectLegend, uPlot.uPlot::drawAxesGrid, uPlot.uPlot::_commit, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • uPlot.uPlot::setLegend (cognitive 18) src/uPlot.js:3249 — uPlot.uPlot::setLegend has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, uPlot.uPlot::drawAxesGrid, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
R4 · Test Coverage · This test file cannot be loaded · ×5
  • This test file cannot be loaded test/issue-demos.mjs:7 — test/issue-demos.mjs:7 imports '../demos/issues/', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded test/time-lazy.mjs:19 — test/time-lazy.mjs:19 imports './src/fmtDate.js', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded test/time-local.mjs:8 — test/time-local.mjs:8 imports './src/fmtDate.js', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded test/tooling/bench-dashboard-demo.mjs:103 — test/tooling/bench-dashboard-demo.mjs:103 imports '../../bench/dashboard/', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
  • This test file cannot be loaded test/tooling/instrument-estree-chains.mjs:8 — test/tooling/instrument-estree-chains.mjs:8 imports './estree-chains-fixture.js', which names no file in this repository — and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing.
D3 · God Classes · FileTooLong · ×4
  • FileTooLong: src/uPlot.js src/uPlot.js — FileTooLong — 2759 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 88% of them inside a single declaration: uPlot (422-4284). The bar is 500 significant lines; this is 2259 over it, 5.52× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: scripts/benchmarks-trace-browser.mjs scripts/benchmarks-trace-browser.mjs — FileTooLong — 691 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 191 over it, 1.38× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/opts.js src/opts.js — FileTooLong — 584 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 84 over it, 1.17× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/utils.js src/utils.js — FileTooLong — 531 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 31 over it, 1.06× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
R4 · Test Coverage · No test reaches this file · ×3
  • No test reaches this file scripts/audit-grafana-scales.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file scripts/investigate-g2-webgl-fill.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file scripts/investigate-webgpu.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
D1 · Cyclomatic Complexity · analyze-benchmarks-trace.createTraceAnalyzer · ×2
  • analyze-benchmarks-trace.createTraceAnalyzer::finish (cyclomatic 31) scripts/analyze-benchmarks-trace.mjs:190 — analyze-benchmarks-trace.createTraceAnalyzer::finish has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (analyze-benchmarks-trace.createTraceAnalyzer::push) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • analyze-benchmarks-trace.createTraceAnalyzer::push (cyclomatic 29) scripts/analyze-benchmarks-trace.mjs:146 — analyze-benchmarks-trace.createTraceAnalyzer::push has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (analyze-benchmarks-trace.createTraceAnalyzer::finish) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D10 · Test Quality · Fixed-sleep synchronisation · ×2
  • Fixed-sleep synchronisation: bounds a stalled ${phase} poll drain and skips destruction test/tooling/benchmarks-samples.mjs:2147 — This test starts work it did not wait for (`rejected`, still running when the sleep starts) and then orders itself against it with `delay(0)` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: SciChart: waits for native license validation, then still requires GPU completion test/integration/bench-scientific-adapters.mjs:246 — This test starts work it did not wait for (`pending`, still running when the sleep starts) and then orders itself against it with `new Promise(resolve => setTimeout(resolve, 70))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
D2 · Cognitive Complexity · analyze-benchmarks-trace.createTraceAnalyzer · ×2
  • analyze-benchmarks-trace.createTraceAnalyzer::finish (cognitive 38) scripts/analyze-benchmarks-trace.mjs:190 — analyze-benchmarks-trace.createTraceAnalyzer::finish has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 7, loops 5 (6 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (analyze-benchmarks-trace.createTraceAnalyzer::push) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • analyze-benchmarks-trace.createTraceAnalyzer::push (cognitive 28) scripts/analyze-benchmarks-trace.mjs:146 — analyze-benchmarks-trace.createTraceAnalyzer::push has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (analyze-benchmarks-trace.createTraceAnalyzer::finish) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
IC1 · Incompleteness & stubs · Hollow method · ×2
  • Hollow method — returns a constant without doing the work src/utils.js:426 — `retNull` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work src/utils.js:428 — `retTrue` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
R10 · Code Duplication · Duplicated block (10 lines × 2 locations) · ×2
  • Duplicated block (10 lines × 2 locations) src/opts.js:720 — src/opts.js:720 · src/opts.js:755 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) src/paths/spline.js:59 — src/paths/spline.js:59 · src/paths/stepped.js:82 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
D1 · Cyclomatic Complexity · benchmarks-trace-browser.validateChart (cyclomatic 103) · ×1
  • benchmarks-trace-browser.validateChart (cyclomatic 103) scripts/benchmarks-trace-browser.mjs:260 — benchmarks-trace-browser.validateChart has cyclomatic complexity 103 (threshold 15). Of this number, 97 points are the body's own statements and 6 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · uPlot.uPlot (cyclomatic 91) · ×1
  • uPlot.uPlot (cyclomatic 91) src/uPlot.js:422 — uPlot.uPlot has cyclomatic complexity 91 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 11 other methods here (uPlot.uPlot::selectLegend, uPlot.uPlot::updateLayout, uPlot.uPlot::initAxis, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · benchmarks-trace-browser.validateInput (cyclomatic 85) · ×1
  • benchmarks-trace-browser.validateInput (cyclomatic 85) scripts/benchmarks-trace-browser.mjs:154 — benchmarks-trace-browser.validateInput has cyclomatic complexity 85 (threshold 15). Of this number, 75 points are the body's own statements and 10 belong to 6 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · points.points (cyclomatic 65) · ×1
  • points.points (cyclomatic 65) src/paths/points.js:14 — points.points has cyclomatic complexity 65 (threshold 15). Most of this is not in the body itself: 3 of the 65 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 24, 76, 147, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · selectRangeY (cyclomatic 58) · ×1
  • selectRangeY (cyclomatic 58) src/rangeY.js:110 — selectRangeY has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bars (cyclomatic 57) · ×1
  • bars (cyclomatic 57) src/paths/bars.js:35 — bars has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 12 of the 57 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 64, a function literal at line 57, a function literal at line 61, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · benchmarks-samples.captureBenchmarkSamples (cyclomatic 55) · ×1
  • benchmarks-samples.captureBenchmarkSamples (cyclomatic 55) scripts/benchmarks-samples.mjs:17 — benchmarks-samples.captureBenchmarkSamples has cyclomatic complexity 55 (threshold 15). Of this number, 46 points are the body's own statements and 9 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-trace-browser.teardown (cyclomatic 54) · ×1
  • benchmarks-trace-browser.teardown (cyclomatic 54) scripts/benchmarks-trace-browser.mjs:358 — benchmarks-trace-browser.teardown has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-trace.captureBenchmarkTrace (cyclomatic 45) · ×1
  • benchmarks-trace.captureBenchmarkTrace (cyclomatic 45) scripts/benchmarks-trace.mjs:59 — benchmarks-trace.captureBenchmarkTrace has cyclomatic complexity 45 (threshold 15). Of this number, 39 points are the body's own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · benchmarks-paths-browser.runCase (cyclomatic 45) · ×1
  • benchmarks-paths-browser.runCase (cyclomatic 45) scripts/benchmarks-paths-browser.mjs:83 — benchmarks-paths-browser.runCase has cyclomatic complexity 45 (threshold 15). Of this number, 32 points are the body's own statements and 13 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-webgl.createWebGLCapture.complete (cyclomatic 43) · ×1
  • bench-webgl.createWebGLCapture.complete (cyclomatic 43) scripts/bench-webgl.mjs:97 — bench-webgl.createWebGLCapture.complete has cyclomatic complexity 43 (threshold 15). Of this number, 41 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TraceJSON.token (cyclomatic 39) · ×1
  • TraceJSON.token (cyclomatic 39) scripts/bench-trace-stream.mjs:81 — TraceJSON.token has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-suite.runBenchmarkSuite (cyclomatic 38) · ×1
  • benchmarks-suite.runBenchmarkSuite (cyclomatic 38) scripts/benchmarks-suite.mjs:347 — benchmarks-suite.runBenchmarkSuite has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · genTimeStuffs (cyclomatic 38) · ×1
  • genTimeStuffs (cyclomatic 38) src/opts.js:83 — genTimeStuffs has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 163, timeAxisSplits). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · linear (cyclomatic 38) · ×1
  • linear (cyclomatic 38) src/paths/linear.js:20 — linear has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 22, a function literal at line 21, (anonymous)::(anonymous)::pixelForX, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · investigate-g2-webgl-fill.sample (cyclomatic 37) · ×1
  • investigate-g2-webgl-fill.sample (cyclomatic 37) scripts/investigate-g2-webgl-fill.mjs:46 — investigate-g2-webgl-fill.sample has cyclomatic complexity 37 (threshold 15). Of this number, 17 points are the body's own statements and 20 belong to 11 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-mouse.installBenchmarkMouseInput (cyclomatic 34) · ×1
  • benchmarks-mouse.installBenchmarkMouseInput (cyclomatic 34) scripts/benchmarks-mouse.mjs:42 — benchmarks-mouse.installBenchmarkMouseInput has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 2 of the 34 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 79, listener, a function literal at line 53, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · bench-process-memory.readProcessMemory (cyclomatic 33) · ×1
  • bench-process-memory.readProcessMemory (cyclomatic 33) scripts/bench-process-memory.mjs:151 — bench-process-memory.readProcessMemory has cyclomatic complexity 33 (threshold 15). Of this number, 22 points are the body's own statements and 11 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · stepped (cyclomatic 31) · ×1
  • stepped (cyclomatic 31) src/paths/stepped.js:5 — stepped has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 14, a function literal at line 11, (anonymous)::(anonymous)::pixelForX, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · points · ×1
  • points::(anonymous)::(anonymous)::drawPoint (cyclomatic 30) src/paths/points.js:76 — points::(anonymous)::(anonymous)::drawPoint has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-module-bundle.bundleModuleDependencies (cyclomatic 29) · ×1
  • bench-module-bundle.bundleModuleDependencies (cyclomatic 29) scripts/bench-module-bundle.mjs:39 — bench-module-bundle.bundleModuleDependencies has cyclomatic complexity 29 (threshold 15). Of this number, 23 points are the body's own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-display.formatTable (cyclomatic 29) · ×1
  • benchmarks-display.formatTable (cyclomatic 29) scripts/benchmarks-display.mjs:105 — benchmarks-display.formatTable has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 3 of the 29 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 116, a function literal at line 126, line, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · bench-webgpu.createWebGPUCapture.complete (cyclomatic 28) · ×1
  • bench-webgpu.createWebGPUCapture.complete (cyclomatic 28) scripts/bench-webgpu.mjs:14 — bench-webgpu.createWebGPUCapture.complete has cyclomatic complexity 28 (threshold 15). Of this number, 20 points are the body's own statements and 8 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-demo-sources.loadBenchDemoSources (cyclomatic 28) · ×1
  • bench-demo-sources.loadBenchDemoSources (cyclomatic 28) scripts/bench-demo-sources.mjs:6 — bench-demo-sources.loadBenchDemoSources has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _rangeNum (cyclomatic 28) · ×1
  • _rangeNum (cyclomatic 28) src/utils.js:259 — _rangeNum has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-display.cellWidths (cyclomatic 27) · ×1
  • benchmarks-display.cellWidths (cyclomatic 27) scripts/benchmarks-display.mjs:11 — benchmarks-display.cellWidths has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · analyze-benchmarks-raf.summarizeBenchmarkRaf (cyclomatic 26) · ×1
  • analyze-benchmarks-raf.summarizeBenchmarkRaf (cyclomatic 26) scripts/analyze-benchmarks-raf.mjs:16 — analyze-benchmarks-raf.summarizeBenchmarkRaf has cyclomatic complexity 26 (threshold 15). Of this number, 15 points are the body's own statements and 11 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-phases.benchmarkOperations (cyclomatic 25) · ×1
  • benchmarks-phases.benchmarkOperations (cyclomatic 25) scripts/benchmarks-phases.mjs:26 — benchmarks-phases.benchmarkOperations has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cyclomatic 25) · ×1
  • analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cyclomatic 25) scripts/analyze-benchmarks-process-memory.mjs:111 — analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-browser-process.killBenchmarkBrowser (cyclomatic 25) · ×1
  • bench-browser-process.killBenchmarkBrowser (cyclomatic 25) scripts/bench-browser-process.mjs:11 — bench-browser-process.killBenchmarkBrowser has cyclomatic complexity 25 (threshold 15). Of this number, 22 points are the body's own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-suite.benchmarkView (cyclomatic 25) · ×1
  • benchmarks-suite.benchmarkView (cyclomatic 25) scripts/benchmarks-suite.mjs:116 — benchmarks-suite.benchmarkView has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · number-format-virtual.fmtNumEn (cyclomatic 24) · ×1
  • number-format-virtual.fmtNumEn (cyclomatic 24) docs/investigations/number-format-virtual.mjs:3 — number-format-virtual.fmtNumEn has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-heatmap-asinh.benchmark (cyclomatic 24) · ×1
  • bench-heatmap-asinh.benchmark (cyclomatic 24) scripts/bench-heatmap-asinh.mjs:146 — bench-heatmap-asinh.benchmark has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · scanScaleInternal · ×1
  • scanScaleInternal::acc (cyclomatic 24) src/uPlot.js:309 — scanScaleInternal::acc has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-heatmap-minmax.benchmark (cyclomatic 23) · ×1
  • bench-heatmap-minmax.benchmark (cyclomatic 23) REDACTED:192 — bench-heatmap-minmax.benchmark has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body's own statements and 8 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · number-format-structural-variants.directFixed (cyclomatic 22) · ×1
  • number-format-structural-variants.directFixed (cyclomatic 22) docs/investigations/number-format-structural-variants.mjs:63 — number-format-structural-variants.directFixed has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-legend.benchmark (cyclomatic 22) · ×1
  • bench-legend.benchmark (cyclomatic 22) scripts/bench-legend.mjs:19 — bench-legend.benchmark has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · benchmarks-suite.benchmarkView.rows (cyclomatic 22) · ×1
  • benchmarks-suite.benchmarkView.rows (cyclomatic 22) scripts/benchmarks-suite.mjs:131 — benchmarks-suite.benchmarkView.rows has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body's own statements and 7 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · number-format-en-baseline.fmtNumEn (cyclomatic 21) · ×1
  • number-format-en-baseline.fmtNumEn (cyclomatic 21) docs/investigations/number-format-en-baseline.mjs:3 — number-format-en-baseline.fmtNumEn has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-heatmap-grid.validate (cyclomatic 21) · ×1
  • bench-heatmap-grid.validate (cyclomatic 21) scripts/bench-heatmap-grid.mjs:120 — bench-heatmap-grid.validate has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · investigate-g2-webgl-fill.run (cyclomatic 21) · ×1
  • investigate-g2-webgl-fill.run (cyclomatic 21) scripts/investigate-g2-webgl-fill.mjs:219 — investigate-g2-webgl-fill.run has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.rangeAnchors (cyclomatic 20) · ×1
  • utils.rangeAnchors (cyclomatic 20) src/utils.js:190 — utils.rangeAnchors has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.fmtNumDec (cyclomatic 20) · ×1
  • utils.fmtNumDec (cyclomatic 20) src/utils.js:330 — utils.fmtNumDec has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · uPlot.scanScaleInternal (cyclomatic 20) · ×1
  • uPlot.scanScaleInternal (cyclomatic 20) src/uPlot.js:295 — uPlot.scanScaleInternal has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · number-format-en-611.fmtNumEn (cyclomatic 20) · ×1
  • number-format-en-611.fmtNumEn (cyclomatic 20) docs/investigations/number-format-en-611.mjs:3 — number-format-en-611.fmtNumEn has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · number-format-en.fmtNumEn (cyclomatic 20) · ×1
  • number-format-en.fmtNumEn (cyclomatic 20) docs/investigations/number-format-en.mjs:3 — number-format-en.fmtNumEn has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-heatmap-grid.runBenchmark (cyclomatic 20) · ×1
  • bench-heatmap-grid.runBenchmark (cyclomatic 20) scripts/bench-heatmap-grid.mjs:162 — bench-heatmap-grid.runBenchmark has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-heatmap-log-blocks.buildLog (cyclomatic 20) · ×1
  • bench-heatmap-log-blocks.buildLog (cyclomatic 20) REDACTED:15 — bench-heatmap-log-blocks.buildLog has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · analyze-benchmarks-process-memory.summarizeProcessMemory (cyclomatic 19) · ×1
  • analyze-benchmarks-process-memory.summarizeProcessMemory (cyclomatic 19) scripts/analyze-benchmarks-process-memory.mjs:210 — analyze-benchmarks-process-memory.summarizeProcessMemory has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · number-format-en-compact.fmtNumEn (cyclomatic 19) · ×1
  • number-format-en-compact.fmtNumEn (cyclomatic 19) docs/investigations/number-format-en-compact.mjs:2 — number-format-en-compact.fmtNumEn has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · utils.findGaps (cyclomatic 18) · ×1
  • utils.findGaps (cyclomatic 18) src/paths/utils.js:196 — utils.findGaps has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · benchmarks-phases.benchmarkTimingSamples (cyclomatic 18) · ×1
  • benchmarks-phases.benchmarkTimingSamples (cyclomatic 18) scripts/benchmarks-phases.mjs:61 — benchmarks-phases.benchmarkTimingSamples has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 68, 69). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · Tokens.write (cyclomatic 18) · ×1
  • Tokens.write (cyclomatic 18) scripts/bench-trace-stream.mjs:20 — Tokens.write has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · prepareRangeY (cyclomatic 18) · ×1
  • prepareRangeY (cyclomatic 18) src/rangeY.js:56 — prepareRangeY has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · splineInterp (cyclomatic 18) · ×1
  • splineInterp (cyclomatic 18) src/paths/spline.js:4 — splineInterp has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 4 function items inside it that branch (a function literal at line 6, a function literal at line 5, (anonymous)::(anonymous)::pixelForX, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · utils.join (cyclomatic 17) · ×1
  • utils.join (cyclomatic 17) src/utils.js:728 — utils.join has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bench-legend-browser.run (cyclomatic 17) · ×1
  • bench-legend-browser.run (cyclomatic 17) scripts/bench-legend-browser.js:91 — bench-legend-browser.run has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · probe-worker.createProbeWorker.start (cyclomatic 17) · ×1
  • probe-worker.createProbeWorker.start (cyclomatic 17) scripts/probe-worker.mjs:9 — probe-worker.createProbeWorker.start has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 65, a function literal at line 32, fail, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · bench-heatmap-grid.setup (cyclomatic 16) · ×1
  • bench-heatmap-grid.setup (cyclomatic 16) scripts/bench-heatmap-grid.mjs:62 — bench-heatmap-grid.setup has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · benchmarks-suite.assertCompatibleReports (cyclomatic 16) · ×1
  • benchmarks-suite.assertCompatibleReports (cyclomatic 16) scripts/benchmarks-suite.mjs:92 — benchmarks-suite.assertCompatibleReports has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · benchmarks-suite.summarizeSavedBenchmarks (cyclomatic 16) · ×1
  • benchmarks-suite.summarizeSavedBenchmarks (cyclomatic 16) scripts/benchmarks-suite.mjs:227 — benchmarks-suite.summarizeSavedBenchmarks has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · benchmarks-trace-browser.validateChart (cognitive 99) · ×1
  • benchmarks-trace-browser.validateChart (cognitive 99) scripts/benchmarks-trace-browser.mjs:260 — benchmarks-trace-browser.validateChart has cognitive complexity 99 (threshold 15). Drivers by points: if/else 28 (41 pts), boolean chains 38, ternaries 8 (18 pts), loops 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · selectRangeY (cognitive 99) · ×1
  • selectRangeY (cognitive 99) src/rangeY.js:110 — selectRangeY has cognitive complexity 99 (threshold 15). Drivers by points: if/else 24 (64 pts), boolean chains 16, ternaries 5 (14 pts), other 4, loops 1 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · uPlot (cognitive 98) · ×1
  • uPlot (cognitive 98) src/uPlot.js:422 — uPlot has cognitive complexity 98 (threshold 15). Drivers by points: if/else 483 (872 pts), ternaries 230 (569 pts), boolean chains 397, loops 54 (118 pts), other 29, match/switch 1 (nesting depth added 792). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · benchmarks-samples.captureBenchmarkSamples (cognitive 91) · ×1
  • benchmarks-samples.captureBenchmarkSamples (cognitive 91) scripts/benchmarks-samples.mjs:17 — benchmarks-samples.captureBenchmarkSamples has cognitive complexity 91 (threshold 15). Drivers by points: if/else 16 (43 pts), ternaries 9 (18 pts), boolean chains 12, error handling 3 (9 pts), loops 4 (9 pts) (nesting depth added 47). Of this number, 69 points are the body's own statements and 22 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-heatmap-asinh.benchmark (cognitive 87) · ×1
  • bench-heatmap-asinh.benchmark (cognitive 87) scripts/bench-heatmap-asinh.mjs:146 — bench-heatmap-asinh.benchmark has cognitive complexity 87 (threshold 15). Drivers by points: if/else 12 (42 pts), ternaries 6 (25 pts), loops 7 (19 pts), boolean chains 1 (nesting depth added 61). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · linear (cognitive 87) · ×1
  • linear (cognitive 87) src/paths/linear.js:20 — linear has cognitive complexity 87 (threshold 15). Drivers by points: if/else 25 (57 pts), ternaries 9 (21 pts), boolean chains 4, loops 2 (4 pts), other 1 (nesting depth added 46). None of this is in the body itself: all 87 points belong to 5 function items inside it that branch (a function literal at line 22, a function literal at line 21, (anonymous)::(anonymous)::pixelForX, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · benchmarks-trace-browser.validateInput (cognitive 81) · ×1
  • benchmarks-trace-browser.validateInput (cognitive 81) scripts/benchmarks-trace-browser.mjs:154 — benchmarks-trace-browser.validateInput has cognitive complexity 81 (threshold 15). Drivers by points: if/else 31 (46 pts), boolean chains 34, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · genTimeStuffs (cognitive 78) · ×1
  • genTimeStuffs (cognitive 78) src/opts.js:83 — genTimeStuffs has cognitive complexity 78 (threshold 15). Drivers by points: if/else 18 (44 pts), loops 8 (16 pts), ternaries 5 (11 pts), boolean chains 7 (nesting depth added 40). Most of this is not in the body itself: 1 of the 78 points is its own statement and the rest belongs to 2 function items inside it that branch (a function literal at line 163, timeAxisSplits). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · bars (cognitive 78) · ×1
  • bars (cognitive 78) src/paths/bars.js:35 — bars has cognitive complexity 78 (threshold 15). Drivers by points: ternaries 22 (31 pts), if/else 19 (30 pts), other 9, boolean chains 7, loops 1 (nesting depth added 20). Most of this is not in the body itself: 11 of the 78 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 64, a function literal at line 57, a function literal at line 61, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · points.points (cognitive 77) · ×1
  • points.points (cognitive 77) src/paths/points.js:14 — points.points has cognitive complexity 77 (threshold 15). Drivers by points: if/else 24 (38 pts), ternaries 19 (22 pts), boolean chains 15, loops 1 (2 pts) (nesting depth added 18). Most of this is not in the body itself: 2 of the 77 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 24, 76, 147, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · bench-webgl.createWebGLCapture.complete (cognitive 69) · ×1
  • bench-webgl.createWebGLCapture.complete (cognitive 69) scripts/bench-webgl.mjs:97 — bench-webgl.createWebGLCapture.complete has cognitive complexity 69 (threshold 15). Drivers by points: if/else 19 (33 pts), ternaries 8 (15 pts), error handling 4 (10 pts), loops 6 (7 pts), boolean chains 4 (nesting depth added 28). Of this number, 66 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-heatmap-grid.runBenchmark (cognitive 69) · ×1
  • bench-heatmap-grid.runBenchmark (cognitive 69) scripts/bench-heatmap-grid.mjs:162 — bench-heatmap-grid.runBenchmark has cognitive complexity 69 (threshold 15). Drivers by points: if/else 8 (33 pts), loops 8 (25 pts), ternaries 4 (11 pts) (nesting depth added 49). Of this number, 65 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-paths-browser.runCase (cognitive 64) · ×1
  • benchmarks-paths-browser.runCase (cognitive 64) scripts/benchmarks-paths-browser.mjs:83 — benchmarks-paths-browser.runCase has cognitive complexity 64 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 17 (23 pts), ternaries 4 (11 pts), boolean chains 5 (nesting depth added 24). Of this number, 54 points are the body's own statements and 10 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-demo-sources.loadBenchDemoSources (cognitive 61) · ×1
  • bench-demo-sources.loadBenchDemoSources (cognitive 61) scripts/bench-demo-sources.mjs:6 — bench-demo-sources.loadBenchDemoSources has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 9 (33 pts), if/else 8 (15 pts), loops 5 (9 pts), boolean chains 3, error handling 1 (nesting depth added 35). Of this number, 57 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-browser-process.killBenchmarkBrowser (cognitive 58) · ×1
  • bench-browser-process.killBenchmarkBrowser (cognitive 58) scripts/bench-browser-process.mjs:11 — bench-browser-process.killBenchmarkBrowser has cognitive complexity 58 (threshold 15). Drivers by points: if/else 14 (35 pts), error handling 5 (14 pts), loops 2 (6 pts), boolean chains 3 (nesting depth added 34). Of this number, 54 points are the body's own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-trace-browser.teardown (cognitive 56) · ×1
  • benchmarks-trace-browser.teardown (cognitive 56) scripts/benchmarks-trace-browser.mjs:358 — benchmarks-trace-browser.teardown has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (42 pts), boolean chains 14 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · analyze-benchmarks-raf.summarizeBenchmarkRaf (cognitive 53) · ×1
  • analyze-benchmarks-raf.summarizeBenchmarkRaf (cognitive 53) scripts/analyze-benchmarks-raf.mjs:16 — analyze-benchmarks-raf.summarizeBenchmarkRaf has cognitive complexity 53 (threshold 15). Drivers by points: if/else 13 (30 pts), ternaries 5 (11 pts), loops 4 (7 pts), boolean chains 5 (nesting depth added 26). Of this number, 26 points are the body's own statements and 27 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-heatmap-minmax.benchmark (cognitive 50) · ×1
  • bench-heatmap-minmax.benchmark (cognitive 50) REDACTED:192 — bench-heatmap-minmax.benchmark has cognitive complexity 50 (threshold 15). Drivers by points: loops 12 (25 pts), if/else 7 (15 pts), ternaries 3 (9 pts), boolean chains 1 (nesting depth added 27). Of this number, 31 points are the body's own statements and 19 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · TraceJSON.token (cognitive 49) · ×1
  • TraceJSON.token (cognitive 49) scripts/bench-trace-stream.mjs:81 — TraceJSON.token has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (32 pts), ternaries 4 (9 pts), boolean chains 8 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-suite.runBenchmarkSuite (cognitive 47) · ×1
  • benchmarks-suite.runBenchmarkSuite (cognitive 47) scripts/benchmarks-suite.mjs:347 — benchmarks-suite.runBenchmarkSuite has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 16 (25 pts), if/else 7 (12 pts), boolean chains 6, error handling 2 (3 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DateZoned.getDay (cognitive 45) · ×1
  • DateZoned.getDay (cognitive 45) src/fmtDate.js:260 — DateZoned.getDay has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 9 (45 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · benchmarks-trace.captureBenchmarkTrace (cognitive 45) · ×1
  • benchmarks-trace.captureBenchmarkTrace (cognitive 45) scripts/benchmarks-trace.mjs:59 — benchmarks-trace.captureBenchmarkTrace has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 9, loops 4 (6 pts), ternaries 5, error handling 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · bench-legend-browser.run (cognitive 43) · ×1
  • bench-legend-browser.run (cognitive 43) scripts/bench-legend-browser.js:91 — bench-legend-browser.run has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (11 pts), ternaries 2 (9 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · join (cognitive 43) · ×1
  • join (cognitive 43) src/utils.js:728 — join has cognitive complexity 43 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 6 (12 pts), ternaries 4 (10 pts) (nesting depth added 26). Of this number, 42 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · scanScaleInternal · ×1
  • scanScaleInternal::acc (cognitive 42) src/uPlot.js:309 — scanScaleInternal::acc has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 6, ternaries 1 (3 pts), other 2 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass's cognitive complexity CONCENTRATES: src/uPlot.js holds 21 of the 109 methods over the threshold — including the worst — and 899 of the 2812 points over it (32%), 4.6× the next-largest file (scripts/benchmarks-trace-browser.mjs at 195). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · mergeXVals (cognitive 41) · ×1
  • mergeXVals (cognitive 41) src/utils.js:661 — mergeXVals has cognitive complexity 41 (threshold 15). Drivers by points: loops 7 (22 pts), if/else 6 (17 pts), boolean chains 1, other 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · benchmarks-display.formatTable (cognitive 40) · ×1
  • benchmarks-display.formatTable (cognitive 40) scripts/benchmarks-display.mjs:105 — benchmarks-display.formatTable has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 9 (31 pts), boolean chains 9 (nesting depth added 22). Most of this is not in the body itself: 2 of the 40 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 116, line, a function literal at line 109, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · investigate-g2-webgl-fill.sample (cognitive 39) · ×1
  • investigate-g2-webgl-fill.sample (cognitive 39) scripts/investigate-g2-webgl-fill.mjs:46 — investigate-g2-webgl-fill.sample has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 8 (10 pts), boolean chains 7, ternaries 3, error handling 2 (nesting depth added 8). Of this number, 20 points are the body's own statements and 19 belong to 11 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · stepped (cognitive 39) · ×1
  • stepped (cognitive 39) src/paths/stepped.js:5 — stepped has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 9 (14 pts), boolean chains 6, other 4, loops 1 (nesting depth added 9). Most of this is not in the body itself: 3 of the 39 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 14, a function literal at line 11, (anonymous)::(anonymous)::pixelForX, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · uPlot.scanScaleInternal (cognitive 37) · ×1
  • uPlot.scanScaleInternal (cognitive 37) src/uPlot.js:295 — uPlot.scanScaleInternal has cognitive complexity 37 (threshold 15). Drivers by points: if/else 22 (50 pts), boolean chains 11, loops 3 (9 pts), ternaries 3 (4 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · benchmarks-mouse.installBenchmarkMouseInput (cognitive 35) · ×1
  • benchmarks-mouse.installBenchmarkMouseInput (cognitive 35) scripts/benchmarks-mouse.mjs:42 — benchmarks-mouse.installBenchmarkMouseInput has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 10, error handling 4, loops 3 (4 pts), ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 79, listener, a function literal at line 53, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · bench-webgpu.createWebGPUCapture.complete (cognitive 35) · ×1
  • bench-webgpu.createWebGPUCapture.complete (cognitive 35) scripts/bench-webgpu.mjs:14 — bench-webgpu.createWebGPUCapture.complete has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, error handling 2 (5 pts), loops 4 (5 pts), ternaries 2 (3 pts) (nesting depth added 11). Of this number, 29 points are the body's own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _rangeNum (cognitive 35) · ×1
  • _rangeNum (cognitive 35) src/utils.js:259 — _rangeNum has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (17 pts), other 10, boolean chains 4, ternaries 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · utils.findGaps (cognitive 34) · ×1
  • utils.findGaps (cognitive 34) src/paths/utils.js:196 — utils.findGaps has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 4 (9 pts), loops 3 (9 pts), boolean chains 5 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-process-memory.readProcessMemory (cognitive 34) · ×1
  • bench-process-memory.readProcessMemory (cognitive 34) scripts/bench-process-memory.mjs:151 — bench-process-memory.readProcessMemory has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 7, error handling 5, loops 3, ternaries 1 (nesting depth added 3). Of this number, 22 points are the body's own statements and 12 belong to 5 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · bench-heatmap-grid.validate (cognitive 34) · ×1
  • bench-heatmap-grid.validate (cognitive 34) scripts/bench-heatmap-grid.mjs:120 — bench-heatmap-grid.validate has cognitive complexity 34 (threshold 15). Drivers by points: loops 9 (14 pts), if/else 4 (11 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 16). Of this number, 33 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · points · ×1
  • points::(anonymous)::(anonymous)::drawPoint (cognitive 34) src/paths/points.js:76 — points::(anonymous)::(anonymous)::drawPoint has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 9, ternaries 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cognitive 33) · ×1
  • analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory (cognitive 33) scripts/analyze-benchmarks-process-memory.mjs:111 — analyze-benchmarks-process-memory.summarizeAdjustedProcessMemory has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 4, loops 3 (4 pts), ternaries 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-module-bundle.bundleModuleDependencies (cognitive 33) · ×1
  • bench-module-bundle.bundleModuleDependencies (cognitive 33) scripts/bench-module-bundle.mjs:39 — bench-module-bundle.bundleModuleDependencies has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (nesting depth added 11). Of this number, 19 points are the body's own statements and 14 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-join.previousJoin (cognitive 32) · ×1
  • bench-join.previousJoin (cognitive 32) scripts/bench-join.mjs:37 — bench-join.previousJoin has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 7 (12 pts), ternaries 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-suite.benchmarkView.rows (cognitive 32) · ×1
  • benchmarks-suite.benchmarkView.rows (cognitive 32) scripts/benchmarks-suite.mjs:131 — benchmarks-suite.benchmarkView.rows has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 5 (12 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 12). Of this number, 26 points are the body's own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · number-format-structural-variants.directFixed (cognitive 31) · ×1
  • number-format-structural-variants.directFixed (cognitive 31) docs/investigations/number-format-structural-variants.mjs:63 — number-format-structural-variants.directFixed has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, loops 3 (5 pts), ternaries 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-suite.benchmarkView (cognitive 31) · ×1
  • benchmarks-suite.benchmarkView (cognitive 31) scripts/benchmarks-suite.mjs:116 — benchmarks-suite.benchmarkView has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 12 (16 pts), boolean chains 6, if/else 3 (5 pts), loops 3 (4 pts) (nesting depth added 7). Of this number, 27 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · fmtNumDec (cognitive 28) · ×1
  • fmtNumDec (cognitive 28) src/utils.js:330 — fmtNumDec has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 6 (9 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-heatmap-log-blocks.buildLog (cognitive 27) · ×1
  • bench-heatmap-log-blocks.buildLog (cognitive 27) REDACTED:15 — bench-heatmap-log-blocks.buildLog has cognitive complexity 27 (threshold 15). Drivers by points: loops 5 (11 pts), boolean chains 6, if/else 3 (6 pts), ternaries 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · investigate-g2-webgl-fill.run (cognitive 27) · ×1
  • investigate-g2-webgl-fill.run (cognitive 27) scripts/investigate-g2-webgl-fill.mjs:219 — investigate-g2-webgl-fill.run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (6 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 12). Of this number, 24 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · number-format-en-611.fmtNumEn (cognitive 26) · ×1
  • number-format-en-611.fmtNumEn (cognitive 26) docs/investigations/number-format-en-611.mjs:3 — number-format-en-611.fmtNumEn has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (7 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · number-format-en-baseline.fmtNumEn (cognitive 26) · ×1
  • number-format-en-baseline.fmtNumEn (cognitive 26) docs/investigations/number-format-en-baseline.mjs:3 — number-format-en-baseline.fmtNumEn has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (7 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · number-format-en.fmtNumEn (cognitive 26) · ×1
  • number-format-en.fmtNumEn (cognitive 26) docs/investigations/number-format-en.mjs:3 — number-format-en.fmtNumEn has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (7 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · number-format-virtual.fmtNumEn (cognitive 26) · ×1
  • number-format-virtual.fmtNumEn (cognitive 26) docs/investigations/number-format-virtual.mjs:3 — number-format-virtual.fmtNumEn has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 4 (6 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Tokens.write (cognitive 26) · ×1
  • Tokens.write (cognitive 26) scripts/bench-trace-stream.mjs:20 — Tokens.write has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · number-format-en-compact.fmtNumEn (cognitive 22) · ×1
  • number-format-en-compact.fmtNumEn (cognitive 22) docs/investigations/number-format-en-compact.mjs:2 — number-format-en-compact.fmtNumEn has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (7 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · getMinMax (cognitive 22) · ×1
  • getMinMax (cognitive 22) src/utils.js:54 — getMinMax has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (3 pts), other 2, ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmark-d3-shared-probe.snapshot (cognitive 21) · ×1
  • benchmark-d3-shared-probe.snapshot (cognitive 21) docs/investigations/benchmark-d3-shared-probe.mjs:91 — benchmark-d3-shared-probe.snapshot has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts), boolean chains 3, ternaries 2 (nesting depth added 10). Of this number, 20 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-instrument.worker (cognitive 21) · ×1
  • bench-instrument.worker (cognitive 21) scripts/bench-instrument.mjs:88 — bench-instrument.worker has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 4, ternaries 1 (3 pts), boolean chains 1 (nesting depth added 10). Of this number, 16 points are the body's own statements and 5 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · splineInterp (cognitive 21) · ×1
  • splineInterp (cognitive 21) src/paths/spline.js:4 — splineInterp has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 5 (8 pts), boolean chains 2, loops 1, other 1 (nesting depth added 4). None of this is in the body itself: all 21 points belong to 4 function items inside it that branch (a function literal at line 6, a function literal at line 5, (anonymous)::(anonymous)::pixelForX, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · analyze-benchmarks-process-memory.summarizeProcessMemory (cognitive 20) · ×1
  • analyze-benchmarks-process-memory.summarizeProcessMemory (cognitive 20) scripts/analyze-benchmarks-process-memory.mjs:210 — analyze-benchmarks-process-memory.summarizeProcessMemory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, ternaries 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-heatmap-asinh.fixture (cognitive 20) · ×1
  • bench-heatmap-asinh.fixture (cognitive 20) scripts/bench-heatmap-asinh.mjs:55 — bench-heatmap-asinh.fixture has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (12 pts), ternaries 4 (6 pts), boolean chains 1, if/else 1 (nesting depth added 9). Of this number, 16 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · benchmarks.server (cognitive 20) · ×1
  • benchmarks.server (cognitive 20) scripts/benchmarks.mjs:315 — benchmarks.server has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (12 pts), if/else 5 (6 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · utils.rangeAnchors (cognitive 19) · ×1
  • utils.rangeAnchors (cognitive 19) src/utils.js:190 — utils.rangeAnchors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, ternaries 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-heatmap-minmax.fixture (cognitive 19) · ×1
  • bench-heatmap-minmax.fixture (cognitive 19) REDACTED:100 — bench-heatmap-minmax.fixture has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (11 pts), ternaries 4 (6 pts), boolean chains 1, if/else 1 (nesting depth added 9). Of this number, 15 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · benchmarks-trace-browser.runBenchmarkTrace (cognitive 19) · ×1
  • benchmarks-trace-browser.runBenchmarkTrace (cognitive 19) scripts/benchmarks-trace-browser.mjs:629 — benchmarks-trace-browser.runBenchmarkTrace has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 3 (7 pts), ternaries 1 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · prepareRangeY (cognitive 19) · ×1
  • prepareRangeY (cognitive 19) src/rangeY.js:56 — prepareRangeY has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, ternaries 1 (2 pts), other 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · monotoneCubic._monotoneCubic (cognitive 18) · ×1
  • monotoneCubic._monotoneCubic (cognitive 18) src/paths/monotoneCubic.js:9 — monotoneCubic._monotoneCubic has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-process-memory.aggregateProcessMemory (cognitive 18) · ×1
  • bench-process-memory.aggregateProcessMemory (cognitive 18) scripts/bench-process-memory.mjs:106 — bench-process-memory.aggregateProcessMemory has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-phases.benchmarkOperations (cognitive 18) · ×1
  • benchmarks-phases.benchmarkOperations (cognitive 18) scripts/benchmarks-phases.mjs:26 — benchmarks-phases.benchmarkOperations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · number-format-iteration.benchmark (cognitive 18) · ×1
  • number-format-iteration.benchmark (cognitive 18) docs/investigations/number-format-iteration.mjs:10 — number-format-iteration.benchmark has cognitive complexity 18 (threshold 15). Drivers by points: loops 7 (14 pts), if/else 1 (4 pts) (nesting depth added 10). Of this number, 15 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · bench-hover.server (cognitive 18) · ×1
  • bench-hover.server (cognitive 18) scripts/bench-hover.mjs:35 — bench-hover.server has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 2 (5 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · bench-legend.benchmark (cognitive 18) · ×1
  • bench-legend.benchmark (cognitive 18) scripts/bench-legend.mjs:19 — bench-legend.benchmark has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, error handling 2 (3 pts), loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · demos.server (cognitive 18) · ×1
  • demos.server (cognitive 18) scripts/demos.mjs:28 — demos.server has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (6 pts), boolean chains 4, error handling 1 (nesting depth added 4). Of this number, 17 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · keyed-list.createKeyedList.update (cognitive 17) · ×1
  • keyed-list.createKeyedList.update (cognitive 17) src/keyed-list.js:21 — keyed-list.createKeyedList.update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-display.cellWidths (cognitive 17) · ×1
  • benchmarks-display.cellWidths (cognitive 17) scripts/benchmarks-display.mjs:11 — benchmarks-display.cellWidths has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · benchmarks-suite.summarizeSavedBenchmarks (cognitive 17) · ×1
  • benchmarks-suite.summarizeSavedBenchmarks (cognitive 17) scripts/benchmarks-suite.mjs:227 — benchmarks-suite.summarizeSavedBenchmarks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · logAxisSplits (cognitive 17) · ×1
  • logAxisSplits (cognitive 17) src/opts.js:640 — logAxisSplits has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · genIncrs (cognitive 17) · ×1
  • genIncrs (cognitive 17) src/utils.js:528 — genIncrs has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (14 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · createLegendTemplate.prepare (cognitive 17) · ×1
  • createLegendTemplate.prepare (cognitive 17) src/legend-dom-template.js:98 — createLegendTemplate.prepare has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (6 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · utils.copy (cognitive 16) · ×1
  • utils.copy (cognitive 16) src/utils.js:591 — utils.copy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · h.h (cognitive 16) · ×1
  • h.h (cognitive 16) src/h.js:5 — h.h has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · catmullRomCentrip.catmullRomFitting (cognitive 16) · ×1
  • catmullRomCentrip.catmullRomFitting (cognitive 16) src/paths/catmullRomCentrip.js:17 — catmullRomCentrip.catmullRomFitting has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-hover-browser.runCase (cognitive 16) · ×1
  • bench-hover-browser.runCase (cognitive 16) scripts/bench-hover-browser.mjs:58 — bench-hover-browser.runCase has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), ternaries 2 (5 pts), if/else 1 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-suite.assertCompatibleReports (cognitive 16) · ×1
  • benchmarks-suite.assertCompatibleReports (cognitive 16) scripts/benchmarks-suite.mjs:92 — benchmarks-suite.assertCompatibleReports has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · benchmarks-suite.runWorker (cognitive 16) · ×1
  • benchmarks-suite.runWorker (cognitive 16) scripts/benchmarks-suite.mjs:272 — benchmarks-suite.runWorker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, error handling 2, loops 1 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 6 function literals inside it that branch (lines 329, 290, 276, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D3 · God Classes · ClassTooLong · ×1
  • ClassTooLong: uPlot src/uPlot.js:1 — ClassTooLong — 2434 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 2034 over it, 6.09× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D6 · Cohesion (LCOM4) · Low cohesion · ×1
  • Low cohesion: Element (LCOM4 5) test/tooling/bench-dashboard-lifecycle.mjs:17 — Element's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
IC1 · Incompleteness & stubs · Comparison is always false · ×1
  • Comparison is always false — nothing compares equal to NaN REDACTED:277 — `<` against NaN is false for every value, including NaN itself. Use `Number.isNaN(…)` — the test that was intended.
P1 · CI/CD gates · No CI pipeline · ×1
  • No CI pipeline — No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
P2 · Observability · No structured logging · ×1
  • No structured logging — No logging call was found in the 42 JavaScript/TypeScript production file(s) this check read across 1 module(s). Each was searched for its ecosystem's logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.
R1 · Type Safety · Type Safety · ×1
  • Type Safety — 2 typed · 174 plain JS — the untyped files are scripts/audit-grafana-scales.mjs, scripts/chrome-headless-shell.mjs, scripts/coverage-files.mjs, scripts/demoSteps.mjs, scripts/demos.mjs, scripts/instrument-source.mjs (+168 more).
R10 · Code Duplication · Duplicated block with local edits (48 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (48 matched lines × 2 locations) src/paths/linear.js:22 — src/paths/linear.js:22 · src/paths/spline.js:6 — the two spans are one implementation copied and then locally edited — 465 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (43 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (43 matched lines × 2 locations) scripts/patch-bokeh-highp.mjs:66 — scripts/patch-bokeh-highp.mjs:66 · scripts/patch-echarts-heatmap.mjs:37 — the two spans are one implementation copied and then locally edited — 332 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (14 lines × 2 locations) · ×1
  • Duplicated block (14 lines × 2 locations) src/uPlot.js:3623 — src/uPlot.js:3623 · src/uPlot.js:3643 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (12 lines × 2 locations) · ×1
  • Duplicated block (12 lines × 2 locations) src/uPlot.js:3704 — src/uPlot.js:3704 · src/uPlot.js:3720 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (9 lines × 2 locations) · ×1
  • Duplicated block (9 lines × 2 locations) scripts/investigate-g2-webgl-fill.mjs:245 — scripts/investigate-g2-webgl-fill.mjs:245 · scripts/investigate-webgpu.mjs:117 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block with local edits (6 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (6 matched lines × 2 locations) src/paths/bars.js:59 — src/paths/bars.js:59 · src/paths/stepped.js:9 — the two spans are one implementation copied and then locally edited — 60 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (6 lines × 2 locations) · ×1
  • Duplicated block (6 lines × 2 locations) src/paths/linear.js:130 — src/paths/linear.js:130 · src/paths/stepped.js:80 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (5 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (5 matched lines × 2 locations) src/paths/disp.js:65 — src/paths/disp.js:65 · src/paths/points.js:30 — the two spans are one implementation copied and then locally edited — 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R2 · Cyclomatic Complexity · Complex function updateCursor (cyclomatic 120, cognitive 329) · ×1
  • Complex function updateCursor (cyclomatic 120, cognitive 329) src/uPlot.js:3386 — updateCursor has cyclomatic complexity 120 and cognitive complexity 329; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function uPlot (cyclomatic 88, cognitive 98) · ×1
  • Complex function uPlot (cyclomatic 88, cognitive 98) src/uPlot.js:422 — uPlot has cyclomatic complexity 88 and cognitive complexity 98; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function setScales (cyclomatic 60, cognitive 102) · ×1
  • Complex function setScales (cyclomatic 60, cognitive 102) src/uPlot.js:1786 — setScales has cyclomatic complexity 60 and cognitive complexity 102; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function selectRangeY (cyclomatic 58, cognitive 99) · ×1
  • Complex function selectRangeY (cyclomatic 58, cognitive 99) src/rangeY.js:110 — selectRangeY has cyclomatic complexity 58 and cognitive complexity 99; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function generateHeatmapCells (cyclomatic 48, cognitive 85) · ×1
  • Complex function generateHeatmapCells (cyclomatic 48, cognitive 85) demos/lib/heatmapCellsData.js:3 — generateHeatmapCells has cyclomatic complexity 48 and cognitive complexity 85; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function initAxis (cyclomatic 48, cognitive 61) · ×1
  • Complex function initAxis (cyclomatic 48, cognitive 61) src/uPlot.js:1450 — initAxis has cyclomatic complexity 48 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 46, cognitive 67) · ×1
  • Complex function (anonymous) (cyclomatic 46, cognitive 67) src/paths/bars.js:64 — (anonymous) has cyclomatic complexity 46 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function drawAxesGrid (cyclomatic 45, cognitive 109) · ×1
  • Complex function drawAxesGrid (cyclomatic 45, cognitive 109) src/uPlot.js:2443 — drawAxesGrid has cyclomatic complexity 45 and cognitive complexity 109; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function initScale (cyclomatic 44, cognitive 100) · ×1
  • Complex function initScale (cyclomatic 44, cognitive 100) src/uPlot.js:569 — initScale has cyclomatic complexity 44 and cognitive complexity 100; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 38, cognitive 87) · ×1
  • Complex function (anonymous) (cyclomatic 38, cognitive 87) src/paths/linear.js:22 — (anonymous) has cyclomatic complexity 38 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function draw (cyclomatic 37, cognitive 81) · ×1
  • Complex function draw (cyclomatic 37, cognitive 81) demos/lib/barValues.js:203 — draw has cyclomatic complexity 37 and cognitive complexity 81; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 37, cognitive 77) · ×1
  • Complex function (anonymous) (cyclomatic 37, cognitive 77) src/opts.js:163 — (anonymous) has cyclomatic complexity 37 and cognitive complexity 77; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 35, cognitive 39) · ×1
  • Complex function (anonymous) (cyclomatic 35, cognitive 39) src/paths/points.js:24 — (anonymous) has cyclomatic complexity 35 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _commit (cyclomatic 34, cognitive 30) · ×1
  • Complex function _commit (cyclomatic 34, cognitive 30) src/uPlot.js:2807 — _commit has cyclomatic complexity 34 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function detect (cyclomatic 33, cognitive 53) · ×1
  • Complex function detect (cyclomatic 33, cognitive 53) demos/lib/dbscan1d.js:34 — detect has cyclomatic complexity 33 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function opts (cyclomatic 32, cognitive 37) · ×1
  • Complex function opts (cyclomatic 32, cognitive 37) demos/lib/barChartPlugin.js:274 — opts has cyclomatic complexity 32 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function drawPoint (cyclomatic 30, cognitive 34) · ×1
  • Complex function drawPoint (cyclomatic 30, cognitive 34) src/paths/points.js:76 — drawPoint has cyclomatic complexity 30 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function initSeries (cyclomatic 30, cognitive 32) · ×1
  • Complex function initSeries (cyclomatic 30, cognitive 32) src/uPlot.js:1316 — initSeries has cyclomatic complexity 30 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function dataIdx (cyclomatic 29, cognitive 72) · ×1
  • Complex function dataIdx (cyclomatic 29, cognitive 72) src/uPlot.js:1177 — dataIdx has cyclomatic complexity 29 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function assertDrawing (cyclomatic 29, cognitive 70) · ×1
  • Complex function assertDrawing (cyclomatic 29, cognitive 70) test/high-low-bands-toggle.mjs:6 — assertDrawing has cyclomatic complexity 29 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · src/uPlot.js · ×1
  • src/uPlot.js: 3444 lines of code src/uPlot.js:1 — src/uPlot.js has 3444 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · src/opts.js · ×1
  • src/opts.js: 739 lines of code src/opts.js:1 — src/opts.js has 739 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · src/utils.js · ×1
  • src/utils.js: 679 lines of code src/utils.js:1 — src/utils.js has 679 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R6 · Tooling · The declared test suite includes a file that cannot be loaded · ×1
  • The declared test suite includes a file that cannot be loaded test/issue-demos.mjs:7 — This repository declares test tooling, and the ✓ above records that declaration — but test/issue-demos.mjs and 4 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) — each one is reported with its failing import under Test Coverage — then the declared script exercises what it claims to.
R7 · Dead Code · Dead file (~380 LoC) · ×1
  • Dead file (~380 LoC) scripts/benchmarks-paths-browser.mjs — no import path from any entry point (235 application, 1 tooling, 200 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~149 LoC) · ×1
  • Dead file (~149 LoC) scripts/bench-join.mjs — no import path from any entry point (235 application, 1 tooling, 200 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
X2 · Cancellation propagation · Async function without AbortSignal · ×1
  • Async function without AbortSignal: post scripts/benchmarks-paths-browser.mjs:12 — `post` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×1
  • Swallowed exception (caught, then discarded) scripts/benchmarks-mouse.mjs:65 — `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Minor — 60 finding(s)
IC1 · Incompleteness & stubs · Disabled test · ×11
  • Disabled test test/cursor-focus.mjs:19 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-lifecycle-bugs.mjs:50 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-lifecycle-bugs.mjs:68 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-lifecycle-bugs.mjs:86 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-lifecycle-bugs.mjs:136 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-lifecycle-bugs.mjs:180 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-scheduler-bugs.mjs:52 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-scheduler-bugs.mjs:67 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-scheduler-bugs.mjs:79 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-scheduler-bugs.mjs:100 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test test/master-scheduler-bugs.mjs:127 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
X10 · Duplicated predicate · Duplicated predicate · ×4
  • Duplicated predicate scripts/bench-sample-timeout.mjs:7 — `!Number.isFinite(timeoutMs) || timeoutMs <= 0` appears character-identically in 2 files — scripts/bench-sample-timeout.mjs, scripts/bench-webgpu.mjs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate scripts/bench-browser-process.mjs:18 — `!Number.isSafeInteger(rootPid) || rootPid <= 0` appears character-identically in 2 files — scripts/bench-browser-process.mjs, scripts/bench-process-memory.mjs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate docs/investigations/benchmark-d3-memory-rerun.mjs:44 — `!dependency.type || dependency.type === 'script' || dependency.type === 'style'` appears character-identically in 2 files — docs/investigations/benchmark-d3-memory-rerun.mjs, docs/investigations/benchmark-d3-residual-rerun.mjs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate scripts/investigate-g2-webgl-fill.mjs:347 — `browser && browser.exitCode === null && browser.signalCode === null` appears character-identically in 2 files — scripts/investigate-g2-webgl-fill.mjs, scripts/investigate-webgpu.mjs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
R7 · Dead Code · Unused module-local declaration 'opts' · ×2
  • Unused module-local declaration 'opts' test/legend-selection-types.ts:20 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
  • Unused module-local declaration 'opts' test/scale-scan-types.ts:63 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `(repository root)` (43708 LoC, 405 module-visible types across 9 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
IC1 · Incompleteness & stubs · Empty method body · ×1
  • Empty method body scripts/audit-grafana-scales.mjs:140 — `flush` has an empty body — confirm it's an intentional no-op and not an unfinished method.
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M2 · Architecture documentation · No architecture diagram/doc · ×1
  • No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/javascript`, or eslint-plugin-security — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation package.json:57 — `package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
P6 · Release Hygiene · No changelog · ×1
  • No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
R7 · Dead Code · Unused module-local declaration 'fmtUSD' · ×1
  • Unused module-local declaration 'fmtUSD' demos/high-low-bands.js:3 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'palette' · ×1
  • Unused module-local declaration 'palette' demos/line-paths.js:69 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'data0' · ×1
  • Unused module-local declaration 'data0' demos/timezones-dst.js:19 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'leapYear' · ×1
  • Unused module-local declaration 'leapYear' src/fmtDate.js:289 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'mkDate' · ×1
  • Unused module-local declaration 'mkDate' src/opts.js:376 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'invalidMode' · ×1
  • Unused module-local declaration 'invalidMode' test/legend-selection-types.ts:47 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'invalidSide' · ×1
  • Unused module-local declaration 'invalidSide' test/legend-selection-types.ts:49 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'invalidFilter' · ×1
  • Unused module-local declaration 'invalidFilter' test/legend-selection-types.ts:52 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'invalidSort' · ×1
  • Unused module-local declaration 'invalidSort' test/legend-selection-types.ts:54 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'invalidLimit' · ×1
  • Unused module-local declaration 'invalidLimit' test/legend-selection-types.ts:56 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'invalidBounds' · ×1
  • Unused module-local declaration 'invalidBounds' test/legend-selection-types.ts:58 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'enabled' · ×1
  • Unused module-local declaration 'enabled' test/scale-scan-types.ts:15 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'disabled' · ×1
  • Unused module-local declaration 'disabled' test/scale-scan-types.ts:16 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'defaultConfig' · ×1
  • Unused module-local declaration 'defaultConfig' test/scale-scan-types.ts:18 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'undefinedCutoff' · ×1
  • Unused module-local declaration 'undefinedCutoff' test/scale-scan-types.ts:19 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'config' · ×1
  • Unused module-local declaration 'config' test/scale-scan-types.ts:20 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'configuredAsinhScale' · ×1
  • Unused module-local declaration 'configuredAsinhScale' test/scale-scan-types.ts:21 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'ScanCutoff' · ×1
  • Unused module-local declaration 'ScanCutoff' test/scale-scan-types.ts:22 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'stringCutoff' · ×1
  • Unused module-local declaration 'stringCutoff' test/scale-scan-types.ts:24 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'nullCutoff' · ×1
  • Unused module-local declaration 'nullCutoff' test/scale-scan-types.ts:26 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'obsoleteCutoff' · ×1
  • Unused module-local declaration 'obsoleteCutoff' test/scale-scan-types.ts:28 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'empty' · ×1
  • Unused module-local declaration 'empty' test/scale-scan-types.ts:29 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'asinhScale' · ×1
  • Unused module-local declaration 'asinhScale' test/scale-scan-types.ts:39 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'noQualifyingAsinhScale' · ×1
  • Unused module-local declaration 'noQualifyingAsinhScale' test/scale-scan-types.ts:40 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'ScanMinAbs' · ×1
  • Unused module-local declaration 'ScanMinAbs' test/scale-scan-types.ts:41 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'SeriesMinAbs' · ×1
  • Unused module-local declaration 'SeriesMinAbs' test/scale-scan-types.ts:42 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'FacetMinAbs' · ×1
  • Unused module-local declaration 'FacetMinAbs' test/scale-scan-types.ts:43 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'SeriesHasNoPrivateMinAbs' · ×1
  • Unused module-local declaration 'SeriesHasNoPrivateMinAbs' test/scale-scan-types.ts:44 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'FacetHasNoPrivateMinAbs' · ×1
  • Unused module-local declaration 'FacetHasNoPrivateMinAbs' test/scale-scan-types.ts:45 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'ScaleHasNoMinAbsCache' · ×1
  • Unused module-local declaration 'ScaleHasNoMinAbsCache' test/scale-scan-types.ts:46 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'stringSeriesMinAbs' · ×1
  • Unused module-local declaration 'stringSeriesMinAbs' test/scale-scan-types.ts:57 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'stringFacetMinAbs' · ×1
  • Unused module-local declaration 'stringFacetMinAbs' test/scale-scan-types.ts:59 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'scaleMinAbs' · ×1
  • Unused module-local declaration 'scaleMinAbs' test/scale-scan-types.ts:61 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'SeriesScan' · ×1
  • Unused module-local declaration 'SeriesScan' test/scale-scan-types.ts:102 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'SeriesAuto' · ×1
  • Unused module-local declaration 'SeriesAuto' test/scale-scan-types.ts:103 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
X2 · Cancellation propagation · Not all async functions that make a request accept an AbortSignal · ×1
  • Not all async functions that make a request accept an AbortSignal — Only 5/6 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
Minor — 13 finding(s)
D10 · Test Quality · Skipped (documented) · ×12
  • Skipped (documented): releases raw, cumulative, baseline, and options data with the chart retained (typed=${typed}) test/destroy.mjs:342 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): preserves input focus, value, and selection with native moveBefore test/keyed-list.mjs:225 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): kills a real root, child, and grandchild without killing an unrelated sibling test/tooling/bench-browser-process.mjs:203 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): (unnamed test) test/tooling/benchmarks-trace.mjs:710 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
  • Skipped (documented): releases the detached root when the destroyed demo is retained test/plugins/axis-label-rotation-demo.mjs:1996 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): releases stack groups and custom bar options when the destroyed plugin is retained test/plugins/bar-chart-plugin.mjs:1623 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): releases native percent baselines and groups when the destroyed helper is retained test/plugins/bar-values.mjs:1037 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): probes hardware, then renders fresh 200-row and 55,550-row charts within 5s each test/integration/bench-chartgpu-browser.mjs:221 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): checks native readiness, full paths, axes, fences and teardown at DPR 1 and 2 within 5s per sample test/integration/bench-deckgl-browser.mjs:229 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): matches an available generated GL bundle and preserves every other byte of upstream source test/integration/patch-bokeh-highp.mjs:19 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): disables rectangle incremental flags in the generated library without breaking progressive rendering test/integration/patch-echarts-heatmap.mjs:8 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): compares native Auto, MinMax and None without changing native budgets test/integration/scichart-reduction-browser.mjs:289 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
D12 · Dependency Hygiene · Dependency hygiene PARTLY measured · ×1
  • Dependency hygiene PARTLY measured — npm pinning read, dependency currency not (the committed lockfile resolved no direct production dependency) — This repository's npm dependencies were read for PINNING discipline: 0 production declaration(s) plus 12 development one(s) across 1 package.json (1 of them the product — the rest are example, documentation or fixture manifests, which are read and counted but screened off the rules below, because both prescribe a MOVE and "align your example apps" is not a remedy), against 2 committed lockfile(s). No pinning defect was found. That is only PART of dependency hygiene, so this dimension is NOT SCORED: whether any of these packages has a newer, deprecated or abandoned release is the dependency-CURRENCY question, and answering it needs concrete resolved versions. This repository's committed lockfile WAS read and it resolves no direct production dependency to grade — a package.json states version RANGES, which name no particular release to be behind. That is a fact about this repository, not a reader we are missing. A clean pinning pass is NOT an all-clear for these dependencies, and it is not a finding that they are all USED. Note also what is deliberately NOT charged here: a workspace legitimately carries ONE lockfile for many manifests, so no row is raised off the lockfile count, only reported. Known CVEs in the same dependency graph are a separate question again, reported under D30 wherever the manifest is OSV-readable.

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-19888aaf217b47ef8ab22f0ab8b0ddae/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-19888aaf217b47ef8ab22f0ab8b0ddae/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .9artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.0—
D36 · Supply-chain Provenance & Signingprovenance—provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0artifacts/raw/trivy-fs.json

Run 01a18aa2-5ee1-7ed8-90d0-e217a7fd6995 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md