Public report of Ebony-Vinyl/EAC-Desktop, published 17 November 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.11.4). Assert 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, 17 November 2026, 01:22 UTC · Survey ID cd_bd3525944f71481c8af515cb40789d39

Ebony-Vinyl/EAC-Desktop

Measured 17 November 2026, 01:20 UTC, at code version dbbf094

First survey, so nothing to compare with yet
CAI score 32.8out of 100 At risk

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 large codebase: 139,138 lines of product code in 37 projects, tests not counted · Estimated rebuild effort: about 0.9 person-years · Weakest lens: Security and Compliance, 21.5

Findings by how serious they are

86 critical 1489 serious 140 minor

8 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look 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

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 01:20 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 the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

The score is deterministic, which means the same code always gets the same score. We work 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 ▸

79of 79 dimensions measured by tools.
1694of 1715 findings point to an exact file and line, so you can open each one in the code. The other 21 concern the repository as a whole, such as missing documentation.
79dimensions across 7 lenses, read from 139,138 lines of product code in 37 projects.
Chapters

Executive summary

Ebony-Vinyl/EAC-Desktop is rated At risk because critical security findings are open. Its score is held back in part because six of the dependencies have a known vulnerability. It scores 32.8 out of 100, which the At risk rating leaves unchanged.

Security and Compliance, at 21.5, is the weakest lens and counts most in the score. The best first step is replacing the six passwords or keys found in the code's history, worth about 4.7 points. Fixing the package with a known security hole would lift Security and Compliance itself, worth about 1.8 points. Raising Security and Compliance to 70 would lift the score to about 42.6.

Eleven pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Seven known security holes in the packages the code depends on can be used by attackers, and thirty-seven form fields can't be read by a screen reader. Pinning each tool to an exact version, updating the vulnerable packages and labelling the form fields would close these risks. The six passwords or keys in the code's history need replacing, with the old ones switched off. The 19 uses of packages that aren't listed need adding to the project's list of dependencies.

The product code is 139,138 lines, about €130,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.
Security and Compliance 21.5 · counts for 46%Production Readiness 35.3 · counts for 25%Code Health 37.5 · counts for 14%Accessibility 54.0 · counts for 8%Performance 60.0 · counts for 4%Maturity 62.7 · counts for 2%Architecture 67.7 · counts for 1%

If Security and Compliance rose from 21.5 to 70, the lowest score rated Strong, the score would rise from 32.8 to about 42.6.

Code composition: what the lines of code are
Product code 90%Tests 10%
Rebuild cost: about €130,000 · Estimate
Cost to rebuild€44,000 to €220,000, for 728 to 2,309 hours of work, about 0.9 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 33. 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.
SizeLarge: 139,138 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: We price 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
Resolve the 6 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED (2), REDACTED.
Raises the score by about 4.7 points · Low effort · Secrets (history)
2
Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (8).
Raises the score by about 2.0 points · Low effort · Static Analysis (SAST)
3
Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED.
Raises the score by about 1.8 points · Low effort · Dependency Vulnerabilities

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 €130,000 to build again, about 0.9 person-years of work. Its weakest lens is Security and Compliance, at 21.5 (Critical). Security and Compliance is about how well the product is protected, and how it handles personal data. Because the weakest lens counts most in the score, work on Security and Compliance also moves the score most.
Based on: the rebuild estimate · the Security and Compliance grade · how much each lens counts
What to do: Start with the Security and Compliance actions in Top priorities.
If you do one thing first · First action
Resolve the 6 REDACTED finding(s) in Secrets (history). Of all the actions in this report, it raises the score most for the work it takes: about 4.7 points for low effort, because it clears the 6 Secrets (history) findings. 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 6.0 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 5% to 11% on every change. The history of the code shows how much it changes: about 450,477 lines over the last 90 days, which is about 1,826,934 lines a year. At that pace, the extra work comes to an estimated 231.5 to 1389 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 our 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 · Code Duplication · 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.

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

181 modules, with 88 dependencies between them. Every module uses only modules listed above it, so there are no loops.

The table shows the 40 modules with the most connections; 141 more are left out to keep it readable.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 dsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src.protocol2 dsh-desktop.bundle-integrity3 dsh-desktop.lib.bundle-identity4 dsh-desktop.lib.desktop.boot-server5 dsh-desktop.lib.desktop.environment6 dsh-desktop.lib.desktop.guard-box7 dsh-desktop.lib.desktop.install-profile8 dsh-desktop.lib.desktop.lite-skins9 dsh-desktop.lib.desktop.package-manager10 dsh-desktop.lib.desktop.plugin-ops11 dsh-desktop.lib.desktop.plugin-remove12 dsh-desktop.lib.desktop.proc13 dsh-desktop.lib.desktop.profile14 dsh-desktop.lib.desktop.runtime-patches15 dsh-desktop.lib.desktop.update-package16 dsh-desktop.lib.desktop.update-sources17 dsh_snapshot_native.types18 eac_launcher.model19 launcher.src.library20 launcher.src.pack-share21 launcher.src.types22 dsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src23 dsh-desktop.client-updater24 dsh-desktop.lib25 dsh-desktop.lib.desktop.client-update26 dsh-desktop.lib.desktop.companion-sync27 dsh-desktop.lib.desktop.platform28 dsh-desktop.lib.desktop.runtime-paths29 dsh-desktop.lib.desktop.update-linux-root30 dsh-desktop.lib.desktop.update-portable31 eac_launcher.engine32 dsh-desktop33 dsh-desktop.lib.desktop.update-appimage34 dsh-desktop.lib.desktop.update-helper-process35 dsh-desktop.lib.desktop.update-linux36 dsh-desktop.lib.desktop.update-nsis37 launcher.src38 launcher.src.update39 dsh-desktop.lib.desktop40 dsh-desktop.lib.desktop.update-restart
1 dsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src.protocol
2 dsh-desktop.bundle-integrity
3 dsh-desktop.lib.bundle-identity
4 dsh-desktop.lib.desktop.boot-server
5 dsh-desktop.lib.desktop.environment
6 dsh-desktop.lib.desktop.guard-box
7 dsh-desktop.lib.desktop.install-profile
8 dsh-desktop.lib.desktop.lite-skins
9 dsh-desktop.lib.desktop.package-manager
10 dsh-desktop.lib.desktop.plugin-ops
11 dsh-desktop.lib.desktop.plugin-remove
12 dsh-desktop.lib.desktop.proc
13 dsh-desktop.lib.desktop.profile
14 dsh-desktop.lib.desktop.runtime-patches
15 dsh-desktop.lib.desktop.update-package
16 dsh-desktop.lib.desktop.update-sources
17 dsh_snapshot_native.types
18 eac_launcher.model
19 launcher.src.library
20 launcher.src.pack-share
21 launcher.src.types
22 dsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src1
23 dsh-desktop.client-updater1
24 dsh-desktop.lib1
25 dsh-desktop.lib.desktop.client-update3
26 dsh-desktop.lib.desktop.companion-sync1
27 dsh-desktop.lib.desktop.platform1
28 dsh-desktop.lib.desktop.runtime-paths1
29 dsh-desktop.lib.desktop.update-linux-root2
30 dsh-desktop.lib.desktop.update-portable1
31 eac_launcher.engine6
32 dsh-desktop111
33 dsh-desktop.lib.desktop.update-appimage22
34 dsh-desktop.lib.desktop.update-helper-process11
35 dsh-desktop.lib.desktop.update-linux11
36 dsh-desktop.lib.desktop.update-nsis11
37 launcher.src1271
38 launcher.src.update11
39 dsh-desktop.lib.desktop252111411112361142123591
40 dsh-desktop.lib.desktop.update-restart11
Uses a module listed above itPart of a loopThe module itself
1 dsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src.protocol2 dsh-desktop.bundle-integrity3 dsh-desktop.lib.bundle-identity4 dsh-desktop.lib.desktop.boot-server5 dsh-desktop.lib.desktop.environment6 dsh-desktop.lib.desktop.guard-box7 dsh-desktop.lib.desktop.install-profile8 dsh-desktop.lib.desktop.lite-skins9 dsh-desktop.lib.desktop.package-manager10 dsh-desktop.lib.desktop.plugin-ops11 dsh-desktop.lib.desktop.plugin-remove12 dsh-desktop.lib.desktop.proc13 dsh-desktop.lib.desktop.profile14 dsh-desktop.lib.desktop.runtime-patches15 dsh-desktop.lib.desktop.update-package16 dsh-desktop.lib.desktop.update-sources17 dsh_snapshot_native.types18 eac_launcher.model19 launcher.src.library20 launcher.src.pack-share21 launcher.src.types22 dsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src23 dsh-desktop.client-updater24 dsh-desktop.lib25 dsh-desktop.lib.desktop.client-update26 dsh-desktop.lib.desktop.companion-sync27 dsh-desktop.lib.desktop.platform28 dsh-desktop.lib.desktop.runtime-paths29 dsh-desktop.lib.desktop.update-linux-root30 dsh-desktop.lib.desktop.update-portable31 eac_launcher.engine32 dsh-desktop33 dsh-desktop.lib.desktop.update-appimage34 dsh-desktop.lib.desktop.update-helper-process35 dsh-desktop.lib.desktop.update-linux36 dsh-desktop.lib.desktop.update-nsis37 launcher.src38 launcher.src.update39 dsh-desktop.lib.desktop40 dsh-desktop.lib.desktop.update-restartdsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src.protocol1dsh-desktop.bundle-integrity2dsh-desktop.lib.bundle-identity3dsh-desktop.lib.desktop.boot-server4dsh-desktop.lib.desktop.environment5dsh-desktop.lib.desktop.guard-box6dsh-desktop.lib.desktop.install-profile7dsh-desktop.lib.desktop.lite-skins8dsh-desktop.lib.desktop.package-manager9dsh-desktop.lib.desktop.plugin-ops10dsh-desktop.lib.desktop.plugin-remove11dsh-desktop.lib.desktop.proc12dsh-desktop.lib.desktop.profile13dsh-desktop.lib.desktop.runtime-patches14dsh-desktop.lib.desktop.update-package15dsh-desktop.lib.desktop.update-sources16dsh_snapshot_native.types17eac_launcher.model18launcher.src.library19launcher.src.pack-share20launcher.src.types21dsh-desktop.assets.plugins.dsh-client-ui-skin-deep-whale-manager.src22dsh-desktop.client-updater23dsh-desktop.lib24dsh-desktop.lib.desktop.client-update25dsh-desktop.lib.desktop.companion-sync26dsh-desktop.lib.desktop.platform27dsh-desktop.lib.desktop.runtime-paths28dsh-desktop.lib.desktop.update-linux-root29dsh-desktop.lib.desktop.update-portable30eac_launcher.engine31dsh-desktop32dsh-desktop.lib.desktop.update-appimage33dsh-desktop.lib.desktop.update-helper-process34dsh-desktop.lib.desktop.update-linux35dsh-desktop.lib.desktop.update-nsis36launcher.src37launcher.src.update38dsh-desktop.lib.desktop39dsh-desktop.lib.desktop.update-restart4011131112161112211111112711125211141111236114212359111+141 more modules (most-connected shown)

At a glance — Code Health · 37.5 · Weak · gated by D1, D2, R2, X4 ·

At a glance — Architecture · 67.7 · Adequate · gated by R11 ·

At a glance — Maturity · 62.7 · Adequate · gated by M4 ·

At a glance — Readiness · 35.3 · Weak · gated by R8, P3, P7 ·

At a glance — Security · 21.5 · Critical · gated by D29, D36 ·

At a glance — Accessibility · 54.0 · Adequate ·

At a glance — Performance · 60.0 · 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
A03:2025 — Software Supply Chain Failures42High / Critical
A05:2025 — Injection38High / Critical
A07:2025 — Authentication Failures7High / Critical

Roadmap

Top priorities: Resolve the 6 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED (2), REDACTED; Resolve the 13 Medium advisory (unsound) finding(s) in Dependency Vulnerabilities — start with REDACTED (13); Resolve the 11 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (5), REDACTED (2), REDACTED (2).

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

Do thisHelpsEffortDimension
Resolve the 6 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED (2), REDACTED.+4.7 ptsLowSecrets (history)
Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (8).+2.0 ptsLowStatic Analysis (SAST)
Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED.+1.8 ptsLowDependency Vulnerabilities
Resolve the 6 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4), REDACTED (2).+1.8 ptsLowDependency Vulnerabilities
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing.+1.8 ptsLowSupply-chain Provenance & Signing
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing.+1.8 ptsLowSupply-chain Provenance & Signing
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing.+1.8 ptsLowSupply-chain Provenance & Signing
Resolve the 13 Medium advisory (unsound) finding(s) in Dependency Vulnerabilities — start with REDACTED (13).+3.2 ptsMediumDependency Vulnerabilities

File quality

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

FileScoreBandWorst signal
REDACTED1.9SlopDependency Vulnerabilities: High CVE: REDACTED
REDACTED2.1SlopDependency Vulnerabilities: High CVE: REDACTED
REDACTED3.0SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.5MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.6MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.9MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.9MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED5.0MixedSecrets (history): REDACTED: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED5.1MixedDependency Vulnerabilities: High CVE: REDACTED
REDACTED5.3MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED5.7MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED5.8MixedSecrets (history): REDACTED: REDACTED
REDACTED5.8MixedSecrets (history): REDACTED: REDACTED
REDACTED5.8MixedDependency Vulnerabilities: Medium vulnerability: REDACTED
dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js6.5MixedCyclomatic Complexity: factory::WallpaperPicker (cyclomatic 114)

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 — 86

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 — 1489

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 — 140

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

Could not be resolved — 8

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

This survey 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. All 79 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.

Every figure here is one of two 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. 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.

What we checked — 79 dimensions across the health lenses
D1D2D3D4D5D6D7D10D12D13D14D15D16D17D19D20D24D26D27D28D29D30D34D35D36D43AC1AC2AC3AC4AC5AC6AX10AX3AX4AX6AX9GD1IC1M1M2M3M4P1P10P2P3P4P6P7PF3R1R10R11R2R3R4R5R6R7R8R9X1X12X13X14X16X18X19X2X21X24X25X28X29X3X30X4X5

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, 1694 of 1715 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 or a scanner, 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
Canine Code Analyzer 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

Every finding is locatable in findings.md. Run 01a1e717-b425-787c-b390-94322f102835.

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.

  • D8 Code Coverage — not measured this run — We 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: the JavaScript/TypeScript half could not be measured — the dependency install for dsh-desktop/assets/plugins/dsh-external-links/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. Coverage is excluded from the score rather than counted as a near-zero. This is OUR limitation, not a defect in the repo.
  • D10 Test Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. The 788 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 4 test source file(s) (.rs) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
  • D11 Test Reliability — not measured this run — We 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. Test reliability NOT MEASURED: the JavaScript/TypeScript suite could not be re-run in the analyzer sandbox — the dependency install for dsh-desktop/assets/plugins/ds-harness-remote/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repo — it is excluded from the score.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/plugins/ds-harness-remote/ was NOT MEASURED: the dependency install for dsh-desktop/assets/plugins/ds-harness-remote/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/ was NOT MEASURED: the dependency install for dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the node:test suite in dsh-desktop/assets/plugins/dsh-wechat/ was NOT MEASURED: the dependency install for dsh-desktop/assets/plugins/dsh-wechat/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/ was NOT MEASURED: the dependency install for dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/ was NOT MEASURED: the dependency install for dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/ was NOT MEASURED: the dependency install for dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/ was NOT MEASURED: the dependency install for dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/ was NOT MEASURED: the dependency install for dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/ was NOT MEASURED: the dependency install for dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D11 Test Reliability — not measured this run — We 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. Test reliability for the vitest suite in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/ was NOT MEASURED: the dependency install for dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/ failed in the analyzer sandbox ((node:607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 socket listeners added to [ClientRequest]. MaxListeners is 10. Use emitte…), so the suite never ran. This is OUR limitation, not a defect in the repository, and the suite is excluded from the measurement rather than counted against it.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. This repository declares REDACTED, but the licence verdict published here was taken over its crate dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we 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.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
  • D20 ADR Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. The ADR lexicon (adr-lexicon-1) covers de, en, it, nl. A record identified as another language, or whose language could not be identified (fewer than 25 words of prose, or no clear winner), is never read with English rules: its missing-section, status, consequence-cost and same-question rules abstain, and only the structural rules (title, single option, dangling link, enforcement field) run.
  • D21 Naming Consistency — not measured this run — We 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 naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
  • D21 Naming Consistency — not measured this run — We 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. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — We 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's deterministic call-shape rules are gated per language (docs/plans/deterministic-engine.md, P5; C# and each NeutralApiArms arm pass): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
  • D24 Comment Value — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. D24 compares a comment's words with the identifiers, literals and constructs of the code it annotates, using English function-word and rationale lexicons. Comments in another script or language were left unread rather than counted as clean.
  • D24 Comment Value — measured, with a gap in what it reached — We measured this, but not all of it. What we 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 source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
  • D29 Static Analysis (SAST) — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. Not read: `dsh-desktop/node_modules/@deepseek-ai/dsh-tool-bash/lib/`. The rule's absence of rows there is not evidence of anything.
  • D29 Static Analysis (SAST) — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. Not read: `dsh-desktop/node_modules/@deepseek-ai/dsh-tool-bash/lib/`. The rule's absence of rows there is not evidence of anything.
  • D32 Data Compliance (PII/GDPR) — not measured this run — We 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. `REDACTED`, `dsh-desktop/assets/plugins/dsh-wechat/lib/services.d.ts`, `launcher/src/App.tsx`, `tauri-shell/sidecar/server.ts` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • D44 Platform End-of-Life — not measured this run — We 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.
  • AC2 Forms & labels — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 10 further occurrence(s) are not listed individually; the score already reflects all 50.
  • AXB2 Runtime readiness — not measured this run — We 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. `npm run` found no REDACTED in the folder where our sandbox ran it. This is a limit of our sandbox, not of your repository. (rule: no-root-manifest). The renderer reported: the dev server (`npm run dev`) exited before it served a page. Likely cause (our sandbox): `npm run` found no REDACTED in the folder where our sandbox ran it. This is a limit of our sandbox, not of your repository. Last output: "npm error code ENOENT / npm error syscall open / npm error path <repo>/package.json / npm error errno -2 / npm error enoent Could not read REDACTED: Error: ENOENT: no such file or directory, open '<repo>/package.json' / npm error enoent This is related to npm not being able to find a file. / npm error enoent / npm error A complete log of this run can be found in: <path>" No runtime evidence was gathered.
  • AXR1 Runtime accessibility — not measured this run — We 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. Render strategy: boot via DevServer (dev). the dev server (`npm run dev`) exited before it served a page. Likely cause (our sandbox): `npm run` found no REDACTED in the folder where our sandbox ran it. This is a limit of our sandbox, not of your repository. Last output: "npm error code ENOENT / npm error syscall open / npm error path <repo>/package.json / npm error errno -2 / npm error enoent Could not read REDACTED: Error: ENOENT: no such file or directory, open '<repo>/package.json' / npm error enoent This is related to npm not being able to find a file. / npm error enoent / npm error A complete log of this run can be found in: <path>" No runtime evidence was gathered.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we 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 reads a prose claim (a path, a setting, a variable, a route, a version, a project, an install, a bare project name in a command) only in text identified as English: the cues that tell a claim from an absence, the past, a plan or an example are an English lexicon, and on other text they would let a false claim through. Links, image targets, fenced commands with an explicit path or a package-manager script, and env-fence variables are checked in every language. 'und' is text the identifier could not name (too short, mixed script, no function words).
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we 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.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 3 further occurrence(s) are not listed individually; the score already reflects all 43.
  • 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 no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • PF1 Benchmark discipline — not measured this run — We 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 filesystem refused dsh-desktop/node_modules/@deepseek-ai/dsh-tool-bash/lib/ while this check was reading the repository. Those files were not read, so a defect in them cannot appear on this card; every other file was read.
  • PF3 Async & latency hygiene — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 128 further occurrence(s) are not listed individually; the score already reflects all 168.
  • R10 Code Duplication — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 300 further occurrence(s) are not listed individually; the score already reflects all 340.
  • R2 Cyclomatic Complexity — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 594 further occurrence(s) are not listed individually; the score already reflects all 634.
  • R3 Large Files — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 12 further occurrence(s) are not listed individually; the score already reflects all 52.
  • R4 Test Coverage — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 40 further occurrence(s) are not listed individually; the score already reflects all 80.
  • R8 Dependency Hygiene — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 13 further occurrence(s) are not listed individually; the score already reflects all 53.
  • X10 Duplicated predicate — not measured this run — We 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. `dsh-desktop/node_modules/@deepseek-ai/dsh-tool-bash/lib/` could not be listed or read, so no predicate in them was compared with any other file. Every other file was read and its findings stand.
  • X10 Duplicated predicate — not measured this run — We 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. 89 further occurrence(s) are not listed individually; the score already reflects all 129.
  • X3 Exception handling — measured, with a gap in what it reached — We measured this, but not all of it. What we 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. 571 further occurrence(s) are not listed individually; the score already reflects all 611.
  • X7 Silent fallback defaults — not measured this run — We 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. 1 further occurrence(s) are not listed individually; the score already reflects all 41.

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

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do 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.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • 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.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 REDACTED Scanning: REDACTED 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").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • 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.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • 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.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • 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.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • 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.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • 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.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • 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

529 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was index.apply at 304. A further 13 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being scene-manifest.isLikelyMaskOrHelper at 54 — they are counted neither in the figure above nor in this dimension's score. 5 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/math.js (applyBlending at 35), dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/math.js (math.applyBlending at 35), dsh-desktop/lib/desktop/update-nsis.ts (update-nsis.readNsisPlan at 22), dsh-desktop/lib/desktop/update-data-binding.ts (update-data-binding.readEnvironmentBinding at 19), dsh-desktop/assets/ws-jsonrpc-client.js (ws-jsonrpc-client.createWsJsonRpc.connect at 18). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

factory::WallpaperPicker (cyclomatic 114) · ×38dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2023
apply::syncRelayOnce (cyclomatic 25) · ×12REDACTED:602
dsh_eac_tauri_shell::handle_shell_method (cyclomatic 98) · ×5tauri-shell/src/main.rs:2990
installPuppet::_parseMdlStatic (cyclomatic 74) · ×4dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:424
installImage::renderImage (cyclomatic 76) · ×3dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:61

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

What to do

  1. Bring the 30 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with index.apply (cyclomatic 304), buildSceneManifestVia (cyclomatic 263), puppet.installPuppet (cyclomatic 245). — 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 30 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.

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

658 method(s) exceeded the cognitive complexity threshold of 15; the worst was buildSceneManifestVia at 572.

factory::WallpaperPicker (cognitive 100) · ×40dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2023
apply::handler (cognitive 48) · ×11REDACTED:2040
Engine::discover_local (cognitive 86) · ×9launcher/src-tauri/src/engine.rs:588
dsh_eac_tauri_shell::main (cognitive 159) · ×8tauri-shell/src/main.rs:4989
installImage::renderImage (cognitive 74) · ×6dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:61

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

What to do

  1. Bring the 58 bodies over 60 down to 60 or less in Cognitive Complexity — start with buildSceneManifestVia (cognitive 572), puppet.installPuppet (cognitive 402), model.installModel (cognitive 258). — 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 58 together lifts Cognitive 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.

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

60 god class(es) detected.

FunctionTooLong: index.apply · ×29REDACTED:135
FileTooLong: REDACTED · ×23REDACTED
ClassTooLong: Engine · ×4launcher/src-tauri/src/engine.rs:25
MethodTooLong: FreeModelAdapter.runSingle · ×3dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:297
TooManyMethods: Enginelauncher/src-tauri/src/engine.rs:25

What to do

  1. Resolve the 29 FunctionTooLong finding(s) in God Classes — start with scene-manifest.js (3), REDACTED (2), font-render.js (2). — One of this dimension's main actionable groups (29 warning-level).
  2. Resolve the 23 FileTooLong finding(s) in God Classes — start with REDACTED (2), REDACTED (2), main.rs. — One of this dimension's main actionable groups (23 warning-level).
  3. Resolve the 4 ClassTooLong finding(s) in God Classes — start with engine.rs, core.js, transpile.js. — One of this dimension's main actionable groups (4 warning-level).

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

D4 · Code Duplication9.9 / 10Stronggated by 20 serious findings✓ Tool-verified

What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.

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

12 duplicated block group(s) detected. 0.3 % of the production lines (381 of 139,138) are in a reported copy. A further 8 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. Measured on part of this repository only: .js, .ts (75% of production source) was not exposed to THIS dimension's token comparison and is not in this count; duplication there is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream.

Duplicated block (11 lines × 2) · ×2launcher/src-tauri/src/social.rs:502
Duplicated block (5 lines × 2) · ×2tauri-shell/src/main.rs:1375
Edited copy of a member (18 corresponding lines)dsh-desktop/native/snapshot/src/store.rs:104
Edited copy of a member (15 corresponding lines)dsh-desktop/native/snapshot/src/fsutil.rs:53
Edited copy of a member (12 corresponding lines)launcher/src-tauri/src/social.rs:906

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

What to do

  1. Resolve the 2 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with social.rs, main.rs. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 2 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with main.rs (2). — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 1 Edited copy of a member (18 corresponding lines) finding(s) in Code Duplication — start with store.rs. — One of this dimension's main actionable groups (1 warning-level).

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

D5 · Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

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

37 production modules (Cargo+npm), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 0 module(s) off the main sequence, with abstractness counted on 6 of the 37 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

✓ On the Gold path — maintain.

Detailed fixes: d5_recommendation.md.

D6 · Cohesion (LCOM4)10.0 / 10Exemplary✓ 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 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 17 classes have LCOM4 above 3.

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md.

D7 · Architectural Integrity6.0 / 10Adequate✓ Tool-verified

What it measures: Whether the code respects its intended layering / architecture rules.

Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.

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

No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).

Detailed fixes: d7_recommendation.md.

D10 · Test Quality10.0 / 10Stronggated by 3 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 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 skipped, 0 zero-assertion, 3 synchronised by a fixed sleep, no mocking-framework packages referenced (hand-written doubles or no mocking) across 788 tests. Measured on the JavaScript/TypeScript suite only — at least 4 test source file(s) (.rs) went unread, so its test quality is unmeasured and is not in these counts.

Fixed-sleep synchronisation: timeout and error on one readiness request schedule only one retry · ×3dsh-desktop/test/boot-stop-safety.test.ts:138

What to do

  1. Resolve the 3 Fixed-sleep synchronisation finding(s) in Test Quality — start with bridge-preload-parity.test.ts (2), boot-stop-safety.test.ts. — One of this dimension's main actionable groups (3 warning-level).

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

D12 · Dependency Hygiene9.7 6.6 / 10Adequate✓ Tool-verified

What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.

Maturity: Documented → Verified → Prevented · effective 6.6 / 10 · rule-coverage 69% · ceiling Verified

7 outdated, 0 yanked direct Cargo dependencies. 22 of 32 direct crates were graded against crates.io (0 not published there, 10 not resolved by a committed REDACTED). Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from REDACTED there.

Outdated: libc · ×7

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

D13 · REDACTED 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

REDACTED scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

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

0 of 494 shipped crate(s) use a banned license. Licences were resolved from crates.io over the crates a consumer compiles — this repository's REDACTED closed over its manifests' `[dependencies]` and `[build-dependencies]`. Crates it asks for ONLY under `[dev-dependencies]` are excluded: they are not compiled by anything that depends on this repository. ★ COVERAGE OF THIS VERDICT: it grades this repository's crate dependencies and nothing else. The repository also declares REDACTED, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots8.4 / 10Strong✓ 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 8.4 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: dsh-desktop/lib/desktop/companion-sync.ts (62×111=6882); tauri-shell/src/main.rs (62×98=6076); dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js (16×233=3728) Repeated repair below the complexity floor: dsh-desktop/lib/desktop/runtime-paths.ts (6 of 10 changes were fixes); dsh-desktop/lib/desktop/runtime-patches.ts (4 of 5 changes were fixes); dsh-desktop/lib/atomic-json.ts (3 of 5 changes were fixes)

Hotspot: dsh-desktop/lib/desktop/companion-sync.ts · ×17dsh-desktop/lib/desktop/companion-sync.ts:964
Repeated repair: dsh-desktop/lib/desktop/runtime-paths.ts · ×4dsh-desktop/lib/desktop/runtime-paths.ts:127

What to do

  1. Resolve the 17 Hotspot finding(s) in Churn × Complexity Hotspots — start with companion-sync.ts, main.rs, host.js. — One of this dimension's main actionable groups (17 warning-level).
  2. Resolve the 4 Repeated repair finding(s) in Churn × Complexity Hotspots — start with runtime-paths.ts, runtime-patches.ts, atomic-json.ts. — One of this dimension's main actionable groups (4 warning-level).

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

D16 · Bus Factor9.6 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

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

11 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is tauri-shell/src/native_devtools.rs. Counted over 256 of the 323 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

Detailed fixes: d16_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 38727 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

2 of 2 documentation facets pass in full. 87 document(s) read across 34 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.

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

0 of 3 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.

✓ On the Gold path — maintain.

Detailed fixes: d20_recommendation.md.

D24 · Comment Value9.9 3.4 / 10Weak✓ Tool-verified

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 3.4 / 10 · rule-coverage 35% · ceiling Documented

1 of 992 judged comments only repeat the code they sit on (0.1 %). 2772 comment(s) in another language or script were not judged.

redundant commentdsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1799
doc comments repeat the namesdsh-desktop/patch-row-heal.ts:199

What to do

  1. Resolve the 1 redundant comment finding(s) in Comment Value — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).

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

D26 · Project Cohesion9.4 / 10Exemplary✓ 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.

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

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

Projects may be oversized for their cohesiondsh-desktop/package.json:1

✓ On the Gold path — maintain.

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

D27 · Navigability9.8 / 10Exemplary✓ Tool-verified

What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.

Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.

Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.

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

14 % of calls cross a namespace and 0 % go through an interface, but 74 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)4.0 / 10Weak✓ Tool-verified

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

Method: REDACTED 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 4.0 / 10 · rule-coverage 100% · ceiling Documented

6 finding(s): 0 critical, 6 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

REDACTED
REDACTED

What to do

  1. Resolve the 6 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (6 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

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

D29 · Static Analysis (SAST)2.5 / 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.5 / 10 · rule-coverage 100% · ceiling Documented

38 finding(s): 0 critical, 11 high, 27 medium, 0 low. 11 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 16 file(s) — `.agents/skills/deepseek-harness-eac-dev/agents/openai.yaml`, `.github/ISSUE_TEMPLATE/02-feature-request.yml`, `dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js`, `dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/index.js`, `REDACTED`, … (+11 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. Separately, one or more rules could not re-parse an embedded snippet in 4 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing. The engine-authored rules could not read part of the checkout — `watchdog-identifier-read-out-of-scope-js` could not read 1 path(s) (`dsh-desktop/node_modules/@deepseek-ai/dsh-tool-bash/lib/`); `watchdog-supabase-rls-anon-write-sql` could not read 1 path(s) (`dsh-desktop/node_modules/@deepseek-ai/dsh-tool-bash/lib/`) — so no absence of their rows there is evidence of anything.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 11 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (5), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (11 warning-level).
  2. Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (8). — One of this dimension's main actionable groups (8 warning-level).
  3. No action in Static Analysis (SAST) — all 11 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (11 issue-level, 0 of them charged here).

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

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

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. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

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

37 finding(s): 1 critical, 6 high, 30 medium, 0 low.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 13 Medium advisory (unsound) finding(s) in Dependency Vulnerabilities — start with REDACTED (13). — One of this dimension's main actionable groups (13 warning-level).
  2. Resolve the 6 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4), REDACTED (2). — One of this dimension's main actionable groups (6 issue-level).
  3. Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.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 256 of the 323 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.

D36 · Supply-chain Provenance & Signing0.0 / 10Critical✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

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

0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.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. Reported 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. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

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.

AC1 · Text alternatives5.5 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.

  • An svg presented as an image needs a name — add a <title> child or an aria-label/aria-labelledby. — REDACTED:2797
  • A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content. — dsh-desktop/assets/plugins/dsh-wechat/lib/host.js:4331

What to do

  • Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels5.4 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×14) — dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:212, dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:489, REDACTED:3568, …
  • This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×3) — dsh-desktop/assets/plugins/dsh-compact/lib/client.js:116, REDACTED:3586, dsh-desktop/assets/plugins/dsh-wechat/client.js:686
  • This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×23) — dsh-desktop/assets/plugins/dsh-compact/lib/client.js:227, dsh-desktop/assets/plugins/dsh-compact/lib/client.js:235, dsh-desktop/assets/plugins/dsh-compact/lib/client.js:242, …

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure7.0 / 10Strong✓ Tool-verified

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. (×2) — launcher/src/library.tsx:341, launcher/src/system.tsx:35
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — tauri-shell/src/client-update.html:2

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics4.3 / 10Weak✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • This <div role="dialog"> is a modal dialog, but nothing moves focus into it when it opens, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close. (×2) — REDACTED:4500, REDACTED:6337
  • This <div role="alertdialog"> is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close. — dsh-desktop/assets/plugins/dsh-plugin-shield/lib/client.js:290
  • The repo's own CSS styles .discover-row with `cursor: pointer`, so this <div> is a control — but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a <button>, or add role + tabIndex={0} + a key handler. — launcher/src/dialogs.tsx:51

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC6 · Visual & motion safety4.7 / 10Weak✓ Tool-verified

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • `[data-region="top-sidebar"] [data-control-name="window-close"]:hover` sets color: #fff on background-color: #ff7a85 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. (×2) — tauri-shell/artifacts/resolved/system.default/style-states.css:115, tauri-shell/artifacts/resolved/system.default/regions/top-sidebar/styles.css:91
  • `:root[data-skin="pixel"] .segmented > button.active` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/airdrop.css:23
  • `:root[data-skin="pixel"][data-theme="dark"] .segmented > button.active` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/airdrop.css:27
  • `.window-close:hover` sets color: #fff on background-color: #e5484d — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/airdrop.css:234
  • `:root[data-skin="pixel"] .window-close:hover` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/airdrop.css:237
  • `:root[data-skin="pixel"][data-theme="dark"] .workspace-avatar` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/pixel-night.css:27
  • `:root[data-skin="pixel"][data-theme="dark"] .nav-item.active` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/pixel-night.css:34
  • `:root[data-skin="pixel"][data-theme="dark"] .nav-count` sets color: #fff on background-color: #ff6b8a — 2.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/pixel-night.css:38
  • `:root[data-skin="pixel"][data-theme="dark"] .button-primary` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/pixel-night.css:73
  • `:root[data-skin="pixel"][data-theme="dark"] .telemetry-status, :root[data-skin="pixel"][data-theme="dark"] .telemetry-status i, :root[data-skin="pixel"][data-theme="dark"] .telemetry-status i.online` sets color: #eef6ff on background-color: #eef6ff — 1.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/pixel-night.css:98
  • `:root[data-skin="pixel"] ::selection` sets color: #ffffff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/skins.css:41
  • `:root[data-skin="standard"] ::selection` sets color: #ffffff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/skins.css:42
  • `.skin-switch` sets color: #0b4fb5 on background-color: #0b1a30 — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/skins.css:114
  • `:root[data-skin="standard"] .button-primary` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/skins.css:326
  • `:root[data-skin="pixel"] .button-primary` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. (×2) — launcher/src/skins.css:413, launcher/src/true-pixel.css:85
  • `:root[data-skin="standard"] .nav-item:hover .nav-item-icon` sets color: #3f7fe0 on background-color: #fff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/standard-workbench.css:92
  • `:root[data-skin="standard"] .global-search > kbd` sets color: #7d8da1 on background-color: #f4f8fc — 3.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/standard-workbench.css:156
  • `:root[data-skin="standard"] .console-footer` sets color: #64748b on background-color: #f4f8fc — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/standard-workbench.css:232
  • `:root[data-skin="pixel"] .workspace-avatar` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:45
  • `:root[data-skin="pixel"] .nav-item.active` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:52
  • `:root[data-skin="pixel"] .nav-count` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:56
  • `:root[data-skin="pixel"] .badge-cyan` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:90
  • `:root[data-skin="pixel"] .badge-coral` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:91
  • `:root[data-skin="pixel"] .instance-picker.selected` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:159
  • `:root[data-skin="pixel"] .instance-glyph, :root[data-skin="pixel"] .glyph-cyan, :root[data-skin="pixel"] .kernel-icon, :root[data-skin="pixel"] .shortcut-icon.cyan` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:161
  • `:root[data-skin="pixel"] .plugin-tile, :root[data-skin="pixel"] .tile-0` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:177
  • `:root[data-skin="pixel"] .tile-1` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — launcher/src/true-pixel.css:178
  • `.global-search input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — launcher/src/styles.css:100
  • `.global-search input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — launcher/src/styles.css:101
  • `.main-content:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — launcher/src/styles.css:109
  • `.search-field input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — launcher/src/styles.css:303
  • `.search-field input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — launcher/src/styles.css:304

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AX10 · Code composition9.9 / 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.

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.

AX6 · Interface segregation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.

Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.

Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.

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 & stubs7.1 / 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.

  • `handleSessionCwdRoute` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — REDACTED:543
  • The `if` and its `else` contain the same statements, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body. (×2) — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:242, dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:361
  • The guard above `return value;` also returns `value`, so no input can make it matter. Implement the distinction that was intended, or delete the guard. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:273
  • Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition. (×4) — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:56, dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:114, dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:784, …
  • A branch guarded by a literal `false` can never execute — left-over disabled code. Remove it or restore the real condition. — dsh-desktop/lib/desktop/companion-sync.ts:1464
  • `main` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — REDACTED:1337
  • `preBootSync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — tauri-shell/sidecar/server.ts:597
  • `apply` has an empty body — confirm it's an intentional no-op and not an unfinished method. — dsh-desktop/assets/plugins/dsh-client-file-changes/lib/index.js:6
  • `step` has an empty body — confirm it's an intentional no-op and not an unfinished method. — dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:46
  • `setOutcome` has an empty body — confirm it's an intentional no-op and not an unfinished method. — dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:46

What to do

  • 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)8.7 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.

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

  • 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.
M2 · Architecture documentation10.0 / 10Exemplary✓ 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.

M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.

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

M4 · Documentation accuracy0.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/dsh-tui.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/dsh-tui.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:66
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `apps/server/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/apps/server/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:110
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `apps/android/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/apps/android/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:133
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/acp-integration.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/acp-integration.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:173
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/end-to-end-encryption.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/end-to-end-encryption.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:181
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/network.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/network.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:189
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `packages/plugin/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/packages/plugin/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:205
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/codex-remote.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/codex-remote.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:207
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/acp-remote.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/acp-remote.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:208
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:209
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/protocol.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/protocol.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:212
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/TODO.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/TODO.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:213
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/CHANGELOG.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/CHANGELOG.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:214
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/PRIVACY.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/PRIVACY.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:215
  • dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/compatibility.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/compatibility.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/ds-harness-remote/README.md:216
  • dsh-desktop/assets/plugins/dsh-our-free-model/README.md links to `README_EN.md`, but `dsh-desktop/assets/plugins/dsh-our-free-model/README_EN.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-our-free-model/README.md:6
  • dsh-desktop/assets/plugins/dsh-our-free-model/README.md links to `packages/standalone/README.md`, but `dsh-desktop/assets/plugins/dsh-our-free-model/packages/standalone/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-our-free-model/README.md:112
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/showcase.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/showcase.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:33
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/features.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/features.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:237
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/wallpaper-library.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/wallpaper-library.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:241
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/compact-wallpaper-library.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/compact-wallpaper-library.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:288
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/vinyl-record.gif`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/vinyl-record.gif` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:292
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/liquid-glass-window.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/liquid-glass-window.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:374
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/better-sidebar.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/better-sidebar.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:467
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `CONTRIBUTING.md`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/CONTRIBUTING.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:492
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `docs/images/showcase.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/showcase.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:33
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `docs/images/features.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/features.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:164
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `docs/images/wallpaper-library.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/wallpaper-library.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:168
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `docs/images/compact-wallpaper-library.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/compact-wallpaper-library.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:192
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `docs/images/vinyl-record.gif`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/vinyl-record.gif` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:196
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `docs/images/liquid-glass-window.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/liquid-glass-window.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:264
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `docs/images/better-sidebar.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/better-sidebar.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:337
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md links to `CONTRIBUTING.md`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/CONTRIBUTING.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.md:350
  • dsh-desktop/assets/plugins/dsh-wechat/README.md links to `README.zh.md`, but `dsh-desktop/assets/plugins/dsh-wechat/README.zh.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-wechat/README.md:23
  • dsh-desktop/assets/plugins/dsh-wechat/README.md links to `docs/HANDBOOK-USER.md`, but `dsh-desktop/assets/plugins/dsh-wechat/docs/HANDBOOK-USER.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-wechat/README.md:209
  • dsh-desktop/assets/plugins/dsh-wechat/README.md links to `docs/HANDBOOK-DEV.md`, but `dsh-desktop/assets/plugins/dsh-wechat/docs/HANDBOOK-DEV.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-wechat/README.md:210
  • dsh-desktop/assets/plugins/dsh-wechat/README.md links to `SETTINGS.md`, but `dsh-desktop/assets/plugins/dsh-wechat/SETTINGS.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-wechat/README.md:211
  • dsh-desktop/assets/plugins/dsh-wechat/README.md links to `docs/INTERNALS.md`, but `dsh-desktop/assets/plugins/dsh-wechat/docs/INTERNALS.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-wechat/README.md:212
  • dsh-desktop/assets/plugins/dsh-wechat/README.md links to `docs/PROGRESS.md`, but `dsh-desktop/assets/plugins/dsh-wechat/docs/PROGRESS.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-wechat/README.md:213
  • dsh-desktop/assets/plugins/dsh-wechat/README.md links to `docs/POSTMORTEM.md`, but `dsh-desktop/assets/plugins/dsh-wechat/docs/POSTMORTEM.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — dsh-desktop/assets/plugins/dsh-wechat/README.md:214

What to do

  • Reconcile the README with reality: dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/dsh-tui.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/dsh-tui.md` does not exist; dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `apps/server/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/apps/server/README.md` does not exist; dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `apps/android/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/apps/android/README.md` does not exist; dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/acp-integration.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/acp-integration.md` does not exist; dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/end-to-end-encryption.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/end-to-end-encryption.md` does not exist.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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.

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's code 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 · Observability7.9 / 10Strong✓ 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.

  • Only 2/7 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `dsh-desktop/assets/plugins/ds-harness-remote`, `dsh-desktop/assets/plugins/dsh-our-free-model`, `launcher`, `launcher/src-tauri`, `tauri-shell`.
  • `dsh-desktop/client-updater.ts` reports through `console.*` at line 1035 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — dsh-desktop/client-updater.ts:1035
  • `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 162 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — dsh-desktop/lib/desktop/companion-sync.ts:162
  • `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 259 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — dsh-desktop/lib/desktop/companion-sync.ts:259
  • `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 420 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — dsh-desktop/lib/desktop/companion-sync.ts:420
  • `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 494 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — dsh-desktop/lib/desktop/companion-sync.ts:494

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
  • Route service-code `console.*` output through the module's structured logger (with named fields), so delivery outcomes and failures reach the log pipeline with a level.
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/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 2 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.
  • `dsh-desktop/assets/plugins/ds-harness-remote/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`. — dsh-desktop/assets/plugins/ds-harness-remote/package.json:75

What to do

  • Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — 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.
P4 · Deployment & Rollback7.0 / 10Strong✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

P6 · Release Hygiene10.0 / 10Exemplary✓ 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.

P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

  • `http.request(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×2) — dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:146, dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:568
  • `fetch(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×2) — REDACTED:106, REDACTED:114

What to do

  • Bound every outbound call: pass `signal: AbortSignal.timeout(ms)` to `fetch`, set `timeout` on the axios instance (`axios.create({ timeout })`), and add retries with back-off (`axios-retry`, `p-retry`) and a breaker (`opossum`, `cockatiel`) around dependencies that fail.
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 each language's code 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.

  • `fs.mkdirSync` in `startEgressRelay` 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. — REDACTED:145
  • `fs.writeFileSync` in `startEgressRelay` 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. — REDACTED:155
  • `fs.rmSync` in `stageRelease` 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. (×2) — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:471, dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:522
  • `fs.mkdirSync` in `stageRelease` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:472
  • `fs.mkdirSync` in `callback to Array.from` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:502
  • `fs.writeFileSync` in `callback to Array.from` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:503
  • `fs.renameSync` in `renameWithRetry` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:733
  • `fs.mkdirSync` in `installStaged` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:754
  • `fs.copyFileSync` in `installStaged` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:755
  • `fs.rmSync` in `installStaged` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:761
  • `fs.rmSync` in `apply` 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:1009
  • `writeFileSync` in `child.on("close")` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:413
  • `mkdtempSync` in `runProbe` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:549
  • `mkdirSync` in `runProbe` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:552
  • `writeFileSync` in `runProbe` 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. (×3) — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:553, dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:559, dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:560
  • `rmSync` in `runProbe` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:604
  • `mkdtempSync` in `stageFetch` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:650
  • `mkdirSync` in `stageFetch` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:653
  • `writeFileSync` in `stageFetch` 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. (×3) — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:654, dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:658, dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:659
  • `rmSync` in `stageFetch` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:680
  • `existsSync` in `consumePendingUpdates` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:692
  • `readFileSync` in `consumePendingUpdates` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:693
  • `readFileSync` in `loadCatalogBase` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:921
  • `readFileSync` in `hotMount` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1101
  • `mkdirSync` in `hotMount` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1105
  • `writeFileSync` in `hotMount` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1109
  • `readFileSync` in `join` 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. (×2) — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1280, dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1282
  • `readFileSync` in `resolveLinkedUpstream` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1351
  • `existsSync` in `runUpdateWithAllowBuilds` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1763
  • `rmSync` in `runUpdateWithAllowBuilds` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1766
  • `readFileSync` in `loadPacksIndex` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1974
  • `existsSync` in `routeHandler` 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. (×2) — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:2018, dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:2091
  • `readFileSync` in `routeHandler` 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:2092

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 Safety4.4 / 10Weak✓ 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.

  • 209 typed · 262 plain JS — the untyped files are dsh-desktop/assets/plugins/ds-harness-remote/index.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/client.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/clip-id.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/clip-registry.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/clip-resolver.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/diagnostics.js (+256 more).
R10 · Code Duplication6.3 / 10Adequate✓ Tool-verified

React / JS · Code Health — The share of the scored frontend lines inside a near-exact copy-pasted block of substantial extent (the D4 clone algorithm over JS/TS tokens, D-386; each line once, 10 at none and 0 at a quarter of the lines, as D4): 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. Scored on the share of the scored frontend lines inside a reported copy, on the same curve as D4. Deterministic.

  • 6 duplicated blocks under the repository root have copies in at least two of the sibling directories dsh-desktop, launcher, tauri-shell — 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:3511
  • 6 duplicated blocks under dsh-desktop/assets/plugins/ have copies in at least two of the sibling directories dsh-client-file-changes, dsh-eac-locale-compat, dsh-easy-setup, dsh-file-changes, dsh-plugin-shield, dsh-plugin-wallpaper-engine (+2 more sibling(s) not listed) — 3 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — REDACTED:97
  • dsh-desktop/assets/plugins/dsh-settings-scroll-fix/lib/client.js:1 · dsh-desktop/assets/plugins/dsh-settings-scroll-fix/src/client.js:1 — these 2 files are line-for-line copies of one another — 205 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — dsh-desktop/assets/plugins/dsh-settings-scroll-fix/lib/client.js:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:473 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:632 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:473
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:174 · dsh-desktop/assets/plugins/dsh-our-free-model/src/kilo.js:41 — the two spans are one implementation copied and then locally edited — 630 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:174
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:163 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:304 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:163
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:102 · dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:517 — the two spans are one implementation copied and then locally edited — 395 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:102
  • dsh-desktop/scripts/fetch-kernel.js:107 · dsh-desktop/scripts/fetch-kernel.ts:124 — 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. — dsh-desktop/scripts/fetch-kernel.js:107
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:203 · dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:363 — the two spans are one implementation copied and then locally edited — 381 tokens are still identical, in the same order in both spans, 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:203
  • dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-maid-atelier/lib/index.js:4 · dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-orca-link/lib/index.js:4 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-maid-atelier/lib/index.js:4
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:4 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:98 — the two spans are one implementation copied and then locally edited — 522 tokens are still identical, in the same order in both spans, 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:4
  • dsh-desktop/scripts/analyze-session-log.js:13 · dsh-desktop/scripts/repair-session-log.js:16 — 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. — dsh-desktop/scripts/analyze-session-log.js:13
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:54 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:428 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:54
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:314 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:114 — the two spans are one implementation copied and then locally edited — 555 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:314
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:62 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:107 — the two spans are one implementation copied and then locally edited — 347 tokens are still identical, in the same order in both spans, 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:62
  • dsh-desktop/scripts/fetch-kernel.js:179 · dsh-desktop/scripts/fetch-kernel.ts:201 — 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. — dsh-desktop/scripts/fetch-kernel.js:179
  • dsh-desktop/scripts/fetch-kernel.js:253 · dsh-desktop/scripts/fetch-kernel.ts:285 — 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. — dsh-desktop/scripts/fetch-kernel.js:253
  • dsh-desktop/scripts/gen-kernel-overrides.js:118 · dsh-desktop/scripts/gen-kernel-overrides.ts:125 — 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. — dsh-desktop/scripts/gen-kernel-overrides.js:118
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:737 · dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:150 — the two spans are one implementation copied and then locally edited — 235 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:737
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:45 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:56 — the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour — the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator's options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:45
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:283 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:450 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:283
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:821 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:935 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:821
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shake.js:4 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/waterwaves.js:3 — the two spans are one implementation copied and then locally edited — 393 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shake.js:4
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:102 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:479 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:102
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:780 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:879 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:780
  • dsh-desktop/scripts/e2e-full.js:43 · dsh-desktop/scripts/e2e-v4.js:34 — 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. — dsh-desktop/scripts/e2e-full.js:43
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:159 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:553 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:159
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:91 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:226 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:91
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:120 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:256 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:120
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:884 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1022 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:884
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:134 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:513 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:134
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:174 · dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:338 — the two spans are one implementation copied and then locally edited — 270 tokens are still identical, in the same order in both spans, 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:174
  • dsh-desktop/scripts/gen-kernel-overrides.js:84 · dsh-desktop/scripts/gen-kernel-overrides.ts:91 — 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. — dsh-desktop/scripts/gen-kernel-overrides.js:84
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:556 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:719 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:556
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:741 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:842 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:741
  • dsh-desktop/assets/plugins/dsh-wechat/client.js:967 · dsh-desktop/assets/plugins/dsh-wechat/client.js:997 — 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. — dsh-desktop/assets/plugins/dsh-wechat/client.js:967
  • dsh-desktop/lib/desktop/companion-sync.ts:126 · dsh-desktop/lib/desktop/companion-sync.ts:224 — 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. — dsh-desktop/lib/desktop/companion-sync.ts:126
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:555 · dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:237 · dsh-desktop/assets/plugins/dsh-our-free-model/src/kilo.js:106 — the 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:555
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:359 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:549 — 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:359
  • REDACTED:97 · dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:233 — the two spans are one implementation copied and then locally edited — 98 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. — REDACTED:97

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.
R11 · Import Boundaries0.6 / 10Critical✓ Tool-verified

React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).

Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.

  • dsh-desktop/lib/desktop/runtime-paths.ts:140 imports @deepseek-ai/dsh/lib/bin.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — dsh-desktop/lib/desktop/runtime-paths.ts:140
  • dsh-desktop/scripts/eac-cli.ts:12 imports @deepseek-ai/dsh/lib/bin.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — dsh-desktop/scripts/eac-cli.ts:12
  • dsh-desktop/test/market-bundle-identity.test.ts:7 reaches past another workspace package's public entry into its internals with a relative path (../assets/plugins/dsh-unified-market/lib/bundle-toggle.mjs) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead. — dsh-desktop/test/market-bundle-identity.test.ts:7
  • dsh-desktop/test/npm-runtime-transaction.test.ts:14 reaches past another workspace package's public entry into its internals with a relative path (./updater.js) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead. — dsh-desktop/test/npm-runtime-transaction.test.ts:14
  • tauri-shell/create-update-manifest.mjs:8 reaches into another package with a relative path (../dsh-desktop/lib/desktop/update-sources.js) — import the package by name instead. — tauri-shell/create-update-manifest.mjs:8
  • tauri-shell/create-update-manifest.mjs:9 reaches into another package with a relative path (../dsh-desktop/lib/desktop/update-signature.js) — import the package by name instead. — tauri-shell/create-update-manifest.mjs:9
  • tauri-shell/make-portable.mjs:19 reaches into another package with a relative path (../dsh-desktop/lib/desktop/update-package.js) — import the package by name instead. — tauri-shell/make-portable.mjs:19
  • tauri-shell/sidecar/server.ts:19 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/client-update) — import the package by name instead. — tauri-shell/sidecar/server.ts:19
  • tauri-shell/sidecar/server.ts:21 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-sources) — import the package by name instead. — tauri-shell/sidecar/server.ts:21
  • tauri-shell/sidecar/server.ts:59 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/environment) — import the package by name instead. — tauri-shell/sidecar/server.ts:59
  • tauri-shell/sidecar/server.ts:150 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-data-binding) — import the package by name instead. — tauri-shell/sidecar/server.ts:150
  • tauri-shell/sidecar/server.ts:169 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/plugin-remove) — import the package by name instead. — tauri-shell/sidecar/server.ts:169
  • tauri-shell/sidecar/server.ts:349 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/client-update) — import the package by name instead. — tauri-shell/sidecar/server.ts:349
  • tauri-shell/sidecar/server.ts:350 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-platform) — import the package by name instead. — tauri-shell/sidecar/server.ts:350
  • tauri-shell/sidecar/server.ts:351 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-host) — import the package by name instead. — tauri-shell/sidecar/server.ts:351
  • tauri-shell/sidecar/server.ts:352 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-host-control) — import the package by name instead. — tauri-shell/sidecar/server.ts:352
  • tauri-shell/sidecar/server.ts:353 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-backup) — import the package by name instead. — tauri-shell/sidecar/server.ts:353
  • tauri-shell/sidecar/server.ts:358 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-archive) — import the package by name instead. — tauri-shell/sidecar/server.ts:358
  • tauri-shell/sidecar/server.ts:359 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-portable) — import the package by name instead. — tauri-shell/sidecar/server.ts:359
  • tauri-shell/sidecar/server.ts:360 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-portable-helper) — import the package by name instead. — tauri-shell/sidecar/server.ts:360
  • tauri-shell/sidecar/server.ts:361 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-nsis) — import the package by name instead. — tauri-shell/sidecar/server.ts:361
  • tauri-shell/sidecar/server.ts:362 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-nsis-helper) — import the package by name instead. — tauri-shell/sidecar/server.ts:362
  • tauri-shell/sidecar/server.ts:363 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-appimage) — import the package by name instead. — tauri-shell/sidecar/server.ts:363
  • tauri-shell/sidecar/server.ts:364 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-appimage-helper) — import the package by name instead. — tauri-shell/sidecar/server.ts:364
  • tauri-shell/sidecar/server.ts:365 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-linux) — import the package by name instead. — tauri-shell/sidecar/server.ts:365
  • tauri-shell/sidecar/server.ts:366 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-linux-helper) — import the package by name instead. — tauri-shell/sidecar/server.ts:366
  • tauri-shell/sidecar/server.ts:367 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-restart) — import the package by name instead. — tauri-shell/sidecar/server.ts:367
  • tauri-shell/sidecar/server.ts:368 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/client-update) — import the package by name instead. — tauri-shell/sidecar/server.ts:368
  • tauri-shell/sidecar/server.ts:372 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-restart) — import the package by name instead. — tauri-shell/sidecar/server.ts:372
  • tauri-shell/sidecar/server.ts:403 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-portable) — import the package by name instead. — tauri-shell/sidecar/server.ts:403
  • tauri-shell/sidecar/server.ts:404 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-nsis) — import the package by name instead. — tauri-shell/sidecar/server.ts:404
  • tauri-shell/sidecar/server.ts:405 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-appimage) — import the package by name instead. — tauri-shell/sidecar/server.ts:405
  • tauri-shell/sidecar/server.ts:406 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-linux) — import the package by name instead. — tauri-shell/sidecar/server.ts:406
  • tauri-shell/sidecar/server.ts:407 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-helper-process) — import the package by name instead. — tauri-shell/sidecar/server.ts:407
  • tauri-shell/sidecar/server.ts:439 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-backup) — import the package by name instead. — tauri-shell/sidecar/server.ts:439
  • tauri-shell/sidecar/server.ts:964 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/guard-box) — import the package by name instead. — tauri-shell/sidecar/server.ts:964
  • tauri-shell/sidecar/server.ts:985 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/guard-box) — import the package by name instead. — tauri-shell/sidecar/server.ts:985
  • tauri-shell/stage-resources.mjs:523 reaches into another package with a relative path (../dsh-desktop/lib/desktop/package-manager.js) — import the package by name instead. — tauri-shell/stage-resources.mjs:523

What to do

  • Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
R2 · Cyclomatic Complexity1.0 / 10Critical✓ 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.

  • routeHandler has cyclomatic complexity 204 and cognitive complexity 328; 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:2000
  • buildSceneManifestVia has cyclomatic complexity 193 and cognitive complexity 407; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1876
  • handler has cyclomatic complexity 172 and cognitive complexity 228; 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. — REDACTED:1692
  • runSingle has cyclomatic complexity 127 and cognitive complexity 210; 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:297
  • validateManifestInternal has cyclomatic complexity 117 and cognitive complexity 207; 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. — REDACTED:755
  • WallpaperPicker has cyclomatic complexity 114 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 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2023
  • MarketPanel has cyclomatic complexity 93 and cognitive complexity 92; 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:263
  • interpretOps has cyclomatic complexity 86 and cognitive complexity 151; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:223
  • tryCompositeSceneLayers has cyclomatic complexity 79 and cognitive complexity 105; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1227
  • readPortableJournal has cyclomatic complexity 78 and cognitive complexity 60; 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. — dsh-desktop/lib/desktop/update-portable.ts:26
  • renderImage has cyclomatic complexity 76 and cognitive complexity 74; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:61
  • Profile has cyclomatic complexity 76 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 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. — launcher/src/profile.tsx:82
  • parseMdlStatic has cyclomatic complexity 74 and cognitive complexity 121; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:51
  • _parseMdlStatic has cyclomatic complexity 74 and cognitive complexity 121; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:424
  • syncCompanionPlugins has cyclomatic complexity 74 and cognitive complexity 112; 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. — dsh-desktop/lib/desktop/companion-sync.ts:964
  • main has cyclomatic complexity 73 and cognitive complexity 107; 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. — dsh-desktop/scripts/e2e-full.js:153
  • parseCffFont has cyclomatic complexity 69 and cognitive complexity 133; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:65
  • ChannelCard has cyclomatic complexity 65 and cognitive complexity 63; 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. — REDACTED:4064
  • validateLockInternal has cyclomatic complexity 59 and cognitive complexity 91; 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. — REDACTED:1189
  • (anonymous) has cyclomatic complexity 59 and cognitive complexity 84; 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. — launcher/pack-hall/server.mjs:136
  • main has cyclomatic complexity 57 and cognitive complexity 73; 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. — dsh-desktop/scripts/e2e-v4.js:116
  • _parseMdl has cyclomatic complexity 54 and cognitive complexity 110; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:277
  • validateDistribution has cyclomatic complexity 54 and cognitive complexity 80; 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. — REDACTED:504
  • decodeJpegInner has cyclomatic complexity 53 and cognitive complexity 105; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/jpeg.js:281
  • tryCompositeMultiLayerScene has cyclomatic complexity 53 and cognitive complexity 76; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1205
  • renderModel has cyclomatic complexity 53 and cognitive complexity 59; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:7
  • validatePortableHandoff has cyclomatic complexity 51 and cognitive complexity 31; 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. — dsh-desktop/lib/desktop/update-portable-helper.ts:44
  • scanCandidate has cyclomatic complexity 50 and cognitive complexity 56; 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. — dsh-desktop/assets/plugins/dsh-unified-market/lib/plugin-conflict-scan.mjs:95
  • prepare has cyclomatic complexity 49 and cognitive complexity 51; 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. — tauri-shell/sidecar/server.ts:379
  • anthropicFrames has cyclomatic complexity 48 and cognitive complexity 79; 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:455
  • schemaMatches has cyclomatic complexity 46 and cognitive complexity 50; 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. — REDACTED:410
  • visit has cyclomatic complexity 45 and cognitive complexity 59; 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. — REDACTED:444
  • (anonymous) has cyclomatic complexity 45 and cognitive complexity 49; 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. — dsh-desktop/assets/plugins/dsh-our-free-model/src/reload.js:145
  • _drawParticles has cyclomatic complexity 44 and cognitive complexity 114; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:418
  • (anonymous) has cyclomatic complexity 44 and cognitive complexity 64; 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. — REDACTED:2326
  • applyUpdate has cyclomatic complexity 43 and cognitive complexity 59; 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. — dsh-desktop/updater.ts:371
  • parseTexInternal has cyclomatic complexity 43 and cognitive complexity 44; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:480
  • builtinReturnType has cyclomatic complexity 43 and cognitive complexity 9; 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. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:522
  • applyBuiltinPluginUpdateInner has cyclomatic complexity 42 and cognitive complexity 55; 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. — dsh-desktop/plugin-updater.ts:401
  • GitHubLoginDialog has cyclomatic complexity 42 and cognitive complexity 52; 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. — launcher/src/github-login.tsx:38
R3 · Large Files4.2 / 10Weak✓ 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.

  • REDACTED has 6385 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js has 4961 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1
  • REDACTED has 2857 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js has 2570 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1
  • dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js has 2421 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1
  • REDACTED has 2279 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-player.js has 1807 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-player.js:1
  • dsh-desktop/lib/desktop/companion-sync.ts has 1507 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/lib/desktop/companion-sync.ts:1
  • tauri-shell/sidecar/bridge.ts has 1497 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — tauri-shell/sidecar/bridge.ts:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js has 1468 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1
  • REDACTED has 1347 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • dsh-desktop/client-updater.ts has 1310 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/client-updater.ts:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js has 1269 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:1
  • tauri-shell/sidecar/server.ts has 1174 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — tauri-shell/sidecar/server.ts:1
  • dsh-desktop/assets/plugins/dsh-wechat/client.js has 1155 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-wechat/client.js:1
  • dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js has 1047 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js has 976 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:1
  • dsh-desktop/plugin-guard.ts has 859 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/plugin-guard.ts:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js has 821 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:1
  • REDACTED has 810 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js has 794 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js has 792 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:1
  • dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js has 772 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js has 754 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:1
  • tauri-shell/portable-path-shrink.mjs has 752 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — tauri-shell/portable-path-shrink.mjs:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js has 693 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js has 687 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:1
  • tauri-shell/stage-resources.mjs has 655 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — tauri-shell/stage-resources.mjs:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js has 637 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:1
  • dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js has 634 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js has 620 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:1
  • dsh-desktop/lib/desktop/environment.ts has 619 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/lib/desktop/environment.ts:1
  • dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js has 617 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js has 573 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js:1
  • dsh-desktop/updater.ts has 566 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/updater.ts:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js has 560 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:1
  • REDACTED has 541 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js has 541 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js:1
  • dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js has 533 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js:1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js has 518 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.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 Coverage7.6 / 10Strong✓ 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.

  • 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. (×40) — dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js:1, dsh-desktop/scripts/e2e-full.js:1, launcher/src/library.tsx:1, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness8.9 / 10Strong✓ 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.

R6 · Tooling6.7 / 10Adequate✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each REDACTED 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: REDACTED scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • test ✓ · lint ✗ · typecheck ✓ — read from this repository's REDACTED scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.

What to do

  • Add eslint as REDACTED scripts and run them in CI.
R7 · Dead Code8.4 / 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 331 application, 34 tooling and 117 test entry point(s) detected in this repo. Gate removals on `npm run typecheck` — an undetected custom entry would make these reachable.
  • no import path from any entry point (331 application, 34 tooling, 117 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 (×10) — dsh-desktop/scripts/fetch-kernel.ts, dsh-desktop/scripts/repair-session-log.js, dsh-desktop/scripts/gen-kernel-overrides.ts, …
  • Nothing imports this binding — it is safe to review for removal. (×13) — dsh-desktop/lib/desktop/welcome-account.ts:27, dsh-desktop/lib/desktop/welcome-account.ts:50, dsh-desktop/lib/desktop/welcome-account.ts:76, …
  • 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. (×11) — dsh-desktop/assets/plugins/dsh-our-free-model/src/vault.js:97, dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:53, dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/runtime.js:8, …

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 Hygiene0.0 / 10Critical✓ 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.

  • Imported but not declared in any reachable REDACTED — installs work only by hoisting accident. (×19) — dsh-desktop/assets/plugins/dsh-compact/lib/client.js:5, dsh-desktop/assets/plugins/dsh-easy-setup/lib/index.js:4, dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:25, …
  • Declared in dsh-desktop/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×4) — dsh-desktop/package.json:46, dsh-desktop/package.json:49, dsh-desktop/package.json:50, …
  • Declared in dsh-desktop/assets/plugins/ds-harness-remote/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. — dsh-desktop/assets/plugins/ds-harness-remote/package.json:78
  • Declared in dsh-desktop/assets/plugins/ds-harness-remote/package.json but never imported anywhere in that package or its workspace members — while dsh-desktop/scripts/e2e-full.js DOES import it and no REDACTED above that file declares it, so the import resolves through the copy this declaration installs. The declaration is misplaced rather than dead: removing it breaks that import. Move it to the REDACTED that owns the importing file (or, if the two packages are meant to share it, hoist it to the workspace root) rather than deleting it. — dsh-desktop/assets/plugins/ds-harness-remote/package.json:80
  • Declared in dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. — dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/package.json:62
  • Declared in REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. — REDACTED:75
  • Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2) — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json:26, dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json:28
  • Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2) — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json:26, dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json:28
  • Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2) — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json:26, dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json:28
  • Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2) — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json:26, dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json:28
  • Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2) — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json:26, dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json:28
  • Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2) — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json:28, dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json:30
  • Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/package.json:28

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports8.3 / 10Strong✓ 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.

  • dsh-desktop/lib/desktop/update-linux-root.ts → dsh-desktop/lib/desktop/update-linux.ts → dsh-desktop/lib/desktop/update-linux-root.ts — dsh-desktop/lib/desktop/update-linux-root.ts:22

What to do

  • Break each cycle by extracting the shared piece into a module both sides can import.
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 classification5.0 / 10Adequate✓ Tool-verified

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.

  • This function unwraps IPv4-MAPPED IPv6 (`to_ipv4_mapped`, line 68) and then rejects `169.254.0.0/16` on its IPv4 path — but the IPv6 decision at line 67 classifies the address as written, and IPv4 reaches IPv6 through three MORE embeddings this function never mentions: IPv4-compatible (`::a.b.c.d`), 6to4 (`2002::/16`) and NAT64 (`64:ff9b::/96`). So `::169.254.169.254`, `2002:a9fe:a9fe::` and `64:ff9b::169.254.0.0` all name a host inside `169.254.0.0/16` — the range this same function declares non-public — and all reach the IPv6 decision un-unwrapped, taking the opposite verdict. Unwrap every embedding to its IPv4 form before classifying, or reject any IPv6 address carrying an embedded IPv4 outright. — launcher/src-tauri/src/network.rs:67

What to do

  • Each finding names the IPv4 branch that rejects the host and the IPv6 branch that accepts the same host in another notation. Confirm from the two, then unwrap every IPv4-in-IPv6 embedding before classifying, or reject non-native IPv6 outright.
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.

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 state4.3 / 10Weak✓ Tool-verified

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.

  • this arrow function changes state that belongs to the whole PROCESS and changes it back at the end of the same body — the `PORTABLE_EXECUTABLE_DIR` environment variable (set at line 21, cleared at line 23) — which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a `finally`, so it is skipped by any exception thrown in between — or by a promise that rejects at an `await`, and while this function is suspended at one every other callback the event loop runs sees the moved value too: the process then keeps the overwritten value for the rest of its life, and every later relative path, child-process launch or config read in ANY module resolves against it. That failure is silent and remote from its cause — the function that breaks is not the function that moved the directory. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it — the `cwd` and `env` options of `child_process.spawn`/`exec`/`execSync` (or `Deno.Command`) scope both to the CHILD — or build absolute paths with `path.resolve`. Where the global genuinely must move, wrap it `try`/`finally` so the restore runs on every path. — dsh-desktop/scripts/update-check-probe.js:12

What to do

  • Each finding names the statement that changes the process-global value and the statement that puts it back. Confirm from the two that nothing between them is protected — then prefer removing the mutation over widening the restore: a working directory or an environment variable passed to the operation that needs it (the `cwd` and `env` options of `child_process`, or of `Deno.Command`) is scoped to that operation, which is what the save-and-restore was trying to approximate. Where the global genuinely must move, a `try`/`finally` is the least that makes the restore unconditional.
X2 · Cancellation propagation7.6 / 10Strong✓ 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 39/66 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) 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.
  • `requestHealth` awaits `http.request(…)` 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: `http.request(url, { signal })`. — dsh-desktop/lib/desktop/update-host-control.ts:40
  • `prepare` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`. — dsh-desktop/lib/desktop/update-host-control.ts:53
  • `startLinuxAuthorization` holds an AbortSignal but calls `cp.spawn(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `cp.spawn(…, { signal })`. — dsh-desktop/lib/desktop/update-linux-helper.ts:26
  • `prepareLinuxPackage` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`. — dsh-desktop/lib/desktop/update-linux.ts:113
  • `prepareNsis` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`. — dsh-desktop/lib/desktop/update-nsis.ts:37
  • `verifyReleaseTree` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`. — dsh-desktop/lib/desktop/update-package.ts:69
  • `preparePortableLocked` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`. — dsh-desktop/lib/desktop/update-portable.ts:78
  • `resolveUpdate` holds an AbortSignal but calls `fs.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fs.readFile(…, { signal })`. — dsh-desktop/lib/desktop/update-sources.ts:191
  • `pushPersisted` 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 })`. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:477
  • `loadPersisted` 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 })`. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:530
  • `loadInventory` 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 })`. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:583
  • `uploadWallpaperFile` 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 })`. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1014
  • `removeUploadWallpaper` 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 })`. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1053
  • `changeUploadDir` 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 })`. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1080
  • `refreshMediaInfo` 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 })`. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1426
  • `compactNow` 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 })`. — dsh-desktop/assets/plugins/dsh-compact/lib/client.js:173
  • `fetchSkinCatalogState` 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 })`. — dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2064
  • `requestDesktopIcon` 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 })`. — dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2078
  • `fetchSkinLocalVersions` 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 })`. — dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2093
  • `fetchSkinVersions` 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 })`. — dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2105
  • `requestSkinSwitch` 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 })`. — dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2117
  • `checkOnline` 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 })`. — dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:261
  • `refreshChips` 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 })`. — dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:273
  • `fetchDirList` 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 })`. — dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:419
  • `loadCatalog` 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 })`. — dsh-desktop/assets/plugins/dsh-boot-animation/lib/client.js:158
  • `writeSettings` 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 })`. — dsh-desktop/assets/plugins/dsh-boot-animation/lib/client.js:203
  • `playMode` 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 })`. — dsh-desktop/assets/plugins/dsh-boot-animation/lib/client.js:363

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.

X24 · Document value interpolated into markup unescaped5.0 / 10Adequate✓ Tool-verified

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.

  • `ICON_ART[name]??""` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-orca-link/lib/client.js:1997
  • `text.title` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — tauri-shell/src/exit-overlay.js:18
  • `text.body` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — tauri-shell/src/exit-overlay.js:19
  • `text.minimize` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — tauri-shell/src/exit-overlay.js:21
  • `text.quit` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — tauri-shell/src/exit-overlay.js:22
  • `text.cancel` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — tauri-shell/src/exit-overlay.js:23

What to do

  • Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X25 · Inert configuration knob7.5 / 10Strong✓ Tool-verified

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.

  • `renderGlsl` accepts `textures` from the caller and keeps it in `textures` on line 160, where only it can read the value — but nothing ever reads `textures`. Setting `textures` therefore changes nothing: every caller gets the same behaviour whatever they pass, and nothing reports that the option was ignored. Read `textures` where the behaviour it configures is decided — or, if the behaviour genuinely is fixed, remove `textures` from the accepted options so callers stop setting a knob that does nothing. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:160
  • `renderGlsl` accepts `time` from the caller and keeps it in `time` on line 160, where only it can read the value — but nothing ever reads `time`. Setting `time` therefore changes nothing: every caller gets the same behaviour whatever they pass, and nothing reports that the option was ignored. Read `time` where the behaviour it configures is decided — or, if the behaviour genuinely is fixed, remove `time` from the accepted options so callers stop setting a knob that does nothing. — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:160
  • `Settings.theme` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing. — launcher/src-tauri/src/model.rs:77
  • `Settings.reduced_motion` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing. — launcher/src-tauri/src/model.rs:78
  • `FileUsage.session_id` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing. — launcher/src-tauri/src/usage.rs:40
  • `FileUsage.truncated` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing. — launcher/src-tauri/src/usage.rs:46
  • `UsageCache.generated_at` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing. — launcher/src-tauri/src/usage.rs:55

What to do

  • Each finding names the spans that disagree — the knob the caller supplies and the site that ignores it, whether by re-spelling its default, by falling back under the wrong key, by parsing with no format provider at all, or by printing under whatever culture the host supplies. Confirm from those spans, then decide which of the two the type meant: read the knob at the named site, or drop the knob so the signature stops advertising something the type cannot feel. Leaving both is the one option that cannot be right.
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.1 / 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.

  • 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. (×28) — tauri-shell/gen-distribution-descriptor.mjs:48, tauri-shell/portable-path-shrink.mjs:105, tauri-shell/portable-path-shrink.mjs:365, …
  • `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, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included. (×6) — tauri-shell/portable-path-shrink.mjs:64, tauri-shell/portable-path-shrink.mjs:135, tauri-shell/portable-path-shrink.mjs:360, …
  • `.catch(function(){})` 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. (×6) — tauri-shell/src/update-boot-ui.js:23, tauri-shell/src/update-ui-checkpoint.js:43, tauri-shell/sidecar/bridge.ts:102, …

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.

X4 · Structured logging3.1 / 10Weak✓ Tool-verified

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. 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 `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `REDACTED` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.

  • `warn` at line 101 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:101
  • `warn` at line 112 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:112
  • `info` at line 135 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.info({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.info('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:135
  • `warn` at line 194 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:194

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types6.5 / 10Adequate✓ Tool-verified

Other · Code Health — Whether strict null checking is enabled and not undermined by heavy `!` assertion — TypeScript's `strictNullChecks` (which `strict` turns on) is what makes `string` exclude `null` and `undefined`, and the postfix `!` is the operator that silences it.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • ~8.7 `!` null assertions per 1k TypeScript source lines — 214 assertion(s) across the 24683 source line(s) of the 97 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: tauri-shell/sidecar/server.ts (14), dsh-desktop/builtin-collision.ts (13), dsh-desktop/lib/desktop/update-linux.ts (13). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.

What to do

  • The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).

WCAG coverage — what static analysis assessed

Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC4 · Keyboard semantics2.1.1, 2.4.3Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only

Not statically assessed — these 40 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

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 Health37.5Weak — gated by D1, D2, R2, X4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture67.7Adequate — gated by R11Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity62.7Adequate — gated by M4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness35.3Weak — gated by R8, P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security21.5Critical — gated by D29, D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility54.0AdequateAcceptable, with room to improve.
Performance60.0AdequateStrongest area.
Unscored — 3 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.

  • SC1 Supply-chain hygiene — 23 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X6 Hand-rolled structured-format parsing — 2 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 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.

  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 46 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.

  • 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; Rust with no dependency-injection crate has no container to hand one lifetime's instance to another — every value is owned by the code that builds it, and the borrow checker rejects a longer-lived value keeping a borrow of a shorter-lived one; this repository's TypeScript 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: Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written. 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
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — the dev server (`npm run dev`) exited before it served a page. Likely cause (our sandbox): `npm run` found no REDACTED in the folder where our sandbox ran it. This is a limit of our sandbox, not of your repository. Last output: "npm error code ENOENT / npm error syscall open / npm error path <repo>/package.json / npm error errno -2 / npm error enoent Could not read REDACTED: Error: ENOENT: no such file or directory, open '<repo>/package.json' / npm error enoent This is related to npm not being able to find a file. / npm error enoent / npm error A complete log of this run can be found in: <path>" No runtime evidence was gathered. This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no data at rest for these controls to protect.
  • C2 Access Controls — No access-control surface detected in the analyzed source — this repository starts no server another machine can reach (no actix-web HttpServer, axum::serve, Rocket launch, warp::serve, poem or salvo Server, tonic Server::builder, hyper or tiny_http server outside examples and tests, none bound beyond loopback). Access control is therefore N/A here — a crate is authorized by the application that serves it, not by itself. 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, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store 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, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over.
  • D11 Test Reliability — Test reliability not measured — JavaScript/TypeScript suite did not run
  • 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.
  • D21 Naming Consistency — Naming consistency does not read html yet; not measured.
  • D22 Internal API Consistency — API consistency is measured on C#, TypeScript, Go only; the exposed JavaScript, Rust surface was not measured.
  • 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"]`.
  • D25 ADR Conformance — None of 3 binding record(s) states a rule in checkable form (a backticked element with a prohibition, or an `adr-rules` block), so conformance cannot be read from the code. Write the rule as an `adr-rules` block (`forbid:` a symbol, a package or a dependency) to make it checkable.
  • 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) — 4 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • 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.
  • 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
  • D8 Code Coverage — Coverage not measured — JavaScript/TypeScript suite
  • DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 value object(s))
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
  • 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 — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • 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 — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
  • 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 REDACTED, 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 scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • S1 Web-Security Posture — No web surface: 25 Rust 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. This repository builds on an HTTP-server crate (`tiny_http` (launcher/src-tauri/Cargo.toml)) but serves no HTTP of its own: its production source starts no server (no `HttpServer::new`, `axum::serve`, `Server::bind`, tonic `Server::builder()…serve`, `rocket::build()`, `warp::serve`, `serve_connection` or the like — its examples and tests are not production source), so it is a library whose server controls belong to the application that serves it — HTTPS enforcement, HSTS, cookie flags and input validation are N/A here, as they are for a C# library. If this codebase starts serving HTTP, the dimension reactivates automatically.
  • X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score.
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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.
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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. Rust's compiler refuses the unsynchronised version: a collection shared between a callback's thread and the waiting body must be `Sync`, which a `Vec`, `VecDeque` or `HashMap` is only behind a `Mutex`/`RwLock`, so the race this check looks for cannot be written in safe Rust. 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 — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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.
  • 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 — 86 finding(s)
AC2 · Forms & labels · <input> without a programmatic label · ×26
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:212 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-compact/lib/client.js:227 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-compact/lib/client.js:235 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-compact/lib/client.js:242 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-compact/lib/client.js:249 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-compact/lib/client.js:266 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:489 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:3442 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label REDACTED:3443 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label REDACTED:3467 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label REDACTED:3568 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:3571 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:3602 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label REDACTED:3603 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label REDACTED:5055 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label REDACTED:5292 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:5400 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:5406 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:5544 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:5756 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:5834 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label REDACTED:5852 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2920 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2948 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:804 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • + 1 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <select> without a programmatic label · ×8
  • <select> without a programmatic label dsh-desktop/assets/plugins/dsh-compact/lib/client.js:257 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label REDACTED:5048 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label REDACTED:5294 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label REDACTED:5298 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label REDACTED:5302 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label REDACTED:5546 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:3085 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:825 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
D28 · Secrets (history) · REDACTED · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High CVE · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R8 · Dependency Hygiene · Unlisted import 'react' · ×6
  • Unlisted import 'react' dsh-desktop/assets/plugins/dsh-compact/lib/client.js:5 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
  • Unlisted import 'react' dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:25 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
  • Unlisted import 'react' REDACTED:26 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
  • Unlisted import 'react' dsh-desktop/assets/plugins/dsh-plugin-shield/lib/client.js:21 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
  • Unlisted import 'react' dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:13 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
  • Unlisted import 'react' dsh-desktop/assets/plugins/dsh-wechat/client.js:80 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
AC2 · Forms & labels · <label> that labels no control · ×3
  • <label> that labels no control dsh-desktop/assets/plugins/dsh-compact/lib/client.js:116 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control REDACTED:3586 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control dsh-desktop/assets/plugins/dsh-wechat/client.js:686 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
AC2 · Forms & labels · <textarea> without a programmatic label · ×3
  • <textarea> without a programmatic label dsh-desktop/assets/plugins/dsh-compact/lib/client.js:276 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <textarea> without a programmatic label dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:475 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <textarea> without a programmatic label REDACTED:5411 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
R8 · Dependency Hygiene · Unlisted import 'react-dom' · ×2
  • Unlisted import 'react-dom' REDACTED:27 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
  • Unlisted import 'react-dom' dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:12 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
AC1 · Text alternatives · <svg role="img"> without an accessible name · ×1
  • <svg role="img"> without an accessible name REDACTED:2797 — An svg presented as an image needs a name — add a <title> child or an aria-label/aria-labelledby.
AC4 · Keyboard semantics · Clickable element isn't keyboard-operable · ×1
  • Clickable element isn't keyboard-operable launcher/src/dialogs.tsx:51 — The repo's own CSS styles .discover-row with `cursor: pointer`, so this <div> is a control — but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a <button>, or add role + tabIndex={0} + a key handler.
D30 · Dependency Vulnerabilities · Critical CVE · ×1
  • REDACTED
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/dsh-typert-protocol' · ×1
  • Unlisted import '@deepseek-ai/dsh-typert-protocol' dsh-desktop/assets/plugins/dsh-easy-setup/lib/index.js:4 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/cordis-plugin-include' · ×1
  • Unlisted import '@deepseek-ai/cordis-plugin-include' dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1069 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/cordis' · ×1
  • Unlisted import '@deepseek-ai/cordis' dsh-desktop/test/easy-setup-typert.test.ts:7 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/dsh-agent-loop' · ×1
  • Unlisted import '@deepseek-ai/dsh-agent-loop' dsh-desktop/test/session-delete-021.test.ts:11 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/dsh-api-workspace-controller' · ×1
  • Unlisted import '@deepseek-ai/dsh-api-workspace-controller' dsh-desktop/test/session-delete-021.test.ts:12 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/dsh-app-boot' · ×1
  • Unlisted import '@deepseek-ai/dsh-app-boot' dsh-desktop/test/lite-skins-seeding.test.ts:22 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/dsh-typert-registry' · ×1
  • Unlisted import '@deepseek-ai/dsh-typert-registry' dsh-desktop/test/easy-setup-typert.test.ts:8 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@deepseek-ai/dsh-workspace' · ×1
  • Unlisted import '@deepseek-ai/dsh-workspace' dsh-desktop/test/session-delete-021.test.ts:10 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'http-cache-semantics' · ×1
  • Unlisted import 'http-cache-semantics' dsh-desktop/test/npm-runtime.test.ts:31 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'ws' · ×1
  • Unlisted import 'ws' dsh-desktop/test/native-update-relay.test.ts:10 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'yaml' · ×1
  • Unlisted import 'yaml' dsh-desktop/test/ci-workflow.test.ts:6 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R9 · Circular Imports · Import cycle (2 files) · ×1
  • Import cycle (2 files) dsh-desktop/lib/desktop/update-linux-root.ts:22 — dsh-desktop/lib/desktop/update-linux-root.ts → dsh-desktop/lib/desktop/update-linux.ts → dsh-desktop/lib/desktop/update-linux-root.ts
Serious — 1489 finding(s)
D2 · Cognitive Complexity · factory · ×40
  • factory::WallpaperPicker (cognitive 100) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2023 — factory::WallpaperPicker has cognitive complexity 100 (threshold 15). Drivers by points: boolean chains 55, ternaries 41 (42 pts), if/else 2, loops 1 (nesting depth added 1). 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.
  • factory::ChannelCard (cognitive 63) REDACTED:4064 — factory::ChannelCard has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 47, boolean chains 8, other 8. 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.
  • factory::syncLayers (cognitive 57) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1670 — factory::syncLayers has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (33 pts), error handling 3 (11 pts), boolean chains 7, loops 1 (4 pts), ternaries 1 (2 pts) (nesting depth added 28). 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.
  • factory::parseSafeHtml (cognitive 55) REDACTED:2511 — factory::parseSafeHtml has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (41 pts), loops 4 (8 pts), boolean chains 5, other 1 (nesting depth added 28). 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.
  • factory::UpgradePanel (cognitive 39) REDACTED:3694 — factory::UpgradePanel has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 20, boolean chains 15, other 4. 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.
  • factory::ChannelCard::startLogin (cognitive 38) REDACTED:4211 — factory::ChannelCard::startLogin has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (19 pts), error handling 5 (10 pts), boolean chains 7, ternaries 2 (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.
  • factory::translateNode (cognitive 38) dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js:541 — factory::translateNode has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 10, loops 2 (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.
  • factory::ModelCard (cognitive 37) REDACTED:2827 — factory::ModelCard has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 28, boolean chains 6, other 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.
  • factory::Forward (cognitive 37) REDACTED:3384 — factory::Forward has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 27, other 7, boolean chains 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.
  • factory::ShieldSection (cognitive 37) dsh-desktop/assets/plugins/dsh-plugin-shield/lib/client.js:162 — factory::ShieldSection has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 25, boolean chains 9, if/else 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.
  • factory::mergedHistoryChannels (cognitive 36) REDACTED:4692 — factory::mergedHistoryChannels has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (20 pts), if/else 2 (9 pts), other 7 (nesting depth added 19). 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.
  • factory::GatewayPage (cognitive 34) REDACTED:4963 — factory::GatewayPage has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 24, other 7, boolean chains 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.
  • factory::sanitizeAttrs (cognitive 31) REDACTED:2472 — factory::sanitizeAttrs has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 7, other 2, loops 1 (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.
  • factory::ProviderEditor (cognitive 31) REDACTED:5340 — factory::ProviderEditor has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 23, other 5, boolean chains 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.
  • factory::loadInventory (cognitive 30) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:583 — factory::loadInventory has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 9, ternaries 2 (3 pts), error handling 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.
  • factory::EacPage (cognitive 29) REDACTED:6247 — factory::EacPage has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 17, boolean chains 6, other 6. 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.
  • factory::Egress (cognitive 28) REDACTED:3494 — factory::Egress has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 19, other 7, boolean chains 2. 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.
  • factory::useEacLogin::(anonymous)::poll (cognitive 26) REDACTED:3118 — factory::useEacLogin::(anonymous)::poll has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 3 (6 pts), boolean chains 4, other 3, error handling 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.
  • factory::VisionQuick (cognitive 26) dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:179 — factory::VisionQuick has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 13, boolean chains 11, if/else 2. 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.
  • factory::Dashboard (cognitive 24) REDACTED:3234 — factory::Dashboard has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 13, other 8, boolean chains 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.
  • factory::installComposerSafeArea::syncBindings (cognitive 24) dsh-desktop/assets/plugins/dsh-viewport-lock/lib/client.js:117 — factory::installComposerSafeArea::syncBindings has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 2, ternaries 1 (2 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.
  • factory::sanitizeSettings (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:266 — factory::sanitizeSettings has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 16, boolean chains 6, if/else 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.
  • factory::loadPersisted (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:530 — factory::loadPersisted has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (5 pts), boolean chains 3, error handling 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.
  • factory::ChannelsPage (cognitive 22) REDACTED:4514 — factory::ChannelsPage has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 17, boolean chains 3, other 2. 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.
  • factory::refreshMediaInfo (cognitive 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1426 — factory::refreshMediaInfo has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, error handling 2, ternaries 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.
  • + 15 more in this group — see findings.md.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×40
  • Sync-over-async blocking REDACTED:145 — `fs.mkdirSync` in `startEgressRelay` 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 REDACTED:155 — `fs.writeFileSync` in `startEgressRelay` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:471 — `fs.rmSync` in `stageRelease` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:472 — `fs.mkdirSync` in `stageRelease` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:502 — `fs.mkdirSync` in `callback to Array.from` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:503 — `fs.writeFileSync` in `callback to Array.from` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:522 — `fs.rmSync` in `stageRelease` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:733 — `fs.renameSync` in `renameWithRetry` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:754 — `fs.mkdirSync` in `installStaged` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:755 — `fs.copyFileSync` in `installStaged` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:761 — `fs.rmSync` in `installStaged` 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 dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:1009 — `fs.rmSync` in `apply` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:413 — `writeFileSync` in `child.on("close")` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:549 — `mkdtempSync` in `runProbe` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:552 — `mkdirSync` in `runProbe` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:553 — `writeFileSync` in `runProbe` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:559 — `writeFileSync` in `runProbe` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:560 — `writeFileSync` in `runProbe` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:604 — `rmSync` in `runProbe` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:650 — `mkdtempSync` in `stageFetch` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:653 — `mkdirSync` in `stageFetch` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:654 — `writeFileSync` in `stageFetch` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:658 — `writeFileSync` in `stageFetch` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:659 — `writeFileSync` in `stageFetch` 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 dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:680 — `rmSync` in `stageFetch` 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.
  • + 15 more in this group — see findings.md.
R4 · Test Coverage · No test reaches this file · ×40
  • No test reaches this file dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js: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 dsh-desktop/scripts/e2e-full.js: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 launcher/src/library.tsx: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 dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/selection-store.js: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 dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/clip-registry.js: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 dsh-desktop/scripts/e2e-v4.js: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 REDACTED: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 launcher/src/dialogs.tsx: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 dsh-desktop/assets/plugins/dsh-settings-scroll-fix/src/client.js: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 launcher/scripts/sync-catalog.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 dsh-desktop/scripts/plugin-kernel-compat.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 launcher/src/profile.tsx: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 launcher/pack-hall/server.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 tauri-shell/portable-unzip-hint.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 tauri-shell/make-portable.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 launcher/src/github-login.tsx: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 dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/media-server.js: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 launcher/src/airdrop.tsx: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 reports/t1x-stress-isolation.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 dsh-desktop/scripts/repair-session-log.js: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 dsh-desktop/scripts/demo-rescue-ai.cjs: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 launcher/src/workspace.tsx: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 reports/t6-isolation-scenarios.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 dsh-desktop/scripts/verify-bugfix-cdp.js: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 launcher/src/hall.tsx: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.
  • + 15 more in this group — see findings.md.
D1 · Cyclomatic Complexity · factory · ×38
  • factory::WallpaperPicker (cyclomatic 114) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2023 — factory::WallpaperPicker has cyclomatic complexity 114 (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.
  • factory::ChannelCard (cyclomatic 65) REDACTED:4064 — factory::ChannelCard has cyclomatic complexity 65 (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.
  • factory::Forward (cyclomatic 41) REDACTED:3384 — factory::Forward has cyclomatic complexity 41 (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.
  • factory::UpgradePanel (cyclomatic 41) REDACTED:3694 — factory::UpgradePanel has cyclomatic complexity 41 (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.
  • factory::ShieldSection (cyclomatic 40) dsh-desktop/assets/plugins/dsh-plugin-shield/lib/client.js:162 — factory::ShieldSection has cyclomatic complexity 40 (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.
  • factory::ModelCard (cyclomatic 38) REDACTED:2827 — factory::ModelCard has cyclomatic complexity 38 (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.
  • factory::GatewayPage (cyclomatic 35) REDACTED:4963 — factory::GatewayPage has cyclomatic complexity 35 (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.
  • factory::ProviderEditor (cyclomatic 32) REDACTED:5340 — factory::ProviderEditor has cyclomatic complexity 32 (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.
  • factory::Dashboard (cyclomatic 31) REDACTED:3234 — factory::Dashboard has cyclomatic complexity 31 (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.
  • factory::EacPage (cyclomatic 31) REDACTED:6247 — factory::EacPage has cyclomatic complexity 31 (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.
  • factory::Egress (cyclomatic 30) REDACTED:3494 — factory::Egress has cyclomatic complexity 30 (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.
  • factory::parseSafeHtml (cyclomatic 29) REDACTED:2511 — factory::parseSafeHtml 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.
  • factory::VisionQuick (cyclomatic 29) dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:179 — factory::VisionQuick has cyclomatic complexity 29 (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.
  • factory::ChannelCard::startLogin (cyclomatic 28) REDACTED:4211 — factory::ChannelCard::startLogin 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.
  • factory::syncLayers (cyclomatic 28) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1670 — factory::syncLayers 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.
  • factory::translateNode (cyclomatic 26) dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js:541 — factory::translateNode 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.
  • factory::sanitizeSettings (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:266 — factory::sanitizeSettings has cyclomatic complexity 24 (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.
  • factory::loadInventory (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:583 — factory::loadInventory 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.
  • factory::useEacLogin::(anonymous)::poll (cyclomatic 23) REDACTED:3118 — factory::useEacLogin::(anonymous)::poll has cyclomatic complexity 23 (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.
  • factory::ChannelsPage (cyclomatic 23) REDACTED:4514 — factory::ChannelsPage has cyclomatic complexity 23 (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.
  • factory::FreePage (cyclomatic 23) REDACTED:6188 — factory::FreePage has cyclomatic complexity 23 (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.
  • factory::sanitizeAttrs (cyclomatic 22) REDACTED:2472 — factory::sanitizeAttrs 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.
  • factory::LedgerPage (cyclomatic 22) REDACTED:4762 — factory::LedgerPage has cyclomatic complexity 22 (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.
  • factory::refreshMediaInfo (cyclomatic 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1426 — factory::refreshMediaInfo 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.
  • factory::scoreCandidate (cyclomatic 22) dsh-desktop/assets/plugins/dsh-settings-scroll-fix/lib/client.js:168 — factory::scoreCandidate has cyclomatic complexity 22 (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.
  • + 13 more in this group — see findings.md.
R11 · Import Boundaries · Boundary violation [package · ×38
  • Boundary violation [package:third-party-deep-import] dsh-desktop/lib/desktop/runtime-paths.ts:140 — dsh-desktop/lib/desktop/runtime-paths.ts:140 imports @deepseek-ai/dsh/lib/bin.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] dsh-desktop/scripts/eac-cli.ts:12 — dsh-desktop/scripts/eac-cli.ts:12 imports @deepseek-ai/dsh/lib/bin.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:test-cross-package-internals] dsh-desktop/test/market-bundle-identity.test.ts:7 — dsh-desktop/test/market-bundle-identity.test.ts:7 reaches past another workspace package's public entry into its internals with a relative path (../assets/plugins/dsh-unified-market/lib/bundle-toggle.mjs) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead.
  • Boundary violation [package:test-cross-package-internals] dsh-desktop/test/npm-runtime-transaction.test.ts:14 — dsh-desktop/test/npm-runtime-transaction.test.ts:14 reaches past another workspace package's public entry into its internals with a relative path (./updater.js) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/create-update-manifest.mjs:8 — tauri-shell/create-update-manifest.mjs:8 reaches into another package with a relative path (../dsh-desktop/lib/desktop/update-sources.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/create-update-manifest.mjs:9 — tauri-shell/create-update-manifest.mjs:9 reaches into another package with a relative path (../dsh-desktop/lib/desktop/update-signature.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/make-portable.mjs:19 — tauri-shell/make-portable.mjs:19 reaches into another package with a relative path (../dsh-desktop/lib/desktop/update-package.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:19 — tauri-shell/sidecar/server.ts:19 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/client-update) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:21 — tauri-shell/sidecar/server.ts:21 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-sources) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:59 — tauri-shell/sidecar/server.ts:59 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/environment) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:150 — tauri-shell/sidecar/server.ts:150 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-data-binding) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:169 — tauri-shell/sidecar/server.ts:169 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/plugin-remove) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:349 — tauri-shell/sidecar/server.ts:349 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/client-update) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:350 — tauri-shell/sidecar/server.ts:350 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-platform) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:351 — tauri-shell/sidecar/server.ts:351 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-host) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:352 — tauri-shell/sidecar/server.ts:352 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-host-control) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:353 — tauri-shell/sidecar/server.ts:353 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-backup) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:358 — tauri-shell/sidecar/server.ts:358 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-archive) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:359 — tauri-shell/sidecar/server.ts:359 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-portable) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:360 — tauri-shell/sidecar/server.ts:360 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-portable-helper) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:361 — tauri-shell/sidecar/server.ts:361 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-nsis) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:362 — tauri-shell/sidecar/server.ts:362 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-nsis-helper) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:363 — tauri-shell/sidecar/server.ts:363 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-appimage) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:364 — tauri-shell/sidecar/server.ts:364 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-appimage-helper) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] tauri-shell/sidecar/server.ts:365 — tauri-shell/sidecar/server.ts:365 reaches into another package with a relative path (../../dsh-desktop/lib/desktop/update-linux) — import the package by name instead.
  • + 13 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×34
  • Swallowed exception (empty catch) tauri-shell/gen-distribution-descriptor.mjs:48 — 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) tauri-shell/portable-path-shrink.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) tauri-shell/portable-path-shrink.mjs:365 — 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) tauri-shell/portable-path-shrink.mjs:515 — 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) tauri-shell/portable-path-shrink.mjs:608 — 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) tauri-shell/portable-path-shrink.mjs:778 — 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) tauri-shell/stage-resources.mjs:264 — 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) tauri-shell/src/update-boot-ui.js:22 — 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) tauri-shell/src/update-boot-ui.js:23 — `.catch(function(){})` 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) tauri-shell/src/update-ui-checkpoint.js:43 — `.catch(function(){})` 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) tauri-shell/sidecar/bridge.ts:45 — 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) tauri-shell/sidecar/bridge.ts: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) tauri-shell/sidecar/bridge.ts:72 — 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) tauri-shell/sidecar/bridge.ts:101 — 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) tauri-shell/sidecar/bridge.ts:102 — `.catch(function(){})` 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) tauri-shell/sidecar/bridge.ts:108 — `.catch(function(){})` 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) tauri-shell/sidecar/bridge.ts:112 — 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) tauri-shell/sidecar/bridge.ts:202 — 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) tauri-shell/sidecar/bridge.ts:210 — 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) tauri-shell/sidecar/bridge.ts:314 — 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) tauri-shell/sidecar/bridge.ts:317 — 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) tauri-shell/sidecar/bridge.ts:399 — 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) tauri-shell/sidecar/bridge.ts:411 — 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) tauri-shell/sidecar/bridge.ts:520 — `.catch(function(){})` 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) tauri-shell/sidecar/bridge.ts:528 — `.catch(function(){})` 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.
  • + 9 more in this group — see findings.md.
D3 · God Classes · FunctionTooLong · ×29
  • FunctionTooLong: index.apply REDACTED:135 — FunctionTooLong — apply runs 897 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 797 over it, 8.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: model.installModel dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:5 — FunctionTooLong — installModel runs 559 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 459 over it, 5.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: scene-manifest.buildSceneManifestVia dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1876 — FunctionTooLong — buildSceneManifestVia runs 521 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 421 over it, 5.21× 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: puppet.installPuppet dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:5 — FunctionTooLong — installPuppet runs 476 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 376 over it, 4.76× 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: particles.installParticles dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:5 — FunctionTooLong — installParticles runs 390 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 290 over it, 3.90× 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: image.installImage dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:6 — FunctionTooLong — installImage runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.12× 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: companion-sync.syncCompanionPlugins dsh-desktop/lib/desktop/companion-sync.ts:964 — FunctionTooLong — syncCompanionPlugins runs 289 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 189 over it, 2.89× 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: store.LauncherProvider REDACTED:94 — FunctionTooLong — LauncherProvider runs 267 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 167 over it, 2.67× 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: profile.Profile launcher/src/profile.tsx:82 — FunctionTooLong — Profile runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31× 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: github-login.GitHubLoginDialog launcher/src/github-login.tsx:38 — FunctionTooLong — GitHubLoginDialog runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.24× 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: runtime.createModelRuntime dsh-desktop/assets/plugins/dsh-our-free-model/src/core/runtime.js:47 — FunctionTooLong — createModelRuntime runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.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: index.createApiRoutes.handler REDACTED:1692 — FunctionTooLong — createApiRoutes.handler runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04× 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: plugin-sync.validateManifestInternal REDACTED:755 — FunctionTooLong — validateManifestInternal runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× 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: library.Market launcher/src/library.tsx:110 — FunctionTooLong — Market runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45× 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: server.server launcher/pack-hall/server.mjs:136 — FunctionTooLong — server runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40× 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: demo-rescue-ai.main dsh-desktop/scripts/demo-rescue-ai.cjs:70 — FunctionTooLong — main runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33× 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: integration.installGlsl dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:8 — FunctionTooLong — installGlsl runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× 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: jpeg.decodeJpegInner dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/jpeg.js:281 — FunctionTooLong — decodeJpegInner runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× 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: font-render.interpretCharstring dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:217 — FunctionTooLong — interpretCharstring runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29× 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: camera.installCamera dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:96 — FunctionTooLong — installCamera runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29× 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: forward.responsesEndpoint dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:992 — FunctionTooLong — responsesEndpoint runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19× 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: airdrop.AirDropDialog launcher/src/airdrop.tsx:145 — FunctionTooLong — AirDropDialog 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: updater.applyUpdate dsh-desktop/updater.ts:371 — FunctionTooLong — applyUpdate runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17× 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: font-render.parseCffFont dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:65 — FunctionTooLong — parseCffFont runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13× 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: scene-manifest.tryCompositeMultiLayerScene dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1205 — FunctionTooLong — tryCompositeMultiLayerScene runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09× 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.
  • + 4 more in this group — see findings.md.
X2 · Cancellation propagation · Async function without AbortSignal · ×27
  • Async function without AbortSignal: requestHealth dsh-desktop/lib/desktop/update-host-control.ts:40 — `requestHealth` awaits `http.request(…)` 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: `http.request(url, { signal })`.
  • Async function without AbortSignal: prepare dsh-desktop/lib/desktop/update-host-control.ts:53 — `prepare` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`.
  • Async function without AbortSignal: startLinuxAuthorization dsh-desktop/lib/desktop/update-linux-helper.ts:26 — `startLinuxAuthorization` holds an AbortSignal but calls `cp.spawn(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `cp.spawn(…, { signal })`.
  • Async function without AbortSignal: prepareLinuxPackage dsh-desktop/lib/desktop/update-linux.ts:113 — `prepareLinuxPackage` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`.
  • Async function without AbortSignal: prepareNsis dsh-desktop/lib/desktop/update-nsis.ts:37 — `prepareNsis` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`.
  • Async function without AbortSignal: verifyReleaseTree dsh-desktop/lib/desktop/update-package.ts:69 — `verifyReleaseTree` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`.
  • Async function without AbortSignal: preparePortableLocked dsh-desktop/lib/desktop/update-portable.ts:78 — `preparePortableLocked` holds an AbortSignal but calls `fsp.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fsp.readFile(…, { signal })`.
  • Async function without AbortSignal: resolveUpdate dsh-desktop/lib/desktop/update-sources.ts:191 — `resolveUpdate` holds an AbortSignal but calls `fs.readFile(…)` without it, so its caller's cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: `fs.readFile(…, { signal })`.
  • Async function without AbortSignal: pushPersisted dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:477 — `pushPersisted` 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 })`.
  • Async function without AbortSignal: loadPersisted dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:530 — `loadPersisted` 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 })`.
  • Async function without AbortSignal: loadInventory dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:583 — `loadInventory` 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 })`.
  • Async function without AbortSignal: uploadWallpaperFile dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1014 — `uploadWallpaperFile` 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 })`.
  • Async function without AbortSignal: removeUploadWallpaper dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1053 — `removeUploadWallpaper` 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 })`.
  • Async function without AbortSignal: changeUploadDir dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1080 — `changeUploadDir` 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 })`.
  • Async function without AbortSignal: refreshMediaInfo dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1426 — `refreshMediaInfo` 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 })`.
  • Async function without AbortSignal: compactNow dsh-desktop/assets/plugins/dsh-compact/lib/client.js:173 — `compactNow` 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 })`.
  • Async function without AbortSignal: fetchSkinCatalogState dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2064 — `fetchSkinCatalogState` 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 })`.
  • Async function without AbortSignal: requestDesktopIcon dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2078 — `requestDesktopIcon` 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 })`.
  • Async function without AbortSignal: fetchSkinLocalVersions dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2093 — `fetchSkinLocalVersions` 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 })`.
  • Async function without AbortSignal: fetchSkinVersions dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2105 — `fetchSkinVersions` 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 })`.
  • Async function without AbortSignal: requestSkinSwitch dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/lib/client.js:2117 — `requestSkinSwitch` 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 })`.
  • Async function without AbortSignal: checkOnline dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:261 — `checkOnline` 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 })`.
  • Async function without AbortSignal: refreshChips dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:273 — `refreshChips` 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 })`.
  • Async function without AbortSignal: fetchDirList dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:419 — `fetchDirList` 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 })`.
  • Async function without AbortSignal: loadCatalog dsh-desktop/assets/plugins/dsh-boot-animation/lib/client.js:158 — `loadCatalog` 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 })`.
  • + 2 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×23
  • FileTooLong: REDACTED REDACTED — FileTooLong — 5360 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 1500 significant lines; this is 3860 over it, 3.57× 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: lib/client.js dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js — FileTooLong — 3241 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 1500 significant lines; this is 1741 over it, 2.16× 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/main.rs tauri-shell/src/main.rs — FileTooLong — 2905 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 129 free functions. The bar is 500 significant lines; this is 2405 over it, 5.81× 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: REDACTED REDACTED — FileTooLong — 1973 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 1473 over it, 3.95× 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: lib/scene-manifest.js dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js — FileTooLong — 1926 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 1426 over it, 3.85× 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/engine.rs launcher/src-tauri/src/engine.rs — FileTooLong — 1859 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 86% of them inside a single declaration: Engine (2 blocks, 25-2039). The bar is 500 significant lines; this is 1359 over it, 3.72× 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: REDACTED REDACTED — FileTooLong — 1441 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 62% of them inside a single declaration: apply (135-1583). The bar is 500 significant lines; this is 941 over it, 2.88× 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: lib/pkg-extract.js dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js — FileTooLong — 1036 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 536 over it, 2.07× 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: REDACTED REDACTED — FileTooLong — 977 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 477 over it, 1.95× 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: REDACTED REDACTED — FileTooLong — 973 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 473 over it, 1.95× 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: sidecar/server.ts tauri-shell/sidecar/server.ts — FileTooLong — 853 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 353 over it, 1.71× 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: sidecar/bridge.ts tauri-shell/sidecar/bridge.ts — FileTooLong — 804 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 304 over it, 1.61× 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/forward.js dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js — FileTooLong — 771 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 271 over it, 1.54× 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: desktop/companion-sync.ts dsh-desktop/lib/desktop/companion-sync.ts — FileTooLong — 763 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 263 over it, 1.53× 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/social.rs launcher/src-tauri/src/social.rs — FileTooLong — 760 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 70% of them inside a single declaration: Engine (139-808). The bar is 500 significant lines; this is 260 over it, 1.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: dsh-desktop/client-updater.ts dsh-desktop/client-updater.ts — FileTooLong — 730 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 230 over it, 1.46× 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: dsh-desktop/plugin-guard.ts dsh-desktop/plugin-guard.ts — FileTooLong — 670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 170 over it, 1.34× 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/updater.js dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js — FileTooLong — 624 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 124 over it, 1.25× 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: lib/font-render.js dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js — FileTooLong — 605 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 105 over it, 1.21× 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: we-renderer/model.js dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js — FileTooLong — 560 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: installModel (5-705). The bar is 500 significant lines; this is 60 over it, 1.12× 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: we-renderer/core.js dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js — FileTooLong — 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: SceneRenderer (30-773). The bar is 500 significant lines; this is 34 over it, 1.07× 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: src/adapter.js dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js — FileTooLong — 519 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 78% of them inside a single declaration: FreeModelAdapter (47-664). The bar is 500 significant lines; this is 19 over it, 1.04× 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: REDACTED REDACTED — FileTooLong — 507 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 7 over it, 1.01× 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.
SC1 · Supply-chain hygiene · JavaScript dependencies are not locked · ×23
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/ds-harness-remote/package.json:75 — dsh-desktop/assets/plugins/ds-harness-remote/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-boot-animation/package.json:40 — dsh-desktop/assets/plugins/dsh-boot-animation/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-client-file-changes/package.json:20 — dsh-desktop/assets/plugins/dsh-client-file-changes/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/package.json:48 — dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-compact/package.json:35 — dsh-desktop/assets/plugins/dsh-compact/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-eac-core-bridge/package.json:28 — dsh-desktop/assets/plugins/dsh-eac-core-bridge/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-file-changes/package.json:13 — dsh-desktop/assets/plugins/dsh-file-changes/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked REDACTED:67 — REDACTED declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/package.json:71 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/plugins/dsh-wechat/package.json:51 — dsh-desktop/assets/plugins/dsh-wechat/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@dsh-external_dsh-client-ui-skin-deep-whale-day-night/package.json:25 — dsh-desktop/assets/skins/@dsh-external_dsh-client-ui-skin-deep-whale-day-night/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json:24 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json:24 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json:24 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json:24 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json:24 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json:26 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/package.json:26 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-whale-song/package.json:24 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-whale-song/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-xp/package.json:24 — dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-xp/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-maid-atelier/package.json:42 — dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-maid-atelier/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-orca-link/package.json:42 — dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-orca-link/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
  • JavaScript dependencies are not locked dsh-desktop/assets/skins/dsh-client-liang-intensity-skin/package.json:72 — dsh-desktop/assets/skins/dsh-client-liang-intensity-skin/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
D15 · Churn × Complexity Hotspots · Hotspot · ×17
  • Hotspot: dsh-desktop/lib/desktop/companion-sync.ts dsh-desktop/lib/desktop/companion-sync.ts:964 — dsh-desktop/lib/desktop/companion-sync.ts changed 62 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 111 in companion-sync.syncCompanionPlugins at line 964. 21 of those changes were fix/bug commits, and the other 41 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/lib/desktop/companion-sync.ts`: 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: tauri-shell/src/main.rs tauri-shell/src/main.rs:2990 — tauri-shell/src/main.rs changed 62 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 98 in dsh_eac_tauri_shell::handle_shell_method at line 2990. 23 of those changes were fix/bug commits, and the other 39 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- tauri-shell/src/main.rs`: 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: dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1985 — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 233 in host.apply at line 1985. 4 of those changes were fix/bug commits, and the other 12 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/assets/plugins/dsh-unified-market/lib/host.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: dsh-desktop/lib/desktop/boot-server.ts dsh-desktop/lib/desktop/boot-server.ts:215 — dsh-desktop/lib/desktop/boot-server.ts changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in boot-server.watchServerProc at line 215. 13 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/lib/desktop/boot-server.ts`: 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: tauri-shell/sidecar/bridge.ts tauri-shell/sidecar/bridge.ts:922 — tauri-shell/sidecar/bridge.ts changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in bridge.handleGuestEvent at line 922. 16 of those changes were fix/bug commits, and the other 22 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- tauri-shell/sidecar/bridge.ts`: 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: dsh-desktop/plugin-manager-state.ts dsh-desktop/plugin-manager-state.ts:196 — dsh-desktop/plugin-manager-state.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in plugin-manager-state.collectPluginRows at line 196. 2 of those changes were fix/bug commits, and the other 9 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/plugin-manager-state.ts`: 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: dsh-desktop/scripts/e2e-full.js dsh-desktop/scripts/e2e-full.js:153 — dsh-desktop/scripts/e2e-full.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 85 in e2e-full.main at line 153. 2 of those changes were fix/bug commits, and the other 7 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/scripts/e2e-full.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: REDACTED REDACTED:755 — REDACTED changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 119 in plugin-sync.validateManifestInternal at line 755. 1 of those changes was a fix/bug commit, and the other 5 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- REDACTED`: 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: REDACTED REDACTED:1150 — REDACTED changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in patch-deps.patchMenuSubmenuScroll at line 1150. 7 of those changes were fix/bug commits, and the other 10 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- REDACTED`: 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: dsh-desktop/lib/desktop/plugin-ops.ts dsh-desktop/lib/desktop/plugin-ops.ts:344 — dsh-desktop/lib/desktop/plugin-ops.ts changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in plugin-ops.pluginManagerSetEnabled at line 344. 4 of those changes were fix/bug commits, and the other 9 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/lib/desktop/plugin-ops.ts`: 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: tauri-shell/audit-linux-bundle.mjs tauri-shell/audit-linux-bundle.mjs:58 — tauri-shell/audit-linux-bundle.mjs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in audit-linux-bundle.auditLinuxBundle at line 58. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- tauri-shell/audit-linux-bundle.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: dsh-desktop/scripts/fetch-kernel.js dsh-desktop/scripts/fetch-kernel.js:179 — dsh-desktop/scripts/fetch-kernel.js changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in fetch-kernel.main at line 179. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/scripts/fetch-kernel.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: dsh-desktop/scripts/fetch-kernel.ts dsh-desktop/scripts/fetch-kernel.ts:201 — dsh-desktop/scripts/fetch-kernel.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in fetch-kernel.main at line 201. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/scripts/fetch-kernel.ts`: 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: dsh-desktop/session-watcher.ts dsh-desktop/session-watcher.ts:166 — dsh-desktop/session-watcher.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in SessionWatcher.process at line 166. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/session-watcher.ts`: 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: dsh-desktop/scripts/fetch-npm.ts dsh-desktop/scripts/fetch-npm.ts:37 — dsh-desktop/scripts/fetch-npm.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in fetch-npm.copyBundledNpm at line 37. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/scripts/fetch-npm.ts`: 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: dsh-desktop/scripts/e2e-mario.js dsh-desktop/scripts/e2e-mario.js:58 — dsh-desktop/scripts/e2e-mario.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in e2e-mario.main at line 58. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/scripts/e2e-mario.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: dsh-desktop/stable-port.ts dsh-desktop/stable-port.ts:48 — dsh-desktop/stable-port.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in stable-port.chooseStableWebPort at line 48. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/stable-port.ts`: 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.
D30 · Dependency Vulnerabilities · Medium advisory (unsound) · ×13
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.5 · ×12
  • Low contrast colour pair in CSS (3.5:1) launcher/src/airdrop.css:23 — `:root[data-skin="pixel"] .segmented > button.active` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/skins.css:41 — `:root[data-skin="pixel"] ::selection` sets color: #ffffff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/skins.css:42 — `:root[data-skin="standard"] ::selection` sets color: #ffffff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/skins.css:326 — `:root[data-skin="standard"] .button-primary` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/skins.css:413 — `:root[data-skin="pixel"] .button-primary` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/true-pixel.css:45 — `:root[data-skin="pixel"] .workspace-avatar` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/true-pixel.css:52 — `:root[data-skin="pixel"] .nav-item.active` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/true-pixel.css:85 — `:root[data-skin="pixel"] .button-primary` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/true-pixel.css:90 — `:root[data-skin="pixel"] .badge-cyan` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/true-pixel.css:159 — `:root[data-skin="pixel"] .instance-picker.selected` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/true-pixel.css:161 — `:root[data-skin="pixel"] .instance-glyph, :root[data-skin="pixel"] .glyph-cyan, :root[data-skin="pixel"] .kernel-icon, :root[data-skin="pixel"] .shortcut-icon.cyan` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) launcher/src/true-pixel.css:177 — `:root[data-skin="pixel"] .plugin-tile, :root[data-skin="pixel"] .tile-0` sets color: #fff on background-color: #3d87f7 — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · apply · ×12
  • apply::syncRelayOnce (cyclomatic 25) REDACTED:602 — apply::syncRelayOnce has cyclomatic complexity 25 (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.
  • apply::handler (cyclomatic 25) REDACTED:2040 — apply::handler 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.
  • apply::handler (cyclomatic 25) REDACTED:2260 — apply::handler has cyclomatic complexity 25 (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.
  • apply::testModel (cyclomatic 23) REDACTED:1296 — apply::testModel has cyclomatic complexity 23 (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.
  • apply::syncChanRelayOnce (cyclomatic 21) REDACTED:705 — apply::syncChanRelayOnce has cyclomatic complexity 21 (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.
  • apply::syncForwardOnce (cyclomatic 20) REDACTED:497 — apply::syncForwardOnce has cyclomatic complexity 20 (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.
  • apply::eacAuthRootOf::eacAuthStatus (cyclomatic 19) REDACTED:244 — apply::eacAuthRootOf::eacAuthStatus 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.
  • apply::apply (cyclomatic 18) REDACTED:1218 — apply::apply 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.
  • apply::handler (cyclomatic 18) REDACTED:2545 — apply::handler has cyclomatic complexity 18 (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.
  • apply::syncEgressOnce (cyclomatic 17) REDACTED:836 — apply::syncEgressOnce has cyclomatic complexity 17 (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.
  • apply::handler (cyclomatic 17) REDACTED:2447 — apply::handler has cyclomatic complexity 17 (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.
  • apply::save (cyclomatic 16) REDACTED:1060 — apply::save 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 · apply · ×11
  • apply::handler (cognitive 48) REDACTED:2040 — apply::handler has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (30 pts), ternaries 3 (8 pts), boolean chains 7, error handling 1 (3 pts) (nesting depth added 25). 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.
  • apply::testModel (cognitive 30) REDACTED:1296 — apply::testModel has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (16 pts), other 6, ternaries 3 (4 pts), boolean chains 3, loops 1 (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.
  • apply::handler (cognitive 29) REDACTED:2260 — apply::handler has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 10, ternaries 4, error handling 1 (2 pts) (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.
  • apply::syncRelayOnce (cognitive 23) REDACTED:602 — apply::syncRelayOnce has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 7, if/else 6, other 6, error handling 2 (3 pts), ternaries 1 (nesting depth added 1). 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.
  • apply::syncForwardOnce (cognitive 20) REDACTED:497 — apply::syncForwardOnce has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 6, if/else 6, error handling 2 (3 pts), ternaries 2 (3 pts), other 2 (nesting depth added 2). 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.
  • apply::eacAuthRootOf::eacAuthStatus (cognitive 19) REDACTED:244 — apply::eacAuthRootOf::eacAuthStatus has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6, boolean chains 4, other 4, if/else 2 (3 pts), error handling 2 (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.
  • apply::syncChanRelayOnce (cognitive 19) REDACTED:705 — apply::syncChanRelayOnce has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 5, if/else 5, other 5, error handling 2 (3 pts), ternaries 1 (nesting depth added 1). 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.
  • apply::set (cognitive 18) REDACTED:1165 — apply::set has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, other 2, ternaries 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.
  • apply::handler (cognitive 18) REDACTED:2447 — apply::handler has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5, error handling 1 (2 pts), ternaries 2 (nesting depth added 1). 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.
  • apply::save (cognitive 16) REDACTED:1060 — apply::save has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), other 4, boolean chains 3, ternaries 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.
  • apply::apply (cognitive 16) REDACTED:1218 — apply::apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 3, other 3, ternaries 1 (2 pts) (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.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D2 · Cognitive Complexity · Engine · ×9
  • Engine::discover_local (cognitive 86) launcher/src-tauri/src/engine.rs:588 — Engine::discover_local has cognitive complexity 86 (threshold 15). Drivers by points: if/else 24 (67 pts), loops 9 (18 pts), boolean chains 1 (nesting depth added 52). 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.
  • Engine::wait_ready (cognitive 39) launcher/src-tauri/src/engine.rs:1281 — Engine::wait_ready has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (37 pts), boolean chains 1, loops 1 (nesting depth added 23). 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.
  • Engine::usage_profile (cognitive 27) launcher/src-tauri/src/usage.rs:112 — Engine::usage_profile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 2 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). 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.
  • Engine::call (cognitive 24) launcher/src-tauri/src/engine.rs:153 — Engine::call has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 2 (4 pts), boolean chains 1 (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.
  • Engine::achievement_event (cognitive 22) launcher/src-tauri/src/achievements.rs:178 — Engine::achievement_event has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1, match/switch 1 (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.
  • Engine::plugin (cognitive 22) launcher/src-tauri/src/engine.rs:1537 — Engine::plugin has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (22 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.
  • Engine::usage_roots (cognitive 20) launcher/src-tauri/src/usage.rs:214 — Engine::usage_roots has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (6 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.
  • Engine::secure_request (cognitive 18) launcher/src-tauri/src/network.rs:132 — Engine::secure_request has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2, match/switch 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.
  • Engine::github_login_poll (cognitive 17) launcher/src-tauri/src/social.rs:467 — Engine::github_login_poll has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 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 · dsh_eac_tauri_shell · ×8
  • dsh_eac_tauri_shell::main (cognitive 159) tauri-shell/src/main.rs:4989 — dsh_eac_tauri_shell::main has cognitive complexity 159 (threshold 15). Drivers by points: if/else 54 (135 pts), match/switch 8 (17 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 92). 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.
  • dsh_eac_tauri_shell::handle_shell_method (cognitive 148) tauri-shell/src/main.rs:2990 — dsh_eac_tauri_shell::handle_shell_method has cognitive complexity 148 (threshold 15). Drivers by points: if/else 50 (114 pts), match/switch 14 (27 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 79). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
  • dsh_eac_tauri_shell::handle_conn (cognitive 55) tauri-shell/src/main.rs:3936 — dsh_eac_tauri_shell::handle_conn has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (27 pts), match/switch 7 (22 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 29). 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.
  • dsh_eac_tauri_shell::handle_sidecar_notify (cognitive 54) tauri-shell/src/main.rs:4847 — dsh_eac_tauri_shell::handle_sidecar_notify has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (47 pts), match/switch 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 31). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
  • dsh_eac_tauri_shell::browser_acquire (cognitive 36) tauri-shell/src/main.rs:2757 — dsh_eac_tauri_shell::browser_acquire has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (24 pts), match/switch 3 (6 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 14). 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.
  • dsh_eac_tauri_shell::resource_root (cognitive 22) tauri-shell/src/main.rs:699 — dsh_eac_tauri_shell::resource_root has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 1 (nesting depth added 11). 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.
  • dsh_eac_tauri_shell::http_serve (cognitive 17) tauri-shell/src/main.rs:4555 — dsh_eac_tauri_shell::http_serve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 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.
  • dsh_eac_tauri_shell::ws_handshake_allowed (cognitive 16) tauri-shell/src/main.rs:3720 — dsh_eac_tauri_shell::ws_handshake_allowed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), 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.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Medium CVE · ×8
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R8 · Dependency Hygiene · Unused dependency 'lightningcss' · ×8
  • Unused dependency 'lightningcss' dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/package.json:62 — Declared in dsh-desktop/assets/plugins/dsh-client-ui-skin-deep-whale-manager/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'lightningcss' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json:26 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'lightningcss' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json:26 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'lightningcss' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json:26 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'lightningcss' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json:26 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'lightningcss' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json:26 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'lightningcss' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json:28 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'lightningcss' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/package.json:28 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-trading/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.9 · ×6
  • Low contrast colour pair in CSS (3.9:1) launcher/src/airdrop.css:27 — `:root[data-skin="pixel"][data-theme="dark"] .segmented > button.active` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.9:1) launcher/src/airdrop.css:234 — `.window-close:hover` sets color: #fff on background-color: #e5484d — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.9:1) launcher/src/pixel-night.css:27 — `:root[data-skin="pixel"][data-theme="dark"] .workspace-avatar` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.9:1) launcher/src/pixel-night.css:34 — `:root[data-skin="pixel"][data-theme="dark"] .nav-item.active` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.9:1) launcher/src/pixel-night.css:73 — `:root[data-skin="pixel"][data-theme="dark"] .button-primary` sets color: #fff on background-color: #2f7cff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.9:1) launcher/src/standard-workbench.css:92 — `:root[data-skin="standard"] .nav-item:hover .nav-item-icon` sets color: #3f7fe0 on background-color: #fff — 3.9:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D2 · Cognitive Complexity · installImage · ×6
  • installImage::renderImage (cognitive 74) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:61 — installImage::renderImage has cognitive complexity 74 (threshold 15). Drivers by points: boolean chains 29, if/else 22 (24 pts), ternaries 13 (18 pts), loops 1 (3 pts) (nesting depth added 9). 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.
  • installImage::_renderPassthroughLayer (cognitive 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:239 — installImage::_renderPassthroughLayer has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, ternaries 5, loops 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.
  • installImage::_renderSolidLayer (cognitive 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:196 — installImage::_renderSolidLayer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, boolean chains 7, ternaries 6 (7 pts) (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.
  • installImage::_retroImage (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:402 — installImage::_retroImage has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 2 (6 pts), loops 3 (6 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.
  • installImage::_materialUniforms (cognitive 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:37 — installImage::_materialUniforms has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (5 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 11). 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.
  • installImage::_flagImage (cognitive 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:333 — installImage::_flagImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (5 pts), ternaries 3 (5 pts), boolean chains 4, loops 2 (3 pts) (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.
IC1 · Incompleteness & stubs · Both branches are identical · ×6
  • Both branches are identical — the condition decides nothing dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:242 — The `if` and its `else` contain the same statements, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body.
  • Both branches are identical — the condition decides nothing dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:361 — The `if` and its `else` contain the same statements, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body.
  • Both branches are identical — the condition decides nothing dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:56 — Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition.
  • Both branches are identical — the condition decides nothing dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:114 — Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition.
  • Both branches are identical — the condition decides nothing dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:784 — Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition.
  • Both branches are identical — the condition decides nothing dsh-desktop/scripts/verify-bugfix-cdp.js:162 — Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition.
R8 · Dependency Hygiene · Unused dependency 'vite-tsconfig-paths' · ×6
  • Unused dependency 'vite-tsconfig-paths' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json:28 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-blue-fantasy/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'vite-tsconfig-paths' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json:28 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-dragon-heir/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'vite-tsconfig-paths' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json:28 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-miku/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'vite-tsconfig-paths' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json:28 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-minecraft/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'vite-tsconfig-paths' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json:28 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-qq98/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'vite-tsconfig-paths' dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json:30 — Declared in dsh-desktop/assets/skins/@linxin666_dsh-client-ui-skin-ths/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×6
  • Untrusted text written into markup unescaped dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-orca-link/lib/client.js:1997 — `ICON_ART[name]??""` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped tauri-shell/src/exit-overlay.js:18 — `text.title` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped tauri-shell/src/exit-overlay.js:19 — `text.body` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped tauri-shell/src/exit-overlay.js:21 — `text.minimize` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped tauri-shell/src/exit-overlay.js:22 — `text.quit` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped tauri-shell/src/exit-overlay.js:23 — `text.cancel` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×6
  • Swallowed exception (caught, then discarded) tauri-shell/portable-path-shrink.mjs:64 — `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, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) tauri-shell/portable-path-shrink.mjs:135 — `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, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) tauri-shell/portable-path-shrink.mjs:360 — `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, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) tauri-shell/portable-path-shrink.mjs:394 — `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, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) tauri-shell/portable-path-shrink.mjs:490 — `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, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) tauri-shell/portable-path-shrink.mjs:540 — `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, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×5
  • Focus outline removed in CSS without a :focus replacement launcher/src/styles.css:100 — `.global-search input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement launcher/src/styles.css:101 — `.global-search input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement launcher/src/styles.css:109 — `.main-content:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement launcher/src/styles.css:303 — `.search-field input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement launcher/src/styles.css:304 — `.search-field input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D1 · Cyclomatic Complexity · dsh_eac_tauri_shell · ×5
  • dsh_eac_tauri_shell::handle_shell_method (cyclomatic 98) tauri-shell/src/main.rs:2990 — dsh_eac_tauri_shell::handle_shell_method has cyclomatic complexity 98 (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.
  • dsh_eac_tauri_shell::main (cyclomatic 73) tauri-shell/src/main.rs:4989 — dsh_eac_tauri_shell::main has cyclomatic complexity 73 (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.
  • dsh_eac_tauri_shell::handle_sidecar_notify (cyclomatic 33) tauri-shell/src/main.rs:4847 — dsh_eac_tauri_shell::handle_sidecar_notify has cyclomatic complexity 33 (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.
  • dsh_eac_tauri_shell::handle_conn (cyclomatic 28) tauri-shell/src/main.rs:3936 — dsh_eac_tauri_shell::handle_conn 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.
  • dsh_eac_tauri_shell::browser_acquire (cyclomatic 23) tauri-shell/src/main.rs:2757 — dsh_eac_tauri_shell::browser_acquire has cyclomatic complexity 23 (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 · installPuppet · ×5
  • installPuppet::_parseMdlStatic (cognitive 121) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:424 — installPuppet::_parseMdlStatic has cognitive complexity 121 (threshold 15). Drivers by points: if/else 30 (77 pts), loops 11 (23 pts), boolean chains 16, ternaries 3 (5 pts) (nesting depth added 61). 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.
  • installPuppet::_parseMdl (cognitive 110) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:277 — installPuppet::_parseMdl has cognitive complexity 110 (threshold 15). Drivers by points: if/else 18 (47 pts), loops 15 (38 pts), boolean chains 11, error handling 3 (8 pts), ternaries 2 (6 pts) (nesting depth added 61). 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.
  • installPuppet::_skinPuppet (cognitive 54) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:95 — installPuppet::_skinPuppet has cognitive complexity 54 (threshold 15). Drivers by points: loops 14 (29 pts), if/else 9 (17 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 24). 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.
  • installPuppet::renderPuppet (cognitive 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:7 — installPuppet::renderPuppet has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 5 (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, 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.
  • installPuppet::_rasterizeMesh (cognitive 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:578 — installPuppet::_rasterizeMesh has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 14). 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 · eac_launcher · ×5
  • eac_launcher::usage::parse_session (cognitive 29) launcher/src-tauri/src/usage.rs:303 — eac_launcher::usage::parse_session has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 17). 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.
  • eac_launcher::usage::aggregate (cognitive 25) launcher/src-tauri/src/usage.rs:407 — eac_launcher::usage::aggregate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 7 (10 pts) (nesting depth added 14). 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.
  • eac_launcher::usage::session_files (cognitive 23) launcher/src-tauri/src/usage.rs:270 — eac_launcher::usage::session_files has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (3 pts), boolean chains 2 (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.
  • eac_launcher::files::rebase_entries (cognitive 17) launcher/src-tauri/src/files.rs:204 — eac_launcher::files::rebase_entries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (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.
  • eac_launcher::files::extract_zip (cognitive 16) launcher/src-tauri/src/files.rs:299 — eac_launcher::files::extract_zip has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, 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.
D30 · Dependency Vulnerabilities · Medium advisory (unmaintained) · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X25 · Inert configuration knob · Configuration option is read nowhere · ×5
  • Configuration option is read nowhere launcher/src-tauri/src/model.rs:77 — `Settings.theme` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing.
  • Configuration option is read nowhere launcher/src-tauri/src/model.rs:78 — `Settings.reduced_motion` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing.
  • Configuration option is read nowhere launcher/src-tauri/src/usage.rs:40 — `FileUsage.session_id` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. A test asserts that it parses, which proves the key is read from the input, not that it does anything. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing.
  • Configuration option is read nowhere launcher/src-tauri/src/usage.rs:46 — `FileUsage.truncated` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing.
  • Configuration option is read nowhere launcher/src-tauri/src/usage.rs:55 — `UsageCache.generated_at` is offered as a configuration-file option, so whoever configures the program can set it — but no production code reads it. Every value supplied for it is silently ignored. Consult it where it was meant to take effect — or, if it genuinely does nothing, remove it (or mark it deprecated and say so in its documentation) so the configuration stops advertising a setting that changes nothing.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.0 · ×4
  • Low contrast colour pair in CSS (3.0:1) launcher/src/airdrop.css:237 — `:root[data-skin="pixel"] .window-close:hover` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.0:1) launcher/src/true-pixel.css:56 — `:root[data-skin="pixel"] .nav-count` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.0:1) launcher/src/true-pixel.css:91 — `:root[data-skin="pixel"] .badge-coral` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.0:1) launcher/src/true-pixel.css:178 — `:root[data-skin="pixel"] .tile-1` sets color: #fff on background-color: #ff5c7a — 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · installPuppet · ×4
  • installPuppet::_parseMdlStatic (cyclomatic 74) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:424 — installPuppet::_parseMdlStatic has cyclomatic complexity 74 (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.
  • installPuppet::_parseMdl (cyclomatic 54) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:277 — installPuppet::_parseMdl 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.
  • installPuppet::_skinPuppet (cyclomatic 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:95 — installPuppet::_skinPuppet has cyclomatic complexity 33 (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.
  • installPuppet::renderPuppet (cyclomatic 26) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:7 — installPuppet::renderPuppet has cyclomatic complexity 26 (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.
D15 · Churn × Complexity Hotspots · Repeated repair · ×4
  • Repeated repair: dsh-desktop/lib/desktop/runtime-paths.ts dsh-desktop/lib/desktop/runtime-paths.ts:127 — dsh-desktop/lib/desktop/runtime-paths.ts changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is runtime-paths.effectiveOverlay at line 127), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(security): 锁定包管理器闭包并校验安全生产装配”; “fix(runtime): fall back after overlay boot failure”; “fix(runtime): validate and quarantine broken DSH overlays”; “fix(test): runtime-paths 支持注入 appRoot,Linux 用例确定化”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/lib/desktop/runtime-paths.ts`: 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.
  • Repeated repair: dsh-desktop/lib/desktop/runtime-patches.ts dsh-desktop/lib/desktop/runtime-patches.ts:97 — dsh-desktop/lib/desktop/runtime-patches.ts changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 11 (its worst body is runtime-patches.applyKernelTagToneFix at line 97), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(session): 0.2.x 删除会话兼容 persistence.list() 新形状 (#503)”; “fix(bundle-identity): 内核包不在 profile 时把全部插件标红 —— 连坐误报”; “fix(kernel-css): 反色标签把背景层色当文字色用 —— 字看不见”; “fix: 5.3.3 批次二——审查接续+性能7项+死功能接线+三处真bug根治”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/lib/desktop/runtime-patches.ts`: 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.
  • Repeated repair: dsh-desktop/lib/atomic-json.ts dsh-desktop/lib/atomic-json.ts:22 — dsh-desktop/lib/atomic-json.ts changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 14 (its worst body is atomic-json.writeFileAtomic at line 22), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: 5.3.5 复审接续——批次一回归2项+P0冻结真根治(lnk批量异步)+WS握手peek截断P1+安全围栏4项+壳恢复链4项+插件3项+卫生项”; “fix: 5.3.5 全库 bug 大扫除——壳韧性14+安全围栏5+更新器/原子写8+插件资产8+打包链9(含 P0 配对挂死根治:boot.start 应答提前+备份清理异步延迟30s)”; “fix: 5.3.3 批次一——高危8项+快照链接线+功能bug约30项+性能3项”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/lib/atomic-json.ts`: 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.
  • Repeated repair: dsh-desktop/scripts/build-native.ts dsh-desktop/scripts/build-native.ts:52 — dsh-desktop/scripts/build-native.ts changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is build-native.windowsCargoTarget at line 52), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(build): 提升 Windows 首次编译兼容性 (#304)”; “fix: 5.3.5 复审接续——批次一回归2项+P0冻结真根治(lnk批量异步)+WS握手peek截断P1+安全围栏4项+壳恢复链4项+插件3项+卫生项”; “fix: 5.3.5 全库 bug 大扫除——壳韧性14+安全围栏5+更新器/原子写8+插件资产8+打包链9(含 P0 配对挂死根治:boot.start 应答提前+备份清理异步延迟30s)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-16 19:30:52 +08:00' --until='2026-11-14 19:30:52 +08:00' --full-history --no-merges -- dsh-desktop/scripts/build-native.ts`: 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.
D2 · Cognitive Complexity · installParticles · ×4
  • installParticles::_drawParticles (cognitive 114) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:418 — installParticles::_drawParticles has cognitive complexity 114 (threshold 15). Drivers by points: if/else 18 (66 pts), ternaries 10 (25 pts), loops 5 (15 pts), boolean chains 8 (nesting depth added 73). 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.
  • installParticles::_applyOperator (cognitive 67) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:295 — installParticles::_applyOperator has cognitive complexity 67 (threshold 15). Drivers by points: if/else 11 (30 pts), ternaries 8 (28 pts), loops 2 (4 pts), other 3, match/switch 1 (2 pts) (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.
  • installParticles::_buildParticleSystemInner (cognitive 48) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:53 — installParticles::_buildParticleSystemInner has cognitive complexity 48 (threshold 15). Drivers by points: if/else 8 (19 pts), ternaries 4 (15 pts), boolean chains 10, loops 1 (4 pts) (nesting depth added 25). 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.
  • installParticles::_stepParticles (cognitive 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:166 — installParticles::_stepParticles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 5 (6 pts), boolean chains 3, ternaries 1 (2 pts) (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.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D3 · God Classes · ClassTooLong · ×4
  • ClassTooLong: Engine launcher/src-tauri/src/engine.rs:25 — ClassTooLong — 1595 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 101 methods, 2 blocks, lines 25-2039. The bar is 400 significant lines; this is 1195 over it, 3.99× 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.
  • ClassTooLong: SceneRenderer dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:30 — ClassTooLong — 501 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 101 over it, 1.25× 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.
  • ClassTooLong: Transpiler dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:28 — ClassTooLong — 444 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 44 over it, 1.11× 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.
  • ClassTooLong: FreeModelAdapter dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:47 — ClassTooLong — 406 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 6 over it, 1.02× 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.
D30 · Dependency Vulnerabilities · Medium vulnerability · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×4
  • Outbound HTTP without resilience dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:146 — `http.request(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience REDACTED:106 — `fetch(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience REDACTED:114 — `fetch(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:568 — `http.request(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
R10 · Code Duplication · Duplicated block (24 lines × 2 locations) · ×4
  • Duplicated block (24 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:556 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:556 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:719 — 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.
  • Duplicated block (24 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:741 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:741 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:842 — 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.
  • Duplicated block (24 lines × 2 locations) dsh-desktop/assets/plugins/dsh-wechat/client.js:967 — dsh-desktop/assets/plugins/dsh-wechat/client.js:967 · dsh-desktop/assets/plugins/dsh-wechat/client.js:997 — 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 (24 lines × 2 locations) dsh-desktop/lib/desktop/companion-sync.ts:126 — dsh-desktop/lib/desktop/companion-sync.ts:126 · dsh-desktop/lib/desktop/companion-sync.ts:224 — 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.
AC4 · Keyboard semantics · Modal dialog does not manage focus · ×3
  • Modal dialog does not manage focus REDACTED:4500 — This <div role="dialog"> is a modal dialog, but nothing moves focus into it when it opens, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
  • Modal dialog does not manage focus REDACTED:6337 — This <div role="dialog"> is a modal dialog, but nothing moves focus into it when it opens, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
  • Modal dialog does not manage focus dsh-desktop/assets/plugins/dsh-plugin-shield/lib/client.js:290 — This <div role="alertdialog"> is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
D1 · Cyclomatic Complexity · installImage · ×3
  • installImage::renderImage (cyclomatic 76) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:61 — installImage::renderImage has cyclomatic complexity 76 (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.
  • installImage::_renderSolidLayer (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:196 — installImage::_renderSolidLayer has cyclomatic complexity 24 (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.
  • installImage::_renderPassthroughLayer (cyclomatic 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:239 — installImage::_renderPassthroughLayer has cyclomatic complexity 23 (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 · installModel · ×3
  • installModel::renderModel (cyclomatic 53) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:7 — installModel::renderModel has cyclomatic complexity 53 (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.
  • installModel::_rasterizeMesh3D (cyclomatic 34) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:162 — installModel::_rasterizeMesh3D has cyclomatic complexity 34 (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.
  • installModel::_shadeGeneric (cyclomatic 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:559 — installModel::_shadeGeneric has cyclomatic complexity 33 (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 · installParticles · ×3
  • installParticles::_drawParticles (cyclomatic 44) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:418 — installParticles::_drawParticles 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.
  • installParticles::_applyOperator (cyclomatic 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:295 — installParticles::_applyOperator has cyclomatic complexity 33 (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.
  • installParticles::_buildParticleSystemInner (cyclomatic 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:53 — installParticles::_buildParticleSystemInner 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 · Engine · ×3
  • Engine::discover_local (cyclomatic 35) launcher/src-tauri/src/engine.rs:588 — Engine::discover_local has cyclomatic complexity 35 (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 is NOT this file's highest cyclomatic complexity: Engine::dispatch (cyclomatic 45) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • Engine::achievement_event (cyclomatic 26) launcher/src-tauri/src/achievements.rs:178 — Engine::achievement_event 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.
  • Engine::wait_ready (cyclomatic 17) launcher/src-tauri/src/engine.rs:1281 — Engine::wait_ready 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. This is NOT this file's highest cyclomatic complexity: Engine::dispatch (cyclomatic 45) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · installGlsl · ×3
  • installGlsl::_compileWorkshopEffect (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:12 — installGlsl::_compileWorkshopEffect has cyclomatic complexity 24 (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.
  • installGlsl::_applyGlslEffect (cyclomatic 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:65 — installGlsl::_applyGlslEffect has cyclomatic complexity 18 (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.
  • installGlsl::_renderGlslEffect (cyclomatic 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:130 — installGlsl::_renderGlslEffect has cyclomatic complexity 16 (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.
D10 · Test Quality · Fixed-sleep synchronisation · ×3
  • Fixed-sleep synchronisation: timeout and error on one readiness request schedule only one retry dsh-desktop/test/boot-stop-safety.test.ts:138 — This test starts work it did not wait for (`rejected`, still running when the sleep starts) and then orders itself against it with `new Promise(r => setTimeout(r, 350))` — 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: rc.2 settings update consumer can initialize with the desktop bridge dsh-desktop/test/bridge-preload-parity.test.ts:574 — This test starts work it did not wait for (`updates`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 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: SYNC-005: updates status/subscribe carry the real presentation stream dsh-desktop/test/bridge-preload-parity.test.ts:739 — This test starts work it did not wait for (`updates`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 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.
D2 · Cognitive Complexity · installModel · ×3
  • installModel::_rasterizeMesh3D (cognitive 71) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:162 — installModel::_rasterizeMesh3D has cognitive complexity 71 (threshold 15). Drivers by points: if/else 13 (46 pts), boolean chains 11, ternaries 2 (8 pts), loops 3 (6 pts) (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.
  • installModel::renderModel (cognitive 59) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:7 — installModel::renderModel has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 18, ternaries 9 (10 pts), loops 4 (7 pts), other 3 (nesting depth added 10). 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.
  • installModel::_shadeGeneric (cognitive 39) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:559 — installModel::_shadeGeneric has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 8 (15 pts), boolean chains 14, if/else 8 (9 pts), loops 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 · installGlsl · ×3
  • installGlsl::_compileWorkshopEffect (cognitive 29) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:12 — installGlsl::_compileWorkshopEffect has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8, error handling 5 (8 pts), ternaries 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.
  • installGlsl::_applyGlslEffect (cognitive 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:65 — installGlsl::_applyGlslEffect has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, ternaries 2 (4 pts), if/else 2 (3 pts), error handling 2, loops 1 (nesting depth added 3). 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.
  • installGlsl::_renderGlslEffect (cognitive 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:130 — installGlsl::_renderGlslEffect has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 2 (4 pts), if/else 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). 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.
D3 · God Classes · MethodTooLong · ×3
  • MethodTooLong: FreeModelAdapter.runSingle dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:297 — MethodTooLong — runSingle runs 279 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 179 over it, 2.79× 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.
  • MethodTooLong: Engine.launch launcher/src-tauri/src/engine.rs:1165 — MethodTooLong — launch runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) 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.
  • MethodTooLong: Engine.discover_local launcher/src-tauri/src/engine.rs:588 — MethodTooLong — discover_local runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) 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.
IC1 · Incompleteness & stubs · Fake-async · ×3
  • Fake-async — async method never awaits REDACTED:543 — `handleSessionCwdRoute` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits REDACTED:1337 — `main` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits tauri-shell/sidecar/server.ts:597 — `preBootSync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
R10 · Code Duplication · Duplicated block (27 lines × 2 locations) · ×3
  • Duplicated block (27 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:120 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:120 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:256 — 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.
  • Duplicated block (27 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:884 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:884 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1022 — 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.
  • Duplicated block (27 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:134 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:134 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:513 — 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.
AC3 · Page structure · Heading level jumps from h1 to h3 · ×2
  • Heading level jumps from h1 to h3 launcher/src/library.tsx:341 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
  • Heading level jumps from h1 to h3 launcher/src/system.tsx:35 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.5 · ×2
  • Low contrast colour pair in CSS (2.5:1) tauri-shell/artifacts/resolved/system.default/style-states.css:115 — `[data-region="top-sidebar"] [data-control-name="window-close"]:hover` sets color: #fff on background-color: #ff7a85 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.5:1) tauri-shell/artifacts/resolved/system.default/regions/top-sidebar/styles.css:91 — `[data-region="top-sidebar"] [data-control-name="window-close"]:hover` sets color: #fff on background-color: #ff7a85 — 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · installCamera · ×2
  • installCamera::_setupCamera (cyclomatic 35) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:156 — installCamera::_setupCamera has cyclomatic complexity 35 (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.
  • installCamera::_resolveCameraPose (cyclomatic 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:98 — installCamera::_resolveCameraPose 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 · welcome-account.accountView (cyclomatic 23) · ×2
  • welcome-account.accountView (cyclomatic 23) dsh-desktop/lib/desktop/welcome-account.js:132 — welcome-account.accountView has cyclomatic complexity 23 (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.
  • welcome-account.accountView (cyclomatic 23) dsh-desktop/lib/desktop/welcome-account.ts:194 — welcome-account.accountView has cyclomatic complexity 23 (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 · fetch-kernel.main (cyclomatic 16) · ×2
  • fetch-kernel.main (cyclomatic 16) dsh-desktop/scripts/fetch-kernel.js:179 — fetch-kernel.main 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.
  • fetch-kernel.main (cyclomatic 16) dsh-desktop/scripts/fetch-kernel.ts:201 — fetch-kernel.main 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 · installCamera · ×2
  • installCamera::_setupCamera (cognitive 44) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:156 — installCamera::_setupCamera has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 10 (16 pts), boolean chains 10, loops 1 (2 pts) (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.
  • installCamera::_resolveCameraPose (cognitive 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:98 — installCamera::_resolveCameraPose has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 5, loops 3 (4 pts), ternaries 3, error handling 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 · fetch-kernel.main (cognitive 24) · ×2
  • fetch-kernel.main (cognitive 24) dsh-desktop/scripts/fetch-kernel.js:179 — fetch-kernel.main has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 6). 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.
  • fetch-kernel.main (cognitive 24) dsh-desktop/scripts/fetch-kernel.ts:201 — fetch-kernel.main has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 6). 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 · companion-sync.syncCompanionPlugins · ×2
  • companion-sync.syncCompanionPlugins::ensurePluginHostDeps (cognitive 21) dsh-desktop/lib/desktop/companion-sync.ts:1156 — companion-sync.syncCompanionPlugins::ensurePluginHostDeps has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (5 pts), boolean chains 2, loops 1 (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. This shape REPEATS in the file: 2 other methods here (companion-sync.syncCompanionPlugins, companion-sync.syncCompanionPlugins::ensurePluginHostDeps::ensureCopy) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
  • companion-sync.syncCompanionPlugins::ensurePluginHostDeps::ensureCopy (cognitive 18) dsh-desktop/lib/desktop/companion-sync.ts:1158 — companion-sync.syncCompanionPlugins::ensurePluginHostDeps::ensureCopy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (2 pts), ternaries 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. This shape REPEATS in the file: 2 other methods here (companion-sync.syncCompanionPlugins, companion-sync.syncCompanionPlugins::ensurePluginHostDeps) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
D2 · Cognitive Complexity · Sidecar · ×2
  • Sidecar::spawn_reader (cognitive 20) tauri-shell/src/main.rs:2259 — Sidecar::spawn_reader has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (4 pts), loops 2 (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.
  • Sidecar::spawn (cognitive 16) tauri-shell/src/main.rs:2154 — Sidecar::spawn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 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.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×2
  • Duplicated block (11 lines × 2) launcher/src-tauri/src/social.rs:502 — launcher/src-tauri/src/social.rs:502-512 | launcher/src-tauri/src/social.rs:573-583 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `launcher/src-tauri/src/social.rs:502` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) tauri-shell/src/main.rs:4916 — tauri-shell/src/main.rs:4916-4926 | tauri-shell/src/main.rs:5162-5172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `tauri-shell/src/main.rs:4916` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×2
  • Duplicated block (5 lines × 2) tauri-shell/src/main.rs:1375 — tauri-shell/src/main.rs:1375-1380 | tauri-shell/src/main.rs:1397-1401 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `tauri-shell/src/main.rs:1375` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) tauri-shell/src/main.rs:1923 — tauri-shell/src/main.rs:1923-1927 | tauri-shell/src/main.rs:1965-1969 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `tauri-shell/src/main.rs:1923` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
R10 · Code Duplication · Duplicated block with local edits (40 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (40 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:314 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:314 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:114 — the two spans are one implementation copied and then locally edited — 555 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.
  • Duplicated block with local edits (40 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:62 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:62 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:107 — the two spans are one implementation copied and then locally edited — 347 tokens are still identical, in the same order in both spans, 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 (36 lines × 2 locations) · ×2
  • Duplicated block (36 lines × 2 locations) dsh-desktop/scripts/fetch-kernel.js:253 — dsh-desktop/scripts/fetch-kernel.js:253 · dsh-desktop/scripts/fetch-kernel.ts:285 — 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.
  • Duplicated block (36 lines × 2 locations) dsh-desktop/scripts/gen-kernel-overrides.js:118 — dsh-desktop/scripts/gen-kernel-overrides.js:118 · dsh-desktop/scripts/gen-kernel-overrides.ts:125 — 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 (32 lines × 2 locations) · ×2
  • Duplicated block (32 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:45 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:45 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:56 — the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour — the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator's options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents.
  • Duplicated block (32 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:283 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:283 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:450 — 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 (29 lines × 2 locations) · ×2
  • Duplicated block (29 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:780 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:780 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:879 — 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.
  • Duplicated block (29 lines × 2 locations) dsh-desktop/scripts/e2e-full.js:43 — dsh-desktop/scripts/e2e-full.js:43 · dsh-desktop/scripts/e2e-v4.js:34 — 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 (28 lines × 2 locations) · ×2
  • Duplicated block (28 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:159 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:159 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:553 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (28 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:91 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:91 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:226 — 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.
X25 · Inert configuration knob · Option is kept and never read · ×2
  • Option is kept and never read dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:160 — `renderGlsl` accepts `textures` from the caller and keeps it in `textures` on line 160, where only it can read the value — but nothing ever reads `textures`. Setting `textures` therefore changes nothing: every caller gets the same behaviour whatever they pass, and nothing reports that the option was ignored. Read `textures` where the behaviour it configures is decided — or, if the behaviour genuinely is fixed, remove `textures` from the accepted options so callers stop setting a knob that does nothing.
  • Option is kept and never read dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:160 — `renderGlsl` accepts `time` from the caller and keeps it in `time` on line 160, where only it can read the value — but nothing ever reads `time`. Setting `time` therefore changes nothing: every caller gets the same behaviour whatever they pass, and nothing reports that the option was ignored. Read `time` where the behaviour it configures is decided — or, if the behaviour genuinely is fixed, remove `time` from the accepted options so callers stop setting a knob that does nothing.
AC1 · Text alternatives · <canvas> without a text alternative · ×1
  • <canvas> without a text alternative dsh-desktop/assets/plugins/dsh-wechat/lib/host.js:4331 — A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content.
AC3 · Page structure · Page without a main landmark · ×1
  • Page without a main landmark tauri-shell/src/client-update.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.7 · ×1
  • Low contrast colour pair in CSS (2.7:1) launcher/src/pixel-night.css:38 — `:root[data-skin="pixel"][data-theme="dark"] .nav-count` sets color: #fff on background-color: #ff6b8a — 2.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.0 · ×1
  • Low contrast colour pair in CSS (1.0:1) launcher/src/pixel-night.css:98 — `:root[data-skin="pixel"][data-theme="dark"] .telemetry-status, :root[data-skin="pixel"][data-theme="dark"] .telemetry-status i, :root[data-skin="pixel"][data-theme="dark"] .telemetry-status i.online` sets color: #eef6ff on background-color: #eef6ff — 1.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.3 · ×1
  • Low contrast colour pair in CSS (2.3:1) launcher/src/skins.css:114 — `.skin-switch` sets color: #0b4fb5 on background-color: #0b1a30 — 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.2 · ×1
  • Low contrast colour pair in CSS (3.2:1) launcher/src/standard-workbench.css:156 — `:root[data-skin="standard"] .global-search > kbd` sets color: #7d8da1 on background-color: #f4f8fc — 3.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (4.4 · ×1
  • Low contrast colour pair in CSS (4.4:1) launcher/src/standard-workbench.css:232 — `:root[data-skin="standard"] .console-footer` sets color: #64748b on background-color: #f4f8fc — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · index.apply (cyclomatic 304) · ×1
  • index.apply (cyclomatic 304) REDACTED:1794 — index.apply has cyclomatic complexity 304 (threshold 15). Most of this is not in the body itself: 4 of the 304 points are its own statements and the rest belongs to 53 function items inside it that branch (a function literal at line 2326, a function literal at line 2040, a function literal at line 2260, …). 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 · buildSceneManifestVia (cyclomatic 263) · ×1
  • buildSceneManifestVia (cyclomatic 263) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1876 — buildSceneManifestVia has cyclomatic complexity 263 (threshold 15). Of this number, 193 points are the body's own statements and 70 belong to 30 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 · puppet.installPuppet (cyclomatic 245) · ×1
  • puppet.installPuppet (cyclomatic 245) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:5 — puppet.installPuppet has cyclomatic complexity 245 (threshold 15). Of this number, 220 points are the body's own statements and 25 belong to 7 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 · model.installModel (cyclomatic 192) · ×1
  • model.installModel (cyclomatic 192) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:5 — model.installModel has cyclomatic complexity 192 (threshold 15). Of this number, 187 points are the body's own statements and 5 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 · image.installImage (cyclomatic 178) · ×1
  • image.installImage (cyclomatic 178) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:6 — image.installImage has cyclomatic complexity 178 (threshold 15). Of this number, 174 points are the body's own statements and 4 belong to 2 function literals 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 · createApiRoutes · ×1
  • createApiRoutes::handler (cyclomatic 172) REDACTED:1692 — createApiRoutes::handler has cyclomatic complexity 172 (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 · runSingle (cyclomatic 163) · ×1
  • runSingle (cyclomatic 163) dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:297 — runSingle has cyclomatic complexity 163 (threshold 15). Of this number, 127 points are the body's own statements and 36 belong to 17 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 · particles.installParticles (cyclomatic 155) · ×1
  • particles.installParticles (cyclomatic 155) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:5 — particles.installParticles has cyclomatic complexity 155 (threshold 15). Of this number, 154 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 · index.createApiRoutes.handler (cyclomatic 153) · ×1
  • index.createApiRoutes.handler (cyclomatic 153) REDACTED:1692 — index.createApiRoutes.handler has cyclomatic complexity 153 (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 · plugin-sync.validateManifestInternal (cyclomatic 119) · ×1
  • plugin-sync.validateManifestInternal (cyclomatic 119) REDACTED:755 — plugin-sync.validateManifestInternal has cyclomatic complexity 119 (threshold 15). Of this number, 118 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 · pkg-extract.tryCompositeSceneLayers (cyclomatic 96) · ×1
  • pkg-extract.tryCompositeSceneLayers (cyclomatic 96) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1227 — pkg-extract.tryCompositeSceneLayers has cyclomatic complexity 96 (threshold 15). Of this number, 80 points are the body's own statements and 16 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 · font-render.interpretCharstring · ×1
  • font-render.interpretCharstring::interpretOps (cyclomatic 86) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:223 — font-render.interpretCharstring::interpretOps has cyclomatic complexity 86 (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 · camera.installCamera (cyclomatic 83) · ×1
  • camera.installCamera (cyclomatic 83) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:96 — camera.installCamera has cyclomatic complexity 83 (threshold 15). Of this number, 69 points are the body's own statements and 14 belong to 7 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 · update-portable.readPortableJournal (cyclomatic 81) · ×1
  • update-portable.readPortableJournal (cyclomatic 81) dsh-desktop/lib/desktop/update-portable.ts:26 — update-portable.readPortableJournal has cyclomatic complexity 81 (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 · mdl.parseMdlStatic (cyclomatic 75) · ×1
  • mdl.parseMdlStatic (cyclomatic 75) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:51 — mdl.parseMdlStatic has cyclomatic complexity 75 (threshold 15). Of this number, 74 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 · update-host.apply (cyclomatic 75) · ×1
  • update-host.apply (cyclomatic 75) dsh-desktop/lib/desktop/update-host.ts:39 — update-host.apply has cyclomatic complexity 75 (threshold 15). Most of this is not in the body itself: 7 of the 75 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 67, a function literal at line 96, a function literal at line 138, …). 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 · integration.installGlsl (cyclomatic 73) · ×1
  • integration.installGlsl (cyclomatic 73) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:8 — integration.installGlsl has cyclomatic complexity 73 (threshold 15). Of this number, 34 points are the body's own statements and 39 belong to 8 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 · companion-sync.syncCompanionPlugins (cyclomatic 73) · ×1
  • companion-sync.syncCompanionPlugins (cyclomatic 73) dsh-desktop/lib/desktop/companion-sync.ts:964 — companion-sync.syncCompanionPlugins has cyclomatic complexity 73 (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 (companion-sync.syncCompanionPlugins::ensurePluginHostDeps::ensureCopy) 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.
D1 · Cyclomatic Complexity · font-render.parseCffFont (cyclomatic 69) · ×1
  • font-render.parseCffFont (cyclomatic 69) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:65 — font-render.parseCffFont has cyclomatic complexity 69 (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 · store.LauncherProvider (cyclomatic 69) · ×1
  • store.LauncherProvider (cyclomatic 69) REDACTED:94 — store.LauncherProvider has cyclomatic complexity 69 (threshold 15). Most of this is not in the body itself: 1 of the 69 points is its own statement and the rest belongs to 22 function literals inside it that branch (lines 157, 174, 368, …). 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 · (anonymous) (cyclomatic 66) · ×1
  • (anonymous) (cyclomatic 66) launcher/pack-hall/server.mjs:136 — (anonymous) has cyclomatic complexity 66 (threshold 15). Of this number, 59 points are the body's own statements and 7 belong to 10 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 · airdrop.AirDropDialog (cyclomatic 65) · ×1
  • airdrop.AirDropDialog (cyclomatic 65) launcher/src/airdrop.tsx:145 — airdrop.AirDropDialog has cyclomatic complexity 65 (threshold 15). Of this number, 33 points are the body's own statements and 32 belong to 10 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 · profile.Profile (cyclomatic 65) · ×1
  • profile.Profile (cyclomatic 65) launcher/src/profile.tsx:82 — profile.Profile has cyclomatic complexity 65 (threshold 15). Of this number, 38 points are the body's own statements and 27 belong to 14 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 · scene-manifest.tryCompositeMultiLayerScene (cyclomatic 61) · ×1
  • scene-manifest.tryCompositeMultiLayerScene (cyclomatic 61) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1205 — scene-manifest.tryCompositeMultiLayerScene has cyclomatic complexity 61 (threshold 15). Of this number, 53 points are the body's own statements and 8 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 · plugin-sync.validateLockInternal (cyclomatic 59) · ×1
  • plugin-sync.validateLockInternal (cyclomatic 59) REDACTED:1189 — plugin-sync.validateLockInternal has cyclomatic complexity 59 (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 · github-login.GitHubLoginDialog (cyclomatic 59) · ×1
  • github-login.GitHubLoginDialog (cyclomatic 59) launcher/src/github-login.tsx:38 — github-login.GitHubLoginDialog has cyclomatic complexity 59 (threshold 15). Of this number, 41 points are the body's own statements and 18 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 · server.server (cyclomatic 58) · ×1
  • server.server (cyclomatic 58) launcher/pack-hall/server.mjs:136 — server.server has cyclomatic complexity 58 (threshold 15). Of this number, 53 points are the body's own statements and 5 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 · library.Market (cyclomatic 57) · ×1
  • library.Market (cyclomatic 57) launcher/src/library.tsx:110 — library.Market has cyclomatic complexity 57 (threshold 15). Of this number, 17 points are the body's own statements and 40 belong to 15 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 · update-portable-helper.validatePortableHandoff (cyclomatic 56) · ×1
  • update-portable-helper.validatePortableHandoff (cyclomatic 56) dsh-desktop/lib/desktop/update-portable-helper.ts:44 — update-portable-helper.validatePortableHandoff has cyclomatic complexity 56 (threshold 15). Of this number, 54 points are the body's own statements and 2 belong to 2 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 · plugin-sync.validateDistribution (cyclomatic 55) · ×1
  • plugin-sync.validateDistribution (cyclomatic 55) REDACTED:504 — plugin-sync.validateDistribution has cyclomatic complexity 55 (threshold 15). Of this number, 54 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 · App.Launcher (cyclomatic 55) · ×1
  • App.Launcher (cyclomatic 55) launcher/src/App.tsx:68 — App.Launcher has cyclomatic complexity 55 (threshold 15). Of this number, 29 points are the body's own statements and 26 belong to 6 function literals 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 · factory (cyclomatic 55) · ×1
  • factory (cyclomatic 55) dsh-desktop/assets/plugins/dsh-external-links/lib/client.js:30 — factory has cyclomatic complexity 55 (threshold 15). Most of this is not in the body itself: 1 of the 55 points is its own statement and the rest belongs to 25 function items inside it that branch (installAnchorGate::onClick, installSignInOpener::openAttempt, openInSystemBrowser, …). 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 · jpeg.decodeJpegInner (cyclomatic 54) · ×1
  • jpeg.decodeJpegInner (cyclomatic 54) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/jpeg.js:281 — jpeg.decodeJpegInner has cyclomatic complexity 54 (threshold 15). Of this number, 53 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 · update-nsis-helper.runTakeover (cyclomatic 54) · ×1
  • update-nsis-helper.runTakeover (cyclomatic 54) dsh-desktop/lib/desktop/update-nsis-helper.ts:48 — update-nsis-helper.runTakeover has cyclomatic complexity 54 (threshold 15). Most of this is not in the body itself: 7 of the 54 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 68, 89, 62, …). 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 · updater.applyUpdate (cyclomatic 53) · ×1
  • updater.applyUpdate (cyclomatic 53) dsh-desktop/updater.ts:371 — updater.applyUpdate has cyclomatic complexity 53 (threshold 15). Of this number, 43 points are the body's own statements and 10 belong to 2 function items inside it that branch. 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 · update-portable-helper.runTakeoverLocked (cyclomatic 50) · ×1
  • update-portable-helper.runTakeoverLocked (cyclomatic 50) dsh-desktop/lib/desktop/update-portable-helper.ts:76 — update-portable-helper.runTakeoverLocked has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 3 of the 50 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 93, a function literal at line 116, stopCandidate, …). 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 · selfReload (cyclomatic 49) · ×1
  • selfReload (cyclomatic 49) dsh-desktop/assets/plugins/dsh-our-free-model/src/reload.js:143 — selfReload has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 2 of the 49 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 145, a function literal at line 161, a function literal at line 177, …). 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 · effectBlur (cyclomatic 49) · ×1
  • effectBlur (cyclomatic 49) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/blur.js:13 — effectBlur has cyclomatic complexity 49 (threshold 15). Of this number, 40 points are the body's own statements and 9 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 · anthropicFrames (cyclomatic 48) · ×1
  • anthropicFrames (cyclomatic 48) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:455 — anthropicFrames 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.
D1 · Cyclomatic Complexity · messagesEndpoint (cyclomatic 47) · ×1
  • messagesEndpoint (cyclomatic 47) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:1172 — messagesEndpoint has cyclomatic complexity 47 (threshold 15). Of this number, 40 points are the body's own statements and 7 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 · index.probeMp4 (cyclomatic 46) · ×1
  • index.probeMp4 (cyclomatic 46) REDACTED:915 — index.probeMp4 has cyclomatic complexity 46 (threshold 15). Of this number, 34 points are the body's own statements and 12 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 · factory (cyclomatic 45) · ×1
  • factory (cyclomatic 45) dsh-desktop/assets/plugins/dsh-viewport-lock/lib/client.js:35 — factory has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 20 function items inside it that branch (installComposerSafeArea::syncBindings, installComposerSafeArea, composerHeight, …). 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 · update-appimage-helper.takeover (cyclomatic 44) · ×1
  • update-appimage-helper.takeover (cyclomatic 44) dsh-desktop/lib/desktop/update-appimage-helper.ts:65 — update-appimage-helper.takeover has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 6 of the 44 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 106, a function literal at line 87, stop, …). 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 · plugin-sync.schemaMatches (cyclomatic 44) · ×1
  • plugin-sync.schemaMatches (cyclomatic 44) REDACTED:410 — plugin-sync.schemaMatches has cyclomatic complexity 44 (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 · workspace.InstanceDetail (cyclomatic 44) · ×1
  • workspace.InstanceDetail (cyclomatic 44) launcher/src/workspace.tsx:128 — workspace.InstanceDetail has cyclomatic complexity 44 (threshold 15). Of this number, 37 points are the body's own statements and 7 belong to 2 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 · create-update-manifest.createUpdateManifest (cyclomatic 44) · ×1
  • create-update-manifest.createUpdateManifest (cyclomatic 44) tauri-shell/create-update-manifest.mjs:23 — create-update-manifest.createUpdateManifest has cyclomatic complexity 44 (threshold 15). Of this number, 42 points are the body's own statements and 2 belong 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 · extractSceneMainImageVia (cyclomatic 44) · ×1
  • extractSceneMainImageVia (cyclomatic 44) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1332 — extractSceneMainImageVia has cyclomatic complexity 44 (threshold 15). Of this number, 36 points are the body's own statements and 8 belong to 6 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. This is NOT this file's highest cyclomatic complexity: isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · _resolveAnimations (cyclomatic 44) · ×1
  • _resolveAnimations (cyclomatic 44) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:606 — _resolveAnimations has cyclomatic complexity 44 (threshold 15). Of this number, 32 points are the body's own statements and 12 belong to 5 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 · scene-manifest.parseTexInternal (cyclomatic 43) · ×1
  • scene-manifest.parseTexInternal (cyclomatic 43) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:480 — scene-manifest.parseTexInternal has cyclomatic complexity 43 (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 is NOT this file's highest cyclomatic complexity: scene-manifest.isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Transpiler.builtinReturnType (cyclomatic 43) · ×1
  • Transpiler.builtinReturnType (cyclomatic 43) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:522 — Transpiler.builtinReturnType has cyclomatic complexity 43 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · plugin-sync.validateSchema · ×1
  • plugin-sync.validateSchema::visit (cyclomatic 43) REDACTED:444 — plugin-sync.validateSchema::visit has cyclomatic complexity 43 (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 · responsesEndpoint (cyclomatic 43) · ×1
  • responsesEndpoint (cyclomatic 43) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:992 — responsesEndpoint has cyclomatic complexity 43 (threshold 15). Of this number, 32 points are the body's own statements and 11 belong to 9 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 · boot-server.watchServerProc (cyclomatic 42) · ×1
  • boot-server.watchServerProc (cyclomatic 42) dsh-desktop/lib/desktop/boot-server.ts:215 — boot-server.watchServerProc has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 1 of the 42 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 300, 240, 334, …). 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 · plugin-updater.applyBuiltinPluginUpdateInner (cyclomatic 42) · ×1
  • plugin-updater.applyBuiltinPluginUpdateInner (cyclomatic 42) dsh-desktop/plugin-updater.ts:401 — plugin-updater.applyBuiltinPluginUpdateInner has cyclomatic complexity 42 (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 · demo-rescue-ai.main (cyclomatic 42) · ×1
  • demo-rescue-ai.main (cyclomatic 42) dsh-desktop/scripts/demo-rescue-ai.cjs:70 — demo-rescue-ai.main has cyclomatic complexity 42 (threshold 15). Of this number, 41 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 · buildOutput.buildOutput (cyclomatic 41) · ×1
  • buildOutput.buildOutput (cyclomatic 41) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/buildOutput.js:18 — buildOutput.buildOutput has cyclomatic complexity 41 (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 · text.installText (cyclomatic 41) · ×1
  • text.installText (cyclomatic 41) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/text.js:7 — text.installText has cyclomatic complexity 41 (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 · SceneRenderer._attachmentOffset (cyclomatic 40) · ×1
  • SceneRenderer._attachmentOffset (cyclomatic 40) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:361 — SceneRenderer._attachmentOffset has cyclomatic complexity 40 (threshold 15). Of this number, 21 points are the body's own statements and 19 belong to 3 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 · index.spawnFfmpeg (cyclomatic 40) · ×1
  • index.spawnFfmpeg (cyclomatic 40) REDACTED:1356 — index.spawnFfmpeg has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 5 of the 40 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 1375, 1424, 1406, …). 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 · update-appimage.validate (cyclomatic 40) · ×1
  • update-appimage.validate (cyclomatic 40) dsh-desktop/lib/desktop/update-appimage.ts:49 — update-appimage.validate has cyclomatic complexity 40 (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 · update-helper-process.validateHelperContext (cyclomatic 40) · ×1
  • update-helper-process.validateHelperContext (cyclomatic 40) dsh-desktop/lib/desktop/update-helper-process.ts:87 — update-helper-process.validateHelperContext has cyclomatic complexity 40 (threshold 15). Of this number, 39 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 · update-portable.preparePortableLocked (cyclomatic 40) · ×1
  • update-portable.preparePortableLocked (cyclomatic 40) dsh-desktop/lib/desktop/update-portable.ts:78 — update-portable.preparePortableLocked has cyclomatic complexity 40 (threshold 15). Of this number, 38 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 · toChatMessages (cyclomatic 40) · ×1
  • toChatMessages (cyclomatic 40) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:163 — toChatMessages has cyclomatic complexity 40 (threshold 15). Of this number, 39 points are the body's own statements and 1 belongs 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 · scene-manifest.parseMdl (cyclomatic 39) · ×1
  • scene-manifest.parseMdl (cyclomatic 39) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1749 — scene-manifest.parseMdl 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. This is NOT this file's highest cyclomatic complexity: scene-manifest.isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · readStream (cyclomatic 39) · ×1
  • readStream (cyclomatic 39) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:441 — readStream has cyclomatic complexity 39 (threshold 15). Of this number, 28 points are the body's own statements and 11 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 · buildStats (cyclomatic 39) · ×1
  • buildStats (cyclomatic 39) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/stats.js:4 — buildStats has cyclomatic complexity 39 (threshold 15). Of this number, 21 points are the body's own statements and 18 belong to 13 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 · pkg-extract.decodeTex (cyclomatic 38) · ×1
  • pkg-extract.decodeTex (cyclomatic 38) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:607 — pkg-extract.decodeTex 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 · scene-scripts.runScriptValueCached (cyclomatic 38) · ×1
  • scene-scripts.runScriptValueCached (cyclomatic 38) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:292 — scene-scripts.runScriptValueCached 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 · index.renderSceneFrameInWorker (cyclomatic 38) · ×1
  • index.renderSceneFrameInWorker (cyclomatic 38) REDACTED:709 — index.renderSceneFrameInWorker has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 11 of the 38 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 762, 725, 740, …). 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 · update-linux-helper.takeover (cyclomatic 38) · ×1
  • update-linux-helper.takeover (cyclomatic 38) dsh-desktop/lib/desktop/update-linux-helper.ts:99 — update-linux-helper.takeover has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 4 of the 38 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 131, 120, 103, …). 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 · patch-deps.patchMenuSubmenuScroll (cyclomatic 38) · ×1
  • patch-deps.patchMenuSubmenuScroll (cyclomatic 38) REDACTED:1150 — patch-deps.patchMenuSubmenuScroll has cyclomatic complexity 38 (threshold 15). Of this number, 37 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 · effectGodrays (cyclomatic 38) · ×1
  • effectGodrays (cyclomatic 38) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/godrays.js:5 — effectGodrays has cyclomatic complexity 38 (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 · update-sources.verifyManifest (cyclomatic 37) · ×1
  • update-sources.verifyManifest (cyclomatic 37) dsh-desktop/lib/desktop/update-sources.ts:90 — update-sources.verifyManifest has cyclomatic complexity 37 (threshold 15). Of this number, 23 points are the body's own statements and 14 belong to 2 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 · update-sources.resolveUpdate (cyclomatic 37) · ×1
  • update-sources.resolveUpdate (cyclomatic 37) dsh-desktop/lib/desktop/update-sources.ts:191 — update-sources.resolveUpdate has cyclomatic complexity 37 (threshold 15). Of this number, 32 points are the body's own statements and 5 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 · UpdateHostControl.prepare (cyclomatic 37) · ×1
  • UpdateHostControl.prepare (cyclomatic 37) dsh-desktop/lib/desktop/update-host-control.ts:53 — UpdateHostControl.prepare has cyclomatic complexity 37 (threshold 15). Of this number, 33 points are the body's own statements and 4 belong to 2 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 · portable-path-shrink.shortenSkinRuntimeNames (cyclomatic 37) · ×1
  • portable-path-shrink.shortenSkinRuntimeNames (cyclomatic 37) tauri-shell/portable-path-shrink.mjs:125 — portable-path-shrink.shortenSkinRuntimeNames has cyclomatic complexity 37 (threshold 15). Of this number, 16 points are the body's own statements and 21 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 · fromAnthropicRequest (cyclomatic 37) · ×1
  • fromAnthropicRequest (cyclomatic 37) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:224 — fromAnthropicRequest has cyclomatic complexity 37 (threshold 15). Of this number, 35 points are the body's own statements and 2 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 · recordUsage (cyclomatic 37) · ×1
  • recordUsage (cyclomatic 37) dsh-desktop/assets/plugins/dsh-our-free-model/src/store.js:331 — recordUsage has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to one function literal inside it that branches (line 332). The decisions are inside the literal, 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 literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · gitStatus.gitStatus (cyclomatic 36) · ×1
  • gitStatus.gitStatus (cyclomatic 36) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/gitStatus.js:20 — gitStatus.gitStatus has cyclomatic complexity 36 (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 · effects.installEffects (cyclomatic 36) · ×1
  • effects.installEffects (cyclomatic 36) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects.js:32 — effects.installEffects has cyclomatic complexity 36 (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 · update-portable.rollbackPortableLocked (cyclomatic 36) · ×1
  • update-portable.rollbackPortableLocked (cyclomatic 36) dsh-desktop/lib/desktop/update-portable.ts:195 — update-portable.rollbackPortableLocked has cyclomatic complexity 36 (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 · plugin-manager-state.collectPluginRows (cyclomatic 36) · ×1
  • plugin-manager-state.collectPluginRows (cyclomatic 36) dsh-desktop/plugin-manager-state.ts:196 — plugin-manager-state.collectPluginRows has cyclomatic complexity 36 (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: one other method here (plugin-manager-state.collectPluginRows::addRow) 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.
D1 · Cyclomatic Complexity · apply (cyclomatic 36) · ×1
  • apply (cyclomatic 36) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:929 — apply has cyclomatic complexity 36 (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 · installEffects · ×1
  • installEffects::applyEffects (cyclomatic 36) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects.js:34 — installEffects::applyEffects has cyclomatic complexity 36 (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 · effectBlend (cyclomatic 36) · ×1
  • effectBlend (cyclomatic 36) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/blend.js:11 — effectBlend has cyclomatic complexity 36 (threshold 15). Of this number, 33 points are the body's own statements and 3 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 · index.compressMessages (cyclomatic 35) · ×1
  • index.compressMessages (cyclomatic 35) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/index.js:60 — index.compressMessages has cyclomatic complexity 35 (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 · pkg-extract.parseTexInternal (cyclomatic 35) · ×1
  • pkg-extract.parseTexInternal (cyclomatic 35) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:315 — pkg-extract.parseTexInternal has cyclomatic complexity 35 (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 · createPickStats (cyclomatic 35) · ×1
  • createPickStats (cyclomatic 35) dsh-desktop/assets/plugins/dsh-our-free-model/src/picks.js:92 — createPickStats has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 22 function items inside it that branch (readDisk, a function literal at line 104, fetchOne, …). 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 · fromOpenAiMessages (cyclomatic 35) · ×1
  • fromOpenAiMessages (cyclomatic 35) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:85 — fromOpenAiMessages has cyclomatic complexity 35 (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 · plugin-manager-state.collectPluginRows · ×1
  • plugin-manager-state.collectPluginRows::addRow (cyclomatic 34) dsh-desktop/plugin-manager-state.ts:239 — plugin-manager-state.collectPluginRows::addRow 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: one other method here (plugin-manager-state.collectPluginRows) 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.
D1 · Cyclomatic Complexity · companion.NavigatorCompanion (cyclomatic 34) · ×1
  • companion.NavigatorCompanion (cyclomatic 34) launcher/src/companion.tsx:21 — companion.NavigatorCompanion has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 12 of the 34 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 26, onPointerMove, onPointerUp, …). 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 · classifyFailure (cyclomatic 34) · ×1
  • classifyFailure (cyclomatic 34) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:91 — classifyFailure has cyclomatic complexity 34 (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 · migrateStats (cyclomatic 34) · ×1
  • migrateStats (cyclomatic 34) dsh-desktop/assets/plugins/dsh-our-free-model/src/store.js:472 — migrateStats has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body's own statements and 3 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 · pkg-extract.decodePngPayload (cyclomatic 33) · ×1
  • pkg-extract.decodePngPayload (cyclomatic 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:984 — pkg-extract.decodePngPayload has cyclomatic complexity 33 (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 · Transpiler.stmt (cyclomatic 33) · ×1
  • Transpiler.stmt (cyclomatic 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:188 — Transpiler.stmt has cyclomatic complexity 33 (threshold 15). Of this number, 31 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 · SceneRenderer._animValueAt (cyclomatic 33) · ×1
  • SceneRenderer._animValueAt (cyclomatic 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:727 — SceneRenderer._animValueAt has cyclomatic complexity 33 (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 · update-backup.captureBackup (cyclomatic 33) · ×1
  • update-backup.captureBackup (cyclomatic 33) dsh-desktop/lib/desktop/update-backup.ts:67 — update-backup.captureBackup has cyclomatic complexity 33 (threshold 15). Of this number, 24 points are the body's own statements and 9 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 · toResponseInput (cyclomatic 33) · ×1
  • toResponseInput (cyclomatic 33) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:330 — toResponseInput has cyclomatic complexity 33 (threshold 15). Of this number, 32 points are the body's own statements and 1 belongs 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 · guard-box.restoreAndRestart (cyclomatic 32) · ×1
  • guard-box.restoreAndRestart (cyclomatic 32) dsh-desktop/lib/desktop/guard-box.ts:79 — guard-box.restoreAndRestart has cyclomatic complexity 32 (threshold 15). Of this number, 18 points are the body's own statements and 14 belong to 4 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 · update-nsis-helper.nsisStartupGate (cyclomatic 32) · ×1
  • update-nsis-helper.nsisStartupGate (cyclomatic 32) dsh-desktop/lib/desktop/update-nsis-helper.ts:107 — update-nsis-helper.nsisStartupGate has cyclomatic complexity 32 (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 · SessionWatcher.process (cyclomatic 32) · ×1
  • SessionWatcher.process (cyclomatic 32) dsh-desktop/session-watcher.ts:166 — SessionWatcher.process has cyclomatic complexity 32 (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 · workspace.Logs (cyclomatic 32) · ×1
  • workspace.Logs (cyclomatic 32) launcher/src/workspace.tsx:188 — workspace.Logs has cyclomatic complexity 32 (threshold 15). Of this number, 19 points are the body's own statements and 13 belong to 4 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 · portable-path-shrink.shortenSeedPayloadNames (cyclomatic 32) · ×1
  • portable-path-shrink.shortenSeedPayloadNames (cyclomatic 32) tauri-shell/portable-path-shrink.mjs:235 — portable-path-shrink.shortenSeedPayloadNames has cyclomatic complexity 32 (threshold 15). Of this number, 24 points are the body's own statements and 8 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 · Transpiler.callExpr (cyclomatic 31) · ×1
  • Transpiler.callExpr (cyclomatic 31) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:464 — Transpiler.callExpr 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.
D1 · Cyclomatic Complexity · bundle-identity.resolveBundleIdentity (cyclomatic 31) · ×1
  • bundle-identity.resolveBundleIdentity (cyclomatic 31) dsh-desktop/lib/bundle-identity.ts:126 — bundle-identity.resolveBundleIdentity 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.
D1 · Cyclomatic Complexity · plugin-guard.createGuard.attributeBootFailure (cyclomatic 31) · ×1
  • plugin-guard.createGuard.attributeBootFailure (cyclomatic 31) dsh-desktop/plugin-guard.ts:834 — plugin-guard.createGuard.attributeBootFailure has cyclomatic complexity 31 (threshold 15). Of this number, 26 points are the body's own statements and 5 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 · UpdateRestart.beforeBoot (cyclomatic 31) · ×1
  • UpdateRestart.beforeBoot (cyclomatic 31) dsh-desktop/lib/desktop/update-restart.ts:56 — UpdateRestart.beforeBoot has cyclomatic complexity 31 (threshold 15). Of this number, 29 points are the body's own statements and 2 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 · chatCompletions (cyclomatic 31) · ×1
  • chatCompletions (cyclomatic 31) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:813 — chatCompletions has cyclomatic complexity 31 (threshold 15). Of this number, 21 points are the body's own statements and 10 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 · effectDepthParallax (cyclomatic 31) · ×1
  • effectDepthParallax (cyclomatic 31) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/depthparallax.js:12 — effectDepthParallax 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.
D1 · Cyclomatic Complexity · index.sanitizeSettings (cyclomatic 30) · ×1
  • index.sanitizeSettings (cyclomatic 30) REDACTED:805 — index.sanitizeSettings has cyclomatic complexity 30 (threshold 15). Of this number, 21 points are the body's own statements and 9 belong to 4 function literals 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 · client-updater.applyUpdate (cyclomatic 30) · ×1
  • client-updater.applyUpdate (cyclomatic 30) dsh-desktop/client-updater.ts:1191 — client-updater.applyUpdate has cyclomatic complexity 30 (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 · update-platform.updateTarget (cyclomatic 30) · ×1
  • update-platform.updateTarget (cyclomatic 30) dsh-desktop/lib/desktop/update-platform.ts:6 — update-platform.updateTarget has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body's own statements and 2 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 · workspace.Overview (cyclomatic 30) · ×1
  • workspace.Overview (cyclomatic 30) launcher/src/workspace.tsx:66 — workspace.Overview has cyclomatic complexity 30 (threshold 15). Of this number, 23 points are the body's own statements and 7 belong to 4 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 · audit-linux-bundle.auditLinuxBundle (cyclomatic 30) · ×1
  • audit-linux-bundle.auditLinuxBundle (cyclomatic 30) tauri-shell/audit-linux-bundle.mjs:58 — audit-linux-bundle.auditLinuxBundle has cyclomatic complexity 30 (threshold 15). Of this number, 29 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 · toClaudeMessages (cyclomatic 30) · ×1
  • toClaudeMessages (cyclomatic 30) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:267 — toClaudeMessages has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body's own statements and 1 belongs 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 · extractSceneMainImageVia (cyclomatic 30) · ×1
  • extractSceneMainImageVia (cyclomatic 30) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1415 — extractSceneMainImageVia has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body's own statements and 2 belong to 3 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 · update-portable-helper.portableStartupGate (cyclomatic 29) · ×1
  • update-portable-helper.portableStartupGate (cyclomatic 29) dsh-desktop/lib/desktop/update-portable-helper.ts:145 — update-portable-helper.portableStartupGate has cyclomatic complexity 29 (threshold 15). Of this number, 22 points are the body's own statements and 7 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 · library.Releases (cyclomatic 29) · ×1
  • library.Releases (cyclomatic 29) launcher/src/library.tsx:376 — library.Releases has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 414, a function literal at line 410, a function literal at line 386, …). 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 · createForwardCompletion (cyclomatic 29) · ×1
  • createForwardCompletion (cyclomatic 29) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:33 — createForwardCompletion has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 4 function items inside it that branch (a function literal at line 34, a function literal at line 77, a function literal at line 37, …). 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 · foldForwardOutcome (cyclomatic 29) · ×1
  • foldForwardOutcome (cyclomatic 29) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:143 — foldForwardOutcome has cyclomatic complexity 29 (threshold 15). Of this number, 27 points are the body's own statements and 2 belong to 3 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 · scene-manifest.decodePngToRgba (cyclomatic 28) · ×1
  • scene-manifest.decodePngToRgba (cyclomatic 28) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:114 — scene-manifest.decodePngToRgba 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. This is NOT this file's highest cyclomatic complexity: scene-manifest.isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · achievements.Achievements (cyclomatic 28) · ×1
  • achievements.Achievements (cyclomatic 28) launcher/src/achievements.tsx:28 — achievements.Achievements has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 12 of the 28 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 88, 35, 82, …). 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 · startChanRelay (cyclomatic 28) · ×1
  • startChanRelay (cyclomatic 28) dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:99 — startChanRelay has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 7 of the 28 points are its own statements and the rest belongs to 11 function items inside it that branch (relay, a function literal at line 101, bearerOf, …). 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 · ensureDownloadedFfmpeg (cyclomatic 28) · ×1
  • ensureDownloadedFfmpeg (cyclomatic 28) REDACTED:1259 — ensureDownloadedFfmpeg has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 7 of the 28 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 1273, a function literal at line 1285, a function literal at line 1297, …). 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 · local-optimize.shellWords (cyclomatic 27) · ×1
  • local-optimize.shellWords (cyclomatic 27) dsh-desktop/assets/plugins/dsh-our-free-model/src/local-optimize.js:122 — local-optimize.shellWords has cyclomatic complexity 27 (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 · font-render.renderText (cyclomatic 27) · ×1
  • font-render.renderText (cyclomatic 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:424 — font-render.renderText has cyclomatic complexity 27 (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 · canvas.decodePngBuffer (cyclomatic 27) · ×1
  • canvas.decodePngBuffer (cyclomatic 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/canvas.js:171 — canvas.decodePngBuffer has cyclomatic complexity 27 (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 · Transpiler.binaryExpr (cyclomatic 27) · ×1
  • Transpiler.binaryExpr (cyclomatic 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:421 — Transpiler.binaryExpr has cyclomatic complexity 27 (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 · index.extractSceneVideoFrames (cyclomatic 27) · ×1
  • index.extractSceneVideoFrames (cyclomatic 27) REDACTED:593 — index.extractSceneVideoFrames has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body's own statements and 4 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 · client-updater.downloadRelease (cyclomatic 27) · ×1
  • client-updater.downloadRelease (cyclomatic 27) dsh-desktop/client-updater.ts:687 — client-updater.downloadRelease has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body's own statements and 5 belong to 3 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 · plugin-manager-state.externalDefaultDisabledPlan (cyclomatic 27) · ×1
  • plugin-manager-state.externalDefaultDisabledPlan (cyclomatic 27) dsh-desktop/plugin-manager-state.ts:341 — plugin-manager-state.externalDefaultDisabledPlan has cyclomatic complexity 27 (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 · postAggregateStreamed (cyclomatic 27) · ×1
  • postAggregateStreamed (cyclomatic 27) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:521 — postAggregateStreamed has cyclomatic complexity 27 (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 · socks5Connect (cyclomatic 27) · ×1
  • socks5Connect (cyclomatic 27) REDACTED:430 — socks5Connect has cyclomatic complexity 27 (threshold 15). Of this number, 15 points are the body's own statements and 12 belong to 3 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 · repairToolPairing (cyclomatic 27) · ×1
  • repairToolPairing (cyclomatic 27) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:90 — repairToolPairing has cyclomatic complexity 27 (threshold 15). Of this number, 18 points are the body's own statements and 9 belong to 9 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 · gitDiff.gitDiff (cyclomatic 26) · ×1
  • gitDiff.gitDiff (cyclomatic 26) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/gitDiff.js:25 — gitDiff.gitDiff 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.
D1 · Cyclomatic Complexity · autodetect.autoDetectFilter (cyclomatic 26) · ×1
  • autodetect.autoDetectFilter (cyclomatic 26) REDACTED:57 — autodetect.autoDetectFilter has cyclomatic complexity 26 (threshold 15). Of this number, 25 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 · scene-manifest.parseTexToRGBA (cyclomatic 26) · ×1
  • scene-manifest.parseTexToRGBA (cyclomatic 26) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1611 — scene-manifest.parseTexToRGBA has cyclomatic complexity 26 (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 is NOT this file's highest cyclomatic complexity: scene-manifest.isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · client-updater.downloadFileOnce (cyclomatic 26) · ×1
  • client-updater.downloadFileOnce (cyclomatic 26) dsh-desktop/client-updater.ts:426 — client-updater.downloadFileOnce has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 442, 432, 478, …). 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 · update-nsis-helper.nsisRepairInfo (cyclomatic 26) · ×1
  • update-nsis-helper.nsisRepairInfo (cyclomatic 26) dsh-desktop/lib/desktop/update-nsis-helper.ts:143 — update-nsis-helper.nsisRepairInfo has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 145, 156). 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 · publish-pack-index.main (cyclomatic 26) · ×1
  • publish-pack-index.main (cyclomatic 26) dsh-desktop/scripts/publish-pack-index.mjs:46 — publish-pack-index.main has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body's own statements and 1 belongs to one function item inside it that branches. 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 · pack-share.parsePackManifest (cyclomatic 26) · ×1
  • pack-share.parsePackManifest (cyclomatic 26) launcher/src/pack-share.ts:45 — pack-share.parsePackManifest has cyclomatic complexity 26 (threshold 15). Of this number, 25 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 · startLanRelay (cyclomatic 26) · ×1
  • startLanRelay (cyclomatic 26) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:512 — startLanRelay has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 16 function items inside it that branch (relay, a function literal at line 515, a function literal at line 580, …). 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 · effectWaterCaustics (cyclomatic 26) · ×1
  • effectWaterCaustics (cyclomatic 26) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/watercaustics.js:11 — effectWaterCaustics 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.
D1 · Cyclomatic Complexity · camera.resolveCameraPose (cyclomatic 25) · ×1
  • camera.resolveCameraPose (cyclomatic 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:4 — camera.resolveCameraPose has cyclomatic complexity 25 (threshold 15). Of this number, 21 points are the body's own statements and 4 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 · plugin-guard.createGuard.trojanFindings · ×1
  • plugin-guard.createGuard.trojanFindings::walk (cyclomatic 25) dsh-desktop/plugin-guard.ts:600 — plugin-guard.createGuard.trojanFindings::walk 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 · update-appimage-helper.appImageStartupGate (cyclomatic 25) · ×1
  • update-appimage-helper.appImageStartupGate (cyclomatic 25) dsh-desktop/lib/desktop/update-appimage-helper.ts:39 — update-appimage-helper.appImageStartupGate has cyclomatic complexity 25 (threshold 15). Of this number, 22 points are the body's own statements and 3 belong 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 · update-portable-helper.recoverAfterExit (cyclomatic 25) · ×1
  • update-portable-helper.recoverAfterExit (cyclomatic 25) dsh-desktop/lib/desktop/update-portable-helper.ts:177 — update-portable-helper.recoverAfterExit has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 180, 190, 186). 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 · patch-row-heal.removeBundledRowDuplicates (cyclomatic 25) · ×1
  • patch-row-heal.removeBundledRowDuplicates (cyclomatic 25) dsh-desktop/patch-row-heal.ts:232 — patch-row-heal.removeBundledRowDuplicates has cyclomatic complexity 25 (threshold 15). Of this number, 21 points are the body's own statements and 4 belong to 2 function items 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 · hall.HallPanel (cyclomatic 25) · ×1
  • hall.HallPanel (cyclomatic 25) launcher/src/hall.tsx:47 — hall.HallPanel has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 101, a function literal at line 56, toggleLike, …). 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 · publicSettings (cyclomatic 25) · ×1
  • publicSettings (cyclomatic 25) REDACTED:2248 — publicSettings has cyclomatic complexity 25 (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 · reviveKiloCatalog (cyclomatic 25) · ×1
  • reviveKiloCatalog (cyclomatic 25) dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js:572 — reviveKiloCatalog 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 · startForwardServer.handle (cyclomatic 25) · ×1
  • startForwardServer.handle (cyclomatic 25) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:341 — startForwardServer.handle has cyclomatic complexity 25 (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 · effectSwing (cyclomatic 25) · ×1
  • effectSwing (cyclomatic 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/swing.js:14 — effectSwing 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 · forward.startForwardServer.handle (cyclomatic 24) · ×1
  • forward.startForwardServer.handle (cyclomatic 24) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:341 — forward.startForwardServer.handle 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.
D1 · Cyclomatic Complexity · scene-scripts.compileScript (cyclomatic 24) · ×1
  • scene-scripts.compileScript (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:143 — scene-scripts.compileScript has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body's own statements and 10 belong to 10 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 · Transpiler.generate (cyclomatic 24) · ×1
  • Transpiler.generate (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:114 — Transpiler.generate 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 · client-updater.cleanupClientBackupIfHealthy (cyclomatic 24) · ×1
  • client-updater.cleanupClientBackupIfHealthy (cyclomatic 24) dsh-desktop/client-updater.ts:1309 — client-updater.cleanupClientBackupIfHealthy has cyclomatic complexity 24 (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 · update-linux-root.runRoot (cyclomatic 24) · ×1
  • update-linux-root.runRoot (cyclomatic 24) dsh-desktop/lib/desktop/update-linux-root.ts:70 — update-linux-root.runRoot has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body's own statements and 10 belong to 3 function literals 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. This is NOT this file's highest cyclomatic complexity: update-linux-root.linuxRootSpec (cyclomatic 26) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · fetch-npm.copyBundledNpm (cyclomatic 24) · ×1
  • fetch-npm.copyBundledNpm (cyclomatic 24) dsh-desktop/scripts/fetch-npm.ts:37 — fetch-npm.copyBundledNpm has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body's own statements and 3 belong to one function item inside it that branches. 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 · (anonymous) (cyclomatic 24) · ×1
  • (anonymous) (cyclomatic 24) tauri-shell/src/update-ui-checkpoint.js:1 — (anonymous) has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 18, a function literal at line 32, a function literal at line 40, …). 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 · foldAnthropicOutcome (cyclomatic 24) · ×1
  • foldAnthropicOutcome (cyclomatic 24) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:721 — foldAnthropicOutcome has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body's own statements and 1 belongs to 3 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 · feedResponses (cyclomatic 24) · ×1
  • feedResponses (cyclomatic 24) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:348 — feedResponses 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 · effectClouds (cyclomatic 24) · ×1
  • effectClouds (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/clouds.js:16 — effectClouds has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body's own statements and 5 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 · effectWaterwaves (cyclomatic 24) · ×1
  • effectWaterwaves (cyclomatic 24) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/waterwaves.js:9 — effectWaterwaves has cyclomatic complexity 24 (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 · updater.compareVersions (cyclomatic 23) · ×1
  • updater.compareVersions (cyclomatic 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:165 — updater.compareVersions has cyclomatic complexity 23 (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 · completion.createForwardCompletion.<returned closure> (cyclomatic 23) · ×1
  • completion.createForwardCompletion.<returned closure> (cyclomatic 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:34 — completion.createForwardCompletion.<returned closure> has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body's own statements and 2 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 · jpeg.decodeScan (cyclomatic 23) · ×1
  • jpeg.decodeScan (cyclomatic 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/jpeg.js:218 — jpeg.decodeScan has cyclomatic complexity 23 (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 · Transpiler.expr (cyclomatic 23) · ×1
  • Transpiler.expr (cyclomatic 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:359 — Transpiler.expr has cyclomatic complexity 23 (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 · companion-sync.managedRetiredCopy (cyclomatic 23) · ×1
  • companion-sync.managedRetiredCopy (cyclomatic 23) dsh-desktop/lib/desktop/companion-sync.ts:715 — companion-sync.managedRetiredCopy has cyclomatic complexity 23 (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 · update-appimage.prepareAppImage (cyclomatic 23) · ×1
  • update-appimage.prepareAppImage (cyclomatic 23) dsh-desktop/lib/desktop/update-appimage.ts:80 — update-appimage.prepareAppImage has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body's own statements and 4 belong 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 · hall.ExportPackDialog (cyclomatic 23) · ×1
  • hall.ExportPackDialog (cyclomatic 23) launcher/src/hall.tsx:129 — hall.ExportPackDialog has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body's own statements and 6 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 · library.CompatibilityProbe (cyclomatic 23) · ×1
  • library.CompatibilityProbe (cyclomatic 23) launcher/src/library.tsx:25 — library.CompatibilityProbe has cyclomatic complexity 23 (threshold 15). Of this number, 13 points are the body's own statements and 10 belong to 5 function items 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 · countTokens (cyclomatic 23) · ×1
  • countTokens (cyclomatic 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:799 — countTokens has cyclomatic complexity 23 (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 · createEacLoginPoller.collect (cyclomatic 23) · ×1
  • createEacLoginPoller.collect (cyclomatic 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/eac-login.js:21 — createEacLoginPoller.collect has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body's own statements and 2 belong to 2 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 · parseItem (cyclomatic 23) · ×1
  • parseItem (cyclomatic 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/feed.js:95 — parseItem has cyclomatic complexity 23 (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 · stageRelease (cyclomatic 23) · ×1
  • stageRelease (cyclomatic 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:470 — stageRelease has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 477, 514). 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 · effectGlitter (cyclomatic 23) · ×1
  • effectGlitter (cyclomatic 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/glitter.js:12 — effectGlitter has cyclomatic complexity 23 (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 · effectShimmer (cyclomatic 23) · ×1
  • effectShimmer (cyclomatic 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shimmer.js:13 — effectShimmer has cyclomatic complexity 23 (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 · effectWaterripple (cyclomatic 23) · ×1
  • effectWaterripple (cyclomatic 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/waterripple.js:14 — effectWaterripple has cyclomatic complexity 23 (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 · inject.stripResponses (cyclomatic 22) · ×1
  • inject.stripResponses (cyclomatic 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:389 — inject.stripResponses 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 · eac-login.createEacLoginPoller.collect (cyclomatic 22) · ×1
  • eac-login.createEacLoginPoller.collect (cyclomatic 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/eac-login.js:21 — eac-login.createEacLoginPoller.collect has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body's own statements and 2 belong to one function item 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 · font-render.parseDict (cyclomatic 22) · ×1
  • font-render.parseDict (cyclomatic 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:31 — font-render.parseDict 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 · bloom.installBloom (cyclomatic 22) · ×1
  • bloom.installBloom (cyclomatic 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/bloom.js:117 — bloom.installBloom has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body's own statements and 7 belong to 2 function items inside it that branch. 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 · executor.engineInject (cyclomatic 22) · ×1
  • executor.engineInject (cyclomatic 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:99 — executor.engineInject has cyclomatic complexity 22 (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 · UpdateRestart.poll (cyclomatic 22) · ×1
  • UpdateRestart.poll (cyclomatic 22) dsh-desktop/lib/desktop/update-restart.ts:128 — UpdateRestart.poll 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 · update-restart.permitsDerivedMetadata (cyclomatic 22) · ×1
  • update-restart.permitsDerivedMetadata (cyclomatic 22) dsh-desktop/lib/desktop/update-restart.ts:155 — update-restart.permitsDerivedMetadata has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body's own statements and 1 belongs to one function item 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 · patch-row-heal.normalizeRowConfigIndent (cyclomatic 22) · ×1
  • patch-row-heal.normalizeRowConfigIndent (cyclomatic 22) dsh-desktop/patch-row-heal.ts:51 — patch-row-heal.normalizeRowConfigIndent 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 · patch-row-heal.healRowConfig (cyclomatic 22) · ×1
  • patch-row-heal.healRowConfig (cyclomatic 22) dsh-desktop/patch-row-heal.ts:126 — patch-row-heal.healRowConfig 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 · plugin-sync.runSync (cyclomatic 22) · ×1
  • plugin-sync.runSync (cyclomatic 22) REDACTED:1305 — plugin-sync.runSync has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong 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 · plugin-manager-patch.togglePluginInPatch (cyclomatic 22) · ×1
  • plugin-manager-patch.togglePluginInPatch (cyclomatic 22) dsh-desktop/scripts/plugin-manager-patch.js:116 — plugin-manager-patch.togglePluginInPatch has cyclomatic complexity 22 (threshold 15). Of this number, 20 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 · update.sanitizeAnnouncementHtml · ×1
  • update.sanitizeAnnouncementHtml::walk (cyclomatic 22) launcher/src/update.tsx:107 — update.sanitizeAnnouncementHtml::walk 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 · name-lite-installers.nameLiteInstallers (cyclomatic 22) · ×1
  • name-lite-installers.nameLiteInstallers (cyclomatic 22) tauri-shell/name-lite-installers.mjs:11 — name-lite-installers.nameLiteInstallers 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 · buildSummary (cyclomatic 22) · ×1
  • buildSummary (cyclomatic 22) REDACTED:2312 — buildSummary has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 2325, unprobed). 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 · postSealedStreamed (cyclomatic 22) · ×1
  • postSealedStreamed (cyclomatic 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:208 — postSealedStreamed 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 · createToolWire (cyclomatic 22) · ×1
  • createToolWire (cyclomatic 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:744 — createToolWire has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 3 function items inside it that branch (admit, executable, indexOf). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · parseManifest (cyclomatic 22) · ×1
  • parseManifest (cyclomatic 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:196 — parseManifest has cyclomatic complexity 22 (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 · snapshotManifestSource (cyclomatic 22) · ×1
  • snapshotManifestSource (cyclomatic 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:342 — snapshotManifestSource 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 · validateManifest (cyclomatic 22) · ×1
  • validateManifest (cyclomatic 22) launcher/pack-hall/server.mjs:82 — validateManifest has cyclomatic complexity 22 (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 · gitLog.gitLog (cyclomatic 21) · ×1
  • gitLog.gitLog (cyclomatic 21) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/gitLog.js:17 — gitLog.gitLog 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 · scene-scripts.makeOwnerRef.makeLayer (cyclomatic 21) · ×1
  • scene-scripts.makeOwnerRef.makeLayer (cyclomatic 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:84 — scene-scripts.makeOwnerRef.makeLayer has cyclomatic complexity 21 (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 · SceneRenderer._puppetBoneFinal (cyclomatic 21) · ×1
  • SceneRenderer._puppetBoneFinal (cyclomatic 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:311 — SceneRenderer._puppetBoneFinal 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, 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 · SceneRenderer.render (cyclomatic 21) · ×1
  • SceneRenderer.render (cyclomatic 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:545 — SceneRenderer.render has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · bundle-identity.toggleBundleInPatch (cyclomatic 21) · ×1
  • bundle-identity.toggleBundleInPatch (cyclomatic 21) dsh-desktop/lib/bundle-identity.ts:227 — bundle-identity.toggleBundleInPatch has cyclomatic complexity 21 (threshold 15). Of this number, 13 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 · plugin-guard.createGuard.repair (cyclomatic 21) · ×1
  • plugin-guard.createGuard.repair (cyclomatic 21) dsh-desktop/plugin-guard.ts:648 — plugin-guard.createGuard.repair 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 · companion-sync.defaultDisabledBundlePackages (cyclomatic 21) · ×1
  • companion-sync.defaultDisabledBundlePackages (cyclomatic 21) dsh-desktop/lib/desktop/companion-sync.ts:226 — companion-sync.defaultDisabledBundlePackages 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 · update-package.parseReleaseFiles (cyclomatic 21) · ×1
  • update-package.parseReleaseFiles (cyclomatic 21) dsh-desktop/lib/desktop/update-package.ts:15 — update-package.parseReleaseFiles has cyclomatic complexity 21 (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 · update-linux.linuxManager (cyclomatic 21) · ×1
  • update-linux.linuxManager (cyclomatic 21) dsh-desktop/lib/desktop/update-linux.ts:44 — update-linux.linuxManager 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 is NOT this file's highest cyclomatic complexity: update-linux.readLinuxPackagePlan (cyclomatic 25) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · plugin-sync.validateRecommendedPack (cyclomatic 21) · ×1
  • plugin-sync.validateRecommendedPack (cyclomatic 21) REDACTED:653 — plugin-sync.validateRecommendedPack has cyclomatic complexity 21 (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 · account.AccountDock (cyclomatic 21) · ×1
  • account.AccountDock (cyclomatic 21) launcher/src/account.tsx:7 — account.AccountDock has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body's own statements and 5 belong to 4 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 · workspace.InstanceActions (cyclomatic 21) · ×1
  • workspace.InstanceActions (cyclomatic 21) launcher/src/workspace.tsx:24 — workspace.InstanceActions has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body's own statements and 5 belong to 4 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 · bridge.handleGuestEvent (cyclomatic 21) · ×1
  • bridge.handleGuestEvent (cyclomatic 21) tauri-shell/sidecar/bridge.ts:922 — bridge.handleGuestEvent 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 · (anonymous) (cyclomatic 21) · ×1
  • (anonymous) (cyclomatic 21) tauri-shell/src/exit-overlay.js:1 — (anonymous) has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (show::activeKeyHandler, dismiss, call, …). 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 · lz4DecompressBlock (cyclomatic 21) · ×1
  • lz4DecompressBlock (cyclomatic 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:300 — lz4DecompressBlock 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 is NOT this file's highest cyclomatic complexity: isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · collectImageObjectTextures (cyclomatic 21) · ×1
  • collectImageObjectTextures (cyclomatic 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:899 — collectImageObjectTextures has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to one function item inside it that branches (pushTextureList). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This is NOT this file's highest cyclomatic complexity: isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · effectShake (cyclomatic 21) · ×1
  • effectShake (cyclomatic 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shake.js:5 — effectShake 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 · executor.convertUniform (cyclomatic 20) · ×1
  • executor.convertUniform (cyclomatic 20) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:58 — executor.convertUniform 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 · index.enumerateWallpapersAsync (cyclomatic 20) · ×1
  • index.enumerateWallpapersAsync (cyclomatic 20) REDACTED:327 — index.enumerateWallpapersAsync has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body's own statements and 3 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 · compact-preset-migrate.migratePresetFile (cyclomatic 20) · ×1
  • compact-preset-migrate.migratePresetFile (cyclomatic 20) dsh-desktop/compact-preset-migrate.ts:99 — compact-preset-migrate.migratePresetFile 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.
D1 · Cyclomatic Complexity · plugin-guard.createGuard.projectRestore (cyclomatic 20) · ×1
  • plugin-guard.createGuard.projectRestore (cyclomatic 20) dsh-desktop/plugin-guard.ts:374 — plugin-guard.createGuard.projectRestore has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function item 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 · minimal-boot-smoke.runMinimalBootSmoke (cyclomatic 20) · ×1
  • minimal-boot-smoke.runMinimalBootSmoke (cyclomatic 20) dsh-desktop/scripts/minimal-boot-smoke.mjs:95 — minimal-boot-smoke.runMinimalBootSmoke 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 · system.Settings (cyclomatic 20) · ×1
  • system.Settings (cyclomatic 20) launcher/src/system.tsx:25 — system.Settings has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 belong to 2 function literals 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 · postKiloStreamed (cyclomatic 20) · ×1
  • postKiloStreamed (cyclomatic 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/kilo.js:80 — postKiloStreamed 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 · decodeTex (cyclomatic 20) · ×1
  • decodeTex (cyclomatic 20) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:766 — decodeTex 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. This is NOT this file's highest cyclomatic complexity: isLikelyMaskOrHelper (cyclomatic 54) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · installText · ×1
  • installText::renderTextObject (cyclomatic 20) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/text.js:60 — installText::renderTextObject 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 · effectBlurradial (cyclomatic 20) · ×1
  • effectBlurradial (cyclomatic 20) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/blurradial.js:12 — effectBlurradial 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 · effectPulse (cyclomatic 20) · ×1
  • effectPulse (cyclomatic 20) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/pulse.js:15 — effectPulse 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 · ls.ls (cyclomatic 19) · ×1
  • ls.ls (cyclomatic 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/ls.js:55 — ls.ls 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 · font-render.parseGlyph (cyclomatic 19) · ×1
  • font-render.parseGlyph (cyclomatic 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:593 — font-render.parseGlyph 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 · font-render.expandTtfContours (cyclomatic 19) · ×1
  • font-render.expandTtfContours (cyclomatic 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:756 — font-render.expandTtfContours has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (resolve). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · SceneRenderer.loadTexture (cyclomatic 19) · ×1
  • SceneRenderer.loadTexture (cyclomatic 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:160 — SceneRenderer.loadTexture 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 · builtin-collision.removeMarketDuplicate (cyclomatic 19) · ×1
  • builtin-collision.removeMarketDuplicate (cyclomatic 19) dsh-desktop/builtin-collision.ts:119 — builtin-collision.removeMarketDuplicate 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 · plugin-guard.createGuard.repairJunctions (cyclomatic 19) · ×1
  • plugin-guard.createGuard.repairJunctions (cyclomatic 19) dsh-desktop/plugin-guard.ts:699 — plugin-guard.createGuard.repairJunctions 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 · companion-sync.incompatibleBundlePackages (cyclomatic 19) · ×1
  • companion-sync.incompatibleBundlePackages (cyclomatic 19) dsh-desktop/lib/desktop/companion-sync.ts:128 — companion-sync.incompatibleBundlePackages 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 · companion-sync.retireRemovedBuiltinPlugins (cyclomatic 19) · ×1
  • companion-sync.retireRemovedBuiltinPlugins (cyclomatic 19) dsh-desktop/lib/desktop/companion-sync.ts:805 — companion-sync.retireRemovedBuiltinPlugins 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 · proc.killTreeAndWait (cyclomatic 19) · ×1
  • proc.killTreeAndWait (cyclomatic 19) dsh-desktop/lib/desktop/proc.ts:68 — proc.killTreeAndWait 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 · update-portable-lock.withPortableLock (cyclomatic 19) · ×1
  • update-portable-lock.withPortableLock (cyclomatic 19) dsh-desktop/lib/desktop/update-portable-lock.ts:18 — update-portable-lock.withPortableLock has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 3 function items inside it that branch (check, a function literal at line 44, a function literal at line 43). 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 · update-restart.probeHttpHealth (cyclomatic 19) · ×1
  • update-restart.probeHttpHealth (cyclomatic 19) dsh-desktop/lib/desktop/update-restart.ts:189 — update-restart.probeHttpHealth has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body's own statements and 2 belong to 2 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 · preset-sync.ensureDefaultAgentPreset (cyclomatic 19) · ×1
  • preset-sync.ensureDefaultAgentPreset (cyclomatic 19) dsh-desktop/preset-sync.ts:81 — preset-sync.ensureDefaultAgentPreset 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 · profile-module-heal.healProfileModuleShadowing (cyclomatic 19) · ×1
  • profile-module-heal.healProfileModuleShadowing (cyclomatic 19) dsh-desktop/profile-module-heal.ts:29 — profile-module-heal.healProfileModuleShadowing has cyclomatic complexity 19 (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-session-log.scanZstdFrames (cyclomatic 19) · ×1
  • analyze-session-log.scanZstdFrames (cyclomatic 19) dsh-desktop/scripts/analyze-session-log.js:13 — analyze-session-log.scanZstdFrames 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 · repair-session-log.scanZstdFrames (cyclomatic 19) · ×1
  • repair-session-log.scanZstdFrames (cyclomatic 19) dsh-desktop/scripts/repair-session-log.js:16 — repair-session-log.scanZstdFrames 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 · session-watcher.scanZstdFrames (cyclomatic 19) · ×1
  • session-watcher.scanZstdFrames (cyclomatic 19) dsh-desktop/session-watcher.ts:36 — session-watcher.scanZstdFrames 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 · verify-update-handoff.auditHandoff (cyclomatic 19) · ×1
  • verify-update-handoff.auditHandoff (cyclomatic 19) dsh-desktop/scripts/verify-update-handoff.mjs:8 — verify-update-handoff.auditHandoff has cyclomatic complexity 19 (threshold 15). 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, 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 · dialogs.InstanceDialog · ×1
  • dialogs.InstanceDialog::submit (cyclomatic 19) launcher/src/dialogs.tsx:184 — dialogs.InstanceDialog::submit 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. This shape REPEATS in the file: one other method here (dialogs.InstanceDialog) 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.
D1 · Cyclomatic Complexity · dialogs.PackDialog (cyclomatic 19) · ×1
  • dialogs.PackDialog (cyclomatic 19) launcher/src/dialogs.tsx:308 — dialogs.PackDialog has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 2 function items inside it that branch (install, a function literal at line 344). 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 · library.Kernels (cyclomatic 19) · ×1
  • library.Kernels (cyclomatic 19) launcher/src/library.tsx:319 — library.Kernels has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body's own statements and 7 belong to 3 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 · anthropicFrames (cyclomatic 19) · ×1
  • anthropicFrames (cyclomatic 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:659 — anthropicFrames has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 672). The decisions are inside the literal, 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 literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · normalizeCombos (cyclomatic 19) · ×1
  • normalizeCombos (cyclomatic 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/combos.js:69 — normalizeCombos has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body's own statements and 2 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 · deferStreamResponse (cyclomatic 19) · ×1
  • deferStreamResponse (cyclomatic 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/deferred-response.js:2 — deferStreamResponse has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 7 function items inside it that branch (get, commit, a function literal at line 19, …). 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 · relayRequest (cyclomatic 19) · ×1
  • relayRequest (cyclomatic 19) REDACTED:250 — relayRequest has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 belong to 8 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 · mihomoSearchRoots (cyclomatic 19) · ×1
  • mihomoSearchRoots (cyclomatic 19) REDACTED:719 — mihomoSearchRoots 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 · traceRequest (cyclomatic 19) · ×1
  • traceRequest (cyclomatic 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:49 — traceRequest has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 belong to 6 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 · serveCompletion (cyclomatic 19) · ×1
  • serveCompletion (cyclomatic 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:629 — serveCompletion has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 3 function items inside it that branch ((anonymous)::undefined, a function literal at line 646, abort). 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 · lz4DecompressBlock (cyclomatic 19) · ×1
  • lz4DecompressBlock (cyclomatic 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:162 — lz4DecompressBlock 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 · index.handleCheckRoute (cyclomatic 18) · ×1
  • index.handleCheckRoute (cyclomatic 18) REDACTED:421 — index.handleCheckRoute has cyclomatic complexity 18 (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 · font-render.rasterizeContours (cyclomatic 18) · ×1
  • font-render.rasterizeContours (cyclomatic 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:380 — font-render.rasterizeContours 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 · font-render.parseCmap (cyclomatic 18) · ×1
  • font-render.parseCmap (cyclomatic 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:544 — font-render.parseCmap 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 · scene-scripts.makeOwnerRef.makeObject (cyclomatic 18) · ×1
  • scene-scripts.makeOwnerRef.makeObject (cyclomatic 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:115 — scene-scripts.makeOwnerRef.makeObject 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 · Transpiler.collect (cyclomatic 18) · ×1
  • Transpiler.collect (cyclomatic 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:46 — Transpiler.collect has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 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 · plugin-ops.pluginManagerSetEnabled (cyclomatic 18) · ×1
  • plugin-ops.pluginManagerSetEnabled (cyclomatic 18) dsh-desktop/lib/desktop/plugin-ops.ts:344 — plugin-ops.pluginManagerSetEnabled 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 · update-linux.prepareLinuxPackage (cyclomatic 18) · ×1
  • update-linux.prepareLinuxPackage (cyclomatic 18) dsh-desktop/lib/desktop/update-linux.ts:113 — update-linux.prepareLinuxPackage has cyclomatic complexity 18 (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. This is NOT this file's highest cyclomatic complexity: update-linux.readLinuxPackagePlan (cyclomatic 25) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · update-portable.exchangePortableLocked (cyclomatic 18) · ×1
  • update-portable.exchangePortableLocked (cyclomatic 18) dsh-desktop/lib/desktop/update-portable.ts:154 — update-portable.exchangePortableLocked 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 · verify-bugfix-cdp.main (cyclomatic 18) · ×1
  • verify-bugfix-cdp.main (cyclomatic 18) dsh-desktop/scripts/verify-bugfix-cdp.js:100 — verify-bugfix-cdp.main has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 belong to one function item 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 · stable-port.chooseStableWebPort (cyclomatic 18) · ×1
  • stable-port.chooseStableWebPort (cyclomatic 18) dsh-desktop/stable-port.ts:48 — stable-port.chooseStableWebPort has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 53, 76, 79, …). 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 · pixel-world.AmbientWorld (cyclomatic 18) · ×1
  • pixel-world.AmbientWorld (cyclomatic 18) launcher/src/pixel-world.tsx:13 — pixel-world.AmbientWorld 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 6 function literals inside it that branch (lines 57, 17, 41, …). 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 · dialogs.PathDialog (cyclomatic 18) · ×1
  • dialogs.PathDialog (cyclomatic 18) launcher/src/dialogs.tsx:235 — dialogs.PathDialog has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body's own statements and 8 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 · portable-path-shrink.pruneOrphanSdks (cyclomatic 18) · ×1
  • portable-path-shrink.pruneOrphanSdks (cyclomatic 18) tauri-shell/portable-path-shrink.mjs:531 — portable-path-shrink.pruneOrphanSdks has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (scan, rm). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · bridge.trackGuestBounds · ×1
  • bridge.trackGuestBounds::tick (cyclomatic 18) tauri-shell/sidecar/bridge.ts:1029 — bridge.trackGuestBounds::tick has cyclomatic complexity 18 (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 · createWsJsonRpc.connect (cyclomatic 18) · ×1
  • createWsJsonRpc.connect (cyclomatic 18) dsh-desktop/assets/ws-jsonrpc-client.js:62 — createWsJsonRpc.connect 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 (onmessage, onopen, onclose, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · chatFrames (cyclomatic 18) · ×1
  • chatFrames (cyclomatic 18) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:616 — chatFrames has cyclomatic complexity 18 (threshold 15). Of this number, 17 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 · createAssetHandler (cyclomatic 18) · ×1
  • createAssetHandler (cyclomatic 18) dsh-desktop/assets/skins/dsh-client-liang-intensity-skin/src/index.js:67 — createAssetHandler 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 68, a function literal at line 129, a function literal at line 134, …). 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 · applyTokenSavers (cyclomatic 18) · ×1
  • applyTokenSavers (cyclomatic 18) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/index.js:69 — applyTokenSavers has cyclomatic complexity 18 (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 · effectFilmgrain (cyclomatic 18) · ×1
  • effectFilmgrain (cyclomatic 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/filmgrain.js:5 — effectFilmgrain 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 · index.findListeningPorts (cyclomatic 17) · ×1
  • index.findListeningPorts (cyclomatic 17) REDACTED:354 — index.findListeningPorts 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 · index.scanFirstZstdFrame (cyclomatic 17) · ×1
  • index.scanFirstZstdFrame (cyclomatic 17) REDACTED:473 — index.scanFirstZstdFrame 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 · upstream.aliasHistoryToolCalls (cyclomatic 17) · ×1
  • upstream.aliasHistoryToolCalls (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js:441 — upstream.aliasHistoryToolCalls has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body's own statements and 8 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 · http.readSse · ×1
  • http.readSse::line (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:497 — http.readSse::line 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. This shape REPEATS in the file: one other method here (http.readSse) 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.
D1 · Cyclomatic Complexity · inject.stripChat (cyclomatic 17) · ×1
  • inject.stripChat (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:243 — inject.stripChat 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 · picks.createPickStats.readDisk (cyclomatic 17) · ×1
  • picks.createPickStats.readDisk (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/picks.js:97 — picks.createPickStats.readDisk has cyclomatic complexity 17 (threshold 15). Of this number, 10 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 · font-render.parseTtfFont (cyclomatic 17) · ×1
  • font-render.parseTtfFont (cyclomatic 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:499 — font-render.parseTtfFont has cyclomatic complexity 17 (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 · scene-scripts.applySceneScripts (cyclomatic 17) · ×1
  • scene-scripts.applySceneScripts (cyclomatic 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:374 — scene-scripts.applySceneScripts has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (walk). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · executor.collectVaryings (cyclomatic 17) · ×1
  • executor.collectVaryings (cyclomatic 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:32 — executor.collectVaryings has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 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 · index.readPlaylistsP (cyclomatic 17) · ×1
  • index.readPlaylistsP (cyclomatic 17) REDACTED:390 — index.readPlaylistsP 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 · index.downloadFfmpegToFile (cyclomatic 17) · ×1
  • index.downloadFfmpegToFile (cyclomatic 17) REDACTED:1213 — index.downloadFfmpegToFile 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 · compact-preset-migrate.replaceCompactionGroup (cyclomatic 17) · ×1
  • compact-preset-migrate.replaceCompactionGroup (cyclomatic 17) dsh-desktop/compact-preset-migrate.ts:56 — compact-preset-migrate.replaceCompactionGroup 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 · plugin-ops.pluginManagerSetRemoved (cyclomatic 17) · ×1
  • plugin-ops.pluginManagerSetRemoved (cyclomatic 17) dsh-desktop/lib/desktop/plugin-ops.ts:237 — plugin-ops.pluginManagerSetRemoved 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 · update-linux-helper.linuxPackageStartupGate (cyclomatic 17) · ×1
  • update-linux-helper.linuxPackageStartupGate (cyclomatic 17) dsh-desktop/lib/desktop/update-linux-helper.ts:144 — update-linux-helper.linuxPackageStartupGate 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, 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 · UpdateRestart.checkHealth (cyclomatic 17) · ×1
  • UpdateRestart.checkHealth (cyclomatic 17) dsh-desktop/lib/desktop/update-restart.ts:97 — UpdateRestart.checkHealth 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, 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 · plugin-sync.writeFileAtomic (cyclomatic 17) · ×1
  • plugin-sync.writeFileAtomic (cyclomatic 17) REDACTED:308 — plugin-sync.writeFileAtomic 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.
D1 · Cyclomatic Complexity · patch-deps.patchAgentPresetMenu (cyclomatic 17) · ×1
  • patch-deps.patchAgentPresetMenu (cyclomatic 17) REDACTED:975 — patch-deps.patchAgentPresetMenu has cyclomatic complexity 17 (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 · dialogs.InstanceDialog (cyclomatic 17) · ×1
  • dialogs.InstanceDialog (cyclomatic 17) launcher/src/dialogs.tsx:173 — dialogs.InstanceDialog has cyclomatic complexity 17 (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. This shape REPEATS in the file: one other method here (dialogs.InstanceDialog::submit) 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.
D1 · Cyclomatic Complexity · workspace.Backups (cyclomatic 17) · ×1
  • workspace.Backups (cyclomatic 17) launcher/src/workspace.tsx:162 — workspace.Backups has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 171, 184). 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 · bridge.injectChrome (cyclomatic 17) · ×1
  • bridge.injectChrome (cyclomatic 17) tauri-shell/sidecar/bridge.ts:1458 — bridge.injectChrome 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 3 function literals inside it that branch (lines 1504, 1519, 1529). 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 · eac_launcher · ×1
  • eac_launcher::usage::parse_session (cyclomatic 17) launcher/src-tauri/src/usage.rs:303 — eac_launcher::usage::parse_session 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 · startEgressRelay (cyclomatic 17) · ×1
  • startEgressRelay (cyclomatic 17) REDACTED:125 — startEgressRelay has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body's own statements and 8 belong to 10 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 · postStreamed (cyclomatic 17) · ×1
  • postStreamed (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:379 — postStreamed has cyclomatic complexity 17 (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 · probeModel (cyclomatic 17) · ×1
  • probeModel (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/probe.js:49 — probeModel has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (onData). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · closeAll (cyclomatic 17) · ×1
  • closeAll (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:176 — closeAll 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 · mapUsage (cyclomatic 17) · ×1
  • mapUsage (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:224 — mapUsage has cyclomatic complexity 17 (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 · feedClaude (cyclomatic 17) · ×1
  • feedClaude (cyclomatic 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:307 — feedClaude 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 · spawnFfmpeg · ×1
  • spawnFfmpeg::(anonymous)::runNext (cyclomatic 17) REDACTED:1375 — spawnFfmpeg::(anonymous)::runNext 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 · constructor (cyclomatic 17) · ×1
  • constructor (cyclomatic 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:31 — constructor has cyclomatic complexity 17 (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 · shortenSeedPreviewDirs (cyclomatic 17) · ×1
  • shortenSeedPreviewDirs (cyclomatic 17) tauri-shell/portable-path-shrink.mjs:420 — shortenSeedPreviewDirs 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 · upstream.applyFingerprint (cyclomatic 16) · ×1
  • upstream.applyFingerprint (cyclomatic 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js:514 — upstream.applyFingerprint 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.
D1 · Cyclomatic Complexity · http.readSse (cyclomatic 16) · ×1
  • http.readSse (cyclomatic 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:439 — http.readSse 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: one other method here (http.readSse::line) 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.
D1 · Cyclomatic Complexity · local-optimize.extractFilepathsFromCommand (cyclomatic 16) · ×1
  • local-optimize.extractFilepathsFromCommand (cyclomatic 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/local-optimize.js:245 — local-optimize.extractFilepathsFromCommand 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 · Canvas.blitScaled (cyclomatic 16) · ×1
  • Canvas.blitScaled (cyclomatic 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/canvas.js:41 — Canvas.blitScaled 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.
D1 · Cyclomatic Complexity · pkg-extract.collectImageObjectTextures (cyclomatic 16) · ×1
  • pkg-extract.collectImageObjectTextures (cyclomatic 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:802 — pkg-extract.collectImageObjectTextures has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 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 · mdl.parseMdlPuppet (cyclomatic 16) · ×1
  • mdl.parseMdlPuppet (cyclomatic 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:7 — mdl.parseMdlPuppet 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.
D1 · Cyclomatic Complexity · SceneRenderer._mdlAnchors (cyclomatic 16) · ×1
  • SceneRenderer._mdlAnchors (cyclomatic 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:277 — SceneRenderer._mdlAnchors 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.
D1 · Cyclomatic Complexity · boot-server.waitUntilUp (cyclomatic 16) · ×1
  • boot-server.waitUntilUp (cyclomatic 16) dsh-desktop/lib/desktop/boot-server.ts:357 — boot-server.waitUntilUp has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 384, 377, 364, …). 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 · lite-skins.ensureSkinDependencies (cyclomatic 16) · ×1
  • lite-skins.ensureSkinDependencies (cyclomatic 16) REDACTED:268 — lite-skins.ensureSkinDependencies 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 · plugin-guard.createGuard.listSnapshots (cyclomatic 16) · ×1
  • plugin-guard.createGuard.listSnapshots (cyclomatic 16) dsh-desktop/plugin-guard.ts:211 — plugin-guard.createGuard.listSnapshots has cyclomatic complexity 16 (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 · plugin-guard.createGuard.prepareRestore.writeConfig (cyclomatic 16) · ×1
  • plugin-guard.createGuard.prepareRestore.writeConfig (cyclomatic 16) dsh-desktop/plugin-guard.ts:286 — plugin-guard.createGuard.prepareRestore.writeConfig 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.
D1 · Cyclomatic Complexity · companion-sync.syncCompanionPlugins · ×1
  • companion-sync.syncCompanionPlugins::ensurePluginHostDeps::ensureCopy (cyclomatic 16) dsh-desktop/lib/desktop/companion-sync.ts:1158 — companion-sync.syncCompanionPlugins::ensurePluginHostDeps::ensureCopy has cyclomatic complexity 16 (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: one other method here (companion-sync.syncCompanionPlugins) 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.
D1 · Cyclomatic Complexity · update-linux.parseLinuxIdentity (cyclomatic 16) · ×1
  • update-linux.parseLinuxIdentity (cyclomatic 16) dsh-desktop/lib/desktop/update-linux.ts:34 — update-linux.parseLinuxIdentity 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. This is NOT this file's highest cyclomatic complexity: update-linux.readLinuxPackagePlan (cyclomatic 25) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · update-archive.inspectPortableArchive (cyclomatic 16) · ×1
  • update-archive.inspectPortableArchive (cyclomatic 16) dsh-desktop/lib/desktop/update-archive.ts:17 — update-archive.inspectPortableArchive 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.
D1 · Cyclomatic Complexity · update-linux-helper.startLinuxAuthorization (cyclomatic 16) · ×1
  • update-linux-helper.startLinuxAuthorization (cyclomatic 16) dsh-desktop/lib/desktop/update-linux-helper.ts:26 — update-linux-helper.startLinuxAuthorization has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 37, 47, 36). 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 · api.call (cyclomatic 16) · ×1
  • api.call (cyclomatic 16) launcher/src/api.ts:67 — api.call 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.
D1 · Cyclomatic Complexity · apply (cyclomatic 16) · ×1
  • apply (cyclomatic 16) REDACTED:58 — apply 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.
D1 · Cyclomatic Complexity · structuralReason (cyclomatic 16) · ×1
  • structuralReason (cyclomatic 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/trust.js:137 — structuralReason 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.
D1 · Cyclomatic Complexity · pruneNodeModulesDeadWeight (cyclomatic 16) · ×1
  • pruneNodeModulesDeadWeight (cyclomatic 16) tauri-shell/portable-path-shrink.mjs:57 — pruneNodeModulesDeadWeight has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, rmdirRecursive). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · buildSceneManifestVia (cognitive 572) · ×1
  • buildSceneManifestVia (cognitive 572) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1876 — buildSceneManifestVia has cognitive complexity 572 (threshold 15). Drivers by points: if/else 100 (324 pts), ternaries 34 (117 pts), boolean chains 70, loops 13 (44 pts), other 11, error handling 2 (6 pts) (nesting depth added 342). Of this number, 407 points are the body's own statements and 165 belong to 30 function items inside it that branch. 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 · puppet.installPuppet (cognitive 402) · ×1
  • puppet.installPuppet (cognitive 402) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:5 — puppet.installPuppet has cognitive complexity 402 (threshold 15). Drivers by points: if/else 92 (213 pts), loops 52 (108 pts), boolean chains 57, ternaries 8 (16 pts), error handling 3 (8 pts) (nesting depth added 190). Of this number, 366 points are the body's own statements and 36 belong to 7 function items inside it that branch. 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 · model.installModel (cognitive 258) · ×1
  • model.installModel (cognitive 258) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:5 — model.installModel has cognitive complexity 258 (threshold 15). Drivers by points: if/else 56 (96 pts), ternaries 64 (94 pts), boolean chains 49, loops 12 (19 pts) (nesting depth added 77). Of this number, 255 points are the body's own statements and 3 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 · index.apply (cognitive 257) · ×1
  • index.apply (cognitive 257) REDACTED:135 — index.apply has cognitive complexity 257 (threshold 15). Drivers by points: if/else 116 (141 pts), boolean chains 59, ternaries 31 (37 pts), error handling 11 (13 pts), loops 7 (nesting depth added 33). Most of this is not in the body itself: 12 of the 257 points are its own statements and the rest belongs to 57 function items inside it that branch (a function literal at line 1296, a function literal at line 1165, syncRelayOnce, …). 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 · runSingle (cognitive 256) · ×1
  • runSingle (cognitive 256) dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:297 — runSingle has cognitive complexity 256 (threshold 15). Drivers by points: ternaries 35 (94 pts), if/else 39 (84 pts), boolean chains 56, other 12, loops 3 (6 pts), error handling 2 (4 pts) (nesting depth added 109). Of this number, 210 points are the body's own statements and 46 belong to 17 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 · particles.installParticles (cognitive 253) · ×1
  • particles.installParticles (cognitive 253) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:5 — particles.installParticles has cognitive complexity 253 (threshold 15). Drivers by points: if/else 47 (128 pts), ternaries 20 (50 pts), boolean chains 40, loops 16 (32 pts), match/switch 2 (3 pts) (nesting depth added 128). Of this number, 252 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · createApiRoutes · ×1
  • createApiRoutes::handler (cognitive 228) REDACTED:1692 — createApiRoutes::handler has cognitive complexity 228 (threshold 15). Drivers by points: if/else 69 (102 pts), boolean chains 59, ternaries 15 (37 pts), other 19, loops 2 (6 pts), error handling 3 (5 pts) (nesting depth added 61). 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 · plugin-sync.validateManifestInternal (cognitive 209) · ×1
  • plugin-sync.validateManifestInternal (cognitive 209) REDACTED:755 — plugin-sync.validateManifestInternal has cognitive complexity 209 (threshold 15). Drivers by points: if/else 66 (143 pts), boolean chains 37, loops 9 (16 pts), ternaries 5 (11 pts), error handling 1 (2 pts) (nesting depth added 91). Of this number, 208 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 · index.createApiRoutes.handler (cognitive 204) · ×1
  • index.createApiRoutes.handler (cognitive 204) REDACTED:1692 — index.createApiRoutes.handler has cognitive complexity 204 (threshold 15). Drivers by points: if/else 69 (102 pts), boolean chains 59, ternaries 13 (32 pts), loops 2 (6 pts), error handling 3 (5 pts) (nesting depth added 58). 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 · image.installImage (cognitive 188) · ×1
  • image.installImage (cognitive 188) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:6 — image.installImage has cognitive complexity 188 (threshold 15). Drivers by points: boolean chains 67, if/else 51 (67 pts), ternaries 22 (33 pts), loops 12 (21 pts) (nesting depth added 36). Of this number, 185 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 · interpretCharstring · ×1
  • interpretCharstring::interpretOps (cognitive 151) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:223 — interpretCharstring::interpretOps has cognitive complexity 151 (threshold 15). Drivers by points: if/else 51 (101 pts), loops 9 (25 pts), boolean chains 22, ternaries 1 (3 pts) (nesting depth added 68). 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 · parseCffFont (cognitive 133) · ×1
  • parseCffFont (cognitive 133) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:65 — parseCffFont has cognitive complexity 133 (threshold 15). Drivers by points: if/else 25 (66 pts), loops 11 (28 pts), ternaries 10 (25 pts), boolean chains 8, error handling 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 76). 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 · mdl.parseMdlStatic (cognitive 122) · ×1
  • mdl.parseMdlStatic (cognitive 122) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:51 — mdl.parseMdlStatic has cognitive complexity 122 (threshold 15). Drivers by points: if/else 30 (77 pts), loops 11 (23 pts), boolean chains 17, ternaries 3 (5 pts) (nesting depth added 61). Of this number, 121 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 · tryCompositeSceneLayers (cognitive 114) · ×1
  • tryCompositeSceneLayers (cognitive 114) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1227 — tryCompositeSceneLayers has cognitive complexity 114 (threshold 15). Drivers by points: if/else 27 (45 pts), boolean chains 35, ternaries 11 (22 pts), loops 5 (10 pts), error handling 1 (2 pts) (nesting depth added 35). Of this number, 105 points are the body's own statements and 9 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 · jpeg.decodeScan (cognitive 111) · ×1
  • jpeg.decodeScan (cognitive 111) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/jpeg.js:218 — jpeg.decodeScan has cognitive complexity 111 (threshold 15). Drivers by points: if/else 11 (70 pts), loops 9 (40 pts), boolean chains 1 (nesting depth added 90). 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 · companion-sync.syncCompanionPlugins (cognitive 109) · ×1
  • companion-sync.syncCompanionPlugins (cognitive 109) dsh-desktop/lib/desktop/companion-sync.ts:964 — companion-sync.syncCompanionPlugins has cognitive complexity 109 (threshold 15). Drivers by points: if/else 51 (85 pts), boolean chains 26, error handling 14 (26 pts), loops 11 (19 pts), ternaries 4 (6 pts) (nesting depth added 56). 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: 2 other methods here (companion-sync.syncCompanionPlugins::ensurePluginHostDeps, companion-sync.syncCompanionPlugins::ensurePluginHostDeps::ensureCopy) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
D2 · Cognitive Complexity · decodeJpegInner (cognitive 109) · ×1
  • decodeJpegInner (cognitive 109) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/jpeg.js:281 — decodeJpegInner has cognitive complexity 109 (threshold 15). Drivers by points: if/else 19 (37 pts), ternaries 10 (34 pts), loops 11 (29 pts), boolean chains 8, error handling 1 (nesting depth added 60). Of this number, 105 points are the body's own statements and 4 belong to 5 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 · camera.installCamera (cognitive 97) · ×1
  • camera.installCamera (cognitive 97) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:96 — camera.installCamera has cognitive complexity 97 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 28, ternaries 17 (26 pts), loops 4 (6 pts), error handling 1 (nesting depth added 24). Of this number, 84 points are the body's own statements and 13 belong to 7 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 · (anonymous) (cognitive 93) · ×1
  • (anonymous) (cognitive 93) launcher/pack-hall/server.mjs:136 — (anonymous) has cognitive complexity 93 (threshold 15). Drivers by points: if/else 33 (51 pts), boolean chains 19, ternaries 7 (14 pts), other 8, error handling 1 (nesting depth added 25). Of this number, 84 points are the body's own statements and 9 belong to 10 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 · toChatMessages (cognitive 92) · ×1
  • toChatMessages (cognitive 92) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:163 — toChatMessages has cognitive complexity 92 (threshold 15). Drivers by points: if/else 19 (55 pts), loops 5 (14 pts), ternaries 3 (13 pts), boolean chains 5, other 3, match/switch 1 (2 pts) (nesting depth added 56). Of this number, 91 points are the body's own statements and 1 belongs 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 · plugin-sync.validateLockInternal (cognitive 89) · ×1
  • plugin-sync.validateLockInternal (cognitive 89) REDACTED:1189 — plugin-sync.validateLockInternal has cognitive complexity 89 (threshold 15). Drivers by points: if/else 31 (60 pts), boolean chains 17, ternaries 3 (5 pts), error handling 2 (4 pts), loops 3 (nesting depth added 33). 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 · index.probeMp4 (cognitive 86) · ×1
  • index.probeMp4 (cognitive 86) REDACTED:915 — index.probeMp4 has cognitive complexity 86 (threshold 15). Drivers by points: if/else 20 (53 pts), ternaries 6 (13 pts), boolean chains 10, loops 6 (10 pts) (nesting depth added 44). Of this number, 71 points are the body's own statements and 15 belong to 2 function items inside it that branch. 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 · server.server (cognitive 85) · ×1
  • server.server (cognitive 85) launcher/pack-hall/server.mjs:136 — server.server has cognitive complexity 85 (threshold 15). Drivers by points: if/else 33 (51 pts), boolean chains 19, ternaries 7 (14 pts), error handling 1 (nesting depth added 25). Of this number, 78 points are the body's own statements and 7 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 · github-login.GitHubLoginDialog (cognitive 84) · ×1
  • github-login.GitHubLoginDialog (cognitive 84) launcher/src/github-login.tsx:38 — github-login.GitHubLoginDialog has cognitive complexity 84 (threshold 15). Drivers by points: ternaries 19 (47 pts), boolean chains 18, if/else 11 (13 pts), error handling 6 (nesting depth added 30). Of this number, 64 points are the body's own statements and 20 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 · plugin-sync.validateDistribution (cognitive 81) · ×1
  • plugin-sync.validateDistribution (cognitive 81) REDACTED:504 — plugin-sync.validateDistribution has cognitive complexity 81 (threshold 15). Drivers by points: if/else 27 (52 pts), boolean chains 20, loops 5, ternaries 3 (4 pts) (nesting depth added 26). Of this number, 80 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 · store.LauncherProvider (cognitive 80) · ×1
  • store.LauncherProvider (cognitive 80) REDACTED:94 — store.LauncherProvider has cognitive complexity 80 (threshold 15). Drivers by points: if/else 35 (41 pts), error handling 12 (16 pts), boolean chains 13, ternaries 6 (9 pts), loops 1 (nesting depth added 13). None of this is in the body itself: all 80 points belong to 22 function literals inside it that branch (lines 174, 157, 197, …). 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 · tryCompositeMultiLayerScene (cognitive 80) · ×1
  • tryCompositeMultiLayerScene (cognitive 80) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1205 — tryCompositeMultiLayerScene has cognitive complexity 80 (threshold 15). Drivers by points: if/else 22 (48 pts), boolean chains 22, loops 4 (7 pts), error handling 1 (2 pts), ternaries 1 (nesting depth added 30). Of this number, 76 points are the body's own statements and 4 belong to 3 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 · _resolveAnimations (cognitive 80) · ×1
  • _resolveAnimations (cognitive 80) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:606 — _resolveAnimations has cognitive complexity 80 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 17, ternaries 5 (17 pts), loops 6 (13 pts), other 1 (nesting depth added 36). Of this number, 58 points are the body's own statements and 22 belong to 5 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 · anthropicFrames (cognitive 79) · ×1
  • anthropicFrames (cognitive 79) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:455 — anthropicFrames has cognitive complexity 79 (threshold 15). Drivers by points: if/else 22 (49 pts), ternaries 8 (18 pts), boolean chains 7, other 4, match/switch 1 (nesting depth added 37). 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 · toResponseInput (cognitive 79) · ×1
  • toResponseInput (cognitive 79) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:330 — toResponseInput has cognitive complexity 79 (threshold 15). Drivers by points: if/else 20 (51 pts), loops 5 (13 pts), ternaries 2 (9 pts), boolean chains 3, other 3 (nesting depth added 46). Of this number, 78 points are the body's own statements and 1 belongs 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 · profile.Profile (cognitive 77) · ×1
  • profile.Profile (cognitive 77) launcher/src/profile.tsx:82 — profile.Profile has cognitive complexity 77 (threshold 15). Drivers by points: ternaries 24 (39 pts), boolean chains 22, if/else 11 (12 pts), error handling 2, loops 2 (nesting depth added 16). Of this number, 39 points are the body's own statements and 38 belong to 14 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 · updater.applyUpdate (cognitive 74) · ×1
  • updater.applyUpdate (cognitive 74) dsh-desktop/updater.ts:371 — updater.applyUpdate has cognitive complexity 74 (threshold 15). Drivers by points: if/else 19 (30 pts), error handling 12 (24 pts), boolean chains 16, loops 2, ternaries 1 (2 pts) (nesting depth added 24). Of this number, 57 points are the body's own statements and 17 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 · update-host.apply (cognitive 74) · ×1
  • update-host.apply (cognitive 74) dsh-desktop/lib/desktop/update-host.ts:39 — update-host.apply has cognitive complexity 74 (threshold 15). Drivers by points: if/else 28 (36 pts), boolean chains 22, error handling 4 (7 pts), loops 6, ternaries 2 (3 pts) (nesting depth added 12). Most of this is not in the body itself: 4 of the 74 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 67, a function literal at line 96, a function literal at line 138, …). 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 · fromAnthropicRequest (cognitive 74) · ×1
  • fromAnthropicRequest (cognitive 74) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:224 — fromAnthropicRequest has cognitive complexity 74 (threshold 15). Drivers by points: if/else 17 (39 pts), ternaries 11 (26 pts), boolean chains 4, loops 3 (4 pts), other 1 (nesting depth added 38). Of this number, 68 points are the body's own statements and 6 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 · _attachmentOffset (cognitive 73) · ×1
  • _attachmentOffset (cognitive 73) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:361 — _attachmentOffset has cognitive complexity 73 (threshold 15). Drivers by points: if/else 17 (51 pts), boolean chains 13, ternaries 3 (9 pts) (nesting depth added 40). Of this number, 28 points are the body's own statements and 45 belong to 4 function literals inside it that branch. 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 · airdrop.AirDropDialog (cognitive 70) · ×1
  • airdrop.AirDropDialog (cognitive 70) launcher/src/airdrop.tsx:145 — airdrop.AirDropDialog has cognitive complexity 70 (threshold 15). Drivers by points: ternaries 23 (38 pts), boolean chains 23, if/else 3 (5 pts), error handling 2 (3 pts), loops 1 (nesting depth added 18). Of this number, 26 points are the body's own statements and 44 belong to 10 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 · responsesEndpoint (cognitive 68) · ×1
  • responsesEndpoint (cognitive 68) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:992 — responsesEndpoint has cognitive complexity 68 (threshold 15). Drivers by points: if/else 22 (43 pts), ternaries 9 (12 pts), other 8, error handling 1 (2 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 26). Of this number, 49 points are the body's own statements and 19 belong to 9 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 · parseMdl (cognitive 68) · ×1
  • parseMdl (cognitive 68) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1749 — parseMdl has cognitive complexity 68 (threshold 15). Drivers by points: if/else 23 (49 pts), loops 5 (11 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 33). 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 · toClaudeMessages (cognitive 67) · ×1
  • toClaudeMessages (cognitive 67) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:267 — toClaudeMessages has cognitive complexity 67 (threshold 15). Drivers by points: if/else 14 (35 pts), loops 4 (10 pts), ternaries 3 (10 pts), boolean chains 5, error handling 1 (4 pts), other 3 (nesting depth added 37). Of this number, 65 points are the body's own statements and 2 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 · update-portable.rollbackPortableLocked (cognitive 66) · ×1
  • update-portable.rollbackPortableLocked (cognitive 66) dsh-desktop/lib/desktop/update-portable.ts:195 — update-portable.rollbackPortableLocked has cognitive complexity 66 (threshold 15). Drivers by points: if/else 20 (54 pts), boolean chains 10, error handling 1, loops 1 (nesting depth added 34). 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 · extractSceneMainImageVia (cognitive 66) · ×1
  • extractSceneMainImageVia (cognitive 66) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1332 — extractSceneMainImageVia has cognitive complexity 66 (threshold 15). Drivers by points: if/else 21 (40 pts), boolean chains 11, ternaries 4 (7 pts), loops 4, error handling 2 (3 pts), other 1 (nesting depth added 23). Of this number, 58 points are the body's own statements and 8 belong to 6 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 · index.compressMessages (cognitive 65) · ×1
  • index.compressMessages (cognitive 65) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/index.js:60 — index.compressMessages has cognitive complexity 65 (threshold 15). Drivers by points: if/else 18 (42 pts), loops 5 (14 pts), boolean chains 5, ternaries 2 (3 pts), error handling 1 (nesting depth added 34). 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 · boot-server.watchServerProc (cognitive 63) · ×1
  • boot-server.watchServerProc (cognitive 63) dsh-desktop/lib/desktop/boot-server.ts:215 — boot-server.watchServerProc has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (28 pts), error handling 6 (16 pts), boolean chains 12, loops 3 (6 pts), ternaries 1 (nesting depth added 25). None of this is in the body itself: all 63 points belong to 9 function literals inside it that branch (lines 300, 240, 334, …). 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 · messagesEndpoint (cognitive 63) · ×1
  • messagesEndpoint (cognitive 63) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:1172 — messagesEndpoint has cognitive complexity 63 (threshold 15). Drivers by points: if/else 14 (22 pts), ternaries 8 (14 pts), loops 4 (10 pts), boolean chains 7, other 6, error handling 3 (4 pts) (nesting depth added 21). Of this number, 56 points are the body's own statements and 7 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 · font-render.parseCmap (cognitive 62) · ×1
  • font-render.parseCmap (cognitive 62) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:544 — font-render.parseCmap has cognitive complexity 62 (threshold 15). Drivers by points: if/else 10 (40 pts), loops 5 (19 pts), boolean chains 3 (nesting depth added 44). 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 · fromOpenAiMessages (cognitive 62) · ×1
  • fromOpenAiMessages (cognitive 62) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:85 — fromOpenAiMessages has cognitive complexity 62 (threshold 15). Drivers by points: if/else 10 (29 pts), ternaries 7 (13 pts), other 10, loops 3 (7 pts), boolean chains 3 (nesting depth added 29). 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 · demo-rescue-ai.main (cognitive 61) · ×1
  • demo-rescue-ai.main (cognitive 61) dsh-desktop/scripts/demo-rescue-ai.cjs:70 — demo-rescue-ai.main has cognitive complexity 61 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 9 (13 pts), boolean chains 8, error handling 4 (5 pts) (nesting depth added 20). Of this number, 60 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 · portable-path-shrink.shortenSkinRuntimeNames (cognitive 60) · ×1
  • portable-path-shrink.shortenSkinRuntimeNames (cognitive 60) tauri-shell/portable-path-shrink.mjs:125 — portable-path-shrink.shortenSkinRuntimeNames has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (37 pts), loops 8 (16 pts), boolean chains 5, error handling 1, ternaries 1 (nesting depth added 30). Of this number, 30 points are the body's own statements and 30 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 · update-portable.readPortableJournal (cognitive 59) · ×1
  • update-portable.readPortableJournal (cognitive 59) dsh-desktop/lib/desktop/update-portable.ts:26 — update-portable.readPortableJournal has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 26, if/else 12 (22 pts), loops 5 (6 pts), error handling 3 (5 pts) (nesting depth added 13). 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 · update-platform.updateTarget (cognitive 58) · ×1
  • update-platform.updateTarget (cognitive 58) dsh-desktop/lib/desktop/update-platform.ts:6 — update-platform.updateTarget has cognitive complexity 58 (threshold 15). Drivers by points: if/else 13 (27 pts), error handling 4 (14 pts), ternaries 5 (10 pts), boolean chains 7 (nesting depth added 29). Of this number, 52 points are the body's own statements and 6 belong to one function item inside it that branches. 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 · patch-deps.patchMenuSubmenuScroll (cognitive 58) · ×1
  • patch-deps.patchMenuSubmenuScroll (cognitive 58) REDACTED:1150 — patch-deps.patchMenuSubmenuScroll has cognitive complexity 58 (threshold 15). Drivers by points: if/else 19 (26 pts), ternaries 10 (24 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 22). Of this number, 57 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 · library.Market (cognitive 57) · ×1
  • library.Market (cognitive 57) launcher/src/library.tsx:110 — library.Market has cognitive complexity 57 (threshold 15). Drivers by points: boolean chains 19, if/else 17 (19 pts), ternaries 11 (17 pts), error handling 2 (nesting depth added 8). Of this number, 17 points are the body's own statements and 40 belong to 15 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.
D2 · Cognitive Complexity · update-sources.resolveUpdate (cognitive 56) · ×1
  • update-sources.resolveUpdate (cognitive 56) dsh-desktop/lib/desktop/update-sources.ts:191 — update-sources.resolveUpdate has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (33 pts), ternaries 6 (13 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 24). Of this number, 51 points are the body's own statements and 5 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 · update-portable.preparePortableLocked (cognitive 56) · ×1
  • update-portable.preparePortableLocked (cognitive 56) dsh-desktop/lib/desktop/update-portable.ts:78 — update-portable.preparePortableLocked has cognitive complexity 56 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 8 (15 pts), boolean chains 9, loops 8 (9 pts), error handling 1 (nesting depth added 17). Of this number, 53 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 · effectBlur (cognitive 56) · ×1
  • effectBlur (cognitive 56) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/blur.js:13 — effectBlur has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 11 (26 pts), loops 10 (21 pts), boolean chains 19, if/else 7 (15 pts) (nesting depth added 34). 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 · Transpiler.callExpr (cognitive 55) · ×1
  • Transpiler.callExpr (cognitive 55) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:464 — Transpiler.callExpr has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (35 pts), ternaries 2 (8 pts), boolean chains 7, loops 1 (5 pts) (nesting depth added 28). 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 · SessionWatcher.process (cognitive 55) · ×1
  • SessionWatcher.process (cognitive 55) dsh-desktop/session-watcher.ts:166 — SessionWatcher.process has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 7, error handling 4 (6 pts), loops 3 (6 pts), ternaries 2 (3 pts) (nesting depth added 25). 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 · App.Launcher (cognitive 55) · ×1
  • App.Launcher (cognitive 55) launcher/src/App.tsx:68 — App.Launcher has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 26, ternaries 21 (24 pts), if/else 5 (nesting depth added 3). Of this number, 30 points are the body's own statements and 25 belong to 6 function literals 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.
D2 · Cognitive Complexity · factory (cognitive 55) · ×1
  • factory (cognitive 55) dsh-desktop/assets/plugins/dsh-external-links/lib/client.js:30 — factory has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 17, error handling 10 (13 pts), loops 2, ternaries 2 (nesting depth added 4). None of this is in the body itself: all 55 points belong to 25 function items inside it that branch (installAnchorGate::onClick, openInSystemBrowser, installSignInOpener::openAttempt, …). 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 · stripResponses (cognitive 55) · ×1
  • stripResponses (cognitive 55) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:389 — stripResponses has cognitive complexity 55 (threshold 15). Drivers by points: if/else 19 (47 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 31). 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 · font-render.renderText (cognitive 54) · ×1
  • font-render.renderText (cognitive 54) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:424 — font-render.renderText has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (37 pts), loops 8 (13 pts), boolean chains 4 (nesting depth added 29). 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 · plugin-updater.applyBuiltinPluginUpdateInner (cognitive 54) · ×1
  • plugin-updater.applyBuiltinPluginUpdateInner (cognitive 54) dsh-desktop/plugin-updater.ts:401 — plugin-updater.applyBuiltinPluginUpdateInner has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 15, error handling 5 (9 pts), loops 3 (5 pts), ternaries 1 (nesting depth added 14). 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 · selfReload (cognitive 53) · ×1
  • selfReload (cognitive 53) dsh-desktop/assets/plugins/dsh-our-free-model/src/reload.js:143 — selfReload has cognitive complexity 53 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 10, other 10, error handling 5 (7 pts), loops 4 (6 pts), ternaries 3 (nesting depth added 9). Most of this is not in the body itself: 1 of the 53 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 145, a function literal at line 161, a function literal at line 177, …). 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 · stageRelease (cognitive 53) · ×1
  • stageRelease (cognitive 53) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:470 — stageRelease has cognitive complexity 53 (threshold 15). Drivers by points: if/else 7 (22 pts), ternaries 3 (12 pts), error handling 2 (7 pts), loops 3 (6 pts), boolean chains 3, other 3 (nesting depth added 32). Most of this is not in the body itself: 1 of the 53 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 477, 514). 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 · effectDepthParallax (cognitive 53) · ×1
  • effectDepthParallax (cognitive 53) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/depthparallax.js:12 — effectDepthParallax has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 16 (31 pts), boolean chains 8, if/else 3 (7 pts), loops 3 (7 pts) (nesting depth added 23). 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 · buildOutput (cognitive 53) · ×1
  • buildOutput (cognitive 53) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/buildOutput.js:18 — buildOutput has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (38 pts), boolean chains 8, loops 4, 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 · gitStatus.gitStatus (cognitive 52) · ×1
  • gitStatus.gitStatus (cognitive 52) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/gitStatus.js:20 — gitStatus.gitStatus has cognitive complexity 52 (threshold 15). Drivers by points: if/else 22 (38 pts), boolean chains 7, loops 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.
D2 · Cognitive Complexity · readStream (cognitive 52) · ×1
  • readStream (cognitive 52) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:441 — readStream has cognitive complexity 52 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 8, loops 3 (4 pts), ternaries 3 (4 pts), error handling 2 (3 pts), other 3 (nesting depth added 15). Of this number, 42 points are the body's own statements and 10 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 · foldForwardOutcome (cognitive 52) · ×1
  • foldForwardOutcome (cognitive 52) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:143 — foldForwardOutcome has cognitive complexity 52 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 3 (12 pts), boolean chains 4, other 4, match/switch 1 (nesting depth added 28). Of this number, 51 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · effectGodrays (cognitive 52) · ×1
  • effectGodrays (cognitive 52) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/godrays.js:5 — effectGodrays has cognitive complexity 52 (threshold 15). Drivers by points: boolean chains 19, ternaries 10 (18 pts), loops 7 (12 pts), if/else 1 (3 pts) (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 · runScriptValueCached (cognitive 51) · ×1
  • runScriptValueCached (cognitive 51) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:292 — runScriptValueCached has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 16, ternaries 3 (8 pts), loops 1 (2 pts), error handling 1 (nesting depth added 14). 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 · update-backup.captureBackup (cognitive 50) · ×1
  • update-backup.captureBackup (cognitive 50) dsh-desktop/lib/desktop/update-backup.ts:67 — update-backup.captureBackup has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 5 (9 pts), boolean chains 8, ternaries 1 (4 pts), error handling 1 (2 pts) (nesting depth added 21). 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, 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 · plugin-sync.validateSchema · ×1
  • plugin-sync.validateSchema::visit (cognitive 50) REDACTED:444 — plugin-sync.validateSchema::visit has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 14, loops 4 (8 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 · canvas.decodePngBuffer (cognitive 49) · ×1
  • canvas.decodePngBuffer (cognitive 49) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/canvas.js:171 — canvas.decodePngBuffer has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 7 (21 pts), if/else 13 (20 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 23). 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 · workspace.Overview (cognitive 49) · ×1
  • workspace.Overview (cognitive 49) launcher/src/workspace.tsx:66 — workspace.Overview has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 23 (44 pts), boolean chains 5 (nesting depth added 21). Of this number, 38 points are the body's own statements and 11 belong to 4 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 · index.spawnFfmpeg (cognitive 48) · ×1
  • index.spawnFfmpeg (cognitive 48) REDACTED:1356 — index.spawnFfmpeg has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (21 pts), error handling 10 (18 pts), boolean chains 8, ternaries 1 (nesting depth added 13). Most of this is not in the body itself: 4 of the 48 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 1375, 1424, 1406, …). 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 · plugin-manager-state.collectPluginRows (cognitive 48) · ×1
  • plugin-manager-state.collectPluginRows (cognitive 48) dsh-desktop/plugin-manager-state.ts:196 — plugin-manager-state.collectPluginRows has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 41, if/else 12 (22 pts), ternaries 7 (9 pts), loops 6 (8 pts) (nesting depth added 14). 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: one other method here (plugin-manager-state.collectPluginRows::addRow) 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.
D2 · Cognitive Complexity · portable-path-shrink.shortenSeedPayloadNames (cognitive 48) · ×1
  • portable-path-shrink.shortenSeedPayloadNames (cognitive 48) tauri-shell/portable-path-shrink.mjs:235 — portable-path-shrink.shortenSeedPayloadNames has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 8 (12 pts), boolean chains 7 (nesting depth added 17). Of this number, 37 points are the body's own statements and 11 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 · extractSceneVideoFrames (cognitive 48) · ×1
  • extractSceneVideoFrames (cognitive 48) REDACTED:593 — extractSceneVideoFrames has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (25 pts), error handling 7 (13 pts), loops 3 (4 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 20). Of this number, 36 points are the body's own statements and 12 belong to 6 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 · gitDiff (cognitive 48) · ×1
  • gitDiff (cognitive 48) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/gitDiff.js:25 — gitDiff has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 7, ternaries 1 (3 pts), loops 1 (nesting depth added 21). 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 · text.installText (cognitive 47) · ×1
  • text.installText (cognitive 47) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/text.js:7 — text.installText has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 14, ternaries 6 (13 pts), error handling 1 (2 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 · scene-manifest.parseTexInternal (cognitive 46) · ×1
  • scene-manifest.parseTexInternal (cognitive 46) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:480 — scene-manifest.parseTexInternal has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 8, ternaries 4 (6 pts), loops 3 (5 pts) (nesting depth added 13). 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 · client-updater.cleanupClientBackupIfHealthy (cognitive 46) · ×1
  • client-updater.cleanupClientBackupIfHealthy (cognitive 46) dsh-desktop/client-updater.ts:1309 — client-updater.cleanupClientBackupIfHealthy has cognitive complexity 46 (threshold 15). Drivers by points: if/else 9 (21 pts), error handling 5 (14 pts), boolean chains 6, loops 2 (5 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 · plugin-guard.createGuard.trojanFindings · ×1
  • plugin-guard.createGuard.trojanFindings::walk (cognitive 46) dsh-desktop/plugin-guard.ts:600 — plugin-guard.createGuard.trojanFindings::walk has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (29 pts), error handling 3 (7 pts), boolean chains 6, loops 2 (4 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 · workspace.Logs (cognitive 46) · ×1
  • workspace.Logs (cognitive 46) launcher/src/workspace.tsx:188 — workspace.Logs has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 11 (28 pts), if/else 8 (9 pts), boolean chains 8, error handling 1 (nesting depth added 18). Of this number, 32 points are the body's own statements and 14 belong to 4 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 · companion.NavigatorCompanion (cognitive 46) · ×1
  • companion.NavigatorCompanion (cognitive 46) launcher/src/companion.tsx:21 — companion.NavigatorCompanion has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 11 (26 pts), if/else 11, boolean chains 8, error handling 1 (nesting depth added 15). Of this number, 26 points are the body's own statements and 20 belong to 7 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 · decodePngPayload (cognitive 46) · ×1
  • decodePngPayload (cognitive 46) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:984 — decodePngPayload has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 7 (19 pts), if/else 12 (18 pts), boolean chains 4, loops 3 (4 pts), error handling 1 (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 · extractSceneMainImageVia (cognitive 46) · ×1
  • extractSceneMainImageVia (cognitive 46) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1415 — extractSceneMainImageVia has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 5 (12 pts), boolean chains 6, error handling 3 (5 pts), loops 3, other 1 (nesting depth added 17). Of this number, 44 points are the body's own statements and 2 belong to 3 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 · stmt (cognitive 46) · ×1
  • stmt (cognitive 46) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:188 — stmt has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (28 pts), ternaries 4 (9 pts), boolean chains 6, loops 1 (2 pts), match/switch 1 (nesting depth added 19). Of this number, 45 points are the body's own statements and 1 belongs to 4 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 · Transpiler.binaryExpr (cognitive 45) · ×1
  • Transpiler.binaryExpr (cognitive 45) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:421 — Transpiler.binaryExpr has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 6 (22 pts), if/else 7 (11 pts), boolean chains 8, loops 1 (4 pts) (nesting depth added 23). 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 · effectBlend (cognitive 45) · ×1
  • effectBlend (cognitive 45) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/blend.js:11 — effectBlend has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 11 (16 pts), boolean chains 14, if/else 4 (10 pts), loops 3 (5 pts) (nesting depth added 13). Of this number, 41 points are the body's own statements and 4 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 · pkg-extract.parseTexInternal (cognitive 44) · ×1
  • pkg-extract.parseTexInternal (cognitive 44) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:315 — pkg-extract.parseTexInternal has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (24 pts), ternaries 6 (9 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 13). 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 · apply (cognitive 44) · ×1
  • apply (cognitive 44) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:929 — apply has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (15 pts), other 10, error handling 5 (8 pts), boolean chains 6, ternaries 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 · renderSceneFrameInWorker (cognitive 44) · ×1
  • renderSceneFrameInWorker (cognitive 44) REDACTED:709 — renderSceneFrameInWorker has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 15, if/else 13 (15 pts), error handling 5 (7 pts), ternaries 5 (7 pts) (nesting depth added 6). Most of this is not in the body itself: 12 of the 44 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 762, a function literal at line 725, (anonymous)::finish, …). 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 · local-optimize.shellWords (cognitive 43) · ×1
  • local-optimize.shellWords (cognitive 43) dsh-desktop/assets/plugins/dsh-our-free-model/src/local-optimize.js:122 — local-optimize.shellWords has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (38 pts), boolean chains 4, loops 1 (nesting depth added 21). 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 · pkg-extract.decodeTex (cognitive 43) · ×1
  • pkg-extract.decodeTex (cognitive 43) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:607 — pkg-extract.decodeTex has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (27 pts), ternaries 4 (8 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (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 · plugin-guard.createGuard.attributeBootFailure (cognitive 43) · ×1
  • plugin-guard.createGuard.attributeBootFailure (cognitive 43) dsh-desktop/plugin-guard.ts:834 — plugin-guard.createGuard.attributeBootFailure has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 9, loops 4 (6 pts), error handling 2, ternaries 1 (nesting depth added 15). Of this number, 39 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 · patch-row-heal.normalizeRowConfigIndent (cognitive 43) · ×1
  • patch-row-heal.normalizeRowConfigIndent (cognitive 43) dsh-desktop/patch-row-heal.ts:51 — patch-row-heal.normalizeRowConfigIndent has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (28 pts), boolean chains 7, loops 3 (7 pts), ternaries 1 (nesting depth added 23). 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 · repairToolPairing (cognitive 43) · ×1
  • repairToolPairing (cognitive 43) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:90 — repairToolPairing has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 6, loops 4 (6 pts), other 4 (nesting depth added 18). Of this number, 35 points are the body's own statements and 8 belong to 9 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 · scene-manifest.decodePngToRgba (cognitive 42) · ×1
  • scene-manifest.decodePngToRgba (cognitive 42) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:114 — scene-manifest.decodePngToRgba has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (24 pts), ternaries 4 (9 pts), loops 5 (7 pts), boolean chains 2 (nesting depth added 17). 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 · bundle-identity.resolveBundleIdentity (cognitive 42) · ×1
  • bundle-identity.resolveBundleIdentity (cognitive 42) dsh-desktop/lib/bundle-identity.ts:126 — bundle-identity.resolveBundleIdentity has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 8, loops 3 (6 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 17). 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 · lz4DecompressBlock (cognitive 42) · ×1
  • lz4DecompressBlock (cognitive 42) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:300 — lz4DecompressBlock has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 6 (15 pts), boolean chains 3 (nesting depth added 22). 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 · plugin-sync.schemaMatches (cognitive 41) · ×1
  • plugin-sync.schemaMatches (cognitive 41) REDACTED:410 — plugin-sync.schemaMatches has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 16, loops 1 (2 pts), ternaries 1 (2 pts) (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.
D2 · Cognitive Complexity · countTokens (cognitive 41) · ×1
  • countTokens (cognitive 41) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:799 — countTokens has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 4 (9 pts), ternaries 5 (8 pts), other 2 (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 · chatCompletions (cognitive 41) · ×1
  • chatCompletions (cognitive 41) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:813 — chatCompletions has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (22 pts), ternaries 7 (12 pts), other 4, boolean chains 2, error handling 1 (nesting depth added 11). Of this number, 28 points are the body's own statements and 13 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 · effects.installEffects (cognitive 40) · ×1
  • effects.installEffects (cognitive 40) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects.js:32 — effects.installEffects has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28 (31 pts), boolean chains 6, error handling 1 (2 pts), loops 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.
D2 · Cognitive Complexity · client-updater.downloadRelease (cognitive 40) · ×1
  • client-updater.downloadRelease (cognitive 40) dsh-desktop/client-updater.ts:687 — client-updater.downloadRelease has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 6, error handling 3 (5 pts), ternaries 2 (5 pts), loops 3 (nesting depth added 14). Of this number, 31 points are the body's own statements and 9 belong to 3 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 · analyze-session-log.scanZstdFrames (cognitive 40) · ×1
  • analyze-session-log.scanZstdFrames (cognitive 40) dsh-desktop/scripts/analyze-session-log.js:13 — analyze-session-log.scanZstdFrames has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (27 pts), ternaries 4 (10 pts), loops 2 (3 pts) (nesting depth added 23). 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 · repair-session-log.scanZstdFrames (cognitive 40) · ×1
  • repair-session-log.scanZstdFrames (cognitive 40) dsh-desktop/scripts/repair-session-log.js:16 — repair-session-log.scanZstdFrames has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (27 pts), ternaries 4 (10 pts), loops 2 (3 pts) (nesting depth added 23). 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 · session-watcher.scanZstdFrames (cognitive 40) · ×1
  • session-watcher.scanZstdFrames (cognitive 40) dsh-desktop/session-watcher.ts:36 — session-watcher.scanZstdFrames has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (27 pts), ternaries 4 (10 pts), loops 2 (3 pts) (nesting depth added 23). 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 · achievements.Achievements (cognitive 40) · ×1
  • achievements.Achievements (cognitive 40) launcher/src/achievements.tsx:28 — achievements.Achievements has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 18 (32 pts), boolean chains 8 (nesting depth added 14). Of this number, 17 points are the body's own statements and 23 belong to 5 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 · lz4DecompressBlock (cognitive 40) · ×1
  • lz4DecompressBlock (cognitive 40) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:162 — lz4DecompressBlock has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 6 (15 pts), boolean chains 2 (nesting depth added 22). 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 · installEffects · ×1
  • installEffects::applyEffects (cognitive 40) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects.js:34 — installEffects::applyEffects has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28 (31 pts), boolean chains 6, error handling 1 (2 pts), loops 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.
D2 · Cognitive Complexity · Transpiler.collect (cognitive 39) · ×1
  • Transpiler.collect (cognitive 39) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:46 — Transpiler.collect has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 4 (18 pts), if/else 4 (10 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 22). Of this number, 37 points are the body's own statements and 2 belong to 2 function literals inside it that branch. 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 · audit-linux-bundle.auditLinuxBundle (cognitive 39) · ×1
  • audit-linux-bundle.auditLinuxBundle (cognitive 39) tauri-shell/audit-linux-bundle.mjs:58 — audit-linux-bundle.auditLinuxBundle has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 11, error handling 1 (3 pts), loops 2 (nesting depth added 10). Of this number, 38 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 · postAggregateStreamed (cognitive 39) · ×1
  • postAggregateStreamed (cognitive 39) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:521 — postAggregateStreamed has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 6 (11 pts), boolean chains 3, loops 2 (3 pts), ternaries 2, other 1 (nesting depth added 13). 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 · parseDict (cognitive 39) · ×1
  • parseDict (cognitive 39) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:31 — parseDict has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 3 (8 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 16). 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 · ensureDownloadedFfmpeg (cognitive 39) · ×1
  • ensureDownloadedFfmpeg (cognitive 39) REDACTED:1259 — ensureDownloadedFfmpeg has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (16 pts), error handling 7 (13 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (nesting depth added 12). Most of this is not in the body itself: 6 of the 39 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 1273, a function literal at line 1285, a function literal at line 1297, …). 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 · buildStats (cognitive 39) · ×1
  • buildStats (cognitive 39) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/stats.js:4 — buildStats has cognitive complexity 39 (threshold 15). Drivers by points: other 20, ternaries 15, loops 2 (3 pts), boolean chains 1 (nesting depth added 1). Of this number, 21 points are the body's own statements and 18 belong to 13 function items inside it that branch. 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 · updater.compareVersions (cognitive 38) · ×1
  • updater.compareVersions (cognitive 38) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:165 — updater.compareVersions has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 6 (17 pts), if/else 10 (16 pts), boolean chains 3, loops 2 (nesting depth added 17). 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 · companion-sync.retireRemovedBuiltinPlugins (cognitive 38) · ×1
  • companion-sync.retireRemovedBuiltinPlugins (cognitive 38) dsh-desktop/lib/desktop/companion-sync.ts:805 — companion-sync.retireRemovedBuiltinPlugins has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (28 pts), error handling 3 (6 pts), boolean chains 3, loops 1 (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.
D2 · Cognitive Complexity · profile-module-heal.healProfileModuleShadowing (cognitive 38) · ×1
  • profile-module-heal.healProfileModuleShadowing (cognitive 38) dsh-desktop/profile-module-heal.ts:29 — profile-module-heal.healProfileModuleShadowing has cognitive complexity 38 (threshold 15). Drivers by points: error handling 6 (15 pts), if/else 7 (15 pts), loops 3 (5 pts), ternaries 1 (2 pts), boolean chains 1 (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.
D2 · Cognitive Complexity · hall.HallPanel (cognitive 38) · ×1
  • hall.HallPanel (cognitive 38) launcher/src/hall.tsx:47 — hall.HallPanel has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 11 (24 pts), if/else 7, boolean chains 6, error handling 1 (nesting depth added 13). Most of this is not in the body itself: 7 of the 38 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 101, toggleLike, a function literal at line 56, …). 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 · foldAnthropicOutcome (cognitive 38) · ×1
  • foldAnthropicOutcome (cognitive 38) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:721 — foldAnthropicOutcome has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (23 pts), ternaries 2 (8 pts), other 4, boolean chains 2, match/switch 1 (nesting depth added 19). Of this number, 37 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · bloom.installBloom (cognitive 37) · ×1
  • bloom.installBloom (cognitive 37) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/bloom.js:117 — bloom.installBloom has cognitive complexity 37 (threshold 15). Drivers by points: loops 13 (26 pts), if/else 4 (6 pts), ternaries 3 (4 pts), boolean chains 1 (nesting depth added 16). Of this number, 30 points are the body's own statements and 7 belong to 2 function items inside it that branch. 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 · Transpiler.generate (cognitive 37) · ×1
  • Transpiler.generate (cognitive 37) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:114 — Transpiler.generate has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 7, loops 4 (5 pts), ternaries 1 (4 pts) (nesting depth added 13). 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 · guard-box.restoreAndRestart (cognitive 37) · ×1
  • guard-box.restoreAndRestart (cognitive 37) dsh-desktop/lib/desktop/guard-box.ts:79 — guard-box.restoreAndRestart has cognitive complexity 37 (threshold 15). Drivers by points: error handling 13 (16 pts), if/else 11 (13 pts), ternaries 6 (7 pts), boolean chains 1 (nesting depth added 6). Of this number, 18 points are the body's own statements and 19 belong to 4 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.
D2 · Cognitive Complexity · _puppetBoneFinal (cognitive 37) · ×1
  • _puppetBoneFinal (cognitive 37) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:311 — _puppetBoneFinal has cognitive complexity 37 (threshold 15). Drivers by points: loops 7 (20 pts), if/else 7 (10 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 17). Of this number, 36 points are the body's own statements and 1 belongs to 3 function items inside it that branch. 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 · update-nsis-helper.nsisStartupGate (cognitive 36) · ×1
  • update-nsis-helper.nsisStartupGate (cognitive 36) dsh-desktop/lib/desktop/update-nsis-helper.ts:107 — update-nsis-helper.nsisStartupGate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 7, error handling 2 (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 · reviveKiloCatalog (cognitive 36) · ×1
  • reviveKiloCatalog (cognitive 36) dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js:572 — reviveKiloCatalog has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 10, ternaries 4 (9 pts), other 2, loops 1 (nesting depth added 13). 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 · createPickStats (cognitive 36) · ×1
  • createPickStats (cognitive 36) dsh-desktop/assets/plugins/dsh-our-free-model/src/picks.js:92 — createPickStats has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12, boolean chains 8, ternaries 5 (7 pts), other 5, error handling 4 (nesting depth added 2). None of this is in the body itself: all 36 points belong to 22 function items inside it that branch (readDisk, a function literal at line 104, fetchOne, …). 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 · recordUsage (cognitive 36) · ×1
  • recordUsage (cognitive 36) dsh-desktop/assets/plugins/dsh-our-free-model/src/store.js:331 — recordUsage has cognitive complexity 36 (threshold 15). Drivers by points: other 18, ternaries 17, boolean chains 1. None of this is in the body itself: all 36 points belong to one function literal inside it that branches (line 332). The decisions are inside the literal, 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 literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · gitLog.gitLog (cognitive 35) · ×1
  • gitLog.gitLog (cognitive 35) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/gitLog.js:17 — gitLog.gitLog has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 4, loops 1 (nesting depth added 15). Of this number, 34 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 · font-render.rasterizeContours (cognitive 35) · ×1
  • font-render.rasterizeContours (cognitive 35) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:380 — font-render.rasterizeContours has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 7 (14 pts), boolean chains 3, ternaries 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.
D2 · Cognitive Complexity · socks5Connect (cognitive 35) · ×1
  • socks5Connect (cognitive 35) REDACTED:430 — socks5Connect has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (21 pts), ternaries 6 (10 pts), boolean chains 2, error handling 1, other 1 (nesting depth added 8). Of this number, 18 points are the body's own statements and 17 belong to 3 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 · UpdateRestart.beforeBoot (cognitive 34) · ×1
  • UpdateRestart.beforeBoot (cognitive 34) dsh-desktop/lib/desktop/update-restart.ts:56 — UpdateRestart.beforeBoot has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 10, loops 2, ternaries 1 (2 pts), error handling 1 (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 · plugin-manager-state.externalDefaultDisabledPlan (cognitive 34) · ×1
  • plugin-manager-state.externalDefaultDisabledPlan (cognitive 34) dsh-desktop/plugin-manager-state.ts:341 — plugin-manager-state.externalDefaultDisabledPlan has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 9, ternaries 5, loops 2 (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 · plugin-manager-patch.togglePluginInPatch (cognitive 34) · ×1
  • plugin-manager-patch.togglePluginInPatch (cognitive 34) dsh-desktop/scripts/plugin-manager-patch.js:116 — plugin-manager-patch.togglePluginInPatch has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (6 pts), boolean chains 5, ternaries 2 (5 pts) (nesting depth added 14). 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 · update.sanitizeAnnouncementHtml · ×1
  • update.sanitizeAnnouncementHtml::walk (cognitive 34) launcher/src/update.tsx:107 — update.sanitizeAnnouncementHtml::walk has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 4, error handling 1 (4 pts), loops 2 (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 · migrateStats (cognitive 34) · ×1
  • migrateStats (cognitive 34) dsh-desktop/assets/plugins/dsh-our-free-model/src/store.js:472 — migrateStats has cognitive complexity 34 (threshold 15). Drivers by points: other 11, ternaries 8 (11 pts), loops 5 (7 pts), boolean chains 4, if/else 1 (nesting depth added 5). Of this number, 31 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 · enumerateWallpapersAsync (cognitive 34) · ×1
  • enumerateWallpapersAsync (cognitive 34) REDACTED:327 — enumerateWallpapersAsync has cognitive complexity 34 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 6 (9 pts), ternaries 3 (8 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 16). Of this number, 31 points are the body's own statements and 3 belong to 3 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 · stripChat (cognitive 34) · ×1
  • stripChat (cognitive 34) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:243 — stripChat has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 16). 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 · integration.installGlsl (cognitive 33) · ×1
  • integration.installGlsl (cognitive 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/integration.js:8 — integration.installGlsl has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 33. 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 · postSealedStreamed (cognitive 33) · ×1
  • postSealedStreamed (cognitive 33) dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:208 — postSealedStreamed has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 6 (11 pts), boolean chains 2, loops 1 (2 pts), other 1, ternaries 1 (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.
D2 · Cognitive Complexity · effectWaterCaustics (cognitive 33) · ×1
  • effectWaterCaustics (cognitive 33) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/watercaustics.js:11 — effectWaterCaustics has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 10 (13 pts), boolean chains 10, if/else 3 (7 pts), 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 · updater.snapshotManifestSource (cognitive 32) · ×1
  • updater.snapshotManifestSource (cognitive 32) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:342 — updater.snapshotManifestSource has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 4 (9 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 14). 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 · update-portable-helper.portableStartupGate (cognitive 32) · ×1
  • update-portable-helper.portableStartupGate (cognitive 32) dsh-desktop/lib/desktop/update-portable-helper.ts:145 — update-portable-helper.portableStartupGate has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 7, error handling 2 (3 pts), ternaries 1 (nesting depth added 8). Of this number, 26 points are the body's own statements and 6 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 · bridge.handleGuestEvent (cognitive 32) · ×1
  • bridge.handleGuestEvent (cognitive 32) tauri-shell/sidecar/bridge.ts:922 — bridge.handleGuestEvent has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 2 (3 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 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 · createUpdateManifest (cognitive 32) · ×1
  • createUpdateManifest (cognitive 32) tauri-shell/create-update-manifest.mjs:23 — createUpdateManifest has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 11, loops 2 (3 pts), ternaries 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 · camera.resolveCameraPose (cognitive 31) · ×1
  • camera.resolveCameraPose (cognitive 31) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:4 — camera.resolveCameraPose has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 7, ternaries 5, loops 3 (4 pts), error handling 1 (nesting depth added 7). Of this number, 27 points are the body's own statements and 4 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 · index.readPlaylistsP (cognitive 31) · ×1
  • index.readPlaylistsP (cognitive 31) REDACTED:390 — index.readPlaylistsP has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 4 (8 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (nesting depth added 15). Of this number, 30 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 · client-updater.downloadFileOnce (cognitive 31) · ×1
  • client-updater.downloadFileOnce (cognitive 31) dsh-desktop/client-updater.ts:426 — client-updater.downloadFileOnce has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (13 pts), error handling 4 (8 pts), boolean chains 5, ternaries 4 (5 pts) (nesting depth added 7). None of this is in the body itself: all 31 points belong to 7 function literals inside it that branch (lines 442, 432, 478, …). 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 · companion-sync.defaultDisabledBundlePackages (cognitive 31) · ×1
  • companion-sync.defaultDisabledBundlePackages (cognitive 31) dsh-desktop/lib/desktop/companion-sync.ts:226 — companion-sync.defaultDisabledBundlePackages has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 4 (5 pts), boolean chains 3, error handling 2 (3 pts), loops 2 (3 pts) (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.
D2 · Cognitive Complexity · patch-row-heal.healRowConfig (cognitive 31) · ×1
  • patch-row-heal.healRowConfig (cognitive 31) dsh-desktop/patch-row-heal.ts:126 — patch-row-heal.healRowConfig has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 7, loops 3 (5 pts) (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.
D2 · Cognitive Complexity · classifyFailure (cognitive 31) · ×1
  • classifyFailure (cognitive 31) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:91 — classifyFailure has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 13, if/else 10, ternaries 5 (7 pts), other 1 (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 · effectSwing (cognitive 31) · ×1
  • effectSwing (cognitive 31) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/swing.js:14 — effectSwing has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (8 pts), ternaries 5 (8 pts), 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 · nameLiteInstallers (cognitive 31) · ×1
  • nameLiteInstallers (cognitive 31) tauri-shell/name-lite-installers.mjs:11 — nameLiteInstallers has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6, error handling 1 (3 pts), loops 3, ternaries 2 (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 · scene-manifest.parseTexToRGBA (cognitive 30) · ×1
  • scene-manifest.parseTexToRGBA (cognitive 30) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1611 — scene-manifest.parseTexToRGBA has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (14 pts), loops 6 (13 pts), boolean chains 3 (nesting depth added 8). 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 · index.sanitizeSettings (cognitive 30) · ×1
  • index.sanitizeSettings (cognitive 30) REDACTED:805 — index.sanitizeSettings has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 16 (19 pts), boolean chains 10, if/else 1 (nesting depth added 3). Of this number, 20 points are the body's own statements and 10 belong to 4 function literals 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.
D2 · Cognitive Complexity · client-updater.applyUpdate (cognitive 30) · ×1
  • client-updater.applyUpdate (cognitive 30) dsh-desktop/client-updater.ts:1191 — client-updater.applyUpdate has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 21, if/else 5 (7 pts), ternaries 1 (2 pts) (nesting depth added 3). 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 · plugin-guard.createGuard.repairJunctions (cognitive 30) · ×1
  • plugin-guard.createGuard.repairJunctions (cognitive 30) dsh-desktop/plugin-guard.ts:699 — plugin-guard.createGuard.repairJunctions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 4 (9 pts), boolean chains 4, loops 1 (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 · update-portable-helper.validatePortableHandoff (cognitive 30) · ×1
  • update-portable-helper.validatePortableHandoff (cognitive 30) dsh-desktop/lib/desktop/update-portable-helper.ts:44 — update-portable-helper.validatePortableHandoff has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 10 (12 pts), loops 2, ternaries 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.
D2 · Cognitive Complexity · plugin-manager-state.collectPluginRows · ×1
  • plugin-manager-state.collectPluginRows::addRow (cognitive 30) dsh-desktop/plugin-manager-state.ts:239 — plugin-manager-state.collectPluginRows::addRow has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 24, if/else 4 (5 pts), ternaries 1 (nesting depth added 1). 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: one other method here (plugin-manager-state.collectPluginRows) 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.
D2 · Cognitive Complexity · publish-pack-index.main (cognitive 30) · ×1
  • publish-pack-index.main (cognitive 30) dsh-desktop/scripts/publish-pack-index.mjs:46 — publish-pack-index.main has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), error handling 2 (4 pts), loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 6). Of this number, 29 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 · (anonymous) (cognitive 30) · ×1
  • (anonymous) (cognitive 30) tauri-shell/src/update-ui-checkpoint.js:1 — (anonymous) has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 9, error handling 3 (4 pts), loops 1 (nesting depth added 9). Most of this is not in the body itself: 3 of the 30 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 18, a function literal at line 32, a function literal at line 40, …). 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 · startChanRelay (cognitive 30) · ×1
  • startChanRelay (cognitive 30) dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:99 — startChanRelay has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (12 pts), other 10, boolean chains 5, ternaries 2, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 30 points are its own statements and the rest belongs to 11 function items inside it that branch (relay, a function literal at line 101, a function literal at line 161, …). 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 · effectClouds (cognitive 30) · ×1
  • effectClouds (cognitive 30) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/clouds.js:16 — effectClouds has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 8, ternaries 6 (8 pts), if/else 3 (7 pts), other 4, loops 2 (3 pts) (nesting depth added 7). Of this number, 25 points are the body's own statements and 5 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 · index.findListeningPorts (cognitive 29) · ×1
  • index.findListeningPorts (cognitive 29) REDACTED:354 — index.findListeningPorts has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (6 pts), error handling 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 14). Of this number, 27 points are the body's own statements and 2 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 · font-render.flattenContour (cognitive 29) · ×1
  • font-render.flattenContour (cognitive 29) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:690 — font-render.flattenContour has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 5 (11 pts) (nesting depth added 13). 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 · SceneRenderer._mdlAnchors (cognitive 29) · ×1
  • SceneRenderer._mdlAnchors (cognitive 29) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:277 — SceneRenderer._mdlAnchors has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (9 pts), boolean chains 3, error handling 1 (2 pts) (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 · plugin-guard.createGuard.prepareRestore.writeConfig (cognitive 29) · ×1
  • plugin-guard.createGuard.prepareRestore.writeConfig (cognitive 29) dsh-desktop/plugin-guard.ts:286 — plugin-guard.createGuard.prepareRestore.writeConfig has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 3 (7 pts), boolean chains 3, loops 1 (nesting depth added 14). 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 · patch-row-heal.removeBundledRowDuplicates (cognitive 29) · ×1
  • patch-row-heal.removeBundledRowDuplicates (cognitive 29) dsh-desktop/patch-row-heal.ts:232 — patch-row-heal.removeBundledRowDuplicates has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (10 pts), loops 2 (5 pts), ternaries 1 (nesting depth added 8). Of this number, 25 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 · plugin-kernel-compat.scanPluginImports (cognitive 29) · ×1
  • plugin-kernel-compat.scanPluginImports (cognitive 29) dsh-desktop/scripts/plugin-kernel-compat.mjs:182 — plugin-kernel-compat.scanPluginImports has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 4 (10 pts), boolean chains 1, error handling 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.
D2 · Cognitive Complexity · library.Releases (cognitive 29) · ×1
  • library.Releases (cognitive 29) launcher/src/library.tsx:376 — library.Releases has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 12, ternaries 6 (12 pts), if/else 5 (nesting depth added 6). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 414, a function literal at line 410, a function literal at line 386, …). 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 · portable-path-shrink.pruneOrphanSdks (cognitive 29) · ×1
  • portable-path-shrink.pruneOrphanSdks (cognitive 29) tauri-shell/portable-path-shrink.mjs:531 — portable-path-shrink.pruneOrphanSdks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 13). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 2 function items inside it that branch (scan, rm). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · runCombo (cognitive 29) · ×1
  • runCombo (cognitive 29) dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:223 — runCombo has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (10 pts), ternaries 1 (2 pts), boolean chains 1, other 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 · postKiloStreamed (cognitive 29) · ×1
  • postKiloStreamed (cognitive 29) dsh-desktop/assets/plugins/dsh-our-free-model/src/kilo.js:80 — postKiloStreamed has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 5 (9 pts), boolean chains 2, loops 1 (2 pts), other 1, ternaries 1 (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 · parseGlyph (cognitive 29) · ×1
  • parseGlyph (cognitive 29) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:593 — parseGlyph has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 7 (10 pts), ternaries 2 (6 pts), boolean chains 1 (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 · effectWaterripple (cognitive 29) · ×1
  • effectWaterripple (cognitive 29) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/waterripple.js:14 — effectWaterripple has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 10, if/else 3 (9 pts), boolean chains 7, loops 2 (3 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 · effectWaterwaves (cognitive 29) · ×1
  • effectWaterwaves (cognitive 29) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/waterwaves.js:9 — effectWaterwaves has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 13, if/else 3 (7 pts), boolean chains 6, loops 2 (3 pts) (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 · autodetect.autoDetectFilter (cognitive 28) · ×1
  • autodetect.autoDetectFilter (cognitive 28) REDACTED:57 — autodetect.autoDetectFilter has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 7, ternaries 3 (5 pts), loops 1 (nesting depth added 3). Of this number, 27 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · index.compressMessagesPayload (cognitive 28) · ×1
  • index.compressMessagesPayload (cognitive 28) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/index.js:303 — index.compressMessagesPayload has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 3 (6 pts), boolean chains 3, 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 · atomic-json.writeFileAtomic (cognitive 28) · ×1
  • atomic-json.writeFileAtomic (cognitive 28) dsh-desktop/lib/atomic-json.ts:22 — atomic-json.writeFileAtomic has cognitive complexity 28 (threshold 15). Drivers by points: error handling 8 (19 pts), if/else 3 (7 pts), boolean chains 1, 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 · plugin-guard.createGuard.repair (cognitive 28) · ×1
  • plugin-guard.createGuard.repair (cognitive 28) dsh-desktop/plugin-guard.ts:648 — plugin-guard.createGuard.repair has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6, error handling 3 (6 pts), loops 1 (2 pts), ternaries 1 (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 · update-linux.appImageRestartEnvironment (cognitive 28) · ×1
  • update-linux.appImageRestartEnvironment (cognitive 28) dsh-desktop/lib/desktop/update-linux.ts:149 — update-linux.appImageRestartEnvironment has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 13). Of this number, 24 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 · UpdateRestart.poll (cognitive 28) · ×1
  • UpdateRestart.poll (cognitive 28) dsh-desktop/lib/desktop/update-restart.ts:128 — UpdateRestart.poll has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 8, loops 1 (2 pts), ternaries 1 (2 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 · hall.ExportPackDialog (cognitive 28) · ×1
  • hall.ExportPackDialog (cognitive 28) launcher/src/hall.tsx:129 — hall.ExportPackDialog has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 10 (18 pts), boolean chains 8, error handling 1, if/else 1 (nesting depth added 8). Of this number, 18 points are the body's own statements and 10 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 · startLanRelay (cognitive 28) · ×1
  • startLanRelay (cognitive 28) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:512 — startLanRelay has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (16 pts), other 7, boolean chains 3, error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 28 points are its own statements and the rest belongs to 16 function items inside it that branch (relay, a function literal at line 515, a function literal at line 590, …). 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 · createForwardCompletion (cognitive 28) · ×1
  • createForwardCompletion (cognitive 28) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:33 — createForwardCompletion has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 15 (16 pts), other 4, if/else 3, boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 2). None of this is in the body itself: all 28 points belong to 4 function items inside it that branch (a function literal at line 34, a function literal at line 77, a function literal at line 37, …). 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 · effectPulse (cognitive 28) · ×1
  • effectPulse (cognitive 28) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/pulse.js:15 — effectPulse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 9, loops 2 (3 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 · effectShimmer (cognitive 28) · ×1
  • effectShimmer (cognitive 28) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shimmer.js:13 — effectShimmer has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (10 pts), ternaries 5, loops 2 (3 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 · SceneRenderer.loadTexture (cognitive 27) · ×1
  • SceneRenderer.loadTexture (cognitive 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:160 — SceneRenderer.loadTexture has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 4, error handling 2 (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 · SceneRenderer._animValueAt (cognitive 27) · ×1
  • SceneRenderer._animValueAt (cognitive 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:727 — SceneRenderer._animValueAt has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (9 pts), ternaries 4, loops 1 (nesting depth added 3). 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 · update-portable.exchangePortableLocked (cognitive 27) · ×1
  • update-portable.exchangePortableLocked (cognitive 27) dsh-desktop/lib/desktop/update-portable.ts:154 — update-portable.exchangePortableLocked has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 2, boolean chains 1, error handling 1 (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 · plugin-sync.writeFileAtomic (cognitive 27) · ×1
  • plugin-sync.writeFileAtomic (cognitive 27) REDACTED:308 — plugin-sync.writeFileAtomic has cognitive complexity 27 (threshold 15). Drivers by points: error handling 8 (17 pts), if/else 4 (7 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.
D2 · Cognitive Complexity · pack-share.parsePackManifest (cognitive 27) · ×1
  • pack-share.parsePackManifest (cognitive 27) launcher/src/pack-share.ts:45 — pack-share.parsePackManifest has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), ternaries 3 (5 pts), error handling 1, loops 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 · dialogs.PathDialog (cognitive 27) · ×1
  • dialogs.PathDialog (cognitive 27) launcher/src/dialogs.tsx:235 — dialogs.PathDialog has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 12 (18 pts), if/else 4 (7 pts), boolean chains 2 (nesting depth added 9). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 249, 245). 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 · decompressLz4Block (cognitive 27) · ×1
  • decompressLz4Block (cognitive 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1519 — decompressLz4Block has cognitive complexity 27 (threshold 15). Drivers by points: loops 7 (17 pts), if/else 4 (7 pts), boolean chains 3 (nesting depth added 13). 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 · effectBlurradial (cognitive 27) · ×1
  • effectBlurradial (cognitive 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/blurradial.js:12 — effectBlurradial has cognitive complexity 27 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 7, loops 3 (6 pts), ternaries 5 (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 · effectShake (cognitive 27) · ×1
  • effectShake (cognitive 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shake.js:5 — effectShake has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 7 (11 pts), boolean chains 10, if/else 1 (3 pts), loops 2 (3 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 · renderGlsl (cognitive 27) · ×1
  • renderGlsl (cognitive 27) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:160 — renderGlsl has cognitive complexity 27 (threshold 15). Drivers by points: loops 8 (17 pts), ternaries 1 (4 pts), boolean chains 3, if/else 2 (3 pts) (nesting depth added 13). 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 · ls.ls (cognitive 26) · ×1
  • ls.ls (cognitive 26) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/ls.js:55 — ls.ls has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 3, ternaries 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.
D2 · Cognitive Complexity · Canvas.blitRotated (cognitive 26) · ×1
  • Canvas.blitRotated (cognitive 26) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/canvas.js:84 — Canvas.blitRotated has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 14). 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 · Transpiler.expr (cognitive 26) · ×1
  • Transpiler.expr (cognitive 26) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:359 — Transpiler.expr has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (5 pts), ternaries 2 (5 pts), boolean chains 1, match/switch 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 · client-updater.downloadWithSourceSwitch (cognitive 26) · ×1
  • client-updater.downloadWithSourceSwitch (cognitive 26) dsh-desktop/client-updater.ts:541 — client-updater.downloadWithSourceSwitch has cognitive complexity 26 (threshold 15). Drivers by points: error handling 4 (12 pts), if/else 4 (9 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 14). 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 · deferStreamResponse (cognitive 26) · ×1
  • deferStreamResponse (cognitive 26) dsh-desktop/assets/plugins/dsh-our-free-model/src/deferred-response.js:2 — deferStreamResponse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 8). None of this is in the body itself: all 26 points belong to 7 function items inside it that branch (get, commit, a function literal at line 19, …). 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 · installText · ×1
  • installText::renderTextObject (cognitive 26) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/text.js:60 — installText::renderTextObject has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 6 (7 pts), boolean chains 6, error handling 1 (2 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 · pruneNodeModulesDeadWeight (cognitive 26) · ×1
  • pruneNodeModulesDeadWeight (cognitive 26) tauri-shell/portable-path-shrink.mjs:57 — pruneNodeModulesDeadWeight has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, error handling 2 (3 pts), loops 3, other 1 (nesting depth added 8). Most of this is not in the body itself: 10 of the 26 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, rmdirRecursive). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Canvas.blitScaled (cognitive 25) · ×1
  • Canvas.blitScaled (cognitive 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/canvas.js:41 — Canvas.blitScaled has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 4, boolean chains 3, 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 · update-nsis-helper.runTakeover (cognitive 25) · ×1
  • update-nsis-helper.runTakeover (cognitive 25) dsh-desktop/lib/desktop/update-nsis-helper.ts:48 — update-nsis-helper.runTakeover has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 9, error handling 3. Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 68, 62, 55, …). 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 · update-portable-helper.runTakeoverLocked (cognitive 25) · ×1
  • update-portable-helper.runTakeoverLocked (cognitive 25) dsh-desktop/lib/desktop/update-portable-helper.ts:76 — update-portable-helper.runTakeoverLocked has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (9 pts), error handling 4 (nesting depth added 1). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 93, a function literal at line 102, stopCandidate, …). 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 · normalizeCombos (cognitive 25) · ×1
  • normalizeCombos (cognitive 25) dsh-desktop/assets/plugins/dsh-our-free-model/src/combos.js:69 — normalizeCombos has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 6, if/else 3 (6 pts), other 3, loops 1 (nesting depth added 7). Of this number, 23 points are the body's own statements and 2 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 · createEacLoginPoller.collect (cognitive 25) · ×1
  • createEacLoginPoller.collect (cognitive 25) dsh-desktop/assets/plugins/dsh-our-free-model/src/eac-login.js:21 — createEacLoginPoller.collect has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 8, boolean chains 4, error handling 3 (4 pts) (nesting depth added 4). Of this number, 24 points are the body's own statements and 1 belongs to 2 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.
D2 · Cognitive Complexity · closeAll (cognitive 25) · ×1
  • closeAll (cognitive 25) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:176 — closeAll has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (6 pts), boolean chains 4, error handling 1 (3 pts), other 2, loops 1 (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 · spawnFfmpeg · ×1
  • spawnFfmpeg::(anonymous)::runNext (cognitive 25) REDACTED:1375 — spawnFfmpeg::(anonymous)::runNext has cognitive complexity 25 (threshold 15). Drivers by points: error handling 5 (9 pts), if/else 4 (7 pts), ternaries 3 (5 pts), boolean chains 4 (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 · effectBlur · ×1
  • effectBlur::gauss (cognitive 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/blur.js:66 — effectBlur::gauss has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 4 (13 pts), loops 5 (12 pts) (nesting depth added 16). 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 · effectFilmgrain (cognitive 25) · ×1
  • effectFilmgrain (cognitive 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/filmgrain.js:5 — effectFilmgrain has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (11 pts), if/else 2 (6 pts), boolean chains 5, loops 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 · effectGlitter (cognitive 25) · ×1
  • effectGlitter (cognitive 25) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/glitter.js:12 — effectGlitter has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, loops 4 (6 pts), ternaries 4, if/else 1 (3 pts) (nesting depth added 4). 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 · plugin-ops.restoreCompanionPlugin (cognitive 24) · ×1
  • plugin-ops.restoreCompanionPlugin (cognitive 24) dsh-desktop/lib/desktop/plugin-ops.ts:206 — plugin-ops.restoreCompanionPlugin has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (6 pts), boolean chains 3 (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 · update-archive.inspectPortableArchive (cognitive 24) · ×1
  • update-archive.inspectPortableArchive (cognitive 24) dsh-desktop/lib/desktop/update-archive.ts:17 — update-archive.inspectPortableArchive has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts), boolean chains 3 (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 · update-nsis-helper.nsisRepairInfo (cognitive 24) · ×1
  • update-nsis-helper.nsisRepairInfo (cognitive 24) dsh-desktop/lib/desktop/update-nsis-helper.ts:143 — update-nsis-helper.nsisRepairInfo has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, ternaries 1 (2 pts), loops 1 (nesting depth added 6). None of this is in the body itself: all 24 points belong to 2 function literals inside it that branch (lines 145, 156). 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 · fetch-npm.copyBundledNpm (cognitive 24) · ×1
  • fetch-npm.copyBundledNpm (cognitive 24) dsh-desktop/scripts/fetch-npm.ts:37 — fetch-npm.copyBundledNpm has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, error handling 2 (3 pts), loops 2 (nesting depth added 4). Of this number, 22 points are the body's own statements and 2 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 · workspace.InstanceDetail (cognitive 24) · ×1
  • workspace.InstanceDetail (cognitive 24) launcher/src/workspace.tsx:128 — workspace.InstanceDetail has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 20, ternaries 4. Of this number, 23 points are the body's own statements and 1 belongs to 2 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.
D2 · Cognitive Complexity · bridge.scanGuestMutations · ×1
  • bridge.scanGuestMutations::check (cognitive 24) tauri-shell/sidecar/bridge.ts:1082 — bridge.scanGuestMutations::check has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (6 pts), boolean chains 2, loops 1 (2 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 · publicSettings (cognitive 24) · ×1
  • publicSettings (cognitive 24) REDACTED:2248 — publicSettings has cognitive complexity 24 (threshold 15). Drivers by points: other 23, ternaries 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.
D2 · Cognitive Complexity · anthropicFrames (cognitive 24) · ×1
  • anthropicFrames (cognitive 24) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:659 — anthropicFrames has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 5 (7 pts), boolean chains 4, other 3 (nesting depth added 5). Most of this is not in the body itself: 8 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 672). The decisions are inside the literal, 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 literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · mihomoSearchRoots (cognitive 24) · ×1
  • mihomoSearchRoots (cognitive 24) REDACTED:719 — mihomoSearchRoots has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, loops 2 (3 pts), other 2, ternaries 1 (2 pts), error handling 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 · startForwardServer.handle (cognitive 24) · ×1
  • startForwardServer.handle (cognitive 24) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:341 — startForwardServer.handle has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 13, if/else 10, other 1. 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 · createToolWire (cognitive 24) · ×1
  • createToolWire (cognitive 24) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:744 — createToolWire has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (10 pts), other 6, boolean chains 4, ternaries 2 (3 pts), loops 1 (nesting depth added 3). Most of this is not in the body itself: 7 of the 24 points are its own statements and the rest belongs to 3 function items inside it that branch (admit, executable, indexOf). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · stripMessages (cognitive 24) · ×1
  • stripMessages (cognitive 24) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:323 — stripMessages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 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 · http.readSse (cognitive 23) · ×1
  • http.readSse (cognitive 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:439 — http.readSse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22 (31 pts), ternaries 7 (8 pts), error handling 5 (7 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 13). 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 · forward.startForwardServer.handle (cognitive 23) · ×1
  • forward.startForwardServer.handle (cognitive 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:341 — forward.startForwardServer.handle has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 10. 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 · eac-login.createEacLoginPoller.collect (cognitive 23) · ×1
  • eac-login.createEacLoginPoller.collect (cognitive 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/eac-login.js:21 — eac-login.createEacLoginPoller.collect has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 8, boolean chains 3, error handling 2 (3 pts) (nesting depth added 4). Of this number, 22 points are the body's own statements and 1 belongs to one function item inside it that branches. 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 · completion.createForwardCompletion.<returned closure> (cognitive 23) · ×1
  • completion.createForwardCompletion.<returned closure> (cognitive 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:34 — completion.createForwardCompletion.<returned closure> has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 14 (17 pts), if/else 3, boolean chains 2, loops 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.
D2 · Cognitive Complexity · scene-manifest.decodeDxt5 (cognitive 23) · ×1
  • scene-manifest.decodeDxt5 (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:701 — scene-manifest.decodeDxt5 has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 14). 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 · pkg-extract.decodeDxt5 (cognitive 23) · ×1
  • pkg-extract.decodeDxt5 (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:540 — pkg-extract.decodeDxt5 has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 14). 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 · scene-scripts.makeOwnerRef.makeObject (cognitive 23) · ×1
  • scene-scripts.makeOwnerRef.makeObject (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:115 — scene-scripts.makeOwnerRef.makeObject has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 11 (17 pts), boolean chains 3, if/else 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.
D2 · Cognitive Complexity · index.downloadFfmpegToFile (cognitive 23) · ×1
  • index.downloadFfmpegToFile (cognitive 23) REDACTED:1213 — index.downloadFfmpegToFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3 (5 pts), boolean chains 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 · bundle-identity.toggleBundleInPatch (cognitive 23) · ×1
  • bundle-identity.toggleBundleInPatch (cognitive 23) dsh-desktop/lib/bundle-identity.ts:227 — bundle-identity.toggleBundleInPatch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 5). Of this number, 18 points are the body's own statements and 5 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 · companion-sync.managedRetiredCopy (cognitive 23) · ×1
  • companion-sync.managedRetiredCopy (cognitive 23) dsh-desktop/lib/desktop/companion-sync.ts:715 — companion-sync.managedRetiredCopy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, error handling 4 (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 · companion-sync.stripIncompatibleProfileBundles (cognitive 23) · ×1
  • companion-sync.stripIncompatibleProfileBundles (cognitive 23) dsh-desktop/lib/desktop/companion-sync.ts:867 — companion-sync.stripIncompatibleProfileBundles has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, error handling 2 (3 pts), loops 1 (2 pts) (nesting depth added 9). Of this number, 20 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 · proc.killTreeAndWait (cognitive 23) · ×1
  • proc.killTreeAndWait (cognitive 23) dsh-desktop/lib/desktop/proc.ts:68 — proc.killTreeAndWait has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, error handling 3, ternaries 2 (3 pts) (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 · update-linux.linuxManager (cognitive 23) · ×1
  • update-linux.linuxManager (cognitive 23) dsh-desktop/lib/desktop/update-linux.ts:44 — update-linux.linuxManager has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 9, loops 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 · update-appimage-helper.takeover (cognitive 23) · ×1
  • update-appimage-helper.takeover (cognitive 23) dsh-desktop/lib/desktop/update-appimage-helper.ts:65 — update-appimage-helper.takeover has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, boolean chains 9, error handling 2, ternaries 1. Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 8 function items inside it that branch (stop, a function literal at line 87, a function literal at line 106, …). 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 · minimal-boot-smoke.runMinimalBootSmoke (cognitive 23) · ×1
  • minimal-boot-smoke.runMinimalBootSmoke (cognitive 23) dsh-desktop/scripts/minimal-boot-smoke.mjs:95 — minimal-boot-smoke.runMinimalBootSmoke has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, error handling 4 (8 pts), boolean chains 4, loops 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 · verify-update-handoff.auditHandoff (cognitive 23) · ×1
  • verify-update-handoff.auditHandoff (cognitive 23) dsh-desktop/scripts/verify-update-handoff.mjs:8 — verify-update-handoff.auditHandoff has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, loops 3 (4 pts), error handling 1 (2 pts) (nesting depth added 8). Of this number, 22 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 · createWsJsonRpc.connect (cognitive 23) · ×1
  • createWsJsonRpc.connect (cognitive 23) dsh-desktop/assets/ws-jsonrpc-client.js:62 — createWsJsonRpc.connect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 4 (5 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 5). None of this is in the body itself: all 23 points belong to 4 function items inside it that branch (onmessage, onopen, onclose, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · (anonymous) (cognitive 23) · ×1
  • (anonymous) (cognitive 23) tauri-shell/src/exit-overlay.js:1 — (anonymous) has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 7, boolean chains 5, error handling 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (show::activeKeyHandler, dismiss, call, …). 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 · startEgressRelay (cognitive 23) · ×1
  • startEgressRelay (cognitive 23) REDACTED:125 — startEgressRelay has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 3 (5 pts), other 2, boolean chains 1, loops 1, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 167, a function literal at line 173, close, …). 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 · parseItem (cognitive 23) · ×1
  • parseItem (cognitive 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/feed.js:95 — parseItem has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 7, if/else 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.
D2 · Cognitive Complexity · feedClaude (cognitive 23) · ×1
  • feedClaude (cognitive 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:307 — feedClaude has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 pts), other 2, boolean chains 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 · aliasHistoryToolCalls (cognitive 23) · ×1
  • aliasHistoryToolCalls (cognitive 23) dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js:441 — aliasHistoryToolCalls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (8 pts), boolean chains 6 (nesting depth added 7). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 452, rename, a function literal at line 447, …). 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 · compileScript (cognitive 23) · ×1
  • compileScript (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:143 — compileScript has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, error handling 3, ternaries 3, if/else 2. Of this number, 13 points are the body's own statements and 10 belong to 22 function items 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.
D2 · Cognitive Complexity · convertUniform (cognitive 23) · ×1
  • convertUniform (cognitive 23) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:58 — convertUniform has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8, ternaries 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 · http.transportCause (cognitive 22) · ×1
  • http.transportCause (cognitive 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:75 — http.transportCause has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 3 (6 pts), boolean chains 5, loops 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 · index.compressKiroFormat (cognitive 22) · ×1
  • index.compressKiroFormat (cognitive 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/index.js:143 — index.compressKiroFormat has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 1, error handling 1, ternaries 1 (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 · pkg-extract.collectImageObjectTextures (cognitive 22) · ×1
  • pkg-extract.collectImageObjectTextures (cognitive 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:802 — pkg-extract.collectImageObjectTextures has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, ternaries 2 (5 pts), loops 2 (4 pts) (nesting depth added 7). Of this number, 11 points are the body's own statements and 11 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 · Transpiler.collectLocals · ×1
  • Transpiler.collectLocals::visit (cognitive 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:80 — Transpiler.collectLocals::visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (7 pts), boolean chains 4 (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 · SceneRenderer.render (cognitive 22) · ×1
  • SceneRenderer.render (cognitive 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:545 — SceneRenderer.render has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), error handling 3 (4 pts), ternaries 2, loops 1 (nesting depth added 2). Of this number, 21 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 · builtin-collision.removeMarketDuplicate (cognitive 22) · ×1
  • builtin-collision.removeMarketDuplicate (cognitive 22) dsh-desktop/builtin-collision.ts:119 — builtin-collision.removeMarketDuplicate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, error handling 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 · bundle-identity.resolveBundleIdentities (cognitive 22) · ×1
  • bundle-identity.resolveBundleIdentities (cognitive 22) dsh-desktop/lib/bundle-identity.ts:185 — bundle-identity.resolveBundleIdentities has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 4 (8 pts), boolean chains 4 (nesting depth added 9). Of this number, 21 points are the body's own statements and 1 belongs to one function literal 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 · boot-server.healCredentialsVersion (cognitive 22) · ×1
  • boot-server.healCredentialsVersion (cognitive 22) dsh-desktop/lib/desktop/boot-server.ts:95 — boot-server.healCredentialsVersion has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (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 · plugin-guard.createGuard.listFallbackNames (cognitive 22) · ×1
  • plugin-guard.createGuard.listFallbackNames (cognitive 22) dsh-desktop/plugin-guard.ts:487 — plugin-guard.createGuard.listFallbackNames has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), loops 2 (4 pts), boolean chains 3 (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 · runtime-patches.applyKernelTagToneFix (cognitive 22) · ×1
  • runtime-patches.applyKernelTagToneFix (cognitive 22) dsh-desktop/lib/desktop/runtime-patches.ts:97 — runtime-patches.applyKernelTagToneFix has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 3 (8 pts), loops 2 (3 pts), boolean chains 1 (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.
D2 · Cognitive Complexity · companion-sync.incompatibleBundlePackages (cognitive 22) · ×1
  • companion-sync.incompatibleBundlePackages (cognitive 22) dsh-desktop/lib/desktop/companion-sync.ts:128 — companion-sync.incompatibleBundlePackages has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (5 pts), boolean chains 3, error handling 2 (3 pts), loops 2 (3 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.
D2 · Cognitive Complexity · plugin-ops.pluginManagerSetRemoved (cognitive 22) · ×1
  • plugin-ops.pluginManagerSetRemoved (cognitive 22) dsh-desktop/lib/desktop/plugin-ops.ts:237 — plugin-ops.pluginManagerSetRemoved has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, error handling 2 (3 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 · plugin-ops.pluginManagerSetEnabled (cognitive 22) · ×1
  • plugin-ops.pluginManagerSetEnabled (cognitive 22) dsh-desktop/lib/desktop/plugin-ops.ts:344 — plugin-ops.pluginManagerSetEnabled has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 4 (6 pts), boolean chains 5 (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 · update-linux-root.runRoot (cognitive 22) · ×1
  • update-linux-root.runRoot (cognitive 22) dsh-desktop/lib/desktop/update-linux-root.ts:70 — update-linux-root.runRoot has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4, loops 3, error handling 1 (nesting depth added 1). Of this number, 12 points are the body's own statements and 10 belong to 3 function literals inside it that branch. 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 · UpdateHostControl.prepare (cognitive 22) · ×1
  • UpdateHostControl.prepare (cognitive 22) dsh-desktop/lib/desktop/update-host-control.ts:53 — UpdateHostControl.prepare has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10, boolean chains 7, error handling 3, ternaries 1 (2 pts) (nesting depth added 1). Of this number, 16 points are the body's own statements and 6 belong to 2 function literals inside it that branch. 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 · preset-sync.syncBundledPresets (cognitive 22) · ×1
  • preset-sync.syncBundledPresets (cognitive 22) dsh-desktop/preset-sync.ts:24 — preset-sync.syncBundledPresets has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (6 pts), boolean chains 4, loops 1 (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 · preset-sync.ensureDefaultAgentPreset (cognitive 22) · ×1
  • preset-sync.ensureDefaultAgentPreset (cognitive 22) dsh-desktop/preset-sync.ts:81 — preset-sync.ensureDefaultAgentPreset has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (5 pts), boolean chains 4, error handling 2, ternaries 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.
D2 · Cognitive Complexity · plugin-sync.validateRecommendedPack (cognitive 22) · ×1
  • plugin-sync.validateRecommendedPack (cognitive 22) REDACTED:653 — plugin-sync.validateRecommendedPack has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), loops 1, ternaries 1 (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 · stable-port.chooseStableWebPort (cognitive 22) · ×1
  • stable-port.chooseStableWebPort (cognitive 22) dsh-desktop/stable-port.ts:48 — stable-port.chooseStableWebPort has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 4 (6 pts), boolean chains 5 (nesting depth added 4). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 53, 79, 72, …). 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 · apply (cognitive 22) · ×1
  • apply (cognitive 22) REDACTED:58 — apply has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 5 (6 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 · readSse · ×1
  • readSse::line (cognitive 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:497 — readSse::line has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, ternaries 3 (4 pts), error handling 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.
D2 · Cognitive Complexity · probeModel (cognitive 22) · ×1
  • probeModel (cognitive 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/probe.js:49 — probeModel has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 5 (6 pts), error handling 2 (3 pts), boolean chains 2, other 1 (nesting depth added 6). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (onData). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · feedChat (cognitive 22) · ×1
  • feedChat (cognitive 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:287 — feedChat has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), other 4, loops 2 (3 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 · feedResponses (cognitive 22) · ×1
  • feedResponses (cognitive 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/stream.js:348 — feedResponses has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 3 (7 pts), other 4, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · decodeTex (cognitive 22) · ×1
  • decodeTex (cognitive 22) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:766 — decodeTex has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts), boolean chains 1, match/switch 1, other 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 · injectMessages (cognitive 22) · ×1
  • injectMessages (cognitive 22) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:283 — injectMessages has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 7). Of this number, 19 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 · index.scanFirstZstdFrame (cognitive 21) · ×1
  • index.scanFirstZstdFrame (cognitive 21) REDACTED:473 — index.scanFirstZstdFrame has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 4 (6 pts), boolean chains 1, 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 · aggregate.modelIdsFrom (cognitive 21) · ×1
  • aggregate.modelIdsFrom (cognitive 21) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:472 — aggregate.modelIdsFrom has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (6 pts), loops 2 (4 pts), boolean chains 1 (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 · scene-scripts.makeOwnerRef.makeLayer (cognitive 21) · ×1
  • scene-scripts.makeOwnerRef.makeLayer (cognitive 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:84 — scene-scripts.makeOwnerRef.makeLayer has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 13 (14 pts), if/else 4, boolean chains 3 (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.
D2 · Cognitive Complexity · bloom.applyBloom (cognitive 21) · ×1
  • bloom.applyBloom (cognitive 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/bloom.js:6 — bloom.applyBloom has cognitive complexity 21 (threshold 15). Drivers by points: loops 9 (16 pts), if/else 2 (4 pts), ternaries 1 (nesting depth added 9). 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, 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 · bundle-integrity.buildBundleManifest (cognitive 21) · ×1
  • bundle-integrity.buildBundleManifest (cognitive 21) dsh-desktop/bundle-integrity.ts:51 — bundle-integrity.buildBundleManifest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), loops 2 (4 pts), boolean chains 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 · update-portable-helper.recoverAfterExit (cognitive 21) · ×1
  • update-portable-helper.recoverAfterExit (cognitive 21) dsh-desktop/lib/desktop/update-portable-helper.ts:177 — update-portable-helper.recoverAfterExit has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 pts), ternaries 2 (3 pts), loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 180, 190, 186). 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 · patch-session-manage.applyReplacements (cognitive 21) · ×1
  • patch-session-manage.applyReplacements (cognitive 21) dsh-desktop/scripts/patch-session-manage.js:236 — patch-session-manage.applyReplacements has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (5 pts), loops 2 (3 pts), boolean chains 2 (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 · account.AccountDock (cognitive 21) · ×1
  • account.AccountDock (cognitive 21) launcher/src/account.tsx:7 — account.AccountDock has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 8, ternaries 3. Of this number, 15 points are the body's own statements and 6 belong to 4 function items inside it that branch. 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 · system.Settings (cognitive 21) · ×1
  • system.Settings (cognitive 21) launcher/src/system.tsx:25 — system.Settings has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 14 (16 pts), boolean chains 5 (nesting depth added 2). Of this number, 17 points are the body's own statements and 4 belong to 2 function literals 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.
D2 · Cognitive Complexity · portable-path-shrink.finalTrim (cognitive 21) · ×1
  • portable-path-shrink.finalTrim (cognitive 21) tauri-shell/portable-path-shrink.mjs:593 — portable-path-shrink.finalTrim has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 10). Of this number, 15 points are the body's own statements and 6 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 · collectVaryings (cognitive 21) · ×1
  • collectVaryings (cognitive 21) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:32 — collectVaryings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 7, loops 3 (4 pts), ternaries 1 (nesting depth added 6). Of this number, 16 points are the body's own statements and 5 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 · shortenSeedPreviewDirs (cognitive 21) · ×1
  • shortenSeedPreviewDirs (cognitive 21) tauri-shell/portable-path-shrink.mjs:420 — shortenSeedPreviewDirs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5 (7 pts), other 3, boolean chains 1, 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 · validateManifest (cognitive 21) · ×1
  • validateManifest (cognitive 21) launcher/pack-hall/server.mjs:82 — validateManifest has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (8 pts), loops 1, other 1 (nesting depth added 1). 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 · aggregate.chatFrames (cognitive 20) · ×1
  • aggregate.chatFrames (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:616 — aggregate.chatFrames has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8 (14 pts), boolean chains 3, if/else 2, loops 1 (nesting depth added 6). Of this number, 17 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 · searchList.searchList (cognitive 20) · ×1
  • searchList.searchList (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/filters/searchList.js:18 — searchList.searchList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (5 pts), ternaries 2 (4 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.
D2 · Cognitive Complexity · compact-preset-migrate.migratePresetFile (cognitive 20) · ×1
  • compact-preset-migrate.migratePresetFile (cognitive 20) dsh-desktop/compact-preset-migrate.ts:99 — compact-preset-migrate.migratePresetFile has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, error handling 5 (6 pts), if/else 2 (nesting depth added 1). 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 · workspace.Instances (cognitive 20) · ×1
  • workspace.Instances (cognitive 20) launcher/src/workspace.tsx:114 — workspace.Instances has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 9 (19 pts), boolean chains 1 (nesting depth added 10). Of this number, 12 points are the body's own statements and 8 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 · system.Tasks (cognitive 20) · ×1
  • system.Tasks (cognitive 20) launcher/src/system.tsx:11 — system.Tasks has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (14 pts), boolean chains 6 (nesting depth added 7). Of this number, 18 points are the body's own statements and 2 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 · bridge.trackGuestBounds · ×1
  • bridge.trackGuestBounds::tick (cognitive 20) tauri-shell/sidecar/bridge.ts:1029 — bridge.trackGuestBounds::tick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, error handling 2 (3 pts), ternaries 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.
D2 · Cognitive Complexity · dsh_snapshot_native · ×1
  • dsh_snapshot_native::exclude::is_excluded (cognitive 20) dsh-desktop/native/snapshot/src/exclude.rs:40 — dsh_snapshot_native::exclude::is_excluded has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 1 (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 · relayRequest (cognitive 20) · ×1
  • relayRequest (cognitive 20) REDACTED:250 — relayRequest has cognitive complexity 20 (threshold 15). Drivers by points: other 7, if/else 5 (6 pts), error handling 3 (4 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 2). Of this number, 10 points are the body's own statements and 10 belong to 8 function items inside it that branch. 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 · startForwardServer (cognitive 20) · ×1
  • startForwardServer (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:325 — startForwardServer has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 3 (4 pts), other 3, boolean chains 2, error handling 1 (nesting depth added 6). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 328, a function literal at line 326, a function literal at line 397, …). 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 · postStreamed (cognitive 20) · ×1
  • postStreamed (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:379 — postStreamed has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 4 (6 pts), boolean chains 2, other 1, ternaries 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.
D2 · Cognitive Complexity · toToolDefs (cognitive 20) · ×1
  • toToolDefs (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:399 — toToolDefs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 3 (6 pts), boolean chains 5, other 2, 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.
D2 · Cognitive Complexity · purgeCaches (cognitive 20) · ×1
  • purgeCaches (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/reload.js:94 — purgeCaches has cognitive complexity 20 (threshold 15). Drivers by points: error handling 5 (11 pts), boolean chains 3, if/else 2 (3 pts), loops 2 (3 pts) (nesting depth added 8). Of this number, 11 points are the body's own statements and 9 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 · structuralReason (cognitive 20) · ×1
  • structuralReason (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/trust.js:137 — structuralReason has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, loops 1, other 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 · parseManifest (cognitive 20) · ×1
  • parseManifest (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:196 — parseManifest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 5, loops 1, 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.
D2 · Cognitive Complexity · applyFingerprint (cognitive 20) · ×1
  • applyFingerprint (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js:514 — applyFingerprint has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 3 (4 pts), 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 · applyTokenSavers (cognitive 20) · ×1
  • applyTokenSavers (cognitive 20) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/index.js:69 — applyTokenSavers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, error handling 2 (4 pts), other 3 (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 · installBloom · ×1
  • installBloom::_applyBloom (cognitive 20) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/bloom.js:119 — installBloom::_applyBloom has cognitive complexity 20 (threshold 15). Drivers by points: loops 9 (16 pts), if/else 2 (4 pts) (nesting depth added 9). 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 · index.findSessionCwd · ×1
  • index.findSessionCwd::walk (cognitive 19) REDACTED:517 — index.findSessionCwd::walk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (4 pts), boolean chains 2, loops 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 · aggregate.responsesFrames (cognitive 19) · ×1
  • aggregate.responsesFrames (cognitive 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:698 — aggregate.responsesFrames has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 5 (7 pts), boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 701, 705, 711). 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 · forward.bindForwardPort (cognitive 19) · ×1
  • forward.bindForwardPort (cognitive 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:281 — forward.bindForwardPort has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 2 (4 pts), boolean chains 2, loops 2, 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.
D2 · Cognitive Complexity · scene-manifest.decodeColorBlocks (cognitive 19) · ×1
  • scene-manifest.decodeColorBlocks (cognitive 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:642 — scene-manifest.decodeColorBlocks has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 1 (5 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 12). 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 · pkg-extract.decodeColorBlocks (cognitive 19) · ×1
  • pkg-extract.decodeColorBlocks (cognitive 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:480 — pkg-extract.decodeColorBlocks has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 1 (5 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 12). 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 · client-updater.downloadFile (cognitive 19) · ×1
  • client-updater.downloadFile (cognitive 19) dsh-desktop/client-updater.ts:512 — client-updater.downloadFile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (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 · update-linux-helper.startLinuxAuthorization (cognitive 19) · ×1
  • update-linux-helper.startLinuxAuthorization (cognitive 19) dsh-desktop/lib/desktop/update-linux-helper.ts:26 — update-linux-helper.startLinuxAuthorization has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 2 (5 pts), boolean chains 3, error handling 2 (3 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 37, 47, 36). 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 · market-social.MarketPulse (cognitive 19) · ×1
  • market-social.MarketPulse (cognitive 19) launcher/src/market-social.tsx:104 — market-social.MarketPulse has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (14 pts), boolean chains 5 (nesting depth added 6). Of this number, 17 points are the body's own statements and 2 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 · library.Kernels (cognitive 19) · ×1
  • library.Kernels (cognitive 19) launcher/src/library.tsx:319 — library.Kernels has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 5, error handling 1, if/else 1 (nesting depth added 5). Of this number, 10 points are the body's own statements and 9 belong to 3 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 · gen-distribution-descriptor.genDistributionDescriptor (cognitive 19) · ×1
  • gen-distribution-descriptor.genDistributionDescriptor (cognitive 19) tauri-shell/gen-distribution-descriptor.mjs:98 — gen-distribution-descriptor.genDistributionDescriptor has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (7 pts), ternaries 2 (4 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.
D2 · Cognitive Complexity · buildCatalog (cognitive 19) · ×1
  • buildCatalog (cognitive 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js:211 — buildCatalog has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 2 (4 pts), other 3, boolean chains 1, 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 · buildEacCatalog (cognitive 19) · ×1
  • buildEacCatalog (cognitive 19) dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js:397 — buildEacCatalog has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (12 pts), other 3, if/else 1 (2 pts), boolean chains 1, 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 · parseTtfFont (cognitive 19) · ×1
  • parseTtfFont (cognitive 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:499 — parseTtfFont has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 4 (6 pts), loops 3 (4 pts), boolean chains 3 (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 · parseSingleRange (cognitive 19) · ×1
  • parseSingleRange (cognitive 19) dsh-desktop/assets/skins/dsh-client-liang-intensity-skin/src/range.js:1 — parseSingleRange has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, ternaries 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.
D2 · Cognitive Complexity · effectFoliageSway (cognitive 19) · ×1
  • effectFoliageSway (cognitive 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/foliagesway.js:18 — effectFoliageSway has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, loops 3 (6 pts), ternaries 4, if/else 1 (3 pts) (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 · effectIris (cognitive 19) · ×1
  • effectIris (cognitive 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/iris.js:13 — effectIris has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 7, loops 2 (3 pts), ternaries 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 · effectLightshafts (cognitive 19) · ×1
  • effectLightshafts (cognitive 19) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/lightshafts.js:15 — effectLightshafts has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, ternaries 3 (5 pts), if/else 2 (4 pts), loops 2 (3 pts) (nesting depth added 5). Of this number, 16 points are the body's own statements and 3 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 · forward.serveCompletion (cognitive 18) · ×1
  • forward.serveCompletion (cognitive 18) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:629 — forward.serveCompletion has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 5, if/else 3 (4 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 646, a function literal at line 649, abort). 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 · updater.listPackageFiles (cognitive 18) · ×1
  • updater.listPackageFiles (cognitive 18) dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:570 — updater.listPackageFiles has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 2, ternaries 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (visit). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · scene-manifest.collectImageObjectTextures · ×1
  • scene-manifest.collectImageObjectTextures::pushTextureList (cognitive 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:901 — scene-manifest.collectImageObjectTextures::pushTextureList has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 4 (6 pts), boolean chains 2, loops 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 · camera.setupCameraMatrices (cognitive 18) · ×1
  • camera.setupCameraMatrices (cognitive 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:69 — camera.setupCameraMatrices has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (4 pts), boolean chains 2 (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 · runtime.mix (cognitive 18) · ×1
  • runtime.mix (cognitive 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/runtime.js:40 — runtime.mix has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 2 (3 pts), loops 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 · updater.compareVersions (cognitive 18) · ×1
  • updater.compareVersions (cognitive 18) dsh-desktop/updater.ts:111 — updater.compareVersions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), ternaries 1 (2 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 · plugin-copy.walkCopySet (cognitive 18) · ×1
  • plugin-copy.walkCopySet (cognitive 18) dsh-desktop/lib/plugin-copy.ts:70 — plugin-copy.walkCopySet has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 4 (5 pts), loops 3 (nesting depth added 5). Of this number, 11 points are the body's own statements and 7 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 · update-portable-lock.withPortableLock (cognitive 18) · ×1
  • update-portable-lock.withPortableLock (cognitive 18) dsh-desktop/lib/desktop/update-portable-lock.ts:18 — update-portable-lock.withPortableLock has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, ternaries 2 (nesting depth added 3). Of this number, 9 points are the body's own statements and 9 belong to 3 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.
D2 · Cognitive Complexity · update-linux-helper.takeover (cognitive 18) · ×1
  • update-linux-helper.takeover (cognitive 18) dsh-desktop/lib/desktop/update-linux-helper.ts:99 — update-linux-helper.takeover has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, error handling 2 (nesting depth added 1). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 103, 120, 112, …). 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 · plugin-sync.runSync (cognitive 18) · ×1
  • plugin-sync.runSync (cognitive 18) REDACTED:1305 — plugin-sync.runSync has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6, ternaries 2. Of this number, 14 points are the body's own statements and 4 belong 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.
D2 · Cognitive Complexity · onboarding.pluginCurrentState (cognitive 18) · ×1
  • onboarding.pluginCurrentState (cognitive 18) dsh-desktop/scripts/onboarding.js:52 — onboarding.pluginCurrentState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), boolean chains 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 · verify-bugfix-cdp.main (cognitive 18) · ×1
  • verify-bugfix-cdp.main (cognitive 18) dsh-desktop/scripts/verify-bugfix-cdp.js:100 — verify-bugfix-cdp.main has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 5, if/else 4 (5 pts), ternaries 4, error handling 2, loops 2 (nesting depth added 1). Of this number, 16 points are the body's own statements and 2 belong to one function item inside it that branches. 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 · pack-share.resolveInstancePack (cognitive 18) · ×1
  • pack-share.resolveInstancePack (cognitive 18) launcher/src/pack-share.ts:88 — pack-share.resolveInstancePack has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, 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.
D2 · Cognitive Complexity · dialogs.InstanceDialog · ×1
  • dialogs.InstanceDialog::submit (cognitive 18) launcher/src/dialogs.tsx:184 — dialogs.InstanceDialog::submit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 3, error handling 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.
D2 · Cognitive Complexity · dialogs.PackDialog (cognitive 18) · ×1
  • dialogs.PackDialog (cognitive 18) launcher/src/dialogs.tsx:308 — dialogs.PackDialog has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (9 pts), boolean chains 6, error handling 1, if/else 1, loops 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (install, a function literal at line 344). 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 · workspace.InstanceActions (cognitive 18) · ×1
  • workspace.InstanceActions (cognitive 18) launcher/src/workspace.tsx:24 — workspace.InstanceActions has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, ternaries 6 (7 pts), if/else 3 (nesting depth added 1). Of this number, 13 points are the body's own statements and 5 belong to 4 function literals inside it that branch. 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 · library.Packs (cognitive 18) · ×1
  • library.Packs (cognitive 18) launcher/src/library.tsx:293 — library.Packs has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (14 pts), boolean chains 4 (nesting depth added 7). Of this number, 10 points are the body's own statements and 8 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 · portable-path-shrink.pruneUnusedNestedResources (cognitive 18) · ×1
  • portable-path-shrink.pruneUnusedNestedResources (cognitive 18) tauri-shell/portable-path-shrink.mjs:476 — portable-path-shrink.pruneUnusedNestedResources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 2, loops 2, boolean chains 1 (nesting depth added 4). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (hunt, measureRm). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · bridge.initPopupRescue (cognitive 18) · ×1
  • bridge.initPopupRescue (cognitive 18) tauri-shell/sidecar/bridge.ts:1404 — bridge.initPopupRescue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 5). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (probeMenus, scheduleProbe, start). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · publicAggregate (cognitive 18) · ×1
  • publicAggregate (cognitive 18) REDACTED:2067 — publicAggregate has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 1 (2 pts), other 2, boolean chains 1, 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 · buildSummary (cognitive 18) · ×1
  • buildSummary (cognitive 18) REDACTED:2312 — buildSummary has cognitive complexity 18 (threshold 15). Drivers by points: other 9, ternaries 8, boolean chains 1. Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 2325, unprobed). 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 · createAssetHandler (cognitive 18) · ×1
  • createAssetHandler (cognitive 18) dsh-desktop/assets/skins/dsh-client-liang-intensity-skin/src/index.js:67 — createAssetHandler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, other 4, ternaries 3, boolean chains 2, error handling 1. None of this is in the body itself: all 18 points belong to 4 function items inside it that branch (a function literal at line 68, a function literal at line 129, a function literal at line 134, …). 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 · effectCloudmotion (cognitive 18) · ×1
  • effectCloudmotion (cognitive 18) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/cloudmotion.js:12 — effectCloudmotion has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 2 (6 pts), loops 2 (3 pts), ternaries 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 · local-optimize.extractFilepathsFromCommand (cognitive 17) · ×1
  • local-optimize.extractFilepathsFromCommand (cognitive 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/local-optimize.js:245 — local-optimize.extractFilepathsFromCommand has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 2, boolean chains 1, error handling 1, loops 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.
D2 · Cognitive Complexity · trust.rejectionFor (cognitive 17) · ×1
  • trust.rejectionFor (cognitive 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/trust.js:87 — trust.rejectionFor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2, ternaries 1 (2 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 · executor.engineInject (cognitive 17) · ×1
  • executor.engineInject (cognitive 17) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:99 — executor.engineInject has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 2 (4 pts), if/else 2 (3 pts), match/switch 1 (nesting depth added 3). 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 · index.apply · ×1
  • index.apply::serveFile (cognitive 17) REDACTED:1961 — index.apply::serveFile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (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 · compact-preset-migrate.replaceCompactionGroup (cognitive 17) · ×1
  • compact-preset-migrate.replaceCompactionGroup (cognitive 17) dsh-desktop/compact-preset-migrate.ts:56 — compact-preset-migrate.replaceCompactionGroup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, loops 2 (3 pts), 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 · lite-skins.ensureSkinDependencies (cognitive 17) · ×1
  • lite-skins.ensureSkinDependencies (cognitive 17) REDACTED:268 — lite-skins.ensureSkinDependencies has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 4, boolean chains 3, error handling 2, loops 2 (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 · plugin-guard.createGuard.snapshot (cognitive 17) · ×1
  • plugin-guard.createGuard.snapshot (cognitive 17) dsh-desktop/plugin-guard.ts:168 — plugin-guard.createGuard.snapshot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (5 pts), error handling 2 (3 pts), boolean chains 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 · update-process-owners.captureLinuxProcessOwners (cognitive 17) · ×1
  • update-process-owners.captureLinuxProcessOwners (cognitive 17) dsh-desktop/lib/desktop/update-process-owners.ts:25 — update-process-owners.captureLinuxProcessOwners has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, error handling 1 (2 pts), 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 · update-appimage-helper.appImageStartupGate (cognitive 17) · ×1
  • update-appimage-helper.appImageStartupGate (cognitive 17) dsh-desktop/lib/desktop/update-appimage-helper.ts:39 — update-appimage-helper.appImageStartupGate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, error handling 1 (nesting depth added 2). 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, 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 · plugin-kernel-compat.collectKernelExports (cognitive 17) · ×1
  • plugin-kernel-compat.collectKernelExports (cognitive 17) dsh-desktop/scripts/plugin-kernel-compat.mjs:118 — plugin-kernel-compat.collectKernelExports has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 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 · verify-dist-fresh.listSources (cognitive 17) · ×1
  • verify-dist-fresh.listSources (cognitive 17) dsh-desktop/scripts/verify-dist-fresh.js:18 — verify-dist-fresh.listSources has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), error handling 2 (3 pts), loops 1 (2 pts) (nesting depth added 10). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function items inside it that branch (walk, a function literal at line 31). 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 · library.CompatibilityProbe (cognitive 17) · ×1
  • library.CompatibilityProbe (cognitive 17) launcher/src/library.tsx:25 — library.CompatibilityProbe has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 5. Of this number, 10 points are the body's own statements and 7 belong to 5 function items 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.
D2 · Cognitive Complexity · portable-path-shrink.normalizeSkinWiringIds · ×1
  • portable-path-shrink.normalizeSkinWiringIds::scan (cognitive 17) tauri-shell/portable-path-shrink.mjs:752 — portable-path-shrink.normalizeSkinWiringIds::scan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, error handling 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 · bridge.injectChrome (cognitive 17) · ×1
  • bridge.injectChrome (cognitive 17) tauri-shell/sidecar/bridge.ts:1458 — bridge.injectChrome has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 3 (nesting depth added 1). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1504, 1519, 1529). 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 · traceRequest (cognitive 17) · ×1
  • traceRequest (cognitive 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:49 — traceRequest has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7, boolean chains 4, if/else 3, error handling 2, other 1. Of this number, 9 points are the body's own statements and 8 belong to 6 function items inside it that branch. 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 · validateModelVisibility (cognitive 17) · ×1
  • validateModelVisibility (cognitive 17) dsh-desktop/assets/plugins/dsh-our-free-model/src/store.js:259 — validateModelVisibility has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 3 (5 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 · index.handleCheckRoute (cognitive 16) · ×1
  • index.handleCheckRoute (cognitive 16) REDACTED:421 — index.handleCheckRoute has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 4, error handling 3, ternaries 1 (2 pts) (nesting depth added 1). 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 · index.compressChatPayload (cognitive 16) · ×1
  • index.compressChatPayload (cognitive 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/rtk/index.js:281 — index.compressChatPayload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 1, ternaries 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 · inject.hasInjected (cognitive 16) · ×1
  • inject.hasInjected (cognitive 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:114 — inject.hasInjected has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, error handling 1 (nesting depth added 4). Of this number, 14 points are the body's own statements and 2 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 · local-optimize.extractCommandPrefix (cognitive 16) · ×1
  • local-optimize.extractCommandPrefix (cognitive 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/local-optimize.js:196 — local-optimize.extractCommandPrefix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (4 pts), boolean chains 2, error handling 1, loops 1 (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 · vault.openSealWith (cognitive 16) · ×1
  • vault.openSealWith (cognitive 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/vault.js:136 — vault.openSealWith has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 2, error handling 1 (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 · scene-manifest.extractSceneVideoVia (cognitive 16) · ×1
  • scene-manifest.extractSceneVideoVia (cognitive 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1470 — scene-manifest.extractSceneVideoVia has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, loops 2 (3 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 · pkg-extract.jpegSofDims (cognitive 16) · ×1
  • pkg-extract.jpegSofDims (cognitive 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:433 — pkg-extract.jpegSofDims has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 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 · pkg-extract.blitLayer (cognitive 16) · ×1
  • pkg-extract.blitLayer (cognitive 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1195 — pkg-extract.blitLayer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), boolean chains 2 (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 · mdl.parseMdlPuppet (cognitive 16) · ×1
  • mdl.parseMdlPuppet (cognitive 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:7 — mdl.parseMdlPuppet has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4, boolean chains 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 · index.enumerateUploadsP (cognitive 16) · ×1
  • index.enumerateUploadsP (cognitive 16) REDACTED:1649 — index.enumerateUploadsP has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 3 (5 pts), error handling 2 (3 pts), loops 1 (nesting depth added 6). Of this number, 13 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 · index.setUploadDir (cognitive 16) · ×1
  • index.setUploadDir (cognitive 16) REDACTED:1726 — index.setUploadDir has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 7). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 1727). The decisions are inside the literal, 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 literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.apply.<returned closure> (cognitive 16) · ×1
  • index.apply.<returned closure> (cognitive 16) REDACTED:2943 — index.apply.<returned closure> has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 2 (4 pts), loops 4, 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 · updater.runNpm (cognitive 16) · ×1
  • updater.runNpm (cognitive 16) dsh-desktop/updater.ts:173 — updater.runNpm has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), error handling 2 (3 pts), boolean chains 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 222, 174, 196, …). 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 · client-updater.checkLatest (cognitive 16) · ×1
  • client-updater.checkLatest (cognitive 16) dsh-desktop/client-updater.ts:323 — client-updater.checkLatest has cognitive complexity 16 (threshold 15). Drivers by points: error handling 2 (5 pts), if/else 2 (4 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). 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 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 · boot-server.waitUntilUp (cognitive 16) · ×1
  • boot-server.waitUntilUp (cognitive 16) dsh-desktop/lib/desktop/boot-server.ts:357 — boot-server.waitUntilUp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 1. None of this is in the body itself: all 16 points belong to 5 function literals inside it that branch (lines 384, 364, 377, …). 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 · update-sources.verifyManifest (cognitive 16) · ×1
  • update-sources.verifyManifest (cognitive 16) dsh-desktop/lib/desktop/update-sources.ts:90 — update-sources.verifyManifest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 1 (nesting depth added 1). Of this number, 13 points are the body's own statements and 3 belong to 2 function literals inside it that branch. 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 · platform.createDesktopPlatform.capabilities (cognitive 16) · ×1
  • platform.createDesktopPlatform.capabilities (cognitive 16) dsh-desktop/lib/desktop/platform.ts:106 — platform.createDesktopPlatform.capabilities has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (14 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.
D2 · Cognitive Complexity · plugin-guard.createGuard.fallbackPackages (cognitive 16) · ×1
  • plugin-guard.createGuard.fallbackPackages (cognitive 16) dsh-desktop/plugin-guard.ts:539 — plugin-guard.createGuard.fallbackPackages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 2 (4 pts), loops 2 (4 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 · companion-sync.seedBundledPlugins (cognitive 16) · ×1
  • companion-sync.seedBundledPlugins (cognitive 16) dsh-desktop/lib/desktop/companion-sync.ts:445 — companion-sync.seedBundledPlugins has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, error handling 1 (2 pts), loops 1, ternaries 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 · components.Modal (cognitive 16) · ×1
  • components.Modal (cognitive 16) launcher/src/components.tsx:57 — components.Modal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 72, 89). 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 · syncTools (cognitive 16) · ×1
  • syncTools (cognitive 16) dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:96 — syncTools has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), other 4, boolean chains 2, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 4). Of this number, 10 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 · assistantBlocks (cognitive 16) · ×1
  • assistantBlocks (cognitive 16) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:164 — assistantBlocks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 3, other 3, 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.
D2 · Cognitive Complexity · constructor (cognitive 16) · ×1
  • constructor (cognitive 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:31 — constructor has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 2, ternaries 2, error handling 1, other 1. 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 · effectSkew (cognitive 16) · ×1
  • effectSkew (cognitive 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/skew.js:10 — effectSkew has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (7 pts), boolean chains 3, if/else 1 (3 pts), loops 2 (3 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 · effectTint (cognitive 16) · ×1
  • effectTint (cognitive 16) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/tint.js:5 — effectTint has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, ternaries 4, if/else 1 (3 pts), loops 2 (3 pts) (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.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D3 · God Classes · TooManyMethods · ×1
  • TooManyMethods: Engine launcher/src-tauri/src/engine.rs:25 — TooManyMethods — 101 methods, declared across 5 files: src/engine.rs (58), src/social.rs (25), src/network.rs (10), src/usage.rs (5), +1 more file(s). The bar is 30 methods; this is 71 over it, 3.37× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×1
  • Edited copy of a member (18 corresponding lines) dsh-desktop/native/snapshot/src/store.rs:104 — dsh-desktop/native/snapshot/src/store.rs:104-122 | dsh-desktop/native/snapshot/src/store.rs:137-154 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×1
  • Edited copy of a member (15 corresponding lines) dsh-desktop/native/snapshot/src/fsutil.rs:53 — dsh-desktop/native/snapshot/src/fsutil.rs:53-67 | dsh-desktop/native/snapshot/src/fsutil.rs:70-87 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×1
  • Edited copy of a member (12 corresponding lines) launcher/src-tauri/src/social.rs:906 — launcher/src-tauri/src/social.rs:906-917 | launcher/src-tauri/src/social.rs:919-930 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×1
  • Edited copy of a member (9 corresponding lines) tauri-shell/src/main.rs:198 — tauri-shell/src/main.rs:198-206 | tauri-shell/src/main.rs:1468-1476 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (6 corresponding lines) · ×1
  • Edited copy of a member (6 corresponding lines) dsh-desktop/native/supervisor/src/job.rs:195 — dsh-desktop/native/supervisor/src/job.rs:195-200 | dsh-desktop/native/supervisor/src/job.rs:204-211 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (5 corresponding lines) · ×1
  • Edited copy of a member (5 corresponding lines) dsh-desktop/native/snapshot/src/store.rs:124 — dsh-desktop/native/snapshot/src/store.rs:124-128 | dsh-desktop/native/snapshot/src/store.rs:156-160 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (10 corresponding lines) · ×1
  • Edited copy of a member (10 corresponding lines) launcher/src-tauri/src/files.rs:16 — launcher/src-tauri/src/files.rs:16-28 | tauri-shell/src/main.rs:660-669 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×1
  • Edited copy of a member (7 corresponding lines) launcher/src-tauri/src/social.rs:148 — launcher/src-tauri/src/social.rs:148-154 | launcher/src-tauri/src/usage.rs:200-206 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×1
  • Duplicated block (18 lines × 2) launcher/src-tauri/src/engine.rs:874 — launcher/src-tauri/src/engine.rs:874-891 | launcher/src-tauri/src/engine.rs:1479-1497 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `launcher/src-tauri/src/engine.rs:1479` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `launcher/src-tauri/src/engine.rs:869` calls `Ok`, `probe_evaluate` and `launcher/src-tauri/src/engine.rs:1478` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×1
  • Duplicated block (14–15 lines × 2) tauri-shell/src/main.rs:4939 — tauri-shell/src/main.rs:4939-4953 | tauri-shell/src/main.rs:5179-5192 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `tauri-shell/src/main.rs:4939` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) tauri-shell/src/main.rs:5131 — tauri-shell/src/main.rs:5131-5143 | tauri-shell/src/main.rs:5232-5244 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `tauri-shell/src/main.rs:5131` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×1
  • Duplicated block (11–12 lines × 2) tauri-shell/src/main.rs:5093 — tauri-shell/src/main.rs:5093-5104 | tauri-shell/src/main.rs:5216-5226 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9–11 lines × 2) · ×1
  • Duplicated block (9–11 lines × 2) tauri-shell/src/main.rs:3980 — tauri-shell/src/main.rs:3980-3990 | tauri-shell/src/main.rs:3996-4004 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×1
  • Duplicated block (8 lines × 2) dsh-desktop/native/snapshot/src/store.rs:107 — dsh-desktop/native/snapshot/src/store.rs:107-114 | dsh-desktop/native/snapshot/src/store.rs:140-147 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `dsh-desktop/native/snapshot/src/store.rs:107` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×1
  • Duplicated block (7 lines × 2) tauri-shell/src/main.rs:1994 — tauri-shell/src/main.rs:1994-2000 | tauri-shell/src/main.rs:2039-2045 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×1
  • Duplicated block (6 lines × 2) launcher/src-tauri/src/engine.rs:1494 — launcher/src-tauri/src/engine.rs:1494-1499 | launcher/src-tauri/src/engine.rs:1670-1675 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
IC1 · Incompleteness & stubs · Guard cannot change the result · ×1
  • Guard cannot change the result — returns what the code already falls through to dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-scripts.js:273 — The guard above `return value;` also returns `value`, so no input can make it matter. Implement the distinction that was intended, or delete the guard.
IC1 · Incompleteness & stubs · Dead branch · ×1
  • Dead branch — condition is always false dsh-desktop/lib/desktop/companion-sync.ts:1464 — A branch guarded by a literal `false` can never execute — left-over disabled code. Remove it or restore the real condition.
R1 · Type Safety · Type Safety · ×1
  • Type Safety — 209 typed · 262 plain JS — the untyped files are dsh-desktop/assets/plugins/ds-harness-remote/index.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/client.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/clip-id.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/clip-registry.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/clip-resolver.js, dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/diagnostics.js (+256 more).
R10 · Code Duplication · Duplication concentrated across 3 sibling directories (6 clone groups) · ×1
  • Duplication concentrated across 3 sibling directories (6 clone groups) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:3511 — 6 duplicated blocks under the repository root have copies in at least two of the sibling directories dsh-desktop, launcher, tauri-shell — 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 8 sibling directories (6 clone groups) · ×1
  • Duplication concentrated across 8 sibling directories (6 clone groups) REDACTED:97 — 6 duplicated blocks under dsh-desktop/assets/plugins/ have copies in at least two of the sibling directories dsh-client-file-changes, dsh-eac-locale-compat, dsh-easy-setup, dsh-file-changes, dsh-plugin-shield, dsh-plugin-wallpaper-engine (+2 more sibling(s) not listed) — 3 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Wholesale file copy (205 identical lines × 2 files) · ×1
  • Wholesale file copy (205 identical lines × 2 files) dsh-desktop/assets/plugins/dsh-settings-scroll-fix/lib/client.js:1 — dsh-desktop/assets/plugins/dsh-settings-scroll-fix/lib/client.js:1 · dsh-desktop/assets/plugins/dsh-settings-scroll-fix/src/client.js:1 — these 2 files are line-for-line copies of one another — 205 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (74 lines × 2 locations) · ×1
  • Duplicated block (74 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:473 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:473 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:632 — 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 (68 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (68 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:174 — dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:174 · dsh-desktop/assets/plugins/dsh-our-free-model/src/kilo.js:41 — the two spans are one implementation copied and then locally edited — 630 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 (63 lines × 2 locations) · ×1
  • Duplicated block (63 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:163 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:163 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:304 — 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 (61 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (61 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:102 — dsh-desktop/assets/plugins/dsh-our-free-model/src/chan-relay.js:102 · dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:517 — the two spans are one implementation copied and then locally edited — 395 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 (51 lines × 2 locations) · ×1
  • Duplicated block (51 lines × 2 locations) dsh-desktop/scripts/fetch-kernel.js:107 — dsh-desktop/scripts/fetch-kernel.js:107 · dsh-desktop/scripts/fetch-kernel.ts:124 — 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 (49 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (49 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:203 — dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:203 · dsh-desktop/assets/plugins/dsh-our-free-model/src/token-saver/inject.js:363 — the two spans are one implementation copied and then locally edited — 381 tokens are still identical, in the same order in both spans, 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 (47 lines × 2 locations) · ×1
  • Duplicated block (47 lines × 2 locations) dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-maid-atelier/lib/index.js:4 — dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-maid-atelier/lib/index.js:4 · dsh-desktop/assets/skins/@smalltailqwq_dsh-client-ui-skin-orca-link/lib/index.js:4 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Duplicated block with local edits (42 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (42 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:4 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:4 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/camera.js:98 — the two spans are one implementation copied and then locally edited — 522 tokens are still identical, in the same order in both spans, 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 (42 lines × 2 locations) · ×1
  • Duplicated block (42 lines × 2 locations) dsh-desktop/scripts/analyze-session-log.js:13 — dsh-desktop/scripts/analyze-session-log.js:13 · dsh-desktop/scripts/repair-session-log.js:16 — 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 (41 lines × 2 locations) · ×1
  • Duplicated block (41 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:54 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:54 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:428 — 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 (39 lines × 2 locations) · ×1
  • Duplicated block (39 lines × 2 locations) dsh-desktop/scripts/fetch-kernel.js:179 — dsh-desktop/scripts/fetch-kernel.js:179 · dsh-desktop/scripts/fetch-kernel.ts:201 — 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 (35 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (35 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:737 — dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:737 · dsh-desktop/assets/plugins/dsh-our-free-model/src/core/completion.js:150 — the two spans are one implementation copied and then locally edited — 235 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 (31 lines × 2 locations) · ×1
  • Duplicated block (31 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:821 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:821 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:935 — 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 (31 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (31 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shake.js:4 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/shake.js:4 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/effects/waterwaves.js:3 — the two spans are one implementation copied and then locally edited — 393 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 (30 lines × 2 locations) · ×1
  • Duplicated block (30 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:102 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:102 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:479 — 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 (26 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (26 matched lines × 2 locations) dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:174 — dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:174 · dsh-desktop/assets/plugins/dsh-our-free-model/src/messages.js:338 — the two spans are one implementation copied and then locally edited — 270 tokens are still identical, in the same order in both spans, 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 (26 lines × 2 locations) · ×1
  • Duplicated block (26 lines × 2 locations) dsh-desktop/scripts/gen-kernel-overrides.js:84 — dsh-desktop/scripts/gen-kernel-overrides.js:84 · dsh-desktop/scripts/gen-kernel-overrides.ts:91 — 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 (23 lines × 3 locations) · ×1
  • Duplicated block (23 lines × 3 locations) dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:555 — dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:555 · dsh-desktop/assets/plugins/dsh-our-free-model/src/eac.js:237 · dsh-desktop/assets/plugins/dsh-our-free-model/src/kilo.js:106 — the 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Duplicated block (22 lines × 2 locations) · ×1
  • Duplicated block (22 lines × 2 locations) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:359 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:359 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:549 — 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 (21 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (21 matched lines × 2 locations) REDACTED:97 — REDACTED:97 · dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:233 — the two spans are one implementation copied and then locally edited — 98 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 routeHandler (cyclomatic 204, cognitive 328) · ×1
  • Complex function routeHandler (cyclomatic 204, cognitive 328) dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:2000 — routeHandler has cyclomatic complexity 204 and cognitive complexity 328; 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 buildSceneManifestVia (cyclomatic 193, cognitive 407) · ×1
  • Complex function buildSceneManifestVia (cyclomatic 193, cognitive 407) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1876 — buildSceneManifestVia has cyclomatic complexity 193 and cognitive complexity 407; 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 handler (cyclomatic 172, cognitive 228) · ×1
  • Complex function handler (cyclomatic 172, cognitive 228) REDACTED:1692 — handler has cyclomatic complexity 172 and cognitive complexity 228; 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 runSingle (cyclomatic 127, cognitive 210) · ×1
  • Complex function runSingle (cyclomatic 127, cognitive 210) dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:297 — runSingle has cyclomatic complexity 127 and cognitive complexity 210; 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 validateManifestInternal (cyclomatic 117, cognitive 207) · ×1
  • Complex function validateManifestInternal (cyclomatic 117, cognitive 207) REDACTED:755 — validateManifestInternal has cyclomatic complexity 117 and cognitive complexity 207; 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 WallpaperPicker (cyclomatic 114, cognitive 100) · ×1
  • Complex function WallpaperPicker (cyclomatic 114, cognitive 100) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:2023 — WallpaperPicker has cyclomatic complexity 114 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 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 MarketPanel (cyclomatic 93, cognitive 92) · ×1
  • Complex function MarketPanel (cyclomatic 93, cognitive 92) dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:263 — MarketPanel has cyclomatic complexity 93 and cognitive complexity 92; 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 interpretOps (cyclomatic 86, cognitive 151) · ×1
  • Complex function interpretOps (cyclomatic 86, cognitive 151) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:223 — interpretOps has cyclomatic complexity 86 and cognitive complexity 151; 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 tryCompositeSceneLayers (cyclomatic 79, cognitive 105) · ×1
  • Complex function tryCompositeSceneLayers (cyclomatic 79, cognitive 105) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1227 — tryCompositeSceneLayers has cyclomatic complexity 79 and cognitive complexity 105; 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 readPortableJournal (cyclomatic 78, cognitive 60) · ×1
  • Complex function readPortableJournal (cyclomatic 78, cognitive 60) dsh-desktop/lib/desktop/update-portable.ts:26 — readPortableJournal has cyclomatic complexity 78 and cognitive complexity 60; 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 renderImage (cyclomatic 76, cognitive 74) · ×1
  • Complex function renderImage (cyclomatic 76, cognitive 74) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/image.js:61 — renderImage has cyclomatic complexity 76 and cognitive complexity 74; 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 Profile (cyclomatic 76, cognitive 72) · ×1
  • Complex function Profile (cyclomatic 76, cognitive 72) launcher/src/profile.tsx:82 — Profile has cyclomatic complexity 76 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 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 parseMdlStatic (cyclomatic 74, cognitive 121) · ×1
  • Complex function parseMdlStatic (cyclomatic 74, cognitive 121) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/mdl.js:51 — parseMdlStatic has cyclomatic complexity 74 and cognitive complexity 121; 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 _parseMdlStatic (cyclomatic 74, cognitive 121) · ×1
  • Complex function _parseMdlStatic (cyclomatic 74, cognitive 121) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:424 — _parseMdlStatic has cyclomatic complexity 74 and cognitive complexity 121; 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 syncCompanionPlugins (cyclomatic 74, cognitive 112) · ×1
  • Complex function syncCompanionPlugins (cyclomatic 74, cognitive 112) dsh-desktop/lib/desktop/companion-sync.ts:964 — syncCompanionPlugins has cyclomatic complexity 74 and cognitive complexity 112; 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 main (cyclomatic 73, cognitive 107) · ×1
  • Complex function main (cyclomatic 73, cognitive 107) dsh-desktop/scripts/e2e-full.js:153 — main has cyclomatic complexity 73 and cognitive complexity 107; 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 parseCffFont (cyclomatic 69, cognitive 133) · ×1
  • Complex function parseCffFont (cyclomatic 69, cognitive 133) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:65 — parseCffFont has cyclomatic complexity 69 and cognitive complexity 133; 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 ChannelCard (cyclomatic 65, cognitive 63) · ×1
  • Complex function ChannelCard (cyclomatic 65, cognitive 63) REDACTED:4064 — ChannelCard has cyclomatic complexity 65 and cognitive complexity 63; 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 validateLockInternal (cyclomatic 59, cognitive 91) · ×1
  • Complex function validateLockInternal (cyclomatic 59, cognitive 91) REDACTED:1189 — validateLockInternal has cyclomatic complexity 59 and cognitive complexity 91; 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 59, cognitive 84) · ×1
  • Complex function (anonymous) (cyclomatic 59, cognitive 84) launcher/pack-hall/server.mjs:136 — (anonymous) has cyclomatic complexity 59 and cognitive complexity 84; 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 main (cyclomatic 57, cognitive 73) · ×1
  • Complex function main (cyclomatic 57, cognitive 73) dsh-desktop/scripts/e2e-v4.js:116 — main has cyclomatic complexity 57 and cognitive complexity 73; 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 _parseMdl (cyclomatic 54, cognitive 110) · ×1
  • Complex function _parseMdl (cyclomatic 54, cognitive 110) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:277 — _parseMdl has cyclomatic complexity 54 and cognitive complexity 110; 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 validateDistribution (cyclomatic 54, cognitive 80) · ×1
  • Complex function validateDistribution (cyclomatic 54, cognitive 80) REDACTED:504 — validateDistribution has cyclomatic complexity 54 and cognitive complexity 80; 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 decodeJpegInner (cyclomatic 53, cognitive 105) · ×1
  • Complex function decodeJpegInner (cyclomatic 53, cognitive 105) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/jpeg.js:281 — decodeJpegInner has cyclomatic complexity 53 and cognitive complexity 105; 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 tryCompositeMultiLayerScene (cyclomatic 53, cognitive 76) · ×1
  • Complex function tryCompositeMultiLayerScene (cyclomatic 53, cognitive 76) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1205 — tryCompositeMultiLayerScene has cyclomatic complexity 53 and cognitive complexity 76; 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 renderModel (cyclomatic 53, cognitive 59) · ×1
  • Complex function renderModel (cyclomatic 53, cognitive 59) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:7 — renderModel has cyclomatic complexity 53 and cognitive complexity 59; 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 validatePortableHandoff (cyclomatic 51, cognitive 31) · ×1
  • Complex function validatePortableHandoff (cyclomatic 51, cognitive 31) dsh-desktop/lib/desktop/update-portable-helper.ts:44 — validatePortableHandoff has cyclomatic complexity 51 and cognitive complexity 31; 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 scanCandidate (cyclomatic 50, cognitive 56) · ×1
  • Complex function scanCandidate (cyclomatic 50, cognitive 56) dsh-desktop/assets/plugins/dsh-unified-market/lib/plugin-conflict-scan.mjs:95 — scanCandidate has cyclomatic complexity 50 and cognitive complexity 56; 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 prepare (cyclomatic 49, cognitive 51) · ×1
  • Complex function prepare (cyclomatic 49, cognitive 51) tauri-shell/sidecar/server.ts:379 — prepare has cyclomatic complexity 49 and cognitive complexity 51; 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 anthropicFrames (cyclomatic 48, cognitive 79) · ×1
  • Complex function anthropicFrames (cyclomatic 48, cognitive 79) dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:455 — anthropicFrames has cyclomatic complexity 48 and cognitive complexity 79; 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 schemaMatches (cyclomatic 46, cognitive 50) · ×1
  • Complex function schemaMatches (cyclomatic 46, cognitive 50) REDACTED:410 — schemaMatches has cyclomatic complexity 46 and cognitive complexity 50; 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 visit (cyclomatic 45, cognitive 59) · ×1
  • Complex function visit (cyclomatic 45, cognitive 59) REDACTED:444 — visit has cyclomatic complexity 45 and cognitive complexity 59; 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 45, cognitive 49) · ×1
  • Complex function (anonymous) (cyclomatic 45, cognitive 49) dsh-desktop/assets/plugins/dsh-our-free-model/src/reload.js:145 — (anonymous) has cyclomatic complexity 45 and cognitive complexity 49; 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 _drawParticles (cyclomatic 44, cognitive 114) · ×1
  • Complex function _drawParticles (cyclomatic 44, cognitive 114) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:418 — _drawParticles has cyclomatic complexity 44 and cognitive complexity 114; 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 44, cognitive 64) · ×1
  • Complex function (anonymous) (cyclomatic 44, cognitive 64) REDACTED:2326 — (anonymous) has cyclomatic complexity 44 and cognitive complexity 64; 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 applyUpdate (cyclomatic 43, cognitive 59) · ×1
  • Complex function applyUpdate (cyclomatic 43, cognitive 59) dsh-desktop/updater.ts:371 — applyUpdate has cyclomatic complexity 43 and cognitive complexity 59; 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 parseTexInternal (cyclomatic 43, cognitive 44) · ×1
  • Complex function parseTexInternal (cyclomatic 43, cognitive 44) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:480 — parseTexInternal has cyclomatic complexity 43 and cognitive complexity 44; 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 builtinReturnType (cyclomatic 43, cognitive 9) · ×1
  • Complex function builtinReturnType (cyclomatic 43, cognitive 9) dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:522 — builtinReturnType has cyclomatic complexity 43 and cognitive complexity 9; 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 applyBuiltinPluginUpdateInner (cyclomatic 42, cognitive 55) · ×1
  • Complex function applyBuiltinPluginUpdateInner (cyclomatic 42, cognitive 55) dsh-desktop/plugin-updater.ts:401 — applyBuiltinPluginUpdateInner has cyclomatic complexity 42 and cognitive complexity 55; 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 GitHubLoginDialog (cyclomatic 42, cognitive 52) · ×1
  • Complex function GitHubLoginDialog (cyclomatic 42, cognitive 52) launcher/src/github-login.tsx:38 — GitHubLoginDialog has cyclomatic complexity 42 and cognitive complexity 52; 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 · REDACTED · ×1
  • REDACTED: 6385 lines of code REDACTED:1 — REDACTED has 6385 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js: 4961 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js has 4961 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 · REDACTED · ×1
  • REDACTED: 2857 lines of code REDACTED:1 — REDACTED has 2857 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js: 2570 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-manifest.js has 2570 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 · dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js · ×1
  • dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js: 2421 lines of code dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1 — dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js has 2421 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 · REDACTED · ×1
  • REDACTED: 2279 lines of code REDACTED:1 — REDACTED has 2279 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-player.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-player.js: 1807 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-player.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/scene-player.js has 1807 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 · dsh-desktop/lib/desktop/companion-sync.ts · ×1
  • dsh-desktop/lib/desktop/companion-sync.ts: 1507 lines of code dsh-desktop/lib/desktop/companion-sync.ts:1 — dsh-desktop/lib/desktop/companion-sync.ts has 1507 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 · tauri-shell/sidecar/bridge.ts · ×1
  • tauri-shell/sidecar/bridge.ts: 1497 lines of code tauri-shell/sidecar/bridge.ts:1 — tauri-shell/sidecar/bridge.ts has 1497 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js: 1468 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/pkg-extract.js has 1468 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 · REDACTED · ×1
  • REDACTED: 1347 lines of code REDACTED:1 — REDACTED has 1347 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 · dsh-desktop/client-updater.ts · ×1
  • dsh-desktop/client-updater.ts: 1310 lines of code dsh-desktop/client-updater.ts:1 — dsh-desktop/client-updater.ts has 1310 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js: 1269 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js has 1269 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 · tauri-shell/sidecar/server.ts · ×1
  • tauri-shell/sidecar/server.ts: 1174 lines of code tauri-shell/sidecar/server.ts:1 — tauri-shell/sidecar/server.ts has 1174 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 · dsh-desktop/assets/plugins/dsh-wechat/client.js · ×1
  • dsh-desktop/assets/plugins/dsh-wechat/client.js: 1155 lines of code dsh-desktop/assets/plugins/dsh-wechat/client.js:1 — dsh-desktop/assets/plugins/dsh-wechat/client.js has 1155 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 · dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js · ×1
  • dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js: 1047 lines of code dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js:1 — dsh-desktop/assets/plugins/dsh-unified-market/lib/client.js has 1047 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js: 976 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js has 976 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 · dsh-desktop/plugin-guard.ts · ×1
  • dsh-desktop/plugin-guard.ts: 859 lines of code dsh-desktop/plugin-guard.ts:1 — dsh-desktop/plugin-guard.ts has 859 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js: 821 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/adapter.js has 821 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 · REDACTED · ×1
  • REDACTED: 810 lines of code REDACTED:1 — REDACTED has 810 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js: 794 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/font-render.js has 794 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js: 792 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js has 792 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 · dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js · ×1
  • dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js: 772 lines of code dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js:1 — dsh-desktop/assets/plugins/dsh-client-file-changes/lib/client.js has 772 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js: 754 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/core.js has 754 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 · tauri-shell/portable-path-shrink.mjs · ×1
  • tauri-shell/portable-path-shrink.mjs: 752 lines of code tauri-shell/portable-path-shrink.mjs:1 — tauri-shell/portable-path-shrink.mjs has 752 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js: 693 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/aggregate.js has 693 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js: 687 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/model.js has 687 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 · tauri-shell/stage-resources.mjs · ×1
  • tauri-shell/stage-resources.mjs: 655 lines of code tauri-shell/stage-resources.mjs:1 — tauri-shell/stage-resources.mjs has 655 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js: 637 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/puppet.js has 637 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 · dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js · ×1
  • dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js: 634 lines of code dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js:1 — dsh-desktop/assets/plugins/dsh-eac-locale-compat/lib/client.js has 634 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js: 620 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/transpile.js has 620 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 · dsh-desktop/lib/desktop/environment.ts · ×1
  • dsh-desktop/lib/desktop/environment.ts: 619 lines of code dsh-desktop/lib/desktop/environment.ts:1 — dsh-desktop/lib/desktop/environment.ts has 619 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 · dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js · ×1
  • dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js: 617 lines of code dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js:1 — dsh-desktop/assets/plugins/dsh-easy-setup/lib/client.js has 617 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js: 573 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/catalog.js has 573 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 · dsh-desktop/updater.ts · ×1
  • dsh-desktop/updater.ts: 566 lines of code dsh-desktop/updater.ts:1 — dsh-desktop/updater.ts has 566 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js: 560 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/http.js has 560 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 · REDACTED · ×1
  • REDACTED: 541 lines of code REDACTED:1 — REDACTED has 541 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 · dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js · ×1
  • dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js: 541 lines of code dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js:1 — dsh-desktop/assets/plugins/dsh-our-free-model/src/upstream.js has 541 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 · dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js · ×1
  • dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js: 533 lines of code dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js:1 — dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js has 533 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 · dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js · ×1
  • dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js: 518 lines of code dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js:1 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/particles.js has 518 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 · No lint script · ×1
  • No lint script — test ✓ · lint ✗ · typecheck ✓ — read from this repository's REDACTED scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
R7 · Dead Code · Dead file (~334 LoC) · ×1
  • Dead file (~334 LoC) dsh-desktop/scripts/fetch-kernel.ts — no import path from any entry point (331 application, 34 tooling, 117 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 (~239 LoC) · ×1
  • Dead file (~239 LoC) dsh-desktop/scripts/repair-session-log.js — no import path from any entry point (331 application, 34 tooling, 117 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 (~177 LoC) · ×1
  • Dead file (~177 LoC) dsh-desktop/scripts/gen-kernel-overrides.ts — no import path from any entry point (331 application, 34 tooling, 117 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 (~101 LoC) · ×1
  • Dead file (~101 LoC) launcher/scripts/verify-backend.mjs — no import path from any entry point (331 application, 34 tooling, 117 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 (~89 LoC) · ×1
  • Dead file (~89 LoC) dsh-desktop/scripts/check-syntax.ts — no import path from any entry point (331 application, 34 tooling, 117 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 (~74 LoC) · ×1
  • Dead file (~74 LoC) launcher/scripts/render-brand.mjs — no import path from any entry point (331 application, 34 tooling, 117 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 (~62 LoC) · ×1
  • Dead file (~62 LoC) dsh-desktop/scripts/update-check-probe.js — no import path from any entry point (331 application, 34 tooling, 117 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 (~56 LoC) · ×1
  • Dead file (~56 LoC) dsh-desktop/lib/state.ts — no import path from any entry point (331 application, 34 tooling, 117 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 (~31 LoC) · ×1
  • Dead file (~31 LoC) dsh-desktop/lib/log.ts — no import path from any entry point (331 application, 34 tooling, 117 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 (~27 LoC) · ×1
  • Dead file (~27 LoC) dsh-desktop/scripts/eac-cli.ts — no import path from any entry point (331 application, 34 tooling, 117 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
R8 · Dependency Hygiene · Unused dependency 'archiver' · ×1
  • Unused dependency 'archiver' dsh-desktop/package.json:46 — Declared in dsh-desktop/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'nanoid' · ×1
  • Unused dependency 'nanoid' dsh-desktop/package.json:49 — Declared in dsh-desktop/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'pino' · ×1
  • Unused dependency 'pino' dsh-desktop/package.json:50 — Declared in dsh-desktop/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'web-push' · ×1
  • Unused dependency 'web-push' dsh-desktop/package.json:53 — Declared in dsh-desktop/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'werift' · ×1
  • Unused dependency 'werift' dsh-desktop/assets/plugins/ds-harness-remote/package.json:78 — Declared in dsh-desktop/assets/plugins/ds-harness-remote/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'ws' · ×1
  • Unused dependency 'ws' dsh-desktop/assets/plugins/ds-harness-remote/package.json:80 — Declared in dsh-desktop/assets/plugins/ds-harness-remote/package.json but never imported anywhere in that package or its workspace members — while dsh-desktop/scripts/e2e-full.js DOES import it and no REDACTED above that file declares it, so the import resolves through the copy this declaration installs. The declaration is misplaced rather than dead: removing it breaks that import. Move it to the REDACTED that owns the importing file (or, if the two packages are meant to share it, hoist it to the workspace root) rather than deleting it.
R8 · Dependency Hygiene · Unused dependency 'jose' · ×1
  • Unused dependency 'jose' REDACTED:75 — Declared in REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
X14 · Bypassable address classification · IP classification is bypassable through an IPv4-in-IPv6 embedding · ×1
  • IP classification is bypassable through an IPv4-in-IPv6 embedding launcher/src-tauri/src/network.rs:67 — This function unwraps IPv4-MAPPED IPv6 (`to_ipv4_mapped`, line 68) and then rejects `169.254.0.0/16` on its IPv4 path — but the IPv6 decision at line 67 classifies the address as written, and IPv4 reaches IPv6 through three MORE embeddings this function never mentions: IPv4-compatible (`::a.b.c.d`), 6to4 (`2002::/16`) and NAT64 (`64:ff9b::/96`). So `::169.254.169.254`, `2002:a9fe:a9fe::` and `64:ff9b::169.254.0.0` all name a host inside `169.254.0.0/16` — the range this same function declares non-public — and all reach the IPv6 decision un-unwrapped, taking the opposite verdict. Unwrap every embedding to its IPv4 form before classifying, or reject any IPv6 address carrying an embedded IPv4 outright.
X19 · Unrestored process-global state · Process-global state is restored only on the happy path · ×1
  • Process-global state is restored only on the happy path dsh-desktop/scripts/update-check-probe.js:12 — this arrow function changes state that belongs to the whole PROCESS and changes it back at the end of the same body — the `PORTABLE_EXECUTABLE_DIR` environment variable (set at line 21, cleared at line 23) — which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a `finally`, so it is skipped by any exception thrown in between — or by a promise that rejects at an `await`, and while this function is suspended at one every other callback the event loop runs sees the moved value too: the process then keeps the overwritten value for the rest of its life, and every later relative path, child-process launch or config read in ANY module resolves against it. That failure is silent and remote from its cause — the function that breaks is not the function that moved the directory. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it — the `cwd` and `env` options of `child_process.spawn`/`exec`/`execSync` (or `Deno.Command`) scope both to the CHILD — or build absolute paths with `path.resolve`. Where the global genuinely must move, wrap it `try`/`finally` so the restore runs on every path.
Minor — 132 finding(s)
M4 · Documentation accuracy · README/code drift · ×40
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:66 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/dsh-tui.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/dsh-tui.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:110 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `apps/server/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/apps/server/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:133 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `apps/android/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/apps/android/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:173 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/acp-integration.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/acp-integration.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:181 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/end-to-end-encryption.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/end-to-end-encryption.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:189 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/network.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/network.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:205 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `packages/plugin/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/packages/plugin/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:207 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/codex-remote.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/codex-remote.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:208 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/acp-remote.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/acp-remote.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:209 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/README.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:212 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/protocol.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/protocol.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:213 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/TODO.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/TODO.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:214 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/CHANGELOG.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/CHANGELOG.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:215 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/PRIVACY.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/PRIVACY.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/ds-harness-remote/README.md:216 — dsh-desktop/assets/plugins/ds-harness-remote/README.md links to `docs/compatibility.md`, but `dsh-desktop/assets/plugins/ds-harness-remote/docs/compatibility.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-our-free-model/README.md:6 — dsh-desktop/assets/plugins/dsh-our-free-model/README.md links to `README_EN.md`, but `dsh-desktop/assets/plugins/dsh-our-free-model/README_EN.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-our-free-model/README.md:112 — dsh-desktop/assets/plugins/dsh-our-free-model/README.md links to `packages/standalone/README.md`, but `dsh-desktop/assets/plugins/dsh-our-free-model/packages/standalone/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:33 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/showcase.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/showcase.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:237 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/features.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/features.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:241 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/wallpaper-library.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/wallpaper-library.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:288 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/compact-wallpaper-library.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/compact-wallpaper-library.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:292 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/vinyl-record.gif`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/vinyl-record.gif` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:374 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/liquid-glass-window.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/liquid-glass-window.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:467 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `docs/images/better-sidebar.png`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/docs/images/better-sidebar.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md:492 — dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/README.en.md links to `CONTRIBUTING.md`, but `dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/CONTRIBUTING.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • + 15 more in this group — see findings.md.
X7 · Silent fallback defaults · Silent fallback default in catch · ×38
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-boot-animation/lib/host/index.js:76 — `readVersion` swallows every exception into `return '0'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-easy-setup/lib/index.js:59 — `readText` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:273 — `pathFromStaticUrl` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:776 — `outletLabel` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-our-free-model/src/route/classify.js:271 — `bodyTextOf` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-our-free-model/src/anthropic.js:634 — `parseInput` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:956 — `executableCalls` swallows every exception into `return false` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-our-free-model/src/feed.js:208 — `readDisk` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:837 — `currentVersion` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:846 — `loadHistory` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-our-free-model/src/updater.js:130 — `verifyManifestSignature` swallows every exception into `return false` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:76 — `readPackageVersion` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:152 — `wslSteamRootsP` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:213 — `librariesFromVdfP` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:395 — `readPlaylistsP` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:459 — `readConfig` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:1613 — `readUploadMeta` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:1652 — `enumerateUploadsP` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-unified-market/lib/allow-builds.mjs:86 — `readAllowBuilds` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:970 — `loadEacRecommendations` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1183 — `readProfileDeps` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1198 — `readBuiltinPlugins` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1651 — `loadAutoState` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/bundle-integrity.ts:39 — `countFiles` swallows every exception into `return 0` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch dsh-desktop/client-updater.ts:1306 — `backupDirTimestampMs` swallows every exception into `return 0` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • + 13 more in this group — see findings.md.
P2 · Observability · Console output used as the logging channel · ×5
  • Console output used as the logging channel dsh-desktop/client-updater.ts:1035 — `dsh-desktop/client-updater.ts` reports through `console.*` at line 1035 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel dsh-desktop/lib/desktop/companion-sync.ts:162 — `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 162 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel dsh-desktop/lib/desktop/companion-sync.ts:259 — `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 259 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel dsh-desktop/lib/desktop/companion-sync.ts:420 — `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 420 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel dsh-desktop/lib/desktop/companion-sync.ts:494 — `dsh-desktop/lib/desktop/companion-sync.ts` reports through `console.*` at line 494 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
X4 · Structured logging · Interpolated log message defeats structured logging · ×4
  • Interpolated log message defeats structured logging dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:101 — `warn` at line 101 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way.
  • Interpolated log message defeats structured logging dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:112 — `warn` at line 112 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way.
  • Interpolated log message defeats structured logging dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:135 — `info` at line 135 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.info({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.info('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way.
  • Interpolated log message defeats structured logging dsh-desktop/assets/plugins/dsh-eac-core-bridge/index.js:194 — `warn` at line 194 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way.
IC1 · Incompleteness & stubs · Empty method body · ×3
  • Empty method body dsh-desktop/assets/plugins/dsh-client-file-changes/lib/index.js:6 — `apply` has an empty body — confirm it's an intentional no-op and not an unfinished method.
  • Empty method body dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:46 — `step` has an empty body — confirm it's an intentional no-op and not an unfinished method.
  • Empty method body dsh-desktop/assets/plugins/dsh-our-free-model/src/forward.js:46 — `setOutcome` has an empty body — confirm it's an intentional no-op and not an unfinished method.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×2
  • Hand-rolled JSON/XML parsing via regex dsh-desktop/scripts/check-manifest-drift.mjs:31 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex dsh-desktop/assets/plugins/dsh-our-free-model/src/probe.js:75 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
X7 · Silent fallback defaults · Silent fallback default on Err · ×2
  • Silent fallback default on Err dsh-desktop/native/snapshot/src/store.rs:84 — `load_index` turns every `Err` into `DiskIndex::default()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing.
  • Silent fallback default on Err tauri-shell/src/main.rs:4312 — `log_web_origin` turns every `Err` into `"[invalid URL]".to_string()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 10 significant file(s) lose their only recent owner: tauri-shell/src/native_devtools.rs, dsh-desktop/lib/desktop/update-linux.ts, dsh-desktop/lib/desktop/update-linux-helper.ts, dsh-desktop/lib/bundle-identity.ts, dsh-desktop/lib/desktop/update-appimage.ts, dsh-desktop/lib/desktop/update-linux-root.ts, dsh-desktop/lib/desktop/update-appimage-helper.ts, tauri-shell/stage-node-modules.mjs (+2 more). Pair on, review, or document these before any departure.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (11 single-owned of 256 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 256 of the 323 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: dsh-desktop/session-watcher.ts.
D24 · Comment Value · redundant comment · ×1
  • redundant comment dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/client.js:1799 — "Wallpaper blur strength in px (blurs the wallpaper itself)." repeats the code it sits on: 4 of its 5 words (wallpaper, blur, px, blurs) are already in `s.setProperty("--we-wallpaper-blur", selection.wallpaperBlur + "px");`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion dsh-desktop/package.json:1 — `dsh-desktop` (23468 LoC, 199 module-visible types across 5 directories) overshoots its size bounds. 1 of 36 build unit(s) (Cargo, npm) overshoot their size bounds, lowering Project Cohesion to 9.4/10. 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.
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 2/7 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `dsh-desktop/assets/plugins/ds-harness-remote`, `dsh-desktop/assets/plugins/dsh-our-free-model`, `launcher`, `launcher/src-tauri`, `tauri-shell`.
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/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 2 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 dsh-desktop/assets/plugins/ds-harness-remote/package.json:75 — `dsh-desktop/assets/plugins/ds-harness-remote/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`.
R7 · Dead Code · Unused export 'OFFICIAL_SOURCE_PIN' · ×1
  • Unused export 'OFFICIAL_SOURCE_PIN' dsh-desktop/lib/desktop/welcome-account.ts:27 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'EAC_WORDMARK' · ×1
  • Unused export 'EAC_WORDMARK' dsh-desktop/lib/desktop/welcome-account.ts:50 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'EAC_WELCOME_WINDOW' · ×1
  • Unused export 'EAC_WELCOME_WINDOW' dsh-desktop/lib/desktop/welcome-account.ts:76 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'WELCOME_IPC' · ×1
  • Unused export 'WELCOME_IPC' dsh-desktop/lib/desktop/welcome-account.ts:94 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'WELCOME_PAGES' · ×1
  • Unused export 'WELCOME_PAGES' dsh-desktop/lib/desktop/welcome-account.ts:106 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'needsWelcome' · ×1
  • Unused export 'needsWelcome' dsh-desktop/lib/desktop/welcome-account.ts:155 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'OFFICIAL_ACCOUNT_SURFACE' · ×1
  • Unused export 'OFFICIAL_ACCOUNT_SURFACE' dsh-desktop/lib/desktop/welcome-account.ts:296 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'createOfficialHostAdapter' · ×1
  • Unused export 'createOfficialHostAdapter' dsh-desktop/lib/desktop/welcome-account.ts:360 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'patchSessionManage021' · ×1
  • Unused export 'patchSessionManage021' dsh-desktop/scripts/patch-session-manage-021.ts:217 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'PixelArtwork' · ×1
  • Unused export 'PixelArtwork' launcher/src/components.tsx:148 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'refKind' · ×1
  • Unused export 'refKind' launcher/src/pack-share.ts:37 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'isPackFileName' · ×1
  • Unused export 'isPackFileName' launcher/src/pack-share.ts:141 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'makeBootFailureRecorder' · ×1
  • Unused export 'makeBootFailureRecorder' tauri-shell/sidecar/capability-stubs.ts:12 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused module-local declaration 'sealedShards' · ×1
  • Unused module-local declaration 'sealedShards' dsh-desktop/assets/plugins/dsh-our-free-model/src/vault.js:97 — 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 'makeVarying' · ×1
  • Unused module-local declaration 'makeVarying' dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/executor.js:53 — 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 'same' · ×1
  • Unused module-local declaration 'same' dsh-desktop/assets/plugins/dsh-plugin-wallpaper-engine/lib/we-renderer/glsl/runtime.js:8 — 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 'SELF_NAME' · ×1
  • Unused module-local declaration 'SELF_NAME' dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1531 — 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 'packCliPath' · ×1
  • Unused module-local declaration 'packCliPath' dsh-desktop/assets/plugins/dsh-unified-market/lib/host.js:1868 — 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 'OWN_COMMENT_PREFIX' · ×1
  • Unused module-local declaration 'OWN_COMMENT_PREFIX' dsh-desktop/assets/plugins/dsh-unified-market/lib/profile-sync.mjs: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 'isDisabledBlock' · ×1
  • Unused module-local declaration 'isDisabledBlock' dsh-desktop/assets/plugins/dsh-unified-market/lib/profile-sync.mjs:87 — 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 'blockName' · ×1
  • Unused module-local declaration 'blockName' dsh-desktop/assets/plugins/dsh-unified-market/lib/profile-sync.mjs:92 — 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 'seqOf' · ×1
  • Unused module-local declaration 'seqOf' dsh-desktop/scripts/analyze-session-log.js:86 — 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 'sleep' · ×1
  • Unused module-local declaration 'sleep' dsh-desktop/scripts/sim-client-update.js: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 'readIfExists' · ×1
  • Unused module-local declaration 'readIfExists' dsh-desktop/test/eac-kernel-source.test.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.
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 39/66 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) 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.
X5 · Nullable reference types · Null assertions (`!`) override strict null checking · ×1
  • Null assertions (`!`) override strict null checking — ~8.7 `!` null assertions per 1k TypeScript source lines — 214 assertion(s) across the 24683 source line(s) of the 97 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: tauri-shell/sidecar/server.ts (14), dsh-desktop/builtin-collision.ts (13), dsh-desktop/lib/desktop/update-linux.ts (13). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
Minor — 8 finding(s)
D12 · Dependency Hygiene · Outdated · ×7
  • Outdated: libc — `libc` is locked at 0.2.189 but 0.2.191 is the current stable release on crates.io, and it already satisfies the `"0.2"` requirement declared in launcher/src-tauri/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p libc` and commit the updated REDACTED.
  • Outdated: serde_json — `serde_json` is locked at 1.0.151 but 1.0.154 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in tauri-shell/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p serde_json` and commit the updated REDACTED.
  • Outdated: tauri — `tauri` is locked at 2.11.5 but 2.12.6 is the current stable release on crates.io, and it already satisfies the `"2"` requirement declared in tauri-shell/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tauri` and commit the updated REDACTED.
  • Outdated: tauri-build — `tauri-build` is locked at 2.6.3 but 2.7.5 is the current stable release on crates.io, and it already satisfies the `"2"` requirement declared in tauri-shell/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tauri-build` and commit the updated REDACTED.
  • Outdated: tauri-plugin-single-instance — `tauri-plugin-single-instance` is locked at 2.4.3 but 2.5.5 is the current stable release on crates.io, and it already satisfies the `"2"` requirement declared in tauri-shell/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tauri-plugin-single-instance` and commit the updated REDACTED.
  • Outdated: tokio — `tokio` is locked at 1.53.1 but 1.54.1 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in tauri-shell/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tokio` and commit the updated REDACTED.
  • Outdated: uuid — `uuid` is locked at 1.24.1 but 1.29.3 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in launcher/src-tauri/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p uuid` and commit the updated REDACTED.
D24 · Comment Value · doc comments repeat the names · ×1
  • doc comments repeat the names dsh-desktop/patch-row-heal.ts:199 — 1 of 8 documented parameters and 0 of 20 summaries in `dsh-desktop` only repeat the member or parameter name (e.g. "`<profile>/node_modules`." for `profileNodeModules`). Delete the restating tags, or add what the name does not say.

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/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-11c6a0498a074289bc80f9547eee966f/history.json --exit-code 0 --source .16artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=213" --report-format json --report-path /tmp/watchdog-gitleaks-11c6a0498a074289bc80f9547eee966f/history-1.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=413 --max-count=364" --report-format json --report-path /tmp/watchdog-gitleaks-11c6a0498a074289bc80f9547eee966f/history-2.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-2.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=777 --max-count=97" --report-format json --report-path /tmp/watchdog-gitleaks-11c6a0498a074289bc80f9547eee966f/history-3.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-3.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-11c6a0498a074289bc80f9547eee966f/tree.json --exit-code 0 --source .9artifacts/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/canine-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 .38artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .37artifacts/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. semgrep could not parse 4 file(s) — `REDACTED`, `dsh-desktop/assets/plugins/dsh-wechat/lib/services.d.ts`, `launcher/src/App.tsx`, `tauri-shell/sidecar/server.ts` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.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/** .0artifacts/raw/trivy-fs.json

Run 01a1e717-b425-787c-b390-94322f102835 · 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