Public report of CesiumGS/cesium, published 15 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, 15 November 2026, 05:11 UTC · Survey ID cd_f869296a23a94c5f87ff5dd3caecfb0a

CesiumGS/cesium

Measured 15 November 2026, 05:08 UTC, at code version 95021cb

Supply-chain provenance & signing is not measured: Supply-chain provenance is not scored (this pipeline releases no artifact), but its build steps or GitHub Actions workflows have integrity defects, or nothing watches its dependency set for published advisories.

CAI score 35out of 100 Weak
CriticalWeakAdequateStrongExemplary
No change since the last survey

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

A large codebase: 430,790 lines of product code in 8 projects, tests not counted · Estimated rebuild effort: about 4.4 person-years · Weakest lens: Security and Compliance, 31

Findings by how serious they are

413 critical 2012 serious 553 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
15 November 2026, 05:08 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.

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 ▸

73of 73 dimensions measured by tools.
2953of 2978 findings point to an exact file and line, so you can open each one in the code. The other 25 concern the repository as a whole, such as missing documentation.
73dimensions across 7 lenses, read from 430,790 lines of product code in 8 projects.
Chapters

Executive summary

CesiumGS/cesium falls short of our standard for production, in part because we found no access checks on the code's endpoints or handlers. It scores 35 out of 100 and is rated Weak, and 295 of its 413 critical findings are security problems.

Security and Compliance, at 31, is the weakest lens by a small margin, and the weakest lens counts most in the score. The best first step for the work it takes is fixing the two places where the code runs text as code or as a command, worth about 1 point. Adding access checks would lift Security and Compliance itself, worth about 4 points.

270 passwords or keys are open to anyone who can read the repository. Sixteen pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with, and forty-three parts of the code are no longer understood by anyone working on it. Replacing each exposed password or key, pinning each tool to an exact version and having someone learn the forgotten files would close these risks. Correcting the flagged pipeline settings would fix the four weaknesses in the build pipeline's configuration, and setting a waiting period for automatic updates would deal with the two automatic dependency updates that take new releases at once. The 40 form fields without a label need a label.

The product code is 430,790 lines, about €640,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 31 · counts for 46%Accessibility 32 · counts for 25%Production Readiness 34 · counts for 14%Code Health 38 · counts for 8%Performance 60 · counts for 4%Maturity 65 · counts for 2%Architecture 66 · counts for 1%

The weakest lenses score close to each other, so improving any of them moves the score.

Code composition: what the lines of code are
Product code 57%Tests 43%
New since the last survey: 159 findings

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

  • Cyclomatic Complexity · update (cyclomatic 89) packages/engine/Source/Scene/GaussianSplatPrimitive.js
  • Cyclomatic Complexity · EllipsoidGeometry.createGeometry (cyclomatic 69) packages/core/Source/EllipsoidGeometry.js
  • Cyclomatic Complexity · Cesium3DTileset (cyclomatic 69) packages/engine/Source/Scene/Cesium3DTileset.js
  • Cyclomatic Complexity · EllipsoidOutlineGeometry.createGeometry (cyclomatic 42) packages/core/Source/EllipsoidOutlineGeometry.js
  • Cyclomatic Complexity · CylinderGeometry.createGeometry (cyclomatic 40) packages/core/Source/CylinderGeometry.js
  • Cyclomatic Complexity · PolylineGeometry.createGeometry (cyclomatic 39) packages/core/Source/PolylineGeometry.js
  • Cyclomatic Complexity · TimeIntervalCollection.addInterval (cyclomatic 38) packages/core/Source/TimeIntervalCollection.js
  • Cyclomatic Complexity · EntityCluster.createDeclutterCallback.<returned closure> (cyclomatic 35) packages/engine/Source/DataSources/EntityCluster.js
  • Cyclomatic Complexity · createDeclutterCallback (cyclomatic 35) packages/engine/Source/DataSources/EntityCluster.js
  • Cyclomatic Complexity · TimeIntervalCollection.removeInterval (cyclomatic 32) packages/core/Source/TimeIntervalCollection.js
  • Cyclomatic Complexity · WallGeometry.createGeometry (cyclomatic 28) packages/core/Source/WallGeometry.js
  • Cyclomatic Complexity · Material.createTexture2DUpdateFunction.<returned closure> (cyclomatic 27) REDACTED
  • Cyclomatic Complexity · createTexture2DUpdateFunction (cyclomatic 27) REDACTED
  • Cyclomatic Complexity · SimplePolylineGeometry.createGeometry (cyclomatic 23) packages/core/Source/SimplePolylineGeometry.js
  • Cyclomatic Complexity · Expression.getEvaluateTernaryComponentwise.<returned closure> (cyclomatic 23) REDACTED
  • Cyclomatic Complexity · getEvaluateTernaryComponentwise (cyclomatic 23) REDACTED
  • Cyclomatic Complexity · KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> (cyclomatic 22) REDACTED
  • Cyclomatic Complexity · TimeInterval.intersect (cyclomatic 21) packages/core/Source/TimeInterval.js
  • Cyclomatic Complexity · constructor (cyclomatic 21) packages/core/Source/PolygonGeometry.js
  • Cyclomatic Complexity · PolygonGeometry.createGeometry (cyclomatic 20) packages/core/Source/PolygonGeometry.js
  • Cyclomatic Complexity · Vector3DTileContent.update (cyclomatic 19) packages/engine/Source/Scene/Vector3DTileContent.js
  • Cyclomatic Complexity · GaussianSplatPrimitive.processGeneratedSplatTextureData (cyclomatic 19) packages/engine/Source/Scene/GaussianSplatPrimitive.js
  • Cyclomatic Complexity · Spline.findTimeInterval (cyclomatic 18) packages/core/Source/Spline.js
  • Cyclomatic Complexity · updateHeight (cyclomatic 17) packages/engine/Source/Scene/Scene.js
  • Cyclomatic Complexity · TimeIntervalCollection.intersect (cyclomatic 16) packages/core/Source/TimeIntervalCollection.js
  • Cyclomatic Complexity · Picking.addDrillPickedResults (cyclomatic 16) packages/engine/Source/Scene/Picking.js
  • Cyclomatic Complexity · toolRegistry.createApplyDiffHandler.<returned closure> (cyclomatic 16) packages/sandcastle/src/copilot/ai/tools/toolRegistry.ts
  • Cyclomatic Complexity · commitSnapshot (cyclomatic 16) packages/engine/Source/Scene/GaussianSplatPrimitive.js
  • Cognitive Complexity · update (cognitive 181) packages/engine/Source/Scene/GaussianSplatPrimitive.js
  • Cognitive Complexity · createGeometry (cognitive 112) packages/core/Source/EllipsoidGeometry.js
  • Cognitive Complexity · PolylineGeometry.createGeometry (cognitive 79) packages/core/Source/PolylineGeometry.js
  • Cognitive Complexity · EntityCluster.createDeclutterCallback.<returned closure> (cognitive 73) packages/engine/Source/DataSources/EntityCluster.js
  • Cognitive Complexity · createDeclutterCallback (cognitive 73) packages/engine/Source/DataSources/EntityCluster.js
  • Cognitive Complexity · Cesium3DTileset (cognitive 69) packages/engine/Source/Scene/Cesium3DTileset.js
  • Cognitive Complexity · CylinderGeometry.createGeometry (cognitive 67) packages/core/Source/CylinderGeometry.js
  • Cognitive Complexity · EllipsoidOutlineGeometry.createGeometry (cognitive 60) packages/core/Source/EllipsoidOutlineGeometry.js
  • Cognitive Complexity · SimplePolylineGeometry.createGeometry (cognitive 50) packages/core/Source/SimplePolylineGeometry.js
  • Cognitive Complexity · WallGeometry.createGeometry (cognitive 49) packages/core/Source/WallGeometry.js
  • Cognitive Complexity · PolygonGeometry.createGeometry (cognitive 37) packages/core/Source/PolygonGeometry.js
  • Cognitive Complexity · GaussianSplat3DTileContent.update (cognitive 36) packages/engine/Source/Scene/GaussianSplat3DTileContent.js
  • Cognitive Complexity · Material.createTexture2DUpdateFunction.<returned closure> (cognitive 35) REDACTED
  • Cognitive Complexity · KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> (cognitive 34) REDACTED
  • Cognitive Complexity · TimeIntervalCollection.removeInterval (cognitive 31) packages/core/Source/TimeIntervalCollection.js
  • Cognitive Complexity · Clock.tick (cognitive 26) packages/core/Source/Clock.js
  • Cognitive Complexity · Spline.findTimeInterval (cognitive 25) packages/core/Source/Spline.js
  • Cognitive Complexity · Vector3DTileContent.update (cognitive 22) packages/engine/Source/Scene/Vector3DTileContent.js
  • Cognitive Complexity · GeoJsonPrimitive.createGeoJsonCollections (cognitive 22) packages/engine/Source/Scene/GeoJsonPrimitive.js
  • Cognitive Complexity · Expression.getEvaluateTernaryComponentwise.<returned closure> (cognitive 19) REDACTED
  • Cognitive Complexity · toolRegistry.createApplyDiffHandler.<returned closure> (cognitive 19) packages/sandcastle/src/copilot/ai/tools/toolRegistry.ts
  • Cognitive Complexity · Timeline.createTouchMoveCallback.<returned closure> (cognitive 19) packages/widgets/Source/Timeline/Timeline.js
  • Cognitive Complexity · createTouchMoveCallback (cognitive 19) packages/widgets/Source/Timeline/Timeline.js
  • Cognitive Complexity · BoxGeometry.createGeometry (cognitive 18) packages/core/Source/BoxGeometry.js
  • Cognitive Complexity · constructor (cognitive 18) packages/core/Source/PolygonGeometry.js
  • Cognitive Complexity · FixedFrameTransforms.FixedFrameTransforms.localFrameToFixedFrameGenerator.resultat (cognitive 17) packages/core/Source/FixedFrameTransforms.js
  • Cognitive Complexity · updateHeight (cognitive 16) packages/engine/Source/Scene/Scene.js
  • God Classes · MethodTooLong: BoxGeometry.createGeometry packages/core/Source/BoxGeometry.js
  • God Classes · MethodTooLong: EllipsoidGeometry.createGeometry packages/core/Source/EllipsoidGeometry.js
  • God Classes · MethodTooLong: PolylineGeometry.createGeometry packages/core/Source/PolylineGeometry.js
  • God Classes · FunctionTooLong: EntityCluster.createDeclutterCallback.<returned closure> packages/engine/Source/DataSources/EntityCluster.js
  • God Classes · MethodTooLong: CylinderGeometry.createGeometry packages/core/Source/CylinderGeometry.js
  • God Classes · MethodTooLong: WallGeometry.createGeometry packages/core/Source/WallGeometry.js
  • God Classes · MethodTooLong: PolygonGeometry.createGeometry packages/core/Source/PolygonGeometry.js
  • God Classes · MethodTooLong: EllipsoidOutlineGeometry.createGeometry packages/core/Source/EllipsoidOutlineGeometry.js
  • God Classes · MethodTooLong: SimplePolylineGeometry.createGeometry packages/core/Source/SimplePolylineGeometry.js
  • God Classes · ClassTooLong: Quaternion packages/core/Source/Quaternion.js
  • God Classes · ClassTooLong: BoxGeometry packages/core/Source/BoxGeometry.js
  • God Classes · MethodTooLong: TimeIntervalCollection.addInterval packages/core/Source/TimeIntervalCollection.js
  • God Classes · TooManyMethods: Quaternion packages/core/Source/Quaternion.js
  • God Classes · MethodTooLong: CoplanarPolygonGeometry.createGeometry packages/core/Source/CoplanarPolygonGeometry.js
  • God Classes · MethodTooLong: PlaneGeometry.createGeometry packages/core/Source/PlaneGeometry.js
  • God Classes · FunctionTooLong: KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> REDACTED
  • Test Quality · No assertions: listElements must be implemented by a subclass packages/engine/Specs/Scene/ElementServiceSpec.js
  • Test Quality · No assertions: getElement must be implemented by a subclass packages/engine/Specs/Scene/ElementServiceSpec.js
  • Test Quality · No assertions: aggregate must be implemented by a subclass packages/engine/Specs/Scene/ElementServiceSpec.js
  • Test Quality · No assertions: getElementTreeChildren must be implemented by a subclass packages/engine/Specs/Scene/ElementServiceSpec.js
  • Test Quality · No assertions: getElementTreeParents must be implemented by a subclass packages/engine/Specs/Scene/ElementServiceSpec.js
  • Test Quality · No assertions: listElements validates pagination options packages/engine/Specs/Scene/IonAssetElementServiceSpec.js
  • Test Quality · No assertions: aggregate validates propertyKeys packages/engine/Specs/Scene/IonAssetElementServiceSpec.js
  • Test Quality · No assertions: propagates request errors packages/engine/Specs/Scene/IonAssetElementServiceSpec.js
  • Test Quality · No assertions: renders GeoJSON polygons packages/engine/Specs/Scene/VectorGltf3DTileContentSpec.js
  • Churn × Complexity Hotspots · Hotspot: packages/engine/Source/Scene/GaussianSplatPrimitive.js packages/engine/Source/Scene/GaussianSplatPrimitive.js
  • Churn × Complexity Hotspots · Hotspot: packages/sandcastle/src/copilot/ApiKeyDialog.tsx packages/sandcastle/src/copilot/ApiKeyDialog.tsx
  • Churn × Complexity Hotspots · Hotspot: packages/engine/Source/Scene/Picking.js packages/engine/Source/Scene/Picking.js
  • Churn × Complexity Hotspots · Repeated repair: packages/engine/Source/Scene/GaussianSplatRenderResources.js packages/engine/Source/Scene/GaussianSplatRenderResources.js
  • Secrets (history) · REDACTED
  • Secrets (history) · REDACTED
  • Secrets (history) · REDACTED
  • Secrets (history) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED
  • Static Analysis (SAST) · REDACTED

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

Fixed since the last survey: 3985 findings

These 3985 critical or serious findings were in the previous survey, on 29 October 2026, and are gone from this one. The first 100 are listed here.

  • Cyclomatic Complexity · update (cyclomatic 75) packages/engine/Source/Scene/GaussianSplatPrimitive.js
  • Cyclomatic Complexity · EllipsoidGeometry.EllipsoidGeometry.createGeometry (cyclomatic 69) packages/core/Source/EllipsoidGeometry.js
  • Cyclomatic Complexity · Cesium3DTileset (cyclomatic 68) packages/engine/Source/Scene/Cesium3DTileset.js
  • Cyclomatic Complexity · EllipsoidOutlineGeometry.EllipsoidOutlineGeometry.createGeometry (cyclomatic 42) packages/core/Source/EllipsoidOutlineGeometry.js
  • Cyclomatic Complexity · CylinderGeometry.CylinderGeometry.createGeometry (cyclomatic 40) packages/core/Source/CylinderGeometry.js
  • Cyclomatic Complexity · PolylineGeometry.PolylineGeometry.createGeometry (cyclomatic 39) packages/core/Source/PolylineGeometry.js
  • Cyclomatic Complexity · TimeIntervalCollection.TimeIntervalCollection.addInterval (cyclomatic 38) packages/core/Source/TimeIntervalCollection.js
  • Cyclomatic Complexity · EntityCluster.createDeclutterCallback (cyclomatic 35) packages/engine/Source/DataSources/EntityCluster.js
  • Cyclomatic Complexity · publish.publish (cyclomatic 33) Tools/jsdoc/cesium_template/publish.js
  • Cyclomatic Complexity · TimeIntervalCollection.TimeIntervalCollection.removeInterval (cyclomatic 32) packages/core/Source/TimeIntervalCollection.js
  • Cyclomatic Complexity · WallGeometry.WallGeometry.createGeometry (cyclomatic 28) packages/core/Source/WallGeometry.js
  • Cyclomatic Complexity · Material.createTexture2DUpdateFunction (cyclomatic 27) REDACTED
  • Cyclomatic Complexity · SimplePolylineGeometry.SimplePolylineGeometry.createGeometry (cyclomatic 23) packages/core/Source/SimplePolylineGeometry.js
  • Cyclomatic Complexity · Expression.getEvaluateTernaryComponentwise (cyclomatic 23) REDACTED
  • Cyclomatic Complexity · TimeInterval.TimeInterval.intersect (cyclomatic 21) packages/core/Source/TimeInterval.js
  • Cyclomatic Complexity · PolygonGeometry (cyclomatic 21) packages/core/Source/PolygonGeometry.js
  • Cyclomatic Complexity · PolygonGeometry.PolygonGeometry.createGeometry (cyclomatic 20) packages/core/Source/PolygonGeometry.js
  • Cyclomatic Complexity · constructor (cyclomatic 19) packages/engine/Source/Scene/GeoJsonPrimitive.js
  • Cyclomatic Complexity · FixedFrameTransforms.FixedFrameTransforms.localFrameToFixedFrameGenerator (cyclomatic 18) packages/core/Source/FixedFrameTransforms.js
  • Cyclomatic Complexity · Spline.Spline.findTimeInterval (cyclomatic 18) packages/core/Source/Spline.js
  • Cyclomatic Complexity · Scene.Scene.updateHeight (cyclomatic 17) packages/engine/Source/Scene/Scene.js
  • Cyclomatic Complexity · TimeIntervalCollection.TimeIntervalCollection.intersect (cyclomatic 16) packages/core/Source/TimeIntervalCollection.js
  • Cyclomatic Complexity · toolRegistry.createApplyDiffHandler (cyclomatic 16) packages/sandcastle/src/copilot/ai/tools/toolRegistry.ts
  • Cognitive Complexity · update (cognitive 152) packages/engine/Source/Scene/GaussianSplatPrimitive.js
  • Cognitive Complexity · EllipsoidGeometry.EllipsoidGeometry.createGeometry (cognitive 109) packages/core/Source/EllipsoidGeometry.js
  • Cognitive Complexity · PolylineGeometry.PolylineGeometry.createGeometry (cognitive 79) packages/core/Source/PolylineGeometry.js
  • Cognitive Complexity · EntityCluster.createDeclutterCallback (cognitive 73) packages/engine/Source/DataSources/EntityCluster.js
  • Cognitive Complexity · Cesium3DTileset (cognitive 68) packages/engine/Source/Scene/Cesium3DTileset.js
  • Cognitive Complexity · CylinderGeometry.CylinderGeometry.createGeometry (cognitive 67) packages/core/Source/CylinderGeometry.js
  • Cognitive Complexity · EllipsoidOutlineGeometry.EllipsoidOutlineGeometry.createGeometry (cognitive 60) packages/core/Source/EllipsoidOutlineGeometry.js
  • Cognitive Complexity · SimplePolylineGeometry.SimplePolylineGeometry.createGeometry (cognitive 50) packages/core/Source/SimplePolylineGeometry.js
  • Cognitive Complexity · WallGeometry.WallGeometry.createGeometry (cognitive 49) packages/core/Source/WallGeometry.js
  • Cognitive Complexity · publish.publish (cognitive 37) Tools/jsdoc/cesium_template/publish.js
  • Cognitive Complexity · PolygonGeometry.PolygonGeometry.createGeometry (cognitive 37) packages/core/Source/PolygonGeometry.js
  • Cognitive Complexity · TimeIntervalCollection.TimeIntervalCollection.removeInterval (cognitive 31) packages/core/Source/TimeIntervalCollection.js
  • Cognitive Complexity · constructor (cognitive 28) packages/engine/Source/Scene/GeoJsonPrimitive.js
  • Cognitive Complexity · Clock.Clock.tick (cognitive 26) packages/core/Source/Clock.js
  • Cognitive Complexity · Spline.Spline.findTimeInterval (cognitive 25) packages/core/Source/Spline.js
  • Cognitive Complexity · toolRegistry.createApplyDiffHandler (cognitive 19) packages/sandcastle/src/copilot/ai/tools/toolRegistry.ts
  • Cognitive Complexity · Timeline.createTouchMoveCallback (cognitive 19) packages/widgets/Source/Timeline/Timeline.js
  • Cognitive Complexity · BoxGeometry.BoxGeometry.createGeometry (cognitive 18) packages/core/Source/BoxGeometry.js
  • Cognitive Complexity · PolygonGeometry (cognitive 18) packages/core/Source/PolygonGeometry.js
  • Cognitive Complexity · gulpfile.buildTs (cognitive 16) REDACTED
  • Cognitive Complexity · Scene.Scene.updateHeight (cognitive 16) packages/engine/Source/Scene/Scene.js
  • God Classes · FunctionTooLong: BoxGeometry.BoxGeometry.createGeometry packages/core/Source/BoxGeometry.js
  • God Classes · FunctionTooLong: EllipsoidGeometry.EllipsoidGeometry.createGeometry packages/core/Source/EllipsoidGeometry.js
  • God Classes · FunctionTooLong: CylinderGeometry.CylinderGeometry.createGeometry packages/core/Source/CylinderGeometry.js
  • God Classes · FunctionTooLong: WallGeometry.WallGeometry.createGeometry packages/core/Source/WallGeometry.js
  • God Classes · FunctionTooLong: PolygonGeometry.PolygonGeometry.createGeometry packages/core/Source/PolygonGeometry.js
  • God Classes · FunctionTooLong: EllipsoidOutlineGeometry.EllipsoidOutlineGeometry.createGeometry packages/core/Source/EllipsoidOutlineGeometry.js
  • God Classes · FunctionTooLong: publish.publish Tools/jsdoc/cesium_template/publish.js
  • God Classes · FunctionTooLong: SimplePolylineGeometry.SimplePolylineGeometry.createGeometry packages/core/Source/SimplePolylineGeometry.js
  • God Classes · FunctionTooLong: TimeIntervalCollection.TimeIntervalCollection.addInterval packages/core/Source/TimeIntervalCollection.js
  • God Classes · FunctionTooLong: buildSandcastle.buildSandcastleApp scripts/buildSandcastle.js
  • God Classes · FunctionTooLong: CoplanarPolygonGeometry.CoplanarPolygonGeometry.createGeometry packages/core/Source/CoplanarPolygonGeometry.js
  • God Classes · MethodTooLong: GeoJsonPrimitive.constructor packages/engine/Source/Scene/GeoJsonPrimitive.js
  • Churn × Complexity Hotspots · Hotspot: packages/engine/Source/Scene/DynamicEnvironmentMapManager.js packages/engine/Source/Scene/DynamicEnvironmentMapManager.js
  • Secrets (history) · REDACTED: REDACTED Apps/Sandcastle/gallery/development/Many REDACTED
  • Secrets (history) · REDACTED: REDACTED Apps/Sandcastle/gallery/development/NGA GPM Visualization.html
  • Secrets (history) · REDACTED: REDACTED Apps/Sandcastle/gallery/development/Shadows.html
  • Secrets (history) · REDACTED: REDACTED Apps/Sandcastle/gallery/iTwin Demo.html
  • Secrets (history) · REDACTED: REDACTED Apps/Sandcastle/gallery/iTwin Demo.html
  • Secrets (history) · REDACTED: REDACTED Build/Cesium/Cesium.js
  • Secrets (history) · REDACTED: REDACTED Build/CesiumUnminified/Cesium.js
  • Secrets (history) · REDACTED: REDACTED Build/CesiumUnminified/Cesium.js
  • Secrets (history) · REDACTED: REDACTED Build/combineOutput/uglify2/Cesium.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED Examples/Skeleton/Skeleton.js
  • Secrets (history) · REDACTED: REDACTED ThirdParty/dojo-release-1.7.2-src/dojox/data/demos/demo_FlickrRestStore.html
  • Secrets (history) · REDACTED: REDACTED ThirdParty/dojo-release-1.7.2-src/dojox/dtl/demos/demo_Data.html
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
Rebuild cost: about €640,000 · Estimate
Cost to rebuild€210,000 to €1,100,000, for 3,548 to 11,256 hours of work, about 4.4 person-years for 2 to 9 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 35. 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: 430,790 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 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2).
Raises the score by about 1 point · Low effort · Static Analysis (SAST)
2
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
Raises the score by about 4 points · Medium effort · Access Controls
3
Resolve the 1 REDACTED finding(s) charged to Static Analysis (SAST) — the other 15 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once.
Raises the score by about 1 point · Low effort · Static Analysis (SAST)

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 €640,000 to build again, about 4.4 person-years of work. Its weakest lens is Security and Compliance, at 31 (Weak). 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 2 REDACTED finding(s) in Static Analysis (SAST). Of all the actions in this report, it raises the score most for the work it takes: about 1 point for low effort, because it clears the 2 Static Analysis (SAST) 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 5.6 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 6% to 13% on every change. The history of the code shows how much it changes: about 101,012 lines over the last 90 days, which is about 409,660 lines a year. At that pace, the extra work comes to an estimated 61.3 to 367.6 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 · 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 — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.

arch @cesium/core core @cesium/engine engine @cesium/engine->@cesium/core @cesium/gltf gltf @cesium/engine->@cesium/gltf @cesium/gltf->@cesium/core @cesium/sandcastle sandcastle @cesium/widgets widgets @cesium/widgets->@cesium/core @cesium/widgets->@cesium/engine cesium cesium rollup-plugin-strip-pragma rollup-plugin-strip-pragma

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.

498 modules, with 74 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; 458 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 core.Source.Spline2 engine.Source.Scene.BufferPrimitive3 engine.Source.Scene.BufferPrimitiveCollection4 engine.Source.Scene.BufferPrimitiveMaterial5 engine.Source.Scene.ResourceLoader6 sandcastle.src.copilot.ai.types7 sandcastle.src.util.ConsoleWrapper8 core.Source.CatmullRomSpline9 core.Source.ConstantSpline10 core.Source.HermiteSpline11 core.Source.LinearSpline12 core.Source.MorphWeightSpline13 core.Source.QuaternionSpline14 core.Source.SteppedSpline15 engine.Source.Scene.BufferLoader16 engine.Source.Scene.BufferPoint17 engine.Source.Scene.BufferPointCollection18 engine.Source.Scene.BufferPointMaterial19 engine.Source.Scene.BufferPolygon20 engine.Source.Scene.BufferPolygonCollection21 engine.Source.Scene.BufferPolygonMaterial22 engine.Source.Scene.BufferPolyline23 engine.Source.Scene.BufferPolylineCollection24 engine.Source.Scene.BufferPolylineMaterial25 sandcastle.src.copilot.ChatMessage26 sandcastle.src.copilot.ChatPanel27 sandcastle.src.copilot.ToolCallDisplay28 sandcastle.src.copilot.ai.clients29 sandcastle.src.copilot.ai.clients.AIClientFactory30 sandcastle.src.copilot.ai.diff.DiffMatcher31 sandcastle.src.copilot.ai.tools.toolRegistry32 sandcastle.src.copilot.contexts.ModelContext33 sandcastle.src.copilot.hooks.useToolChainExecution34 sandcastle.src.copilot.integrations.ConsoleChatAction35 sandcastle.src.util.IframeBridge36 sandcastle.src.copilot37 sandcastle.src.copilot.ai.clients.VertexAIClient38 sandcastle.src.copilot.ai.diff.RooStyleDiffStrategy39 sandcastle.src.copilot.contexts40 sandcastle.src.copilot.hooks
1 core.Source.Spline
2 engine.Source.Scene.BufferPrimitive
3 engine.Source.Scene.BufferPrimitiveCollection
4 engine.Source.Scene.BufferPrimitiveMaterial
5 engine.Source.Scene.ResourceLoader
6 sandcastle.src.copilot.ai.types
7 sandcastle.src.util.ConsoleWrapper
8 core.Source.CatmullRomSpline1
9 core.Source.ConstantSpline1
10 core.Source.HermiteSpline1
11 core.Source.LinearSpline1
12 core.Source.MorphWeightSpline1
13 core.Source.QuaternionSpline1
14 core.Source.SteppedSpline1
15 engine.Source.Scene.BufferLoader1
16 engine.Source.Scene.BufferPoint1
17 engine.Source.Scene.BufferPointCollection1
18 engine.Source.Scene.BufferPointMaterial1
19 engine.Source.Scene.BufferPolygon1
20 engine.Source.Scene.BufferPolygonCollection1
21 engine.Source.Scene.BufferPolygonMaterial1
22 engine.Source.Scene.BufferPolyline1
23 engine.Source.Scene.BufferPolylineCollection1
24 engine.Source.Scene.BufferPolylineMaterial1
25 sandcastle.src.copilot.ChatMessage1
26 sandcastle.src.copilot.ChatPanel1
27 sandcastle.src.copilot.ToolCallDisplay1
28 sandcastle.src.copilot.ai.clients1
29 sandcastle.src.copilot.ai.clients.AIClientFactory9
30 sandcastle.src.copilot.ai.diff.DiffMatcher3
31 sandcastle.src.copilot.ai.tools.toolRegistry4
32 sandcastle.src.copilot.contexts.ModelContext2
33 sandcastle.src.copilot.hooks.useToolChainExecution1
34 sandcastle.src.copilot.integrations.ConsoleChatAction1
35 sandcastle.src.util.IframeBridge1
36 sandcastle.src.copilot1111
37 sandcastle.src.copilot.ai.clients.VertexAIClient81
38 sandcastle.src.copilot.ai.diff.RooStyleDiffStrategy21
39 sandcastle.src.copilot.contexts11
40 sandcastle.src.copilot.hooks61
Uses a module listed above itPart of a loopThe module itself
1 core.Source.Spline2 engine.Source.Scene.BufferPrimitive3 engine.Source.Scene.BufferPrimitiveCollection4 engine.Source.Scene.BufferPrimitiveMaterial5 engine.Source.Scene.ResourceLoader6 sandcastle.src.copilot.ai.types7 sandcastle.src.util.ConsoleWrapper8 core.Source.CatmullRomSpline9 core.Source.ConstantSpline10 core.Source.HermiteSpline11 core.Source.LinearSpline12 core.Source.MorphWeightSpline13 core.Source.QuaternionSpline14 core.Source.SteppedSpline15 engine.Source.Scene.BufferLoader16 engine.Source.Scene.BufferPoint17 engine.Source.Scene.BufferPointCollection18 engine.Source.Scene.BufferPointMaterial19 engine.Source.Scene.BufferPolygon20 engine.Source.Scene.BufferPolygonCollection21 engine.Source.Scene.BufferPolygonMaterial22 engine.Source.Scene.BufferPolyline23 engine.Source.Scene.BufferPolylineCollection24 engine.Source.Scene.BufferPolylineMaterial25 sandcastle.src.copilot.ChatMessage26 sandcastle.src.copilot.ChatPanel27 sandcastle.src.copilot.ToolCallDisplay28 sandcastle.src.copilot.ai.clients29 sandcastle.src.copilot.ai.clients.AIClientFactory30 sandcastle.src.copilot.ai.diff.DiffMatcher31 sandcastle.src.copilot.ai.tools.toolRegistry32 sandcastle.src.copilot.contexts.ModelContext33 sandcastle.src.copilot.hooks.useToolChainExecution34 sandcastle.src.copilot.integrations.ConsoleChatAction35 sandcastle.src.util.IframeBridge36 sandcastle.src.copilot37 sandcastle.src.copilot.ai.clients.VertexAIClient38 sandcastle.src.copilot.ai.diff.RooStyleDiffStrategy39 sandcastle.src.copilot.contexts40 sandcastle.src.copilot.hookscore.Source.Spline1engine.Source.Scene.BufferPrimitive2engine.Source.Scene.BufferPrimitiveCollection3engine.Source.Scene.BufferPrimitiveMaterial4engine.Source.Scene.ResourceLoader5sandcastle.src.copilot.ai.types6sandcastle.src.util.ConsoleWrapper7core.Source.CatmullRomSpline8core.Source.ConstantSpline9core.Source.HermiteSpline10core.Source.LinearSpline11core.Source.MorphWeightSpline12core.Source.QuaternionSpline13core.Source.SteppedSpline14engine.Source.Scene.BufferLoader15engine.Source.Scene.BufferPoint16engine.Source.Scene.BufferPointCollection17engine.Source.Scene.BufferPointMaterial18engine.Source.Scene.BufferPolygon19engine.Source.Scene.BufferPolygonCollection20engine.Source.Scene.BufferPolygonMaterial21engine.Source.Scene.BufferPolyline22engine.Source.Scene.BufferPolylineCollection23engine.Source.Scene.BufferPolylineMaterial24sandcastle.src.copilot.ChatMessage25sandcastle.src.copilot.ChatPanel26sandcastle.src.copilot.ToolCallDisplay27sandcastle.src.copilot.ai.clients28sandcastle.src.copilot.ai.clients.AIClientFactory29sandcastle.src.copilot.ai.diff.DiffMatcher30sandcastle.src.copilot.ai.tools.toolRegistry31sandcastle.src.copilot.contexts.ModelContext32sandcastle.src.copilot.hooks.useToolChainExecution33sandcastle.src.copilot.integrations.ConsoleChatAction34sandcastle.src.util.IframeBridge35sandcastle.src.copilot36sandcastle.src.copilot.ai.clients.VertexAIClient37sandcastle.src.copilot.ai.diff.RooStyleDiffStrategy38sandcastle.src.copilot.contexts39sandcastle.src.copilot.hooks401111111111111111111119342111111181211161+458 more modules (most-connected shown)

At a glance — Code Health · 38% · Weak · gated by D2, R10, R3 ·

At a glance — Architecture · 66% · Adequate · gated by D26, R9 ·

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

At a glance — Readiness · 34% · Weak · gated by R4, P2, P3, P7 ·

At a glance — Security · 31% · Weak · gated by D28, D29, C2 ·

At a glance — Accessibility · 32% · Weak · gated by AC1, AC2, AC4 ·

At a glance — Performance · 60% · Adequate ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A07:2025 — Authentication Failures271High / Critical
A05:2025 — Injection49High / Critical

Roadmap

Top priorities: Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do; Resolve the 270 REDACTED finding(s) in Secrets (history) — start with REDACTED (122), REDACTED (42), REDACTED (11); Resolve the 10 No assertions (empty test) finding(s) in Test Quality — start with loadCubeMapSpec.js (6), GeoJsonDataSourceSpec.js (3), loadImageFromTypedArraySpec.js.

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

Do thisHelpsEffortDimension
Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2).+1.4 ptsLowStatic Analysis (SAST)
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.+3.6 ptsMediumAccess Controls
Resolve the 1 REDACTED finding(s) charged to Static Analysis (SAST) — the other 15 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once.+1.4 ptsLowStatic Analysis (SAST)
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED.+1.4 ptsLowStatic Analysis (SAST)
Resolve the 10 No assertions (empty test) finding(s) in Test Quality — start with loadCubeMapSpec.js (6), GeoJsonDataSourceSpec.js (3), loadImageFromTypedArraySpec.js.+1.8 ptsMediumTest Quality
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+1.6 ptsMediumKeyboard semantics
Resolve the 270 REDACTED finding(s) in Secrets (history) — start with REDACTED (122), REDACTED (42), REDACTED (11).+3.0 ptsHighSecrets (history)
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.+1.4 ptsMediumForms & labels

File quality

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

FileScoreBandWorst signal
REDACTED2.2SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.5SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.9SlopSecrets (history): REDACTED: REDACTED
REDACTED3.9SlopSecrets (history): REDACTED: 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.4MixedSecrets (history): REDACTED: REDACTED
REDACTED4.4MixedSecrets (history): REDACTED: REDACTED
REDACTED4.4MixedSecrets (history): REDACTED: REDACTED
REDACTED4.4MixedSecrets (history): REDACTED: REDACTED
REDACTED4.4MixedSecrets (history): REDACTED: REDACTED
REDACTED4.5MixedSecrets (history): REDACTED: REDACTED
REDACTED4.5MixedSecrets (history): REDACTED: REDACTED
REDACTED4.6MixedSecrets (history): REDACTED: REDACTED
packages/sandcastle/src/App.tsx4.9MixedCyclomatic Complexity: App.App (cyclomatic 57)
REDACTED5.0MixedSecrets (history): REDACTED: REDACTED

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

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

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

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 73 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.8, 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 — 73 dimensions across the health lenses
D1D2D3D5D6D10D13D15D16D17D19D20D21D23D24D26D28D29D30D34D35D43D44AC1AC2AC3AC4AC5AC6AX10AX3AX4AX6C2GD1IC1M1M2M3M4P1P10P2P3P4P6P7PF3R1R10R11R2R3R4R6R7R8R9S1X1X12X13X16X17X2X21X24X25X28X29X3X30X5

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, 2953 of 2978 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 01a1dd9b-7a8d-74ee-a08c-596cfeba66c0.

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 JavaScript/TypeScript suite(s) run through a browser-driven runner the coverage collector does not drive — the repository root (karma/@playwright/test) — a gap in the analyzer, not something this repository is missing. 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 14,816 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 3 test source file(s) (.py) 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 source is present (.ts, .py, .js, .mjs, .cjs) and the reliability runner does support this ecosystem — it drives jest, vitest, mocha and egg-bin — but no test command in this repository names a runner the analyzer recognises, so it could not tell what to re-run. Read from the manifests: the root package has a `scripts.test` of `gulp test`; `packages/core` has a `scripts.test` of `gulp test --workspace @cesium/core`; `packages/engine` has a `scripts.test` of `gulp test --workspace @cesium/engine`; `packages/gltf` has a `scripts.test` of `gulp test --workspace @cesium/gltf`; `packages/widgets` has a `scripts.test` of `gulp test --workspace @cesium/widgets`. So flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's reading of test commands, not a missing .ts/.py/.js/.mjs/.cjs runner and not a finding about this repository.
  • D12 Dependency Hygiene — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. This repository's 7 package.json manifest(s) WERE read and their pinning discipline assessed; what went unanswered is the currency half, because answering it needs a lockfile resolved to CONCRETE versions and this repository commits none — a package.json states version RANGES, and a range names no particular release to be behind. So registry.npmjs.org was never asked, and there was nothing here for it to grade. This is a true statement about the repository and NOT a gap on our side: no lockfile reader we could write would find anything here to read, so there is no capability behind this row to build.
  • D14 License Compliance — 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. Not scored — this repository declares package.json manifests but commits no lockfile this pass can resolve (npm, pnpm, yarn and bun each write a different one, and `bun.lockb` is a binary format with no published shape), so the set of packages it actually ships is not resolvable from the checkout: its declarations carry version RANGES, and grading whichever release happens to be newest today would be a verdict about a dependency graph this repository has not pinned. Commit the lock and this dimension grades its production dependencies against registry.npmjs.org. NOT a finding that this repository's licences are compliant: this dimension asserts nothing about its licensing in either direction.
  • D21 Naming Consistency — 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. 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 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (package.json), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
  • D30 Dependency Vulnerabilities — measured, with a gap in what it reached — 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. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies. osv: the scanner produced no output at all, so no dependency was actually scanned. This is reported as a measurement gap rather than a clean pass. osv-scanner documents exit 128 as "no package sources found" — but this scan only invoked it because the tree declares a source it supports (`pom.xml` and the resolved lockfiles among them), so the tool's report and this repository disagree. Check that those sources are reachable from the directory the scan ran in before concluding anything is missing. If this tree really does commit only range-pinned manifests, commit the lockfile your package manager produces — but only where your ecosystem HAS one and commits it: Maven has none at all (osv-scanner reads `pom.xml` directly) and Gradle writes one only under opt-in dependency locking, while a published Composer package and a published Dart library both deliberately exclude theirs. In those three, generate one in CI before the scan instead — a resolved dependency list or an SBOM fed to the scanner.
  • 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. `packages/engine/Source/Scene/ScreenSpaceCameraController.js`, `packages/engine/Source/ThirdParty/google-earth-dbroot-parser.js`, `packages/engine/Specs/DataSources/CzmlDataSourceSpec.js` 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.
  • D43 Malicious Dependencies — measured, with a gap in what it reached — 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. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies. osv: the scanner produced no output at all, so no dependency was actually scanned. This is reported as a measurement gap rather than a clean pass. osv-scanner documents exit 128 as "no package sources found" — but this scan only invoked it because the tree declares a source it supports (`pom.xml` and the resolved lockfiles among them), so the tool's report and this repository disagree. Check that those sources are reachable from the directory the scan ran in before concluding anything is missing. If this tree really does commit only range-pinned manifests, commit the lockfile your package manager produces — but only where your ecosystem HAS one and commits it: Maven has none at all (osv-scanner reads `pom.xml` directly) and Gradle writes one only under opt-in dependency locking, while a published Composer package and a published Dart library both deliberately exclude theirs. In those three, generate one in CI before the scan instead — a resolved dependency list or an SBOM fed to the scanner.
  • 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. 316 further occurrence(s) are not listed individually; the score already reflects all 356.
  • AC3 Page structure — 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. 19 further occurrence(s) are not listed individually; the score already reflects all 59.
  • 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. The dev server exited, and its output does not match a cause we recognise. (rule: unrecognised-exit). The renderer reported: the dev server (`npm run start`) exited before it served a page. Likely cause (not identified): the dev server exited, and its output does not match a cause we recognise. Last output: "npm error code EBADDEVENGINES / npm error EBADDEVENGINES The developer of this package has specified the following through devEngines / npm error EBADDEVENGINES Invalid engine "runtime" / npm error EBADDEVENGINES Invalid semver version ">=22.17.0" does not match "v22.13.0" for "runtime" / npm error EBADDEVENGINES { / npm error EBADDEVENGINES current: { name: 'node', version: 'v22.13.0' }, / npm error EBADDEVENGINES required: { name: 'node', version: '>=22.17.0' } / npm error EBADDEVENGINES } / 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 (start). the dev server (`npm run start`) exited before it served a page. Likely cause (not identified): the dev server exited, and its output does not match a cause we recognise. Last output: "npm error code EBADDEVENGINES / npm error EBADDEVENGINES The developer of this package has specified the following through devEngines / npm error EBADDEVENGINES Invalid engine "runtime" / npm error EBADDEVENGINES Invalid semver version ">=22.17.0" does not match "v22.13.0" for "runtime" / npm error EBADDEVENGINES { / npm error EBADDEVENGINES current: { name: 'node', version: 'v22.13.0' }, / npm error EBADDEVENGINES required: { name: 'node', version: '>=22.17.0' } / npm error EBADDEVENGINES } / npm error A complete log of this run can be found in: <path>" No runtime evidence was gathered.
  • IC1 Incompleteness & stubs — 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. 80 further occurrence(s) are not listed individually; the score already reflects all 120.
  • 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.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and none applies: this repository publishes a library and deploys nothing (no container, IaC or deployment manifest), so it holds no runtime state of its own. Any data-access dependency it declares is the store it is a CLIENT for, not one it operates. The DR control belongs to whoever runs that data.
  • 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. 11 further occurrence(s) are not listed individually; the score already reflects all 51.
  • 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. 1523 further occurrence(s) are not listed individually; the score already reflects all 1563.
  • 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. 699 further occurrence(s) are not listed individually; the score already reflects all 739.
  • 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. 480 further occurrence(s) are not listed individually; the score already reflects all 520.
  • 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. 1458 further occurrence(s) are not listed individually; the score already reflects all 1498.
  • 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. 131 further occurrence(s) are not listed individually; the score already reflects all 171.
  • X4 Structured logging — 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 check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

Repo exclusion declarations: 22 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

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.
  • 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.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • 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").
  • 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.
  • D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
  • D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
  • 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.
  • 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.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • 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.
  • 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 Complexity4.9 / 10Weak✓ 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 4.9 / 10 · rule-coverage 100% · ceiling Prevented

575 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ChatPanel.ChatPanel at 114. A further 15 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 KmlDataSource.processScreenOverlay at 32 — they are counted neither in the figure above nor in this dimension's score. 4 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: packages/engine/Source/Renderer/createUniform.js (createUniform.createUniform at 20), packages/engine/Source/Scene/Billboard.js (Billboard.Billboard.equals at 20), packages/core/Source/Matrix4.js (Matrix4.equals at 19), packages/engine/Source/Renderer/createUniformArray.js (createUniformArray.createUniformArray at 19). 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.

update (cyclomatic 42) · ×2packages/engine/Source/Scene/Primitive.js:2083
ChatPanel.ChatPanel (cyclomatic 114)packages/sandcastle/src/copilot/ChatPanel.tsx:152
BillboardCollection.BillboardCollection.update (cyclomatic 109)packages/engine/Source/Scene/BillboardCollection.js:1569
addDrawCommandsForTile (cyclomatic 108)packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511
RenderState (cyclomatic 96)packages/engine/Source/Renderer/RenderState.js:93

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

What to do

  1. Bring the 15 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with ChatPanel.ChatPanel (cyclomatic 114), BillboardCollection.BillboardCollection.update (cyclomatic 109), addDrawCommandsForTile (cyclomatic 108). — 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 15 together lifts Cyclomatic Complexity from 4.9 to about 5.9/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

847 method(s) exceeded the cognitive complexity threshold of 15; the worst was PolygonGeometry.computeAttributes at 209.

update (cognitive 54) · ×2packages/engine/Source/Scene/ClassificationPrimitive.js:1042
update (cognitive 33) · ×2packages/engine/Source/Scene/GroundPolylinePrimitive.js:664
main.viewer.screenSpaceEventHandler.setInputAction() (cognitive 27) · ×2packages/sandcastle/gallery/i3s-3d-object-layer/main.js:51
update (cognitive 17) · ×2packages/engine/Source/Renderer/UniformState.js:1489
PolygonGeometry.computeAttributes (cognitive 209)packages/core/Source/PolygonGeometry.js:62

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

What to do

  1. Bring the 6 bodies over 120 down to 120 or less in Cognitive Complexity — start with PolygonGeometry.computeAttributes (cognitive 209), update (cognitive 185), update (cognitive 181). — 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 6 together lifts Cognitive Complexity from 2.0 to about 3.3/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

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

D3 · God Classes7.2 / 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 7.2 / 10 · rule-coverage 100% · ceiling Prevented

333 god class(es) detected.

FunctionTooLong: ChatPanel.ChatPanel · ×187packages/sandcastle/src/copilot/ChatPanel.tsx:152
FileTooLong: DataSources/CzmlDataSource.js · ×104packages/engine/Source/DataSources/CzmlDataSource.js
MethodTooLong: BoxGeometry.createGeometry · ×19packages/core/Source/BoxGeometry.js:235
ClassTooLong: Matrix4 · ×14packages/core/Source/Matrix4.js:62
TooManyMethods: Matrix4 · ×9packages/core/Source/Matrix4.js:62

What to do

  1. Resolve the 187 FunctionTooLong finding(s) in God Classes — start with CzmlDataSource.js (13), TerrainFillMesh.js (5), ScreenSpaceCameraController.js (5). — One of this dimension's main actionable groups (187 warning-level).
  2. Resolve the 104 FileTooLong finding(s) in God Classes — start with REDACTED (3), CzmlDataSource.js, REDACTED. — One of this dimension's main actionable groups (104 warning-level).
  3. Resolve the 19 MethodTooLong finding(s) in God Classes — start with VertexAIClient.ts (2), BoundingSphere.js (2), BoxGeometry.js. — One of this dimension's main actionable groups (19 warning-level).

Detailed fixes: d3_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

7 production modules (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 1 of the 7 (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)9.9 / 10Stronggated by 1 serious finding✓ Tool-verified

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

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

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

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

1 of 136 classes have LCOM4 above 3.

Low cohesion: GlobeSurfaceTile (LCOM4 5)packages/engine/Source/Scene/GlobeSurfaceTile.js:52

What to do

  1. Resolve the 1 Low cohesion finding(s) in Cohesion (LCOM4) — start with GlobeSurfaceTile.js. — One of this dimension's main actionable groups (1 warning-level).

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

D10 · Test Quality9.6 / 10Adequategated by 10 critical findings✓ Tool-verified

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

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

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

16 skipped (6 with a documented reason), 323 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 14816 tests. Measured on the JavaScript/TypeScript suite only — at least 3 test source file(s) (.py) went unread, so its test quality is unmeasured and is not in these counts.

No assertions (empty test): calls error function when positiveX does not exist · ×10packages/engine/Specs/Renderer/loadCubeMapSpec.js:119
No assertions: can animate selection element · ×313packages/widgets/Specs/SelectionIndicator/SelectionIndicatorViewModelSpec.js:57
Skipped test: does not request tiles when the request scheduler is full · ×10packages/engine/Specs/Scene/Cesium3DTilesetSpec.js:2240
Skipped (documented): (unnamed test) · ×6packages/engine/Specs/test.mjs:6

What to do

  1. Resolve the 10 No assertions (empty test) finding(s) in Test Quality — start with loadCubeMapSpec.js (6), GeoJsonDataSourceSpec.js (3), loadImageFromTypedArraySpec.js. — One of this dimension's main actionable groups (10 issue-level).
  2. Resolve the 313 No assertions finding(s) in Test Quality — start with Model3DTileContentSpec.js (38), ITwinPlatformSpec.js (23), CustomShaderPipelineStageSpec.js (11). — One of this dimension's main actionable groups (313 warning-level).
  3. Resolve the 10 Skipped test finding(s) in Test Quality — start with ClassificationPrimitiveSpec.js (2), Vector3DTileClampedPolylinesSpec.js (2), Cesium3DTilesetSpec.js. — One of this dimension's main actionable groups (10 warning-level).

Detailed fixes: d10_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.

D15 · Churn × Complexity Hotspots9.7 / 10Stronggated by 17 serious findings✓ 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 9.7 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: packages/engine/Source/Scene/GlobeSurfaceTileProvider.js (17×104=1768); packages/engine/Source/Scene/GaussianSplatPrimitive.js (17×87=1479); REDACTED (34×24=816) Repeated repair below the complexity floor: packages/engine/Source/Scene/GaussianSplatRenderResources.js (5 of 6 changes were fixes)

Hotspot: packages/engine/Source/Scene/GlobeSurfaceTileProvider.js · ×16packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511
Repeated repair: packages/engine/Source/Scene/GaussianSplatRenderResources.jspackages/engine/Source/Scene/GaussianSplatRenderResources.js:54

What to do

  1. Resolve the 16 Hotspot finding(s) in Churn × Complexity Hotspots — start with GlobeSurfaceTileProvider.js, GaussianSplatPrimitive.js, REDACTED. — One of this dimension's main actionable groups (16 warning-level).
  2. Resolve the 1 Repeated repair finding(s) in Churn × Complexity Hotspots — start with GaussianSplatRenderResources.js. — One of this dimension's main actionable groups (1 warning-level).

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

D16 · Bus Factor8.6 / 10Strong✓ 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 8.6 / 10 · rule-coverage 100% · ceiling Documented

146 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/engine/Source/DataSources/PathVisualizer.js. Counted over 1009 of the 1652 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 · ×11
Further sole-owners (lower concentration)

What to do

  1. Resolve the 11 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (11 recommendation-level).
  2. Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).

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

D17 · Explicit Debt10.0 / 10Stronggated by 1 serious finding✓ Tool-verified

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

1 deducted task-comment markers across 12451 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.

TodoCommentpackages/sandcastle/src/ConsoleMirror.tsx:46

What to do

  1. Resolve the 1 TodoComment finding(s) in Explicit Debt — start with ConsoleMirror.tsx. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.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. 72 document(s) read across 9 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

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 0.0 / 10 · rule-coverage 100% · ceiling Documented

No architecture decision records were found.

No ADRs foundpackage.json:114

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality — start with package.json. — One of this dimension's main actionable groups (1 recommendation-level).

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

D21 · Naming Consistency9.0 / 10Exemplary✓ Tool-verified

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.

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

2 naming inconsistencies among 207 declarations measured against a convention their peers follow.

`moduleID` spells `ID` where 207 names in the project spell it `Id` · ×2packages/engine/Source/Core/buildModuleUrl.js:77

✓ On the Gold path — maintain.

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

D23 · Boundary Type-Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether domain types (IDs, enums, value objects) leak across bounded-context boundaries.

Method: Cross-context domain-type leakage via Roslyn structural classification (strongly-typed IDs / value objects) over every public surface. Exhaustive, deterministic, type-level aggregate-boundary check.

Coverage: Bounded contexts derived from NAMESPACE prefix (or graph-inferred where available); cross-boundary domain-type leakage then checked exhaustively over every public member of every type.

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

No domain types leak across context boundaries (5 contexts). Contexts: core, engine, gltf, sandcastle, widgets.

✓ On the Gold path — maintain.

Detailed fixes: d23_recommendation.md.

D24 · Comment Value8.0 7.8 / 10Strong✓ 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 7.8 / 10 · rule-coverage 98% · ceiling Documented

203 of 10038 judged comments only repeat the code they sit on (2.0 %). 312 comment(s) in another language or script were not judged.

redundant comment · ×168Specs/Cesium3DTilesTester.js:305
doc comments repeat the names · ×6packages/core/Source/BoundingSphere.js:823

What to do

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

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

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

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

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

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

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

Projects may be oversized for their cohesion

What to do

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

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

D28 · Secrets (history)0.0 / 10Critical✓ 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

270 finding(s): 0 critical, 270 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 270 REDACTED finding(s) in Secrets (history) — start with REDACTED (122), REDACTED (42), REDACTED (11). — One of this dimension's main actionable groups (270 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)0.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 0.5 / 10 · rule-coverage 100% · ceiling Documented

49 finding(s): 0 critical, 25 high, 23 medium, 1 low. 15 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 15 file(s) — `packages/core/Specs/OrientedBoundingBoxSpec.js`, `packages/engine/Source/Core/GroundPolylineGeometry.js`, `REDACTED`, `packages/engine/Source/Scene/Camera.js`, `packages/engine/Source/Scene/ScreenSpaceCameraController.js` (line 694), … (+10 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 1 REDACTED finding(s) charged to Static Analysis (SAST) — the other 15 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once. — One of this dimension's main actionable groups (16 issue-level, 1 of them charged here).
  2. Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 issue-level).
  3. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).

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

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

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

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

No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. osv was not scanned (osv: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.

✓ On the Gold path — maintain.

Detailed fixes: d30_recommendation.md.

D34 · Knowledge Freshness6.8 / 10Adequate✓ 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 6.8 / 10 · rule-coverage 100% · ceiling Documented

320 of 1009 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is packages/core/Source/GeometryPipeline.js. Counted over 1009 of the 1652 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned knowledge · ×43packages/core/Source/GeometryPipeline.js:1
Orphaned file · ×277packages/core/Source/CorridorOutlineGeometry.js:1
Further orphaned files (smaller)

What to do

  1. Resolve the 277 Orphaned file finding(s) in Knowledge Freshness — start with CorridorOutlineGeometry.js, AnimationViewModel.js, TweenCollection.js. — One of this dimension's main actionable groups (277 recommendation-level).
  2. Resolve the 43 Orphaned knowledge finding(s) in Knowledge Freshness — start with GeometryPipeline.js, PolylineCollection.js, decodeI3S.js. — One of this dimension's main actionable groups (43 issue-level).
  3. Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

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

D35 · Change Coupling9.8 / 10Stronggated by 20 serious findings✓ 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 9.8 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: Matrix2.js↔Matrix3.js 92%; ModelGraphics.js↔ModelVisualizer.js 83%; Cesium3DTilesTerrainGeometryProcessor.js↔Cesium3DTilesTerrainProvider.js 73%

Change coupling: Matrix2.js ↔ Matrix3.js · ×20packages/core/Source/Matrix2.js:1

What to do

  1. Resolve the 20 Change coupling finding(s) in Change Coupling — start with Matrix2.js (2), App.tsx (2), BufferPoint.js (2). — One of this dimension's main actionable groups (20 warning-level).

Detailed fixes: d35_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 known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. osv was not scanned (osv: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

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

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 5 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

AC1 · Text alternatives2.2 / 10Critical✓ 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 image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative. (×8) — REDACTED:66, REDACTED:77, packages/engine/Source/Scene/CreditDisplay.js:682, …
  • 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. (×2) — packages/sandcastle/gallery/bathymetry/REDACTED:23, packages/widgets/Source/Timeline/Timeline.js:151

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 & labels1.9 / 10Critical✓ 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 no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×40) — packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:9, packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:21, packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:33, …

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 structure5.8 / 10Adequate✓ 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.

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="cesiumContainer">, so there is no content here to wrap — render the <main> from the component mounted into it. (×2) — Apps/CesiumViewer/REDACTED:2, Apps/HelloWorld.html:2
  • user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. (×5) — Apps/CesiumViewer/REDACTED:9, Apps/HelloWorld.html:9, packages/sandcastle/gallery/ambient-occlusion/REDACTED:3, …
  • The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×2) — REDACTED:2, REDACTED:2
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — REDACTED:2, REDACTED:2
  • A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope). (×26) — REDACTED:101, REDACTED:140, packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:16, …
  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — packages/sandcastle/gallery/3d-tiles-nga-gpm-visualization/REDACTED:13
  • An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it's decorative. (×2) — packages/sandcastle/gallery/aec-elements-api-aggregate/REDACTED:39, packages/sandcastle/gallery/aec-elements-api-query/REDACTED:54

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

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler. (×2) — packages/sandcastle/src/ConsoleMirror.tsx:63, packages/sandcastle/src/ConsoleMirror.tsx:65
  • This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus. — packages/sandcastle/src/copilot/integrations/ConsoleChatAction.tsx:25
  • The repo's own CSS styles .expandItem with `cursor: pointer`, so this <span> 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. — packages/widgets/Source/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.js:39
  • The repo's own CSS styles .cesium-timeline-bar 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. — packages/widgets/Source/Timeline/Timeline.js:150

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 safety6.6 / 10Adequate✓ 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.

  • `.tab-bar button` 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. — packages/sandcastle/gallery/atmosphere/REDACTED:15
  • `#viewChanged, #cameraChanged` sets color: white on background-color: red — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — packages/sandcastle/gallery/camera/REDACTED:5
  • `#toolbar table tr` moves (`transition: transform 0.4s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/sandcastle/gallery/imagery-layers-manipulation/REDACTED:6
  • `.cesium-lighter .cesium-button:active` sets color: #fff on background-color: #48b — 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — packages/widgets/Source/lighterShared.css:22
  • `.cesium-button:hover` sets color: #fff on background-color: #48b — 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — packages/widgets/Source/shared.css:35
  • `button.cesium-infoBox-close:active` sets color: #000 on background-color: #a00 — 2.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — packages/widgets/Source/InfoBox/InfoBox.css:90
  • `.cesium-widget-errorPanel-buttonPanel button:active` sets color: #510c00 on background-color: #b17b72 — 4.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — packages/engine/Source/Widget/CesiumWidget.css:106
  • `div.hr` sets color: #dadada on background-color: #dadada — 1.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — Tools/jsdoc/cesium_template/static/styles/jsdoc-default.css:57
  • `span.attribute-abstract, span.attribute-static, span.attribute-readonly, span.attribute-deprecated, span.attribute-constant, span.signature-internal-constructor` sets color: #fff on background-color: #779c34 — 3.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — Tools/jsdoc/cesium_template/static/styles/jsdoc-default.css:645
  • `div.tag-experimental` sets color: #925415 on background-color: #ffd4a8 — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — Tools/jsdoc/cesium_template/static/styles/jsdoc-default.css:697
  • `.cesium-navigation-button: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. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.css:91
  • `.cesium-cesiumInspector-pickButton: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. — packages/widgets/Source/CesiumInspector/CesiumInspector.css:81
  • `.cesium-cesiumInspector-slider input[type="number"]` 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. — packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspector.css:18
  • `input.cesium-cesiumInspector-url` 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. — packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspector.css:104
  • `.cesium-sceneModePicker-slide-svg` moves (`transition: left 2s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/SceneModePicker/SceneModePicker.css:26
  • `.cesium-navigation-help` moves (`transition: visibility 0s 0.25s, transform 0.25s ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.css:15
  • `.cesium-navigation-help-visible` moves (`transition: transform 0.25s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.css:23
  • `.cesium-infoBox` moves (`transition: visibility 0s 0.2s, opacity 0.2s ease-in, transform 0.2s ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/InfoBox/InfoBox.css:18
  • `.cesium-infoBox-visible` moves (`transition: opacity 0.2s ease-out, transform 0.2s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/InfoBox/InfoBox.css:28
  • `.cesium-viewer-geocoderContainer .cesium-geocoder-input` moves (`transition: width ease-in-out 0.25s, background-color 0.2s ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/Geocoder/Geocoder.css:13
  • `.cesium-cesiumInspector` moves (`transition: width ease-in-out 0.25s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/CesiumInspector/CesiumInspector.css:3
  • `.cesium-cesiumInspector-sectionContent` moves (`transition: max-height 0.25s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/CesiumInspector/CesiumInspector.css:112
  • `.cesium-baseLayerPicker-dropDown` moves (`transition: visibility 0s 0.2s, opacity 0.2s ease-in, transform 0.2s ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/BaseLayerPicker/BaseLayerPicker.css:31
  • `.cesium-baseLayerPicker-dropDown-visible` moves (`transition: opacity 0.2s ease-out, transform 0.2s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — packages/widgets/Source/BaseLayerPicker/BaseLayerPicker.css:41

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.

C2 · Access Controls0.0 / 10Critical✓ Tool-verified

Other · Security — Whether access is authorized by default — a framework authorization attribute/decorator or policy, or imperative guard methods (throw-on-violation) called from handlers.

Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.

  • This repository serves requests — express() (server.js:192) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected. — server.js:192

What to do

  • Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
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.

  • A shipped function's whole body still throws a "not implemented" error — generated scaffolding that was never completed. Implement it or remove the dead surface. — packages/engine/Source/Scene/Cesium3DTileVectorFeature.js:444

What to do

  • Finish or delete the functions that still throw "not implemented", and replace placeholder text before shipping.
IC1 · Incompleteness & stubs6.8 / 10Adequate✓ 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.

  • `tsc` 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:335
  • `snap` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/engine/Source/Core/SnapService.js:46
  • `setProperty` throws an exception whose message says it isn't finished — a not-implemented stub wearing an ordinary exception. Implement it or remove it. — packages/engine/Source/Scene/Cesium3DTileVectorFeature.js:444
  • The guard above `return true;` also returns `true`, so no input can make it matter. Implement the distinction that was intended, or delete the guard. — packages/engine/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js:96
  • `applyDebugSettings` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×3) — packages/engine/Source/Scene/Empty3DTileContent.js:123, packages/engine/Source/Scene/Implicit3DTileContent.js:312, packages/engine/Source/Scene/Tileset3DTileContent.js:141
  • `applyStyle` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×3) — packages/engine/Source/Scene/Empty3DTileContent.js:124, packages/engine/Source/Scene/Implicit3DTileContent.js:313, packages/engine/Source/Scene/Tileset3DTileContent.js:142
  • `pick` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. (×5) — packages/engine/Source/Scene/Empty3DTileContent.js:127, packages/engine/Source/Scene/Geometry3DTileContent.js:182, packages/engine/Source/Scene/Implicit3DTileContent.js:316, …
  • `initWorker` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. (×2) — packages/engine/Source/Workers/gaussianSplatSorter.js:6, packages/engine/Source/Workers/gaussianSplatTextureGenerator.js:6
  • `viewTilesets` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/sandcastle/gallery/3d-tiles-1.1-photogrammetry/main.js:94
  • `setLevels` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/widgets/Source/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorerViewModel.js:69
  • A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something. (×11) — packages/core/Specs/PolylineVolumeGeometrySpec.js:116, packages/engine/Specs/Core/ResourceSpec.js:2100, packages/engine/Specs/Scene/Cesium3DTileBatchTableSpec.js:23, …
  • A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead. (×10) — packages/sandcastle/gallery/3d-models-articulations-dev/main.js:1, packages/sandcastle/gallery/3d-models-coloring/main.js:1, packages/sandcastle/gallery/3d-models-node-explorer-dev/main.js:1, …

What to do

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

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

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

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
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 accuracy8.4 / 10Strong✓ 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.

  • Documentation/Contributors/DocumentationGuide/README.md links to `../../../packages/engine/Source/Core/defined.js`, but `packages/engine/Source/Core/defined.js` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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. — Documentation/Contributors/DocumentationGuide/README.md:53
  • Specs/Data/Models/glTF-2.0/BoxAnisotropy/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxAnisotropy/screenshot/screenshot.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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. — Specs/Data/Models/glTF-2.0/BoxAnisotropy/README.md:5
  • Specs/Data/Models/glTF-2.0/BoxClearcoat/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxClearcoat/screenshot/screenshot.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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. — Specs/Data/Models/glTF-2.0/BoxClearcoat/README.md:5
  • Specs/Data/Models/glTF-2.0/BoxSpecular/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxSpecular/screenshot/screenshot.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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. — Specs/Data/Models/glTF-2.0/BoxSpecular/README.md:5

What to do

  • Reconcile the README with reality: Documentation/Contributors/DocumentationGuide/README.md links to `../../../packages/engine/Source/Core/defined.js`, but `packages/engine/Source/Core/defined.js` does not exist; Specs/Data/Models/glTF-2.0/BoxAnisotropy/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxAnisotropy/screenshot/screenshot.png` does not exist; Specs/Data/Models/glTF-2.0/BoxClearcoat/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxClearcoat/screenshot/screenshot.png` does not exist; Specs/Data/Models/glTF-2.0/BoxSpecular/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxSpecular/screenshot/screenshot.png` 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 · Observability0.0 / 10Critical✓ Tool-verified

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

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

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

What to do

  • Adopt pino (or winston) and log at meaningful points in the services you run.
  • Add a health-check endpoint (@godaddy/terminus or a /health route) so orchestrators and load balancers can probe liveness/readiness.
P3 · Security & performance tooling3.0 / 10Weak✓ 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 7 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. — REDACTED:3
  • `REDACTED` schedules updates, but no `package-ecosystem` entry covers `npm`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list. — REDACTED:2

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.
  • Dependabot is configured but does not watch `npm` — add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ 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.

What to do

  • Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where we can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it.
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.

  • `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. — REDACTED:653

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.

  • `mkdirSync` in `buildCesiumViewer` 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. — gulpfile.apps.js:23
  • `execSync` in `tsc` 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) — REDACTED:342, REDACTED:356
  • `existsSync` in `tsc` 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:355
  • `globSync` in `clean` 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:378
  • `copyFileSync` in `prepare` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×6) — REDACTED:426, REDACTED:431, REDACTED:436, …
  • `globSync` in `prepare` 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:456
  • `execSync` in `buildDocs` 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:484
  • `globSync` in `postversion` 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:570
  • `readFileSync` in `callback to packageJsons.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:581
  • `writeFileSync` in `doneCallback` 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:846
  • `existsSync` in `getLicenseDataFromThirdPartyExtra` 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:1324
  • `existsSync` in `getLicenseDataFromPackage` 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:1405
  • `rmSync` in `createZipFile` 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. (×5) — gulpfile.makezip.js:270, gulpfile.makezip.js:271, gulpfile.makezip.js:272, …
  • `mkdirSync` in `buildCore` 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. — packages/core/scripts/build.js:39
  • `globSync` in `buildCore` 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. — packages/core/scripts/build.js:58
  • `mkdirSync` in `buildEngine` 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. — packages/engine/scripts/build.js:92
  • `globSync` in `buildEngine` 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. — packages/engine/scripts/build.js:136
  • `mkdirSync` in `buildGltf` 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. — packages/gltf/scripts/build.js:35
  • `globSync` in `buildGltf` 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. — packages/gltf/scripts/build.js:54
  • `mkdirSync` in `buildWidgets` 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. — packages/widgets/scripts/build.js:59
  • `globSync` in `buildWidgets` 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. — packages/widgets/scripts/build.js:78
  • `existsSync` in `glslToJavaScript` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-utilities.js:68
  • `statSync` in `glslToJavaScript` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-utilities.js:69
  • `globSync` in `glslToJavaScript` 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) — scripts/build-utilities.js:77, scripts/build-utilities.js:92
  • `existsSync` in `callback to glslFiles.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-utilities.js:122
  • `statSync` in `callback to glslFiles.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/build-utilities.js:124, scripts/build-utilities.js:126
  • `rmSync` in `callback to forEach` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-utilities.js:167
  • `globSync` in `createIndexJs` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-utilities.js:278

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 Safety10.0 / 10Exemplary✓ 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.

R10 · Code Duplication1.1 / 10Critical✓ 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.

  • 235 duplicated blocks under packages/sandcastle/gallery/ have copies in at least two of the sibling directories 3d-models, 3d-models-articulations-dev, 3d-models-coloring, 3d-models-dev, 3d-models-node-explorer-dev, 3d-tiles-1.1-cdb-yemen (+228 more sibling(s) not listed) — 175 of them are reported below, and 60 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 235 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 235 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 235 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. — packages/sandcastle/gallery/aec-snapping/main.js:12
  • 142 duplicated blocks under packages/engine/Source/ have copies in at least two of the sibling directories Core, DataSources, Renderer, Scene, Widget, Workers — 49 of them are reported below, and 93 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 142 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 142 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 142 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. — packages/engine/Source/DataSources/DataSourceCollection.js:15
  • 122 duplicated blocks under packages/ have copies in at least two of the sibling directories core, engine, gltf, sandcastle, widgets — 44 of them are reported below, and 78 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 122 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 122 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 122 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. — packages/core/Source/PolylineGeometry.js:410
  • 23 duplicated blocks under packages/widgets/Source/ have copies in at least two of the sibling directories Animation, BaseLayerPicker, Cesium3DTilesInspector, CesiumInspector, FullscreenButton, Geocoder (+9 more sibling(s) not listed) — 14 of them are reported below, and 9 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 23 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 23 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 23 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. — packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspector.js:29
  • packages/engine/Source/Scene/BillboardCollection.js:191 · packages/engine/Source/Scene/PointPrimitiveCollection.js:125 — the two spans are one implementation copied and then locally edited — 1999 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. — packages/engine/Source/Scene/BillboardCollection.js:191
  • packages/engine/Source/DataSources/StaticGeometryColorBatch.js:19 · packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:18 — the two spans are one implementation copied and then locally edited — 1831 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. — packages/engine/Source/DataSources/StaticGeometryColorBatch.js:19
  • packages/engine/Source/Scene/Vector3DTileClampedPolylines.js:177 · packages/engine/Source/Scene/Vector3DTilePolylines.js:139 — the two spans are one implementation copied and then locally edited — 1843 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. — packages/engine/Source/Scene/Vector3DTileClampedPolylines.js:177
  • packages/engine/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js:28 · packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:37 — the two spans are one implementation copied and then locally edited — 1651 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. — packages/engine/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js:28
  • packages/engine/Source/Scene/VoxelBoxShape.js:75 · packages/engine/Source/Scene/VoxelCylinderShape.js:53 — the two spans are one implementation copied and then locally edited — 1366 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. — packages/engine/Source/Scene/VoxelBoxShape.js:75
  • packages/core/Source/Cartesian3.js:110 · packages/core/Source/Cartesian4.js:117 — the two spans are one implementation copied and then locally edited — 1961 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. — packages/core/Source/Cartesian3.js:110
  • packages/engine/Source/DataSources/StaticGeometryColorBatch.js:81 · packages/engine/Source/DataSources/StaticOutlineGeometryBatch.js:40 — the two spans are one implementation copied and then locally edited — 1428 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. — packages/engine/Source/DataSources/StaticGeometryColorBatch.js:81
  • packages/engine/Source/Scene/WebMapServiceImageryProvider.js:116 · packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js:191 — the two spans are one implementation copied and then locally edited — 1133 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. — packages/engine/Source/Scene/WebMapServiceImageryProvider.js:116
  • packages/engine/Source/DataSources/StaticGroundGeometryColorBatch.js:16 · packages/engine/Source/DataSources/StaticOutlineGeometryBatch.js:20 — the two spans are one implementation copied and then locally edited — 1388 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. — packages/engine/Source/DataSources/StaticGroundGeometryColorBatch.js:16
  • packages/engine/Source/Renderer/Texture.js:74 · packages/engine/Source/Renderer/Texture3D.js:91 — the two spans are one implementation copied and then locally edited — 1065 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. — packages/engine/Source/Renderer/Texture.js:74
  • packages/core/Source/OrthographicOffCenterFrustum.js:93 · packages/core/Source/PerspectiveOffCenterFrustum.js:109 — the two spans are one implementation copied and then locally edited — 1237 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. — packages/core/Source/OrthographicOffCenterFrustum.js:93
  • packages/engine/Source/Scene/Vector3DTileGeometry.js:75 · packages/engine/Source/Scene/Vector3DTilePolygons.js:77 — the two spans are one implementation copied and then locally edited — 1288 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. — packages/engine/Source/Scene/Vector3DTileGeometry.js:75
  • packages/engine/Source/Scene/BillboardCollection.js:1729 · packages/engine/Source/Scene/PointPrimitiveCollection.js:902 — the two spans are one implementation copied and then locally edited — 1118 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. — packages/engine/Source/Scene/BillboardCollection.js:1729
  • packages/engine/REDACTED:134 · packages/engine/Source/Scene/GoogleEarthEnterpriseMapsProvider.js:123 — the two spans are one implementation copied and then locally edited — 776 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. — packages/engine/REDACTED:134
  • packages/engine/Source/Scene/renderBufferPointCollection.js:62 · packages/engine/Source/Scene/renderBufferPolygonCollection.js:61 — the two spans are one implementation copied and then locally edited — 1058 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. — packages/engine/Source/Scene/renderBufferPointCollection.js:62
  • packages/engine/Source/DataSources/BillboardVisualizer.js:30 · packages/engine/Source/DataSources/LabelVisualizer.js:31 — the two spans are one implementation copied and then locally edited — 877 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. — packages/engine/Source/DataSources/BillboardVisualizer.js:30
  • packages/engine/Source/DataSources/BoxGeometryUpdater.js:54 · packages/engine/Source/DataSources/CylinderGeometryUpdater.js:63 — the two spans are one implementation copied and then locally edited — 899 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. — packages/engine/Source/DataSources/BoxGeometryUpdater.js:54
  • packages/engine/Source/Scene/ClippingPlaneCollection.js:142 · packages/engine/Source/Scene/VoxelBoundsCollection.js:79 — the two spans are one implementation copied and then locally edited — 949 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. — packages/engine/Source/Scene/ClippingPlaneCollection.js:142
  • packages/sandcastle/gallery/aec-snapping/main.js:12 · packages/sandcastle/gallery/hybrid-snapping-dev/main.js:45 — the two spans are one implementation copied and then locally edited — 1096 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. — packages/sandcastle/gallery/aec-snapping/main.js:12
  • packages/core/Source/EllipseGeometry.js:740 · packages/core/Source/EllipseOutlineGeometry.js:66 — the two spans are one implementation copied and then locally edited — 939 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. — packages/core/Source/EllipseGeometry.js:740
  • packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:310 · packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:252 — the two spans are one implementation copied and then locally edited — 1013 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. — packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:310
  • packages/engine/Source/DataSources/PolylineVolumeGeometryUpdater.js:76 · packages/engine/Source/DataSources/WallGeometryUpdater.js:66 — the two spans are one implementation copied and then locally edited — 805 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. — packages/engine/Source/DataSources/PolylineVolumeGeometryUpdater.js:76
  • packages/engine/Source/Scene/Model/B3dmLoader.js:67 · packages/engine/Source/Scene/Model/I3dmLoader.js:79 — the two spans are one implementation copied and then locally edited — 839 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. — packages/engine/Source/Scene/Model/B3dmLoader.js:67
  • packages/core/Source/EllipseGeometry.js:953 · packages/core/Source/RectangleGeometry.js:1041 — the two spans are one implementation copied and then locally edited — 899 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. — packages/core/Source/EllipseGeometry.js:953
  • packages/engine/Source/Scene/Composite3DTileContent.js:34 · packages/engine/Source/Scene/Multiple3DTileContent.js:81 — the two spans are one implementation copied and then locally edited — 768 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. — packages/engine/Source/Scene/Composite3DTileContent.js:34
  • packages/engine/Source/Scene/GroundPolylinePrimitive.js:574 · packages/engine/Source/Scene/GroundPrimitive.js:533 — the two spans are one implementation copied and then locally edited — 682 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. — packages/engine/Source/Scene/GroundPolylinePrimitive.js:574
  • packages/sandcastle/src/copilot/ai/clients/GeminiClient.ts:54 · packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:278 — the two spans are one implementation copied and then locally edited — 735 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. — packages/sandcastle/src/copilot/ai/clients/GeminiClient.ts:54
  • packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:37 · packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:37 — the two spans are one implementation copied and then locally edited — 832 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. — packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:37
  • packages/engine/Source/DataSources/CorridorGeometryUpdater.js:27 · packages/engine/Source/DataSources/EllipseGeometryUpdater.js:27 — 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. — packages/engine/Source/DataSources/CorridorGeometryUpdater.js:27
  • packages/engine/Source/Core/GoogleEarthEnterpriseTerrainData.js:306 · packages/engine/Source/Core/QuantizedMeshTerrainData.js:435 — the two spans are one implementation copied and then locally edited — 730 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. — packages/engine/Source/Core/GoogleEarthEnterpriseTerrainData.js:306
  • packages/engine/Source/Scene/GltfIndexBufferLoader.js:24 · packages/engine/Source/Scene/GltfVertexBufferLoader.js:24 — the two spans are one implementation copied and then locally edited — 714 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. — packages/engine/Source/Scene/GltfIndexBufferLoader.js:24
  • packages/engine/Source/Scene/Geometry3DTileContent.js:27 · packages/engine/Source/Scene/Vector3DTileContent.js:41 — the two spans are one implementation copied and then locally edited — 633 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. — packages/engine/Source/Scene/Geometry3DTileContent.js:27
  • packages/engine/Source/Scene/Model/Model.js:870 · packages/engine/Source/Scene/Model/Model.js:1449 — the two spans are one implementation copied and then locally edited — 500 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. — packages/engine/Source/Scene/Model/Model.js:870
  • packages/engine/Source/Scene/GltfDracoLoader.js:15 · packages/engine/Source/Scene/GltfSpzLoader.js:126 — the two spans are one implementation copied and then locally edited — 658 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. — packages/engine/Source/Scene/GltfDracoLoader.js:15
  • packages/sandcastle/gallery/geometry-offset-attribute-box-cylinder-ellipsoid-dev/main.js:6 · packages/sandcastle/gallery/geometry-offset-attribute-dev/main.js:6 — the two spans are one implementation copied and then locally edited — 659 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. — packages/sandcastle/gallery/geometry-offset-attribute-box-cylinder-ellipsoid-dev/main.js:6
  • packages/engine/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js:5 · packages/engine/Source/Scene/Controllers/ScreenSpaceMapCameraController.js:5 — these 2 files are line-for-line copies of one another — 110 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. — packages/engine/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js:5

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 Boundaries9.2 / 10Exemplary✓ 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.

  • REDACTED:23 reaches into another package with a relative path (./packages/core/scripts/build.js) — import the package by name instead. — REDACTED:23
  • REDACTED:24 reaches into another package with a relative path (./packages/gltf/scripts/build.js) — import the package by name instead. — REDACTED:24
  • REDACTED:25 reaches into another package with a relative path (./packages/engine/scripts/build.js) — import the package by name instead. — REDACTED:25
  • REDACTED:26 reaches into another package with a relative path (./packages/widgets/scripts/build.js) — import the package by name instead. — REDACTED:26
  • packages/core/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead. — packages/core/scripts/build.js:6
  • packages/engine/Source/Core/GoogleEarthEnterpriseMetadata.js:2 imports protobufjs/dist/minimal/protobuf.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. — packages/engine/Source/Core/GoogleEarthEnterpriseMetadata.js:2
  • REDACTED:47 imports @zip.js/zip.js/lib/zip-core.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. — REDACTED:47
  • packages/engine/Source/DataSources/exportKml.js:25 imports @zip.js/zip.js/lib/zip-core.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. — packages/engine/Source/DataSources/exportKml.js:25
  • packages/engine/Source/Scene/GoogleEarthEnterpriseImageryProvider.js:16 imports protobufjs/dist/minimal/protobuf.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. — packages/engine/Source/Scene/GoogleEarthEnterpriseImageryProvider.js:16
  • packages/engine/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead. — packages/engine/scripts/build.js:6
  • packages/gltf/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead. — packages/gltf/scripts/build.js:6
  • packages/widgets/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead. — packages/widgets/scripts/build.js:6
  • packages/widgets/scripts/build.js:17 reaches into another package with a relative path (../../engine/scripts/build.js) — import the package by name instead. — packages/widgets/scripts/build.js:17
  • scripts/build.js:22 reaches into another package with a relative path (../packages/engine/scripts/build.js) — import the package by name instead. — scripts/build.js:22
  • scripts/build.js:23 reaches into another package with a relative path (../packages/widgets/scripts/build.js) — import the package by name instead. — scripts/build.js:23
  • scripts/buildSandcastle.js:6 reaches into another package with a relative path (../packages/sandcastle/scripts/buildStatic.js) — import the package by name instead. — scripts/buildSandcastle.js:6
  • scripts/buildSandcastle.js:10 reaches into another package with a relative path (../packages/sandcastle/scripts/buildGallery.js) — import the package by name instead. — scripts/buildSandcastle.js:10

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 Complexity8.0 / 10Strong✓ Tool-verified

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

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

  • update has cyclomatic complexity 108 and cognitive complexity 184; 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. — packages/engine/Source/Scene/BillboardCollection.js:1569
  • addDrawCommandsForTile has cyclomatic complexity 108 and cognitive complexity 148; 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. — packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511
  • intersectPlaneTestCornersEdgesFaces has cyclomatic complexity 105 and cognitive complexity 104; 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. — packages/core/Specs/OrientedBoundingBoxSpec.js:960
  • RenderState has cyclomatic complexity 96 and cognitive complexity 99; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/engine/Source/Renderer/RenderState.js:93
  • getShaderExpression has cyclomatic complexity 90 and cognitive complexity 98; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:1906
  • getShaderProgram has cyclomatic complexity 85 and cognitive complexity 155; 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. — packages/engine/Source/Scene/GlobeSurfaceShaderSet.js:106
  • computeAttributes has cyclomatic complexity 73 and cognitive complexity 209; 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. — packages/core/Source/PolygonGeometry.js:62
  • update has cyclomatic complexity 70 and cognitive complexity 126; 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. — packages/engine/Source/Scene/GaussianSplatPrimitive.js:1967
  • createGeometry has cyclomatic complexity 69 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. — packages/core/Source/EllipsoidGeometry.js:214
  • fromIso8601 has cyclomatic complexity 69 and cognitive complexity 103; 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. — packages/core/Source/JulianDate.js:312
  • Cesium3DTileset has cyclomatic complexity 69 and cognitive complexity 69; 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. — packages/engine/Source/Scene/Cesium3DTileset.js:215
  • Viewer has cyclomatic complexity 66 and cognitive complexity 77; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/widgets/Source/Viewer/Viewer.js:429
  • update has cyclomatic complexity 64 and cognitive complexity 106; 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. — packages/engine/Source/Scene/PointPrimitiveCollection.js:845
  • createShaders has cyclomatic complexity 64 and cognitive complexity 78; 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. — packages/engine/Source/Scene/PointCloud.js:770
  • computeVertices has cyclomatic complexity 62 and cognitive complexity 106; 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. — packages/engine/Source/Core/HeightmapTessellator.js:117
  • constructExtrudedRectangle has cyclomatic complexity 60 and cognitive complexity 106; 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. — packages/core/Source/RectangleGeometry.js:457
  • createLayeredEntries has cyclomatic complexity 56 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. — packages/engine/Source/Scene/createElevationBandMaterial.js:202
  • update has cyclomatic complexity 54 and cognitive complexity 54; 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. — packages/engine/Source/Scene/VoxelEllipsoidShape.js:236
  • Texture has cyclomatic complexity 53 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 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. — packages/engine/Source/Renderer/Texture.js:50
  • handleZoom has cyclomatic complexity 51 and cognitive complexity 95; 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. — packages/engine/Source/Scene/ScreenSpaceCameraController.js:561
  • unwrapInterval has cyclomatic complexity 51 and cognitive complexity 19; 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. — packages/engine/Source/DataSources/CzmlDataSource.js:524
  • (anonymous) has cyclomatic complexity 49 and cognitive complexity 68; 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. — packages/sandcastle/src/copilot/ChatPanel.tsx:297
  • ChatMessage has cyclomatic complexity 49 and cognitive complexity 36; 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. — packages/sandcastle/src/copilot/ChatMessage.tsx:19
  • executeCommands has cyclomatic complexity 48 and cognitive complexity 98; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/engine/Source/Scene/Scene.js:2780
  • _createTileImagerySkeletons has cyclomatic complexity 48 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. — packages/engine/Source/Scene/ImageryLayer.js:688
  • setEvaluateFunction has cyclomatic complexity 48 and cognitive complexity 54; 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:955
  • Model has cyclomatic complexity 48 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. — packages/engine/Source/Scene/Model/Model.js:213
  • buildVectorGltfFromMVT has cyclomatic complexity 47 and cognitive complexity 131; 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. — packages/engine/Source/Scene/buildVectorGltfFromMVT.js:80
  • buildGalleryList has cyclomatic complexity 46 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/sandcastle/scripts/buildGallery.js:102
  • renderBufferPolylineCollection has cyclomatic complexity 45 and cognitive complexity 96; 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. — packages/engine/Source/Scene/renderBufferPolylineCollection.js:116
  • parseCall has cyclomatic complexity 45 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:652
  • updateObject 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. — packages/engine/Source/DataSources/PathVisualizer.js:900
  • main has cyclomatic complexity 42 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Apps/CesiumViewer/CesiumViewer.js:24
  • createGeometry has cyclomatic complexity 42 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 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. — packages/core/Source/EllipsoidOutlineGeometry.js:205
  • CesiumWidget has cyclomatic complexity 42 and cognitive complexity 47; 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. — packages/engine/Source/Widget/CesiumWidget.js:209
  • update has cyclomatic complexity 42 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. — packages/engine/Source/Scene/Primitive.js:2083
  • updateAndClearFramebuffers has cyclomatic complexity 42 and cognitive complexity 43; 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. — packages/engine/Source/Scene/Scene.js:3964
  • forEachTextureInMaterial has cyclomatic complexity 41 and cognitive complexity 95; 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. — packages/gltf/Source/forEachTextureInMaterial.js:24
  • getBatchIds has cyclomatic complexity 41 and cognitive complexity 48; 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. — packages/engine/Source/Scene/Geometry3DTileContent.js:205
  • processSSEStream has cyclomatic complexity 40 and cognitive complexity 104; 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. — packages/sandcastle/src/copilot/ai/clients/AnthropicClient.ts:181
R3 · Large Files1.6 / 10Critical✓ 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.

  • packages/engine/Specs/DataSources/CzmlDataSourceSpec.js has 9682 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/DataSources/CzmlDataSourceSpec.js:1
  • packages/engine/Specs/Scene/Cesium3DTilesetSpec.js has 6142 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/Cesium3DTilesetSpec.js:1
  • packages/engine/Specs/DataSources/KmlDataSourceSpec.js has 5277 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/DataSources/KmlDataSourceSpec.js:1
  • packages/engine/Source/Scene/Scene.js has 4985 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/Scene.js:1
  • packages/engine/Source/DataSources/CzmlDataSource.js has 4888 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/DataSources/CzmlDataSource.js:1
  • packages/engine/Specs/Scene/Model/ModelSpec.js has 4597 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/Model/ModelSpec.js:1
  • packages/core/Specs/Matrix4Spec.js has 4544 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/core/Specs/Matrix4Spec.js:1
  • packages/engine/Specs/Scene/GltfLoaderSpec.js has 4367 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/GltfLoaderSpec.js:1
  • packages/engine/Source/Scene/Cesium3DTileset.js has 4141 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/Cesium3DTileset.js:1
  • packages/engine/Specs/Scene/CameraSpec.js has 3982 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/CameraSpec.js:1
  • REDACTED has 3728 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
  • packages/engine/Specs/Scene/SceneSpec.js has 3718 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/SceneSpec.js:1
  • packages/engine/Source/Scene/Camera.js has 3594 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/Camera.js:1
  • packages/engine/Specs/Scene/ExpressionSpec.js has 3400 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/ExpressionSpec.js:1
  • packages/engine/Source/Scene/Model/Model.js has 3290 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/Model/Model.js:1
  • packages/core/Specs/GeometryPipelineSpec.js has 3182 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/core/Specs/GeometryPipelineSpec.js:1
  • packages/engine/Specs/Scene/Cesium3DTileStyleSpec.js has 3153 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/Cesium3DTileStyleSpec.js:1
  • packages/engine/Specs/Scene/MetadataClassPropertySpec.js has 3116 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/MetadataClassPropertySpec.js:1
  • packages/engine/Specs/Scene/ImplicitSubtreeSpec.js has 3038 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/ImplicitSubtreeSpec.js:1
  • packages/core/Source/Matrix4.js has 3016 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/core/Source/Matrix4.js:1
  • packages/engine/Source/Scene/GlobeSurfaceTileProvider.js has 2998 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1
  • packages/engine/Source/Scene/GltfLoader.js has 2975 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/GltfLoader.js:1
  • packages/core/Source/GeometryPipeline.js has 2900 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/core/Source/GeometryPipeline.js:1
  • packages/engine/Source/Scene/ScreenSpaceCameraController.js has 2708 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/ScreenSpaceCameraController.js:1
  • packages/engine/Specs/Scene/PickingSpec.js has 2564 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/PickingSpec.js:1
  • packages/core/Specs/OrientedBoundingBoxSpec.js has 2443 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/core/Specs/OrientedBoundingBoxSpec.js:1
  • packages/engine/Specs/Core/ResourceSpec.js has 2400 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Core/ResourceSpec.js:1
  • packages/engine/Specs/Scene/BillboardCollectionSpec.js has 2398 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/BillboardCollectionSpec.js:1
  • packages/engine/Source/Scene/Cesium3DTile.js has 2345 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/Cesium3DTile.js:1
  • packages/engine/Specs/Scene/Model/ModelReaderSpec.js has 2320 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/Model/ModelReaderSpec.js:1
  • packages/engine/Source/Scene/GaussianSplatPrimitive.js has 2306 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/GaussianSplatPrimitive.js:1
  • packages/engine/Specs/Renderer/AutomaticUniformSpec.js has 2238 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Renderer/AutomaticUniformSpec.js:1
  • packages/engine/Source/Scene/Primitive.js has 2234 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/Primitive.js:1
  • packages/engine/Specs/Scene/LabelCollectionSpec.js has 2157 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/LabelCollectionSpec.js:1
  • packages/engine/Source/Core/Resource.js has 2094 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Core/Resource.js:1
  • packages/engine/Specs/Scene/I3SNodeSpec.js has 2064 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/I3SNodeSpec.js:1
  • packages/core/Source/Color.js has 2063 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/core/Source/Color.js:1
  • packages/engine/Specs/Scene/Vector3DTileContentSpec.js has 2060 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Specs/Scene/Vector3DTileContentSpec.js:1
  • packages/engine/Source/Scene/TerrainFillMesh.js has 2057 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/engine/Source/Scene/TerrainFillMesh.js:1
  • REDACTED has 2046 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

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage0.8 / 10Critical✓ 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) — packages/engine/Source/Scene/Scene.js:1, packages/engine/Source/DataSources/CzmlDataSource.js:1, packages/engine/Source/Scene/Cesium3DTileset.js:1, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling10.0 / 10Exemplary✓ Tool-verified

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

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

R7 · Dead Code10.0 / 10Exemplary✓ 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 276 application, 20 tooling and 836 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
  • no import path from any entry point (276 application, 20 tooling, 836 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 (×3) — Tools/jsdoc/cesium_template/publish.js, Tools/jsdoc/ignoreLocalDoclets.js, Tools/jsdoc/cesiumTags.js
R8 · Dependency Hygiene9.5 / 10Exemplary✓ Tool-verified

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

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

  • Declared in the root 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.

What to do

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

  • packages/engine/Source/Scene/BatchTableHierarchy.js → REDACTED → packages/engine/Source/Scene/BatchTableHierarchy.js — packages/engine/Source/Scene/BatchTableHierarchy.js:11
  • packages/engine/Source/Scene/Google2DImageryProvider.js → packages/engine/Source/Scene/IonImageryProviderFactory.js → packages/engine/Source/Scene/Google2DImageryProvider.js — packages/engine/Source/Scene/Google2DImageryProvider.js:6
  • packages/engine/Source/Scene/I3SDataProvider.js → packages/engine/Source/Scene/I3SLayer.js → packages/engine/Source/Scene/I3SNode.js → packages/engine/Source/Scene/I3SDataProvider.js (one verified cycle inside a mutually-dependent group of 6 files) — packages/engine/Source/Scene/I3SDataProvider.js:63
  • packages/sandcastle/src/Gallery/GalleryItemStore.ts → packages/sandcastle/src/Gallery/applyHighlight.tsx → packages/sandcastle/src/Gallery/GalleryItemStore.ts (one verified cycle inside a mutually-dependent group of 3 files) — packages/sandcastle/src/Gallery/GalleryItemStore.ts:13
  • packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts → packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts → packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts — packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts:3

What to do

  • Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture8.0 / 10Strong✓ Tool-verified

Other · Security — Read from this repository's JavaScript/TypeScript source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS (certificate validation, protocol version) — facts about code that hold whether or not it serves anything itself. Of the server controls, two are read where the source shows them: every session or sign-in cookie the code sets is read for HttpOnly, Secure and SameSite at the line that sets it (a raw `Set-Cookie` header, Express, Fastify, Hono, Koa, Next.js, `cookie.serialize`, express-session and cookie-session), and every Node listener for HTTPS enforcement. HSTS, security response headers and input validation are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository. Its Node HTTP listeners were read for HTTPS enforcement alone — TLS served, a redirect to https:// or HSTS, or a TLS-terminating proxy configuration committed beside the server — each judged per server package.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

  • `app.listen(…)` serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (`https.createServer`, Fastify `https`, Nest `httpsOptions`), no redirect of plain requests to `https://`, no `Strict-Transport-Security` (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it — so a browser may talk to it in clear text. (−2.0 on this card.) — server.js:446

What to do

  • Enforce HTTPS on each listed server: serve TLS itself, or redirect plain requests to `https://` and send `Strict-Transport-Security` (`helmet()` does by default) behind the TLS-terminating proxy — and commit that proxy's configuration beside the service. A server only this machine reaches should bind `127.0.0.1`.
X1 · Async correctness7.9 / 10Strong✓ Tool-verified

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.

  • `forEach` ignores what its callback returns, so the Promise each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early), and a rejection is never handled — in Node.js an unhandled rejection terminates the process by default, and in a browser it is lost. Iterate with `for (const item of items) { await … }` when the work must run in order, or `await Promise.all(items.map(async (item) => { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape. — REDACTED:58

What to do

  • `async` callback passed to `forEach`
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.

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

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

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

X17 · Uncapped recursion over a caller-supplied document2.7 / 10Weak✓ Tool-verified

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

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

  • `freezeRenderState` is exported and takes `renderState: object` from its caller, and it calls itself at line 25 (`freezeRenderState`) with a piece of `renderState` — and nowhere in `freezeRenderState` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `freezeRenderState` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/engine/Source/Renderer/freezeRenderState.js:25
  • `clone` is exported and takes `object: object` from its caller, and it calls itself at line 23 (`clone`) with a piece of `object` — and nowhere in `clone` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `clone` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/core/Source/clone.js:23

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X2 · Cancellation propagation6.1 / 10Adequate✓ Tool-verified

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

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

  • Only 5/14 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.
  • `setStatus` 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 })`. — REDACTED:640
  • `setTypes` 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 })`. — packages/sandcastle/src/SandcastleEditor.tsx:211
  • `initialize` 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 })`. — packages/sandcastle/src/Gallery/EmbeddingSearch.ts:46
  • `fetchItemsAction` 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 })`. — packages/sandcastle/src/Gallery/GalleryItemStore.ts:257
  • `getJsCode` 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 })`. — packages/sandcastle/src/Gallery/GalleryItemStore.ts:271
  • `getHtmlCode` 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 })`. — packages/sandcastle/src/Gallery/GalleryItemStore.ts:278
  • `loadGist` 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 })`. — packages/sandcastle/src/Gallery/loadFromUrl.ts:6
  • `loadCzmlFile` 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 })`. — packages/sandcastle/gallery/time-dependent-path-graphics/main.js:42
  • `loadCzmlWithMaterialMode` 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 })`. — packages/sandcastle/gallery/time-dependent-path-graphics/main.js:52

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 unescaped4.8 / 10Weak✓ 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.

  • `text` 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. (×2) — REDACTED:267, REDACTED:2172
  • `feature.getProperty("name",)` 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. — packages/sandcastle/gallery/3d-tiles-1.1-cdb-yemen/main.js:196
  • `stats.numberOfLoadedTilesTotal` 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. — packages/sandcastle/gallery/3d-tiles-1.1-photogrammetry/main.js:188
  • `stats.numberOfTilesTotal` 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. — packages/sandcastle/gallery/3d-tiles-1.1-photogrammetry/main.js:190
  • `viewer.canvas.toDataURL("image/png")` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `document.write` 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/sandcastle/gallery/fog/main.js:141
  • `swatch` is text this program did not author, and it is written into a script or style context 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. A script or style context needs its own escaping (or a JSON serialiser that escapes `<`); better, pass the value through a data attribute. — packages/sandcastle/gallery/hybrid-snapping-dev/main.js:464
  • `style` is text this program did not author, and it is written into a script or style context 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. A script or style context needs its own escaping (or a JSON serialiser that escapes `<`); better, pass the value through a data attribute. — packages/sandcastle/gallery/ion-snapping-dev/main.js:229
  • `msg` 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. — packages/sandcastle/gallery/multi-part-czml/main.js:51
  • ``${timeline.makeLabel(julianDate,)}`` 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. — packages/sandcastle/gallery/timeline/main.js:31
  • `timeline.makeLabel(e.startJulian)` 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. — packages/sandcastle/gallery/timeline/main.js:71
  • `timeline.makeLabel(e.endJulian)` 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. — packages/sandcastle/gallery/timeline/main.js:72
  • `spanToString(e.totalSpan,)` 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. — packages/sandcastle/gallery/timeline/main.js:73
  • `spanToString(e.mainTicSpan)` 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. — packages/sandcastle/gallery/timeline/main.js:75
  • `excerpt` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` 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. — packages/sandcastle/src/Gallery/applyHighlight.tsx:59
  • `value` 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. — packages/widgets/Source/InfoBox/InfoBox.js:110
  • `buildModuleUrl("Widgets/Images/NavigationHelp/MouseLeft.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:114
  • `buildModuleUrl("Widgets/Images/NavigationHelp/MouseRight.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:123
  • `buildModuleUrl("Widgets/Images/NavigationHelp/MouseMiddle.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:133
  • `buildModuleUrl("Widgets/Images/NavigationHelp/TouchDrag.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:156
  • `buildModuleUrl("Widgets/Images/NavigationHelp/TouchZoom.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:165
  • `buildModuleUrl("Widgets/Images/NavigationHelp/TouchTilt.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:174
  • `buildModuleUrl("Widgets/Images/NavigationHelp/TouchRotate.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:183
  • `this.makeLabel(JulianDate.addSeconds(this._endJulian,-minimumDuration,new JulianDate()),)` 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. — packages/widgets/Source/Timeline/Timeline.js:514
  • `ticLabel` 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. — packages/widgets/Source/Timeline/Timeline.js:658
  • `ticLabel` 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. — packages/widgets/Source/Timeline/Timeline.js:669
  • `tics` 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. — packages/widgets/Source/Timeline/Timeline.js:680

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 knob10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

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

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

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

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

X3 · Exception handling7.0 / 10Adequate✓ 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. (×14) — packages/widgets/Source/Viewer/Viewer.js:757, packages/sandcastle/templates/Sandcastle.ts:67, packages/sandcastle/src/util/ConsoleWrapper.ts:127, …
  • `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. — packages/engine/Source/Core/RequestScheduler.js:255

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.

X5 · Nullable reference types4.0 / 10Weak✓ 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.

  • 4/15 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
  • ~0.8 `!` null assertions per 1k TypeScript source lines — 11 assertion(s) across the 13879 source line(s) of the 77 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: packages/sandcastle/src/Gallery/EmbeddingSearch.ts (5), packages/sandcastle/src/copilot/ChatMessage.tsx (2), packages/sandcastle/src/Gallery/GalleryItemStore.ts (1). 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 Health38%Weak — gated by D2, R10, R3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture66%Adequate — gated by D26, R9Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity65%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness34%Weak — gated by R4, P2, P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security31%Weak — gated by D28, D29, C2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility32%Weak — gated by AC1, AC2, AC4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance60%AdequateStrongest area.
Unscored — 4 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.

  • D36 Supply-chain Provenance & Signing — 3 observation(s) recorded · The CI pipeline publishes no artifact — no package publish, container push or release with files to download. Supply-chain provenance, signing and an SBOM describe a PUBLISHED artifact for the people who obtain it, so there is nothing to attest here; a deployment of the service itself publishes nothing for anyone else to verify. Add them to the release pipeline when this repo starts publishing artifacts (a package, a container image, or a release with downloadable files). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
  • SC1 Supply-chain hygiene — 4 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X6 Hand-rolled structured-format parsing — 3 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 — 51 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; 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 — No container singleton was found, so there is no shared instance for concurrent requests to race on. No function in this Python code is served by a threaded web framework (a Flask, Bottle or FastAPI route, a Django or Pyramid view), so no module is shared between request threads. 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
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • 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 start`) exited before it served a page. Likely cause (not identified): the dev server exited, and its output does not match a cause we recognise. Last output: "npm error code EBADDEVENGINES / npm error EBADDEVENGINES The developer of this package has specified the following through devEngines / npm error EBADDEVENGINES Invalid engine "runtime" / npm error EBADDEVENGINES Invalid semver version ">=22.17.0" does not match "v22.13.0" for "runtime" / npm error EBADDEVENGINES { / npm error EBADDEVENGINES current: { name: 'node', version: 'v22.13.0' }, / npm error EBADDEVENGINES required: { name: 'node', version: '>=22.17.0' } / npm error EBADDEVENGINES } / 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, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
  • D11 Test Reliability — Test reliability not included — the test command names no runner the analyzer recognises
  • D12 Dependency Hygiene — Dependency currency not established — this repository commits no lockfile to resolve
  • D14 License Compliance — npm licences not graded — this npm repository commits no lockfile this pass can resolve
  • 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.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — symbol resolution incomplete — navigability not assessed
  • 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) — 3 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.
  • D4 Code Duplication — This repository's production source (.js, .ts, .tsx) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
  • 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.
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — JavaScript/TypeScript suite
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P12 CI test-gate honesty — 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 package.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • PF2 Allocation hygiene — Not 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.
  • R5 Dependency Freshness — no package-lock.json — dependency freshness not measured (would require an npm lockfile); JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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
  • X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X19 Unrestored process-global state — 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. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
  • X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

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

Critical — 413 finding(s)
D28 · Secrets (history) · REDACTED · ×270
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 245 more in this group — see findings.md.
D34 · Knowledge Freshness · Orphaned knowledge · ×43
  • Orphaned knowledge packages/core/Source/GeometryPipeline.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/PolylineCollection.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Workers/decodeI3S.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/core/Source/RectangleGeometry.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/DataSources/exportKml.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/ClassificationPrimitive.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/core/Source/CorridorGeometry.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/core/Source/EllipseGeometry.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/widgets/Source/Animation/Animation.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/PointPrimitiveCollection.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge REDACTED:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/UrlTemplateImageryProvider.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/SceneTransitioner.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/CloudCollection.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/DataSources/GeoJsonDataSource.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/ShadowVolumeAppearance.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/widgets/Source/Timeline/Timeline.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/DataSources/EntityCluster.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/ParticleSystem.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/PostProcessStageLibrary.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/Scene/I3SDataProvider.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/DataSources/SampledProperty.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/engine/Source/DataSources/PolylineGeometryUpdater.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge packages/widgets/Source/CesiumInspector/CesiumInspectorViewModel.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • + 18 more in this group — see findings.md.
AC2 · Forms & labels · <input> without a programmatic label · ×34
  • <input> without a programmatic label packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:21 — 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 packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:33 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:27 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:34 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:42 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:49 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:70 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:77 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:83 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:90 — 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 packages/sandcastle/gallery/3d-models-dev/REDACTED:24 — 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 packages/sandcastle/gallery/3d-models-dev/REDACTED:31 — 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 packages/sandcastle/gallery/3d-models-dev/REDACTED:39 — 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 packages/sandcastle/gallery/3d-models-dev/REDACTED:46 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:21 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:28 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:34 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:41 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:47 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:54 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:68 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:75 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:81 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:88 — 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 packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:94 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • + 9 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D10 · Test Quality · No assertions (empty test) · ×10
  • No assertions (empty test): calls error function when positiveX does not exist packages/engine/Specs/Renderer/loadCubeMapSpec.js:119 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): calls error function when negativeX does not exist packages/engine/Specs/Renderer/loadCubeMapSpec.js:134 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): calls error function when positiveY does not exist packages/engine/Specs/Renderer/loadCubeMapSpec.js:149 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): calls error function when negativeY does not exist packages/engine/Specs/Renderer/loadCubeMapSpec.js:164 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): calls error function when positiveZ does not exist packages/engine/Specs/Renderer/loadCubeMapSpec.js:179 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): calls error function when negativeZ does not exist packages/engine/Specs/Renderer/loadCubeMapSpec.js:194 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): Fails when encountering unknown geometry packages/engine/Specs/DataSources/GeoJsonDataSourceSpec.js:1476 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): Fails with undefined geometry packages/engine/Specs/DataSources/GeoJsonDataSourceSpec.js:1486 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): Fails with unknown geomeetry in geometryCollection packages/engine/Specs/DataSources/GeoJsonDataSourceSpec.js:1496 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): can not load an invalid image packages/engine/Specs/Core/loadImageFromTypedArraySpec.js:138 — Test method has an empty body — it asserts nothing and exercises no code.
AC1 · Text alternatives · <img> without a text alternative · ×8
  • <img> without a text alternative REDACTED:66 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative REDACTED:77 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative packages/engine/Source/Scene/CreditDisplay.js:682 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative packages/sandcastle/gallery/fog/main.js:141 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative packages/sandcastle/gallery/html-overlays/REDACTED:7 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative packages/sandcastle/src/App.tsx:587 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:111 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:153 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
AC2 · Forms & labels · <select> without a programmatic label · ×6
  • <select> without a programmatic label packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:9 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:15 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:22 — 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 packages/sandcastle/gallery/3d-models-coloring/REDACTED:62 — 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 packages/sandcastle/gallery/3d-models-dev/REDACTED:12 — 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 packages/sandcastle/gallery/3d-models-dev/REDACTED:19 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
AC3 · Page structure · Viewport restricts zoom · ×5
  • Viewport restricts zoom Apps/CesiumViewer/REDACTED:9 — user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
  • Viewport restricts zoom Apps/HelloWorld.html:9 — user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
  • Viewport restricts zoom packages/sandcastle/gallery/ambient-occlusion/REDACTED:3 — user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
  • Viewport restricts zoom packages/sandcastle/gallery/depth-of-field/REDACTED:3 — user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
  • Viewport restricts zoom packages/sandcastle/gallery/lensflare/REDACTED:3 — user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R9 · Circular Imports · Import cycle (2 files) · ×4
  • Import cycle (2 files) packages/engine/Source/Scene/BatchTableHierarchy.js:11 — packages/engine/Source/Scene/BatchTableHierarchy.js → REDACTED → packages/engine/Source/Scene/BatchTableHierarchy.js
  • Import cycle (2 files) packages/engine/Source/Scene/Google2DImageryProvider.js:6 — packages/engine/Source/Scene/Google2DImageryProvider.js → packages/engine/Source/Scene/IonImageryProviderFactory.js → packages/engine/Source/Scene/Google2DImageryProvider.js
  • Import cycle (2 files) packages/sandcastle/src/Gallery/GalleryItemStore.ts:13 — packages/sandcastle/src/Gallery/GalleryItemStore.ts → packages/sandcastle/src/Gallery/applyHighlight.tsx → packages/sandcastle/src/Gallery/GalleryItemStore.ts (one verified cycle inside a mutually-dependent group of 3 files)
  • Import cycle (2 files) packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts:3 — packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts → packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts → packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts
AC3 · Page structure · <html> without a lang · ×2
  • <html> without a lang REDACTED:2 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
  • <html> without a lang REDACTED:2 — The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
AC4 · Keyboard semantics · Clickable element isn't keyboard-operable · ×2
  • Clickable element isn't keyboard-operable packages/widgets/Source/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.js:39 — The repo's own CSS styles .expandItem with `cursor: pointer`, so this <span> 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.
  • Clickable element isn't keyboard-operable packages/widgets/Source/Timeline/Timeline.js:150 — The repo's own CSS styles .cesium-timeline-bar 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.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
AC4 · Keyboard semantics · Click handler on a non-interactive <div> · ×1
  • Click handler on a non-interactive <div> packages/sandcastle/src/ConsoleMirror.tsx:63 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
AC4 · Keyboard semantics · Click handler on a non-interactive <span> · ×1
  • Click handler on a non-interactive <span> packages/sandcastle/src/ConsoleMirror.tsx:65 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
AC4 · Keyboard semantics · Hover-only interaction on <div> · ×1
  • Hover-only interaction on <div> packages/sandcastle/src/copilot/integrations/ConsoleChatAction.tsx:25 — This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
R9 · Circular Imports · Import cycle (3 files) · ×1
  • Import cycle (3 files) packages/engine/Source/Scene/I3SDataProvider.js:63 — packages/engine/Source/Scene/I3SDataProvider.js → packages/engine/Source/Scene/I3SLayer.js → packages/engine/Source/Scene/I3SNode.js → packages/engine/Source/Scene/I3SDataProvider.js (one verified cycle inside a mutually-dependent group of 6 files)
Serious — 2012 finding(s)
D10 · Test Quality · No assertions · ×313
  • No assertions: can animate selection element packages/widgets/Specs/SelectionIndicator/SelectionIndicatorViewModelSpec.js:57 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: works in 3D packages/widgets/Specs/HomeButton/HomeButtonViewModelSpec.js:35 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: works in 2D packages/widgets/Specs/HomeButton/HomeButtonViewModelSpec.js:41 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: works in Columbus View packages/widgets/Specs/HomeButton/HomeButtonViewModelSpec.js:48 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: works while morphing packages/widgets/Specs/HomeButton/HomeButtonViewModelSpec.js:55 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: moves camera when search command invoked packages/widgets/Specs/Geocoder/GeocoderViewModelSpec.js:106 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: Can create and destroy packages/widgets/Specs/Animation/AnimationSpec.js:17 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: Can create with container not in the DOM packages/widgets/Specs/Animation/AnimationSpec.js:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: Can destroy without container ever being in the DOM packages/widgets/Specs/Animation/AnimationSpec.js:40 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: can pass id string for container packages/engine/Specs/Widget/CesiumWidgetSpec.js:109 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: flyTo flies to imagery layer with default offset when options are not defined packages/engine/Specs/Widget/CesiumWidgetSpec.js:1489 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromUrl throws if url is not provided packages/engine/Specs/Scene/ArcGisMapServerImageryProviderSpec.js:105 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromUrl throws if request fails packages/engine/Specs/Scene/ArcGisMapServerImageryProviderSpec.js:137 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromUrl throws on unsupported WKID packages/engine/Specs/Scene/ArcGisMapServerImageryProviderSpec.js:148 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromUrl throws if request fails packages/engine/Specs/Scene/ArcGisMapServerImageryProviderSpec.js:194 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromBasemapType throws without style packages/engine/Specs/Scene/ArcGisMapServerImageryProviderSpec.js:268 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromBasemapType throws with unknown style packages/engine/Specs/Scene/ArcGisMapServerImageryProviderSpec.js:276 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: throws if the spatialReference of the fullExtent is unknown packages/engine/Specs/Scene/ArcGisMapServerImageryProviderSpec.js:934 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: can add and remove before first update. packages/engine/Specs/Scene/BillboardCollectionSpec.js:838 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromUrl throws if url is not provided packages/engine/Specs/Scene/BingMapsImageryProviderSpec.js:191 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromUrl throws if key is not provided packages/engine/Specs/Scene/BingMapsImageryProviderSpec.js:199 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fromUrl throws if request fails packages/engine/Specs/Scene/BingMapsImageryProviderSpec.js:315 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: load throws if buffer cannot be fetched packages/engine/Specs/Scene/BufferLoaderSpec.js:31 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: renders when vertex texture fetch is not supported packages/engine/Specs/Scene/Cesium3DTileBatchTableSpec.js:684 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: loads json with static loadJson method packages/engine/Specs/Scene/Cesium3DTilesetSpec.js:301 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • + 288 more in this group — see findings.md.
D3 · God Classes · FunctionTooLong · ×187
  • FunctionTooLong: ChatPanel.ChatPanel packages/sandcastle/src/copilot/ChatPanel.tsx:152 — FunctionTooLong — ChatPanel runs 848 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 748 over it, 8.48× 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: GlobeSurfaceTileProvider.addDrawCommandsForTile packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511 — FunctionTooLong — addDrawCommandsForTile runs 623 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 523 over it, 6.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: App.App packages/sandcastle/src/App.tsx:123 — FunctionTooLong — App runs 504 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 404 over it, 5.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: VoxelInspectorViewModel.VoxelInspectorViewModel packages/widgets/Source/VoxelInspector/VoxelInspectorViewModel.js:54 — FunctionTooLong — VoxelInspectorViewModel runs 503 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 403 over it, 5.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: buildVectorGltfFromMVT.buildVectorGltfFromMVT packages/engine/Source/Scene/buildVectorGltfFromMVT.js:80 — FunctionTooLong — buildVectorGltfFromMVT runs 489 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 389 over it, 4.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: GroundPolylineGeometry.generateGeometryAttributes packages/engine/Source/Core/GroundPolylineGeometry.js:1058 — FunctionTooLong — generateGeometryAttributes runs 401 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 301 over it, 4.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.
  • FunctionTooLong: TerrainFillMesh.createFillMesh packages/engine/Source/Scene/TerrainFillMesh.js:824 — FunctionTooLong — createFillMesh runs 401 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 301 over it, 4.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.
  • FunctionTooLong: CorridorGeometry.combine packages/core/Source/CorridorGeometry.js:59 — FunctionTooLong — combine runs 373 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 273 over it, 3.73× 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: GaussianSplatPrimitive.GaussianSplatPrimitive.update packages/engine/Source/Scene/GaussianSplatPrimitive.js:1967 — FunctionTooLong — GaussianSplatPrimitive.update runs 370 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 270 over it, 3.70× 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: Viewer.Viewer packages/widgets/Source/Viewer/Viewer.js:429 — FunctionTooLong — Viewer runs 352 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 252 over it, 3.52× 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: createVerticesFromGoogleEarthEnterpriseBuffer.processBuffer packages/engine/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js:89 — FunctionTooLong — processBuffer runs 350 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 250 over it, 3.50× 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: RectangleGeometry.constructExtrudedRectangle packages/core/Source/RectangleGeometry.js:457 — FunctionTooLong — constructExtrudedRectangle runs 347 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 247 over it, 3.47× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: renderBufferPolylineCollection.renderBufferPolylineCollection packages/engine/Source/Scene/renderBufferPolylineCollection.js:116 — FunctionTooLong — renderBufferPolylineCollection runs 335 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 235 over it, 3.35× 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: CzmlDataSource.processMaterialProperty packages/engine/Source/DataSources/CzmlDataSource.js:1200 — FunctionTooLong — processMaterialProperty runs 307 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 207 over it, 3.07× 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: createVerticesFromQuantizedTerrainMesh.createVerticesFromQuantizedTerrainMesh packages/engine/Source/Workers/createVerticesFromQuantizedTerrainMesh.js:28 — FunctionTooLong — createVerticesFromQuantizedTerrainMesh runs 307 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 207 over it, 3.07× 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: EdgeVisibilityPipelineStage.createQuadEdgeGeometry packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:623 — FunctionTooLong — createQuadEdgeGeometry runs 299 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 199 over it, 2.99× 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: decodeI3S.generateGltfBuffer packages/engine/Source/Workers/decodeI3S.js:628 — FunctionTooLong — generateGltfBuffer runs 299 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 199 over it, 2.99× 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: upsampleQuantizedTerrainMesh.upsampleQuantizedTerrainMesh packages/engine/Source/Workers/upsampleQuantizedTerrainMesh.js:38 — FunctionTooLong — upsampleQuantizedTerrainMesh runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96× 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: useToolChainExecution.useToolChainExecution packages/sandcastle/src/copilot/hooks/useToolChainExecution.ts:62 — FunctionTooLong — useToolChainExecution runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96× 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: HeightmapTessellator.HeightmapTessellator.computeVertices packages/engine/Source/Core/HeightmapTessellator.js:117 — FunctionTooLong — HeightmapTessellator.computeVertices runs 292 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 192 over it, 2.92× 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: ScreenSpaceCameraController.handleZoom packages/engine/Source/Scene/ScreenSpaceCameraController.js:561 — FunctionTooLong — handleZoom runs 292 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 192 over it, 2.92× 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: PointCloud.createShaders packages/engine/Source/Scene/PointCloud.js:770 — FunctionTooLong — createShaders runs 276 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 176 over it, 2.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: ApiKeyDialog.ApiKeyDialogBody packages/sandcastle/src/copilot/ApiKeyDialog.tsx:45 — FunctionTooLong — ApiKeyDialogBody runs 271 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 171 over it, 2.71× 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: Cesium3DTilesTerrainGeometryProcessor.Cesium3DTilesTerrainGeometryProcessor.upsampleMesh packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:745 — FunctionTooLong — Cesium3DTilesTerrainGeometryProcessor.upsampleMesh runs 270 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 170 over it, 2.70× 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: CesiumInspectorViewModel.CesiumInspectorViewModel packages/widgets/Source/CesiumInspector/CesiumInspectorViewModel.js:67 — FunctionTooLong — CesiumInspectorViewModel runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64× 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.
  • + 162 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×104
  • FileTooLong: DataSources/CzmlDataSource.js packages/engine/Source/DataSources/CzmlDataSource.js — FileTooLong — 3889 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 3389 over it, 7.78× 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 — 2777 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 2277 over it, 5.55× 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: Scene/Scene.js packages/engine/Source/Scene/Scene.js — FileTooLong — 2581 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 2081 over it, 5.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: Scene/Camera.js packages/engine/Source/Scene/Camera.js — FileTooLong — 2167 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 1667 over it, 4.33× 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: Source/GeometryPipeline.js packages/core/Source/GeometryPipeline.js — FileTooLong — 2110 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 1610 over it, 4.22× 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: Scene/GlobeSurfaceTileProvider.js packages/engine/Source/Scene/GlobeSurfaceTileProvider.js — FileTooLong — 2037 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 1537 over it, 4.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: Scene/ScreenSpaceCameraController.js packages/engine/Source/Scene/ScreenSpaceCameraController.js — FileTooLong — 2036 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 1536 over it, 4.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: Scene/GltfLoader.js packages/engine/Source/Scene/GltfLoader.js — FileTooLong — 2022 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 1522 over it, 4.04× 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: Scene/Cesium3DTileset.js packages/engine/Source/Scene/Cesium3DTileset.js — FileTooLong — 1730 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 1230 over it, 3.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: Source/Matrix4.js packages/core/Source/Matrix4.js — FileTooLong — 1702 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 95% of them inside a single declaration: Matrix4 (62-3047). The bar is 1500 significant lines; this is 202 over it, 1.13× 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: Scene/TerrainFillMesh.js packages/engine/Source/Scene/TerrainFillMesh.js — FileTooLong — 1701 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 1201 over it, 3.40× 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 — 1507 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 1007 over it, 3.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.
  • FileTooLong: Model/Model.js packages/engine/Source/Scene/Model/Model.js — FileTooLong — 1502 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 1002 over it, 3.00× 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: Scene/Primitive.js packages/engine/Source/Scene/Primitive.js — FileTooLong — 1491 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 991 over it, 2.98× 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: Scene/GaussianSplatPrimitive.js packages/engine/Source/Scene/GaussianSplatPrimitive.js — FileTooLong — 1333 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 833 over it, 2.67× 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: Scene/ShadowMap.js packages/engine/Source/Scene/ShadowMap.js — FileTooLong — 1294 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 794 over it, 2.59× 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: Scene/Cesium3DTile.js packages/engine/Source/Scene/Cesium3DTile.js — FileTooLong — 1246 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 746 over it, 2.49× 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: Core/Cesium3DTilesTerrainGeometryProcessor.js packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js — FileTooLong — 1234 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 734 over it, 2.47× 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: Scene/BillboardCollection.js packages/engine/Source/Scene/BillboardCollection.js — FileTooLong — 1219 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 719 over it, 2.44× 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: Scene/PolylineCollection.js packages/engine/Source/Scene/PolylineCollection.js — FileTooLong — 1218 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 718 over it, 2.44× 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: Workers/decodeI3S.js packages/engine/Source/Workers/decodeI3S.js — FileTooLong — 1145 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 645 over it, 2.29× 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: Core/GroundPolylineGeometry.js packages/engine/Source/Core/GroundPolylineGeometry.js — FileTooLong — 1108 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 608 over it, 2.22× 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: Scene/Picking.js packages/engine/Source/Scene/Picking.js — FileTooLong — 1070 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 570 over it, 2.14× 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: Source/RectangleGeometry.js packages/core/Source/RectangleGeometry.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: Source/CorridorGeometry.js packages/core/Source/CorridorGeometry.js — FileTooLong — 1020 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 520 over it, 2.04× 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.
  • + 79 more in this group — see findings.md.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×40
  • Sync-over-async blocking gulpfile.apps.js:23 — `mkdirSync` in `buildCesiumViewer` 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:342 — `execSync` in `tsc` 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:355 — `existsSync` in `tsc` 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:356 — `execSync` in `tsc` 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:378 — `globSync` in `clean` 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:426 — `copyFileSync` in `prepare` 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:431 — `copyFileSync` in `prepare` 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:436 — `copyFileSync` in `prepare` 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:440 — `copyFileSync` in `prepare` 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:446 — `copyFileSync` in `prepare` 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:450 — `copyFileSync` in `prepare` 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:456 — `globSync` in `prepare` 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:484 — `execSync` in `buildDocs` 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:570 — `globSync` in `postversion` 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:581 — `readFileSync` in `callback to packageJsons.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:846 — `writeFileSync` in `doneCallback` 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:1324 — `existsSync` in `getLicenseDataFromThirdPartyExtra` 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:1405 — `existsSync` in `getLicenseDataFromPackage` 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 gulpfile.makezip.js:270 — `rmSync` in `createZipFile` 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 gulpfile.makezip.js:271 — `rmSync` in `createZipFile` 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 gulpfile.makezip.js:272 — `rmSync` in `createZipFile` 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 gulpfile.makezip.js:273 — `rmSync` in `createZipFile` 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 gulpfile.makezip.js:274 — `rmSync` in `createZipFile` 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 packages/core/scripts/build.js:39 — `mkdirSync` in `buildCore` 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 packages/core/scripts/build.js:58 — `globSync` in `buildCore` 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 packages/engine/Source/Scene/Scene.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 packages/engine/Source/DataSources/CzmlDataSource.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 packages/engine/Source/Scene/Cesium3DTileset.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 packages/engine/Source/Scene/Camera.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 packages/engine/Source/Scene/Model/Model.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 packages/engine/Source/Scene/GltfLoader.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 packages/engine/Source/Scene/GlobeSurfaceTileProvider.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 packages/core/Source/GeometryPipeline.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 packages/core/Source/Matrix4.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 packages/engine/Source/Scene/ScreenSpaceCameraController.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 packages/engine/Source/Scene/Cesium3DTile.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 packages/core/Source/Color.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 packages/engine/Source/Scene/TerrainFillMesh.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 packages/engine/Source/Scene/BillboardCollection.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 packages/engine/Source/Scene/VoxelPrimitive.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 packages/widgets/Source/Viewer/Viewer.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 packages/engine/Source/Scene/ShadowMap.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 packages/engine/Source/Scene/PolylineCollection.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 packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.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 packages/engine/Source/Scene/ImageryLayer.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 packages/engine/Source/Scene/Picking.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 packages/engine/Source/Core/GroundPolylineGeometry.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 packages/engine/Source/Workers/decodeI3S.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.
  • + 15 more in this group — see findings.md.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×27
  • Untrusted text written into markup unescaped REDACTED:267 — `text` 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 REDACTED:2172 — `text` 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 packages/sandcastle/gallery/3d-tiles-1.1-cdb-yemen/main.js:196 — `feature.getProperty("name",)` 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 packages/sandcastle/gallery/3d-tiles-1.1-photogrammetry/main.js:188 — `stats.numberOfLoadedTilesTotal` 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 packages/sandcastle/gallery/3d-tiles-1.1-photogrammetry/main.js:190 — `stats.numberOfTilesTotal` 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 packages/sandcastle/gallery/fog/main.js:141 — `viewer.canvas.toDataURL("image/png")` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `document.write` 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/sandcastle/gallery/hybrid-snapping-dev/main.js:464 — `swatch` is text this program did not author, and it is written into a script or style context 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. A script or style context needs its own escaping (or a JSON serialiser that escapes `<`); better, pass the value through a data attribute.
  • Untrusted text written into markup unescaped packages/sandcastle/gallery/ion-snapping-dev/main.js:229 — `style` is text this program did not author, and it is written into a script or style context 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. A script or style context needs its own escaping (or a JSON serialiser that escapes `<`); better, pass the value through a data attribute.
  • Untrusted text written into markup unescaped packages/sandcastle/gallery/multi-part-czml/main.js:51 — `msg` 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 packages/sandcastle/gallery/timeline/main.js:31 — ``${timeline.makeLabel(julianDate,)}`` 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 packages/sandcastle/gallery/timeline/main.js:71 — `timeline.makeLabel(e.startJulian)` 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 packages/sandcastle/gallery/timeline/main.js:72 — `timeline.makeLabel(e.endJulian)` 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 packages/sandcastle/gallery/timeline/main.js:73 — `spanToString(e.totalSpan,)` 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 packages/sandcastle/gallery/timeline/main.js:75 — `spanToString(e.mainTicSpan)` 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 packages/sandcastle/src/Gallery/applyHighlight.tsx:59 — `excerpt` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` 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 packages/widgets/Source/InfoBox/InfoBox.js:110 — `value` 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 packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:114 — `buildModuleUrl("Widgets/Images/NavigationHelp/MouseLeft.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:123 — `buildModuleUrl("Widgets/Images/NavigationHelp/MouseRight.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:133 — `buildModuleUrl("Widgets/Images/NavigationHelp/MouseMiddle.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:156 — `buildModuleUrl("Widgets/Images/NavigationHelp/TouchDrag.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:165 — `buildModuleUrl("Widgets/Images/NavigationHelp/TouchZoom.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:174 — `buildModuleUrl("Widgets/Images/NavigationHelp/TouchTilt.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js:183 — `buildModuleUrl("Widgets/Images/NavigationHelp/TouchRotate.svg",)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped packages/widgets/Source/Timeline/Timeline.js:514 — `this.makeLabel(JulianDate.addSeconds(this._endJulian,-minimumDuration,new JulianDate()),)` 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 packages/widgets/Source/Timeline/Timeline.js:658 — `ticLabel` 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.
  • + 2 more in this group — see findings.md.
AC3 · Page structure · Data table has no header cells · ×26
  • Data table has no header cells REDACTED:101 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells REDACTED:140 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-models-articulations-dev/REDACTED:16 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-models-coloring/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-models-dev/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-models-node-explorer-dev/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-tiles-feature-styling/REDACTED:16 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-tiles-nga-gpm-visualization/REDACTED:9 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-tiles-point-cloud-shading/REDACTED:8 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/3d-tiles-vertical-exaggeration/REDACTED:9 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/ambient-occlusion/REDACTED:24 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/bathymetry/REDACTED:16 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/bloom/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/classification/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/clipping-performance-dev/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/cloud-parameters/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/clustering/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/depth-of-field/REDACTED:24 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/elevation-band-material/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/fog/REDACTED:18 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/globe-translucency/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/gltf-planar-fill-dev/main.js:63 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/imagery-adjustment/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/imagery-color-to-alpha/REDACTED:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells packages/sandcastle/gallery/imagery-layers-manipulation/REDACTED:22 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • + 1 more in this group — see findings.md.
D35 · Change Coupling · Change coupling · ×20
  • Change coupling: Matrix2.js ↔ Matrix3.js packages/core/Source/Matrix2.js:1 — `packages/core/Source/Matrix2.js` and `packages/core/Source/Matrix3.js` change together 92% of the time (12 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are `953c78e0` Promote some methods from ignore to internal, fill out docs (at that commit the files were still `packages/engine/Source/Core/Matrix2.js` and `packages/engine/Source/Core/Matrix3.js`); `24c1cc4c` Avoid useless assignments part 1 (at that commit the files were still `packages/engine/Source/Core/Matrix2.js` and `packages/engine/Source/Core/Matrix3.js`); `dc7bf2d5` Types: createUniform.js and createUniformArray.js migration (at that commit the files were still `packages/engine/Source/Core/Matrix2.js` and `packages/engine/Source/Core/Matrix3.js`) — run `git show` on any of them.
  • Change coupling: ModelGraphics.js ↔ ModelVisualizer.js packages/engine/Source/DataSources/ModelGraphics.js:1 — `packages/engine/Source/DataSources/ModelGraphics.js` and `packages/engine/Source/DataSources/ModelVisualizer.js` change together 83% of the time (10 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `74b40ed8` Moved entity environmentMapOptions to ModelGraphics and adjusted default; `110e57f9` feat: moved environmentMapOptions to Entity; `c4a89483` fix: fixes issue #12356 performance drop — run `git show` on any of them.
  • Change coupling: Cesium3DTilesTerrainGeometryProcessor.js ↔ Cesium3DTilesTerrainProvider.js packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1 — `packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js` and `packages/engine/Source/Core/Cesium3DTilesTerrainProvider.js` change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `d08ce7a5` Move constructors to tops of files; `2afb7b65` Clean up, clarify docs in Cesium3DTilesTerrain classes; `a8532185` Remove calls to deprecated defaultValue — run `git show` on any of them.
  • Change coupling: AutomaticUniforms.js ↔ UniformState.js packages/engine/Source/Renderer/AutomaticUniforms.js:1 — `packages/engine/Source/Renderer/AutomaticUniforms.js` and `packages/engine/Source/Renderer/UniformState.js` change together 72% of the time (18 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are `06f7c70a` Implements special high-precision model clipping shader; `d3c6685a` docs; `d80e32da` fix — run `git show` on any of them.
  • Change coupling: App.tsx ↔ SettingsProvider.tsx packages/sandcastle/src/App.tsx:1 — `packages/sandcastle/src/App.tsx` and `packages/sandcastle/src/SettingsProvider.tsx` change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `35d591e6` decouple-1; `3d4146a2` autofix-init; `f48c7a7b` autofix was too jarring. removed. — run `git show` on any of them.
  • Change coupling: VoxelBoxShape.js ↔ VoxelCylinderShape.js packages/engine/Source/Scene/VoxelBoxShape.js:1 — `packages/engine/Source/Scene/VoxelBoxShape.js` and `packages/engine/Source/Scene/VoxelCylinderShape.js` change together 70% of the time (16 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are `737a0c4e` Clean up voxel shape transforms; `ff471a4e` PR feedback round 1; `784405ff` Clarify shape-specific voxel uniforms — run `git show` on any of them.
  • Change coupling: Matrix2.js ↔ Matrix4.js packages/core/Source/Matrix2.js:1 — `packages/core/Source/Matrix2.js` and `packages/core/Source/Matrix4.js` change together 67% of the time (10 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `953c78e0` Promote some methods from ignore to internal, fill out docs (at that commit the files were still `packages/engine/Source/Core/Matrix2.js` and `packages/engine/Source/Core/Matrix4.js`); `dc7bf2d5` Types: createUniform.js and createUniformArray.js migration (at that commit the files were still `packages/engine/Source/Core/Matrix2.js` and `packages/engine/Source/Core/Matrix4.js`); `09a8ea0c` Types: Remove unused '@memberof' tags on ES6 classes (at that commit the files were still `packages/engine/Source/Core/Matrix2.js` and `packages/engine/Source/Core/Matrix4.js`) — run `git show` on any of them.
  • Change coupling: EdgeFramebuffer.js ↔ Scene.js packages/engine/Source/Scene/EdgeFramebuffer.js:1 — `packages/engine/Source/Scene/EdgeFramebuffer.js` and `packages/engine/Source/Scene/Scene.js` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `59ed55ee` Edge Depth; `cd5e791b` clear framebuffer solved; `7873a4f4` clear framebuffer temp save — run `git show` on any of them.
  • Change coupling: BufferPolygonCollection.js ↔ BufferPolyline.js packages/engine/Source/Scene/BufferPolygonCollection.js:1 — `packages/engine/Source/Scene/BufferPolygonCollection.js` and `packages/engine/Source/Scene/BufferPolyline.js` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `78c1f72c` BufferPrimitiveCollection: Add .setPositions() and ._dirtyFlags for f…; `8489ce63` Split typedArrayTypes out of globalTypes; `b80149cb` fix: Update docs to reflect BufferPrimitiveMaterial, with tests and c… — run `git show` on any of them.
  • Change coupling: ClippingPolygonCollection.js ↔ ModelClippingPolygonsPipelineStage.js packages/engine/Source/Scene/ClippingPolygonCollection.js:1 — `packages/engine/Source/Scene/ClippingPolygonCollection.js` and `packages/engine/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js` change together 56% of the time (9 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `620a0ec9` Adjust clip polygon region combining; `dc84c675` Feedback from PR; `e87589da` Fix jagged edges — run `git show` on any of them.
  • Change coupling: PickFramebuffer.js ↔ Scene.js packages/engine/Source/Scene/PickFramebuffer.js:1 — `packages/engine/Source/Scene/PickFramebuffer.js` and `packages/engine/Source/Scene/Scene.js` change together 55% of the time (12 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are `a0253e69` separate snap pass; `9299aa98` many fixes and cleanup; `ae0fc98f` Snapping prototype — run `git show` on any of them.
  • Change coupling: Model.js ↔ ModelMatrixUpdateStage.js packages/engine/Source/Scene/Model/Model.js:1 — `packages/engine/Source/Scene/Model/Model.js` and `packages/engine/Source/Scene/Model/ModelMatrixUpdateStage.js` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `38173894` Do not duplicate full command - use derived command; `cc1b8264` Try to avoid recompilation; `9e00dfdc` Rename ModelExperimentalUtility and shaders (at that commit the files were still `Source/Scene/ModelExperimental/Model.js` and `Source/Scene/ModelExperimental/ModelMatrixUpdateStage.js`) — run `git show` on any of them.
  • Change coupling: App.tsx ↔ ChatMessage.tsx packages/sandcastle/src/App.tsx:1 — `packages/sandcastle/src/App.tsx` and `packages/sandcastle/src/copilot/ChatMessage.tsx` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `05bb5031` removed diffpreview (unused); `2841f1f1` autofix bf (at that commit the file was still `packages/sandcastle/src/ChatMessage.tsx`); `3d4146a2` autofix-init (at that commit the file was still `packages/sandcastle/src/ChatMessage.tsx`) — run `git show` on any of them.
  • Change coupling: VectorProvider.js ↔ ModelVectorLookupPipelineStage.js packages/engine/Source/Core/VectorProvider.js:1 — `packages/engine/Source/Core/VectorProvider.js` and `packages/engine/Source/Scene/Model/ModelVectorLookupPipelineStage.js` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `ae5276d6` fix large screen space line width; `dcf37469` fix; `c8051a3d` fix — run `git show` on any of them.
  • Change coupling: Bucket.tsx ↔ bucket-client.ts packages/sandcastle/src/Bucket.tsx:1 — `packages/sandcastle/src/Bucket.tsx` and `packages/sandcastle/src/util/bucket-client.ts` change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `3d4146a2` autofix-init; `8390c545` remove debug logging (at that commit the file was still `packages/sandcastle/templates/bucket-client.js`); `b3a2ba7b` remove todos, solidify bridge message structure (at that commit the file was still `packages/sandcastle/templates/bucket-client.js`) — run `git show` on any of them.
  • Change coupling: SettingsProvider.tsx ↔ ChatPanel.tsx packages/sandcastle/src/SettingsProvider.tsx:1 — `packages/sandcastle/src/SettingsProvider.tsx` and `packages/sandcastle/src/copilot/ChatPanel.tsx` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `35d591e6` decouple-1; `3d4146a2` autofix-init (at that commit the file was still `packages/sandcastle/src/ChatPanel.tsx`); `f48c7a7b` autofix was too jarring. removed. (at that commit the file was still `packages/sandcastle/src/ChatPanel.tsx`) — run `git show` on any of them.
  • Change coupling: BufferPoint.js ↔ BufferPolygonCollection.js packages/engine/Source/Scene/BufferPoint.js:1 — `packages/engine/Source/Scene/BufferPoint.js` and `packages/engine/Source/Scene/BufferPolygonCollection.js` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `78c1f72c` BufferPrimitiveCollection: Add .setPositions() and ._dirtyFlags for f…; `b80149cb` fix: Update docs to reflect BufferPrimitiveMaterial, with tests and c…; `1301d0a5` BufferPrimitiveCollection: Allow any TypedArray position/index storage — run `git show` on any of them.
  • Change coupling: PrimitiveLoadPlan.js ↔ VertexAttributeSemantic.js packages/engine/Source/Scene/PrimitiveLoadPlan.js:1 — `packages/engine/Source/Scene/PrimitiveLoadPlan.js` and `packages/engine/Source/Scene/VertexAttributeSemantic.js` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `2448e21e` gltf spec updates; `133b04b8` Updated the 3DGS code to support the latest spec and deprecated old spec; `1aff10a0` spz compression extension compatibility updates — run `git show` on any of them.
  • Change coupling: BufferPoint.js ↔ BufferPolylineCollection.js packages/engine/Source/Scene/BufferPoint.js:1 — `packages/engine/Source/Scene/BufferPoint.js` and `packages/engine/Source/Scene/BufferPolylineCollection.js` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `78c1f72c` BufferPrimitiveCollection: Add .setPositions() and ._dirtyFlags for f…; `b80149cb` fix: Update docs to reflect BufferPrimitiveMaterial, with tests and c…; `1301d0a5` BufferPrimitiveCollection: Allow any TypedArray position/index storage — run `git show` on any of them.
  • Change coupling: BufferPointCollection.js ↔ BufferPolyline.js packages/engine/Source/Scene/BufferPointCollection.js:1 — `packages/engine/Source/Scene/BufferPointCollection.js` and `packages/engine/Source/Scene/BufferPolyline.js` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `78c1f72c` BufferPrimitiveCollection: Add .setPositions() and ._dirtyFlags for f…; `e4e8b3b7` BufferPointCollection: Fix for dynamic geometry; `b80149cb` fix: Update docs to reflect BufferPrimitiveMaterial, with tests and c… — run `git show` on any of them.
D3 · God Classes · MethodTooLong · ×19
  • MethodTooLong: BoxGeometry.createGeometry packages/core/Source/BoxGeometry.js:235 — MethodTooLong — createGeometry runs 430 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 330 over it, 4.30× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: GlobeSurfaceShaderSet.getShaderProgram packages/engine/Source/Scene/GlobeSurfaceShaderSet.js:106 — MethodTooLong — getShaderProgram runs 291 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 191 over it, 2.91× 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: EllipsoidGeometry.createGeometry packages/core/Source/EllipsoidGeometry.js:214 — MethodTooLong — createGeometry runs 277 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 177 over it, 2.77× 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: OrientedBoundingBox.fromRectangle packages/core/Source/OrientedBoundingBox.js:241 — MethodTooLong — fromRectangle runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.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.
  • MethodTooLong: PolylineGeometry.createGeometry packages/core/Source/PolylineGeometry.js:281 — MethodTooLong — createGeometry runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00× 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: CylinderGeometry.createGeometry packages/core/Source/CylinderGeometry.js:185 — MethodTooLong — createGeometry runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.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.
  • MethodTooLong: WallGeometry.createGeometry packages/core/Source/WallGeometry.js:343 — MethodTooLong — createGeometry runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88× 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: JulianDate.fromIso8601 packages/core/Source/JulianDate.js:312 — MethodTooLong — fromIso8601 runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82× 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: PolygonGeometry.createGeometry packages/core/Source/PolygonGeometry.js:1062 — MethodTooLong — createGeometry runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80× 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: Matrix4.inverse packages/core/Source/Matrix4.js:2678 — MethodTooLong — inverse runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71× 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: EllipsoidOutlineGeometry.createGeometry packages/core/Source/EllipsoidOutlineGeometry.js:205 — MethodTooLong — createGeometry runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.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.
  • MethodTooLong: SimplePolylineGeometry.createGeometry packages/core/Source/SimplePolylineGeometry.js:244 — MethodTooLong — createGeometry runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: TimeIntervalCollection.addInterval packages/core/Source/TimeIntervalCollection.js:283 — MethodTooLong — addInterval runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25× 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: VertexAIClient.geminiStreamRequest packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:457 — MethodTooLong — geminiStreamRequest runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22× 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: BoundingSphere.fromEncodedCartesianVertices packages/core/Source/BoundingSphere.js:546 — MethodTooLong — fromEncodedCartesianVertices 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.
  • MethodTooLong: BoundingSphere.fromVertices packages/core/Source/BoundingSphere.js:359 — MethodTooLong — fromVertices runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08× 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: CoplanarPolygonGeometry.createGeometry packages/core/Source/CoplanarPolygonGeometry.js:448 — MethodTooLong — createGeometry runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08× 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: PlaneGeometry.createGeometry packages/core/Source/PlaneGeometry.js:98 — MethodTooLong — createGeometry runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: VertexAIClient.processClaudeSSEStream packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:866 — MethodTooLong — processClaudeSSEStream runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
R11 · Import Boundaries · Boundary violation [package · ×17
  • Boundary violation [package:relative-cross-package] REDACTED:23 — REDACTED:23 reaches into another package with a relative path (./packages/core/scripts/build.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] REDACTED:24 — REDACTED:24 reaches into another package with a relative path (./packages/gltf/scripts/build.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] REDACTED:25 — REDACTED:25 reaches into another package with a relative path (./packages/engine/scripts/build.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] REDACTED:26 — REDACTED:26 reaches into another package with a relative path (./packages/widgets/scripts/build.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] packages/core/scripts/build.js:6 — packages/core/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead.
  • Boundary violation [package:third-party-deep-import] packages/engine/Source/Core/GoogleEarthEnterpriseMetadata.js:2 — packages/engine/Source/Core/GoogleEarthEnterpriseMetadata.js:2 imports protobufjs/dist/minimal/protobuf.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] REDACTED:47 — REDACTED:47 imports @zip.js/zip.js/lib/zip-core.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] packages/engine/Source/DataSources/exportKml.js:25 — packages/engine/Source/DataSources/exportKml.js:25 imports @zip.js/zip.js/lib/zip-core.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] packages/engine/Source/Scene/GoogleEarthEnterpriseImageryProvider.js:16 — packages/engine/Source/Scene/GoogleEarthEnterpriseImageryProvider.js:16 imports protobufjs/dist/minimal/protobuf.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:relative-cross-package] packages/engine/scripts/build.js:6 — packages/engine/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] packages/gltf/scripts/build.js:6 — packages/gltf/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] packages/widgets/scripts/build.js:6 — packages/widgets/scripts/build.js:6 reaches into another package with a relative path (../../../scripts/build-utilities.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] packages/widgets/scripts/build.js:17 — packages/widgets/scripts/build.js:17 reaches into another package with a relative path (../../engine/scripts/build.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/build.js:22 — scripts/build.js:22 reaches into another package with a relative path (../packages/engine/scripts/build.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/build.js:23 — scripts/build.js:23 reaches into another package with a relative path (../packages/widgets/scripts/build.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/buildSandcastle.js:6 — scripts/buildSandcastle.js:6 reaches into another package with a relative path (../packages/sandcastle/scripts/buildStatic.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/buildSandcastle.js:10 — scripts/buildSandcastle.js:10 reaches into another package with a relative path (../packages/sandcastle/scripts/buildGallery.js) — import the package by name instead.
D15 · Churn × Complexity Hotspots · Hotspot · ×16
  • Hotspot: packages/engine/Source/Scene/GlobeSurfaceTileProvider.js packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511 — packages/engine/Source/Scene/GlobeSurfaceTileProvider.js changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in GlobeSurfaceTileProvider.addDrawCommandsForTile at line 2511. 2 of those changes were fix/bug commits, and the other 15 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/GlobeSurfaceTileProvider.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: packages/engine/Source/Scene/GaussianSplatPrimitive.js packages/engine/Source/Scene/GaussianSplatPrimitive.js:1967 — packages/engine/Source/Scene/GaussianSplatPrimitive.js changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 87 in GaussianSplatPrimitive.GaussianSplatPrimitive.update at line 1967. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/GaussianSplatPrimitive.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:899 — REDACTED changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in gulpfile.test at line 899. 4 of those changes were fix/bug commits, and the other 30 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00: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: packages/engine/Source/Scene/GlobeSurfaceShaderSet.js packages/engine/Source/Scene/GlobeSurfaceShaderSet.js:106 — packages/engine/Source/Scene/GlobeSurfaceShaderSet.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 85 in GlobeSurfaceShaderSet.getShaderProgram at line 106. 2 of those changes were fix/bug commits, and the other 6 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/GlobeSurfaceShaderSet.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: packages/engine/Source/Scene/Model/Model.js packages/engine/Source/Scene/Model/Model.js:3125 — packages/engine/Source/Scene/Model/Model.js changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Model.Model.destroy at line 3125. 3 of those changes were fix/bug commits, and the other 25 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/Model/Model.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: packages/engine/Source/Scene/renderBufferPolylineCollection.js packages/engine/Source/Scene/renderBufferPolylineCollection.js:116 — packages/engine/Source/Scene/renderBufferPolylineCollection.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in renderBufferPolylineCollection.renderBufferPolylineCollection at line 116. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/renderBufferPolylineCollection.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: packages/engine/Source/Scene/Cesium3DTile.js packages/engine/Source/Scene/Cesium3DTile.js:63 — packages/engine/Source/Scene/Cesium3DTile.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Cesium3DTile.Cesium3DTile at line 63. 1 of those changes was a fix/bug commit, 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/Cesium3DTile.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: packages/engine/Source/Scene/renderBufferPolygonCollection.js packages/engine/Source/Scene/renderBufferPolygonCollection.js:90 — packages/engine/Source/Scene/renderBufferPolygonCollection.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in renderBufferPolygonCollection.renderBufferPolygonCollection at line 90. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/renderBufferPolygonCollection.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: packages/engine/Source/Scene/renderBufferPointCollection.js packages/engine/Source/Scene/renderBufferPointCollection.js:90 — packages/engine/Source/Scene/renderBufferPointCollection.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in renderBufferPointCollection.renderBufferPointCollection at line 90. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/renderBufferPointCollection.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: packages/engine/Source/Scene/Model/ModelRuntimePrimitive.js packages/engine/Source/Scene/Model/ModelRuntimePrimitive.js:194 — packages/engine/Source/Scene/Model/ModelRuntimePrimitive.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in ModelRuntimePrimitive.ModelRuntimePrimitive.configurePipeline at line 194. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/Model/ModelRuntimePrimitive.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: packages/sandcastle/gallery/hybrid-snapping-dev/main.js packages/sandcastle/gallery/hybrid-snapping-dev/main.js:235 — packages/sandcastle/gallery/hybrid-snapping-dev/main.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in main.viewer.screenSpaceEventHandler.setInputAction() at line 235. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/sandcastle/gallery/hybrid-snapping-dev/main.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: packages/engine/Source/Scene/Model/Model3DTileContent.js packages/engine/Source/Scene/Model/Model3DTileContent.js:254 — packages/engine/Source/Scene/Model/Model3DTileContent.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Model3DTileContent.update at line 254. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/Model/Model3DTileContent.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: packages/engine/Source/Scene/QuadtreePrimitive.js packages/engine/Source/Scene/QuadtreePrimitive.js:1395 — packages/engine/Source/Scene/QuadtreePrimitive.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in QuadtreePrimitive.updateHeights at line 1395. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/QuadtreePrimitive.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: packages/sandcastle/scripts/buildGallery.js packages/sandcastle/scripts/buildGallery.js:102 — packages/sandcastle/scripts/buildGallery.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in buildGallery.buildGalleryList at line 102. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/sandcastle/scripts/buildGallery.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: packages/sandcastle/src/copilot/ApiKeyDialog.tsx packages/sandcastle/src/copilot/ApiKeyDialog.tsx:45 — packages/sandcastle/src/copilot/ApiKeyDialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ApiKeyDialog.ApiKeyDialogBody at line 45. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/sandcastle/src/copilot/ApiKeyDialog.tsx`: 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: packages/engine/Source/Scene/Picking.js packages/engine/Source/Scene/Picking.js:830 — packages/engine/Source/Scene/Picking.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Picking.addDrillPickedResults at line 830. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/Picking.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.
X3 · Exception handling · Swallowed exception (empty catch) · ×15
  • Swallowed exception (empty catch) packages/widgets/Source/Viewer/Viewer.js:757 — 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) packages/sandcastle/templates/Sandcastle.ts:67 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/sandcastle/src/util/ConsoleWrapper.ts:127 — 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) packages/sandcastle/src/util/ConsoleWrapper.ts:241 — 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) packages/sandcastle/src/copilot/ai/clients/AnthropicClient.ts:321 — 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) packages/sandcastle/src/copilot/ai/clients/GeminiClient.ts:268 — 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) packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:213 — 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) packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:593 — 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) packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:1007 — 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) REDACTED:155 — 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) packages/sandcastle/src/copilot/ai/clients/streamUtils.ts:94 — 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) packages/engine/Source/Scene/Cesium3DTile.js:2269 — 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) REDACTED:460 — 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) packages/engine/Source/Core/Iau2006XysData.js:252 — 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) packages/engine/Source/Core/RequestScheduler.js:255 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
D3 · God Classes · ClassTooLong · ×14
  • ClassTooLong: Matrix4 packages/core/Source/Matrix4.js:62 — ClassTooLong — 1622 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 400 significant lines; this is 1222 over it, 4.06× 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: ChatPanel packages/sandcastle/src/copilot/ChatPanel.tsx:1 — ClassTooLong — 848 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 448 over it, 2.12× 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: VertexAIClient packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:44 — ClassTooLong — 685 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 285 over it, 1.71× 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: BoundingSphere packages/core/Source/BoundingSphere.js:29 — ClassTooLong — 672 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 272 over it, 1.68× 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: ModelReader packages/engine/Source/Scene/Model/ModelReader.js:48 — ClassTooLong — 584 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 184 over it, 1.46× 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: Quaternion packages/core/Source/Quaternion.js:16 — ClassTooLong — 537 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 137 over it, 1.34× 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: BoxGeometry packages/core/Source/BoxGeometry.js:34 — ClassTooLong — 520 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 120 over it, 1.30× 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: VoxelInspectorViewModel packages/widgets/Source/VoxelInspector/VoxelInspectorViewModel.js:1 — ClassTooLong — 503 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 103 over it, 1.26× 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: buildVectorGltfFromMVT packages/engine/Source/Scene/buildVectorGltfFromMVT.js:1 — ClassTooLong — 489 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 89 over it, 1.22× 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: ImageryPipelineStage packages/engine/Source/Scene/Model/ImageryPipelineStage.js:43 — ClassTooLong — 480 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 80 over it, 1.20× 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: Rectangle packages/core/Source/Rectangle.js:18 — ClassTooLong — 474 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 74 over it, 1.19× 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: AutomaticUniforms packages/engine/Source/Renderer/AutomaticUniforms.js:1 — ClassTooLong — 468 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 68 over it, 1.17× 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: DiffMatcher packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:18 — ClassTooLong — 437 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 37 over it, 1.09× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: Cartesian3 packages/core/Source/Cartesian3.js:20 — ClassTooLong — 434 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 34 over it, 1.09× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
AC6 · Visual & motion safety · Animation without a prefers-reduced-motion guard · ×11
  • Animation without a prefers-reduced-motion guard packages/sandcastle/gallery/imagery-layers-manipulation/REDACTED:6 — `#toolbar table tr` moves (`transition: transform 0.4s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/SceneModePicker/SceneModePicker.css:26 — `.cesium-sceneModePicker-slide-svg` moves (`transition: left 2s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.css:15 — `.cesium-navigation-help` moves (`transition: visibility 0s 0.25s, transform 0.25s ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.css:23 — `.cesium-navigation-help-visible` moves (`transition: transform 0.25s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/InfoBox/InfoBox.css:18 — `.cesium-infoBox` moves (`transition: visibility 0s 0.2s, opacity 0.2s ease-in, transform 0.2s ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/InfoBox/InfoBox.css:28 — `.cesium-infoBox-visible` moves (`transition: opacity 0.2s ease-out, transform 0.2s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/Geocoder/Geocoder.css:13 — `.cesium-viewer-geocoderContainer .cesium-geocoder-input` moves (`transition: width ease-in-out 0.25s, background-color 0.2s ease-in-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/CesiumInspector/CesiumInspector.css:3 — `.cesium-cesiumInspector` moves (`transition: width ease-in-out 0.25s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/CesiumInspector/CesiumInspector.css:112 — `.cesium-cesiumInspector-sectionContent` moves (`transition: max-height 0.25s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/BaseLayerPicker/BaseLayerPicker.css:31 — `.cesium-baseLayerPicker-dropDown` moves (`transition: visibility 0s 0.2s, opacity 0.2s ease-in, transform 0.2s ease-in`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard packages/widgets/Source/BaseLayerPicker/BaseLayerPicker.css:41 — `.cesium-baseLayerPicker-dropDown-visible` moves (`transition: opacity 0.2s ease-out, transform 0.2s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
D29 · Static Analysis (SAST) · REDACTED · ×11
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D10 · Test Quality · Skipped test · ×10
  • Skipped test: does not request tiles when the request scheduler is full packages/engine/Specs/Scene/Cesium3DTilesetSpec.js:2240 — Skipped — switched off by xit
  • Skipped test: renders in Columbus view when scene3DOnly is false packages/engine/Specs/Scene/ClassificationPrimitiveSpec.js:389 — Skipped — switched off by xit
  • Skipped test: renders in 2D when scene3DOnly is false packages/engine/Specs/Scene/ClassificationPrimitiveSpec.js:403 — Skipped — switched off by xit
  • Skipped test: renders with distance display condition per instance attribute packages/engine/Specs/Scene/GroundPolylinePrimitiveSpec.js:701 — Skipped — switched off by xit
  • Skipped test: renders clamped polylines packages/engine/Specs/Scene/Vector3DTileClampedPolylinesSpec.js:98 — Skipped — switched off by xit
  • Skipped test: picks a clamped polyline packages/engine/Specs/Scene/Vector3DTileClampedPolylinesSpec.js:115 — Skipped — switched off by xit
  • Skipped test: update is visible with zero scale for one component packages/engine/Specs/Scene/VoxelBoxShapeSpec.js:119 — Skipped — switched off by xit
  • Skipped test: renders model with emissive texture packages/engine/Specs/Scene/Model/ModelSpec.js:672 — Skipped — switched off by xit
  • Skipped test: can support 2xx HTTP status (other than 200) packages/engine/Specs/Core/ResourceSpec.js:2100 — Skipped — switched off by xit
  • Skipped test: compute all vertex attributes packages/core/Specs/PolylineVolumeGeometrySpec.js:116 — Skipped — switched off by xit
D29 · Static Analysis (SAST) · REDACTED · ×10
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D3 · God Classes · TooManyMethods · ×9
  • TooManyMethods: Matrix4 packages/core/Source/Matrix4.js:62 — TooManyMethods — 62 methods. The bar is 30 methods; this is 32 over it, 2.07× 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.
  • TooManyMethods: Matrix3 packages/core/Source/Matrix3.js:39 — TooManyMethods — 49 methods. The bar is 30 methods; this is 19 over it, 1.63× 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.
  • TooManyMethods: Cartesian3 packages/core/Source/Cartesian3.js:20 — TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× 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.
  • TooManyMethods: Matrix2 packages/core/Source/Matrix2.js:24 — TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× 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.
  • TooManyMethods: Cartesian4 packages/core/Source/Cartesian4.js:18 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× 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.
  • TooManyMethods: Cartesian2 packages/core/Source/Cartesian2.js:19 — TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× 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.
  • TooManyMethods: Quaternion packages/core/Source/Quaternion.js:16 — TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× 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.
  • TooManyMethods: Color packages/core/Source/Color.js:34 — TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× 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.
  • TooManyMethods: BoundingSphere packages/core/Source/BoundingSphere.js:29 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× 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.
X2 · Cancellation propagation · Async function without AbortSignal · ×9
  • Async function without AbortSignal: setStatus REDACTED:640 — `setStatus` 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: setTypes packages/sandcastle/src/SandcastleEditor.tsx:211 — `setTypes` 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: initialize packages/sandcastle/src/Gallery/EmbeddingSearch.ts:46 — `initialize` 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: fetchItemsAction packages/sandcastle/src/Gallery/GalleryItemStore.ts:257 — `fetchItemsAction` 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: getJsCode packages/sandcastle/src/Gallery/GalleryItemStore.ts:271 — `getJsCode` 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: getHtmlCode packages/sandcastle/src/Gallery/GalleryItemStore.ts:278 — `getHtmlCode` 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: loadGist packages/sandcastle/src/Gallery/loadFromUrl.ts:6 — `loadGist` 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: loadCzmlFile packages/sandcastle/gallery/time-dependent-path-graphics/main.js:42 — `loadCzmlFile` 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: loadCzmlWithMaterialMode packages/sandcastle/gallery/time-dependent-path-graphics/main.js:52 — `loadCzmlWithMaterialMode` 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 })`.
IC1 · Incompleteness & stubs · Fake-async · ×6
  • Fake-async — async method never awaits REDACTED:335 — `tsc` 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 packages/engine/Source/Core/SnapService.js:46 — `snap` 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 packages/engine/Source/Workers/gaussianSplatSorter.js:6 — `initWorker` 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 packages/engine/Source/Workers/gaussianSplatTextureGenerator.js:6 — `initWorker` 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 packages/sandcastle/gallery/3d-tiles-1.1-photogrammetry/main.js:94 — `viewTilesets` 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 packages/widgets/Source/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorerViewModel.js:69 — `setLevels` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
IC1 · Incompleteness & stubs · Empty method body · ×6
  • Empty method body — does nothing with its inputs packages/engine/Source/Scene/Empty3DTileContent.js:123 — `applyDebugSettings` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs packages/engine/Source/Scene/Empty3DTileContent.js:124 — `applyStyle` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs packages/engine/Source/Scene/Implicit3DTileContent.js:312 — `applyDebugSettings` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs packages/engine/Source/Scene/Implicit3DTileContent.js:313 — `applyStyle` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs packages/engine/Source/Scene/Tileset3DTileContent.js:141 — `applyDebugSettings` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs packages/engine/Source/Scene/Tileset3DTileContent.js:142 — `applyStyle` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×5
  • Focus outline removed in CSS without a :focus replacement packages/sandcastle/gallery/atmosphere/REDACTED:15 — `.tab-bar button` 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 packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.css:91 — `.cesium-navigation-button: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 packages/widgets/Source/CesiumInspector/CesiumInspector.css:81 — `.cesium-cesiumInspector-pickButton: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 packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspector.css:18 — `.cesium-cesiumInspector-slider input[type="number"]` 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 packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspector.css:104 — `input.cesium-cesiumInspector-url` 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.
IC1 · Incompleteness & stubs · Hollow method · ×5
  • Hollow method — returns a constant without doing the work packages/engine/Source/Scene/Empty3DTileContent.js:127 — `pick` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work packages/engine/Source/Scene/Geometry3DTileContent.js:182 — `pick` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work packages/engine/Source/Scene/Implicit3DTileContent.js:316 — `pick` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work packages/engine/Source/Scene/Tileset3DTileContent.js:145 — `pick` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
  • Hollow method — returns a constant without doing the work packages/engine/Source/Scene/Vector3DTileContent.js:243 — `pick` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
AC3 · Page structure · Page without a main landmark · ×4
  • Page without a main landmark Apps/CesiumViewer/REDACTED:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="cesiumContainer">, so there is no content here to wrap — render the <main> from the component mounted into it.
  • Page without a main landmark Apps/HelloWorld.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="cesiumContainer">, so there is no content here to wrap — render the <main> from the component mounted into it.
  • Page without a main landmark REDACTED:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark REDACTED:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
SC1 · Supply-chain hygiene · JavaScript dependencies are not locked · ×4
  • JavaScript dependencies are not locked .github/actions/check-for-CLA/package.json:5 — .github/actions/check-for-CLA/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / 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 .github/actions/update-tokens/package.json:18 — .github/actions/update-tokens/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / 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 Tools/rollup-plugin-strip-pragma/package.json:21 — Tools/rollup-plugin-strip-pragma/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / 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 package.json:53 — package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / 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.
D36 · Supply-chain Provenance & Signing · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
AC1 · Text alternatives · <canvas> without a text alternative · ×2
  • <canvas> without a text alternative packages/sandcastle/gallery/bathymetry/REDACTED:23 — 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.
  • <canvas> without a text alternative packages/widgets/Source/Timeline/Timeline.js:151 — 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 · Empty <h4> heading · ×2
  • Empty <h4> heading packages/sandcastle/gallery/aec-elements-api-aggregate/REDACTED:39 — An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it's decorative.
  • Empty <h4> heading packages/sandcastle/gallery/aec-elements-api-query/REDACTED:54 — An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it's decorative.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.8 · ×2
  • Low contrast colour pair in CSS (3.8:1) packages/widgets/Source/lighterShared.css:22 — `.cesium-lighter .cesium-button:active` sets color: #fff on background-color: #48b — 3.8: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.8:1) packages/widgets/Source/shared.css:35 — `.cesium-button:hover` sets color: #fff on background-color: #48b — 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · update (cyclomatic 42) · ×2
  • update (cyclomatic 42) packages/engine/Source/Scene/Primitive.js:2083 — update has cyclomatic complexity 42 (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.
  • update (cyclomatic 42) packages/engine/Source/Scene/ClassificationPrimitive.js:1042 — update has cyclomatic complexity 42 (threshold 15). Of this number, 39 points are the body's own statements and 3 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.
D2 · Cognitive Complexity · update (cognitive 54) · ×2
  • update (cognitive 54) packages/engine/Source/Scene/ClassificationPrimitive.js:1042 — update has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 15, loops 2 (4 pts), ternaries 1 (2 pts), other 1 (nesting depth added 15). Of this number, 50 points are the body's own statements and 4 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.
  • update (cognitive 54) packages/engine/Source/Scene/VoxelEllipsoidShape.js:236 — update has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 21, other 2, loops 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 · update (cognitive 33) · ×2
  • update (cognitive 33) packages/engine/Source/Scene/GroundPolylinePrimitive.js:664 — update has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 3 (7 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 14). Of this number, 28 points are the body's own statements and 5 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.
  • update (cognitive 33) packages/engine/Source/Scene/PostProcessStageCollection.js:574 — update has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 9 (13 pts), loops 5 (7 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 · main.viewer.screenSpaceEventHandler.setInputAction() (cognitive 27) · ×2
  • main.viewer.screenSpaceEventHandler.setInputAction() (cognitive 27) packages/sandcastle/gallery/i3s-3d-object-layer/main.js:51 — main.viewer.screenSpaceEventHandler.setInputAction() has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 17). Most of this is not in the body itself: 5 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 66). 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.
  • main.viewer.screenSpaceEventHandler.setInputAction() (cognitive 27) packages/sandcastle/gallery/i3s-feature-picking/main.js:51 — main.viewer.screenSpaceEventHandler.setInputAction() has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 17). Most of this is not in the body itself: 5 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 66). 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 · update (cognitive 17) · ×2
  • update (cognitive 17) packages/engine/Source/Renderer/UniformState.js:1489 — update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), other 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.
  • update (cognitive 17) packages/engine/Source/Scene/CloudCollection.js:944 — update has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 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.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
R10 · Code Duplication · Duplicated block with local edits (191 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (191 matched lines × 2 locations) packages/engine/REDACTED:134 — packages/engine/REDACTED:134 · packages/engine/Source/Scene/GoogleEarthEnterpriseMapsProvider.js:123 — the two spans are one implementation copied and then locally edited — 776 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 (191 matched lines × 2 locations) packages/engine/Source/Scene/renderBufferPointCollection.js:62 — packages/engine/Source/Scene/renderBufferPointCollection.js:62 · packages/engine/Source/Scene/renderBufferPolygonCollection.js:61 — the two spans are one implementation copied and then locally edited — 1058 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (123 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (123 matched lines × 2 locations) packages/engine/Source/Scene/Geometry3DTileContent.js:27 — packages/engine/Source/Scene/Geometry3DTileContent.js:27 · packages/engine/Source/Scene/Vector3DTileContent.js:41 — the two spans are one implementation copied and then locally edited — 633 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 (123 matched lines × 2 locations) packages/engine/Source/Scene/Model/Model.js:870 — packages/engine/Source/Scene/Model/Model.js:870 · packages/engine/Source/Scene/Model/Model.js:1449 — the two spans are one implementation copied and then locally edited — 500 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.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×2
  • Recursive walk over a caller-supplied document has no depth cap packages/engine/Source/Renderer/freezeRenderState.js:25 — `freezeRenderState` is exported and takes `renderState: object` from its caller, and it calls itself at line 25 (`freezeRenderState`) with a piece of `renderState` — and nowhere in `freezeRenderState` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `freezeRenderState` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/core/Source/clone.js:23 — `clone` is exported and takes `object: object` from its caller, and it calls itself at line 23 (`clone`) with a piece of `object` — and nowhere in `clone` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `clone` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
AC3 · Page structure · Heading level jumps from h1 to h4 · ×1
  • Heading level jumps from h1 to h4 packages/sandcastle/gallery/3d-tiles-nga-gpm-visualization/REDACTED:13 — 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 (4.0 · ×1
  • Low contrast colour pair in CSS (4.0:1) packages/sandcastle/gallery/camera/REDACTED:5 — `#viewChanged, #cameraChanged` sets color: white on background-color: red — 4.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.7 · ×1
  • Low contrast colour pair in CSS (2.7:1) packages/widgets/Source/InfoBox/InfoBox.css:90 — `button.cesium-infoBox-close:active` sets color: #000 on background-color: #a00 — 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 (4.2 · ×1
  • Low contrast colour pair in CSS (4.2:1) packages/engine/Source/Widget/CesiumWidget.css:106 — `.cesium-widget-errorPanel-buttonPanel button:active` sets color: #510c00 on background-color: #b17b72 — 4.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 (1.0 · ×1
  • Low contrast colour pair in CSS (1.0:1) Tools/jsdoc/cesium_template/static/styles/jsdoc-default.css:57 — `div.hr` sets color: #dadada on background-color: #dadada — 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 (3.2 · ×1
  • Low contrast colour pair in CSS (3.2:1) Tools/jsdoc/cesium_template/static/styles/jsdoc-default.css:645 — `span.attribute-abstract, span.attribute-static, span.attribute-readonly, span.attribute-deprecated, span.attribute-constant, span.signature-internal-constructor` sets color: #fff on background-color: #779c34 — 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) Tools/jsdoc/cesium_template/static/styles/jsdoc-default.css:697 — `div.tag-experimental` sets color: #925415 on background-color: #ffd4a8 — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
C2 · Access Controls · No authorization · ×1
  • No authorization server.js:192 — This repository serves requests — express() (server.js:192) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected.
D1 · Cyclomatic Complexity · ChatPanel.ChatPanel (cyclomatic 114) · ×1
  • ChatPanel.ChatPanel (cyclomatic 114) packages/sandcastle/src/copilot/ChatPanel.tsx:152 — ChatPanel.ChatPanel has cyclomatic complexity 114 (threshold 15). Most of this is not in the body itself: 14 of the 114 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 297, 953, 923, …). 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 · BillboardCollection.BillboardCollection.update (cyclomatic 109) · ×1
  • BillboardCollection.BillboardCollection.update (cyclomatic 109) packages/engine/Source/Scene/BillboardCollection.js:1569 — BillboardCollection.BillboardCollection.update has cyclomatic complexity 109 (threshold 15). Of this number, 108 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 · addDrawCommandsForTile (cyclomatic 108) · ×1
  • addDrawCommandsForTile (cyclomatic 108) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511 — addDrawCommandsForTile has cyclomatic complexity 108 (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 · RenderState (cyclomatic 96) · ×1
  • RenderState (cyclomatic 96) packages/engine/Source/Renderer/RenderState.js:93 — RenderState has cyclomatic complexity 96 (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 · Expression.Node.getShaderExpression (cyclomatic 90) · ×1
  • Expression.Node.getShaderExpression (cyclomatic 90) REDACTED:1906 — Expression.Node.getShaderExpression has cyclomatic complexity 90 (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 (cyclomatic 89) · ×1
  • update (cyclomatic 89) packages/engine/Source/Scene/GaussianSplatPrimitive.js:1967 — update has cyclomatic complexity 89 (threshold 15). Of this number, 70 points are the body's own statements and 19 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 · GlobeSurfaceShaderSet.getShaderProgram (cyclomatic 85) · ×1
  • GlobeSurfaceShaderSet.getShaderProgram (cyclomatic 85) packages/engine/Source/Scene/GlobeSurfaceShaderSet.js:106 — GlobeSurfaceShaderSet.getShaderProgram has cyclomatic complexity 85 (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 · Viewer (cyclomatic 75) · ×1
  • Viewer (cyclomatic 75) packages/widgets/Source/Viewer/Viewer.js:429 — Viewer has cyclomatic complexity 75 (threshold 15). Of this number, 66 points are the body's own statements and 9 belong to 6 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 · PolygonGeometry.computeAttributes (cyclomatic 73) · ×1
  • PolygonGeometry.computeAttributes (cyclomatic 73) packages/core/Source/PolygonGeometry.js:62 — PolygonGeometry.computeAttributes 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.
D1 · Cyclomatic Complexity · JulianDate.fromIso8601 (cyclomatic 69) · ×1
  • JulianDate.fromIso8601 (cyclomatic 69) packages/core/Source/JulianDate.js:312 — JulianDate.fromIso8601 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 · EllipsoidGeometry.createGeometry (cyclomatic 69) · ×1
  • EllipsoidGeometry.createGeometry (cyclomatic 69) packages/core/Source/EllipsoidGeometry.js:214 — EllipsoidGeometry.createGeometry 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 · Cesium3DTileset (cyclomatic 69) · ×1
  • Cesium3DTileset (cyclomatic 69) packages/engine/Source/Scene/Cesium3DTileset.js:215 — Cesium3DTileset has cyclomatic complexity 69 (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 · PointPrimitiveCollection.PointPrimitiveCollection.update (cyclomatic 64) · ×1
  • PointPrimitiveCollection.PointPrimitiveCollection.update (cyclomatic 64) packages/engine/Source/Scene/PointPrimitiveCollection.js:845 — PointPrimitiveCollection.PointPrimitiveCollection.update has cyclomatic complexity 64 (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 · PointCloud.createShaders (cyclomatic 64) · ×1
  • PointCloud.createShaders (cyclomatic 64) packages/engine/Source/Scene/PointCloud.js:770 — PointCloud.createShaders has cyclomatic complexity 64 (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 · ChatMessage.ChatMessage (cyclomatic 64) · ×1
  • ChatMessage.ChatMessage (cyclomatic 64) packages/sandcastle/src/copilot/ChatMessage.tsx:19 — ChatMessage.ChatMessage has cyclomatic complexity 64 (threshold 15). Of this number, 51 points are the body's own statements and 13 belong to 6 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 · RectangleGeometry.constructExtrudedRectangle (cyclomatic 60) · ×1
  • RectangleGeometry.constructExtrudedRectangle (cyclomatic 60) packages/core/Source/RectangleGeometry.js:457 — RectangleGeometry.constructExtrudedRectangle has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Cesium3DTilesInspectorViewModel.Cesium3DTilesInspectorViewModel (cyclomatic 58) · ×1
  • Cesium3DTilesInspectorViewModel.Cesium3DTilesInspectorViewModel (cyclomatic 58) packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js:167 — Cesium3DTilesInspectorViewModel.Cesium3DTilesInspectorViewModel has cyclomatic complexity 58 (threshold 15). Most of this is not in the body itself: 2 of the 58 points are its own statements and the rest belongs to 34 function literals inside it that branch (lines 398, 838, 862, …). 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 · App.App (cyclomatic 57) · ×1
  • App.App (cyclomatic 57) packages/sandcastle/src/App.tsx:123 — App.App has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 14 of the 57 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 473, a function literal at line 251, a function literal at line 399, …). 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 · createElevationBandMaterial.createLayeredEntries (cyclomatic 56) · ×1
  • createElevationBandMaterial.createLayeredEntries (cyclomatic 56) packages/engine/Source/Scene/createElevationBandMaterial.js:202 — createElevationBandMaterial.createLayeredEntries has cyclomatic complexity 56 (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 (cyclomatic 54) · ×1
  • update (cyclomatic 54) packages/engine/Source/Scene/VoxelEllipsoidShape.js:236 — update has cyclomatic complexity 54 (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 · Texture (cyclomatic 53) · ×1
  • Texture (cyclomatic 53) packages/engine/Source/Renderer/Texture.js:50 — Texture 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.
D1 · Cyclomatic Complexity · updateVersion.objectsToArrays (cyclomatic 51) · ×1
  • updateVersion.objectsToArrays (cyclomatic 51) packages/gltf/Source/updateVersion.js:308 — updateVersion.objectsToArrays has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 10 of the 51 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 429, 518, 376, …). 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 · unwrapInterval (cyclomatic 51) · ×1
  • unwrapInterval (cyclomatic 51) packages/engine/Source/DataSources/CzmlDataSource.js:524 — unwrapInterval has cyclomatic complexity 51 (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 · handleZoom (cyclomatic 51) · ×1
  • handleZoom (cyclomatic 51) packages/engine/Source/Scene/ScreenSpaceCameraController.js:561 — handleZoom has cyclomatic complexity 51 (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 · HeightmapTessellator.HeightmapTessellator.computeVertices (cyclomatic 50) · ×1
  • HeightmapTessellator.HeightmapTessellator.computeVertices (cyclomatic 50) packages/engine/Source/Core/HeightmapTessellator.js:117 — HeightmapTessellator.HeightmapTessellator.computeVertices has cyclomatic complexity 50 (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.executeCommands (cyclomatic 50) · ×1
  • Scene.executeCommands (cyclomatic 50) packages/engine/Source/Scene/Scene.js:2780 — Scene.executeCommands has cyclomatic complexity 50 (threshold 15). Of this number, 48 points are the body's own statements and 2 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 · Expression.setEvaluateFunction (cyclomatic 48) · ×1
  • Expression.setEvaluateFunction (cyclomatic 48) REDACTED:955 — Expression.setEvaluateFunction has cyclomatic complexity 48 (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 · ImageryLayer.ImageryLayer._createTileImagerySkeletons (cyclomatic 48) · ×1
  • ImageryLayer.ImageryLayer._createTileImagerySkeletons (cyclomatic 48) packages/engine/Source/Scene/ImageryLayer.js:688 — ImageryLayer.ImageryLayer._createTileImagerySkeletons 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 · Model (cyclomatic 48) · ×1
  • Model (cyclomatic 48) packages/engine/Source/Scene/Model/Model.js:213 — Model has cyclomatic complexity 48 (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 · buildVectorGltfFromMVT (cyclomatic 47) · ×1
  • buildVectorGltfFromMVT (cyclomatic 47) packages/engine/Source/Scene/buildVectorGltfFromMVT.js:80 — buildVectorGltfFromMVT has cyclomatic complexity 47 (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 · renderBufferPolylineCollection.renderBufferPolylineCollection (cyclomatic 45) · ×1
  • renderBufferPolylineCollection.renderBufferPolylineCollection (cyclomatic 45) packages/engine/Source/Scene/renderBufferPolylineCollection.js:116 — renderBufferPolylineCollection.renderBufferPolylineCollection has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Expression.parseCall (cyclomatic 45) · ×1
  • Expression.parseCall (cyclomatic 45) REDACTED:652 — Expression.parseCall has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EdgeVisibilityPipelineStage.createQuadEdgeGeometry (cyclomatic 44) · ×1
  • EdgeVisibilityPipelineStage.createQuadEdgeGeometry (cyclomatic 44) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:623 — EdgeVisibilityPipelineStage.createQuadEdgeGeometry has cyclomatic complexity 44 (threshold 15). Of this number, 34 points are the body's own statements and 10 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 · PathVisualizer.PolylineUpdater.updateObject (cyclomatic 44) · ×1
  • PathVisualizer.PolylineUpdater.updateObject (cyclomatic 44) packages/engine/Source/DataSources/PathVisualizer.js:900 — PathVisualizer.PolylineUpdater.updateObject 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.
D1 · Cyclomatic Complexity · CesiumWidget (cyclomatic 44) · ×1
  • CesiumWidget (cyclomatic 44) packages/engine/Source/Widget/CesiumWidget.js:209 — CesiumWidget has cyclomatic complexity 44 (threshold 15). Of this number, 42 points are the body's own statements and 2 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 · CesiumViewer.main (cyclomatic 43) · ×1
  • CesiumViewer.main (cyclomatic 43) Apps/CesiumViewer/CesiumViewer.js:24 — CesiumViewer.main has cyclomatic complexity 43 (threshold 15). Of this number, 42 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 · forEachTextureInMaterial.forEachTextureInMaterial (cyclomatic 43) · ×1
  • forEachTextureInMaterial.forEachTextureInMaterial (cyclomatic 43) packages/gltf/Source/forEachTextureInMaterial.js:24 — forEachTextureInMaterial.forEachTextureInMaterial has cyclomatic complexity 43 (threshold 15). Of this number, 41 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EllipsoidOutlineGeometry.createGeometry (cyclomatic 42) · ×1
  • EllipsoidOutlineGeometry.createGeometry (cyclomatic 42) packages/core/Source/EllipsoidOutlineGeometry.js:205 — EllipsoidOutlineGeometry.createGeometry has cyclomatic complexity 42 (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.
D1 · Cyclomatic Complexity · Scene.updateAndClearFramebuffers (cyclomatic 42) · ×1
  • Scene.updateAndClearFramebuffers (cyclomatic 42) packages/engine/Source/Scene/Scene.js:3964 — Scene.updateAndClearFramebuffers has cyclomatic complexity 42 (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 · EllipseGeometry.computeTopBottomAttributes (cyclomatic 40) · ×1
  • EllipseGeometry.computeTopBottomAttributes (cyclomatic 40) packages/core/Source/EllipseGeometry.js:46 — EllipseGeometry.computeTopBottomAttributes has cyclomatic complexity 40 (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 · CylinderGeometry.createGeometry (cyclomatic 40) · ×1
  • CylinderGeometry.createGeometry (cyclomatic 40) packages/core/Source/CylinderGeometry.js:185 — CylinderGeometry.createGeometry has cyclomatic complexity 40 (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 · EdgeVisibilityPipelineStage.extractVisibleEdges (cyclomatic 40) · ×1
  • EdgeVisibilityPipelineStage.extractVisibleEdges (cyclomatic 40) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:348 — EdgeVisibilityPipelineStage.extractVisibleEdges has cyclomatic complexity 40 (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 · TerrainFillMesh.propagateEdge (cyclomatic 40) · ×1
  • TerrainFillMesh.propagateEdge (cyclomatic 40) packages/engine/Source/Scene/TerrainFillMesh.js:504 — TerrainFillMesh.propagateEdge has cyclomatic complexity 40 (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 · upsampleQuantizedTerrainMesh.upsampleQuantizedTerrainMesh (cyclomatic 40) · ×1
  • upsampleQuantizedTerrainMesh.upsampleQuantizedTerrainMesh (cyclomatic 40) packages/engine/Source/Workers/upsampleQuantizedTerrainMesh.js:38 — upsampleQuantizedTerrainMesh.upsampleQuantizedTerrainMesh has cyclomatic complexity 40 (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 · addAttribute (cyclomatic 40) · ×1
  • addAttribute (cyclomatic 40) packages/engine/Source/Renderer/VertexArray.js:22 — addAttribute has cyclomatic complexity 40 (threshold 15). Of this number, 38 points are the body's own statements and 2 belong to 7 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 · PolylineGeometry.createGeometry (cyclomatic 39) · ×1
  • PolylineGeometry.createGeometry (cyclomatic 39) packages/core/Source/PolylineGeometry.js:281 — PolylineGeometry.createGeometry has cyclomatic complexity 39 (threshold 15). Of this number, 37 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 · CesiumTerrainProvider.parseMetadataSuccess (cyclomatic 39) · ×1
  • CesiumTerrainProvider.parseMetadataSuccess (cyclomatic 39) packages/engine/Source/Core/CesiumTerrainProvider.js:119 — CesiumTerrainProvider.parseMetadataSuccess has cyclomatic complexity 39 (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 · renderBufferPolygonCollection.renderBufferPolygonCollection (cyclomatic 39) · ×1
  • renderBufferPolygonCollection.renderBufferPolygonCollection (cyclomatic 39) packages/engine/Source/Scene/renderBufferPolygonCollection.js:90 — renderBufferPolygonCollection.renderBufferPolygonCollection has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EllipsoidGeometryUpdater.DynamicEllipsoidGeometryUpdater.update (cyclomatic 39) · ×1
  • EllipsoidGeometryUpdater.DynamicEllipsoidGeometryUpdater.update (cyclomatic 39) packages/engine/Source/DataSources/EllipsoidGeometryUpdater.js:388 — EllipsoidGeometryUpdater.DynamicEllipsoidGeometryUpdater.update has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TimeIntervalCollection.addInterval (cyclomatic 38) · ×1
  • TimeIntervalCollection.addInterval (cyclomatic 38) packages/core/Source/TimeIntervalCollection.js:283 — TimeIntervalCollection.addInterval 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 · renderBufferPointCollection.renderBufferPointCollection (cyclomatic 38) · ×1
  • renderBufferPointCollection.renderBufferPointCollection (cyclomatic 38) packages/engine/Source/Scene/renderBufferPointCollection.js:90 — renderBufferPointCollection.renderBufferPointCollection 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.
D1 · Cyclomatic Complexity · CzmlDataSource.getPropertyType (cyclomatic 38) · ×1
  • CzmlDataSource.getPropertyType (cyclomatic 38) packages/engine/Source/DataSources/CzmlDataSource.js:431 — CzmlDataSource.getPropertyType 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.
D1 · Cyclomatic Complexity · EllipsoidPrimitive.EllipsoidPrimitive.update (cyclomatic 38) · ×1
  • EllipsoidPrimitive.EllipsoidPrimitive.update (cyclomatic 38) packages/engine/Source/Scene/EllipsoidPrimitive.js:245 — EllipsoidPrimitive.EllipsoidPrimitive.update 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 · AnthropicClient.processSSEStream (cyclomatic 38) · ×1
  • AnthropicClient.processSSEStream (cyclomatic 38) packages/sandcastle/src/copilot/ai/clients/AnthropicClient.ts:181 — AnthropicClient.processSSEStream 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 · VertexAIClient.processClaudeSSEStream (cyclomatic 38) · ×1
  • VertexAIClient.processClaudeSSEStream (cyclomatic 38) packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:866 — VertexAIClient.processClaudeSSEStream 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 · useToolChainExecution.useToolChainExecution.continueToolChain (cyclomatic 38) · ×1
  • useToolChainExecution.useToolChainExecution.continueToolChain (cyclomatic 38) packages/sandcastle/src/copilot/hooks/useToolChainExecution.ts:170 — useToolChainExecution.useToolChainExecution.continueToolChain has cyclomatic complexity 38 (threshold 15). Of this number, 35 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 · processProperty (cyclomatic 38) · ×1
  • processProperty (cyclomatic 38) packages/engine/Source/DataSources/CzmlDataSource.js:671 — processProperty 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 · processPositionProperty (cyclomatic 38) · ×1
  • processPositionProperty (cyclomatic 38) packages/engine/Source/DataSources/CzmlDataSource.js:913 — processPositionProperty 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 · buildGallery.buildGalleryList (cyclomatic 37) · ×1
  • buildGallery.buildGalleryList (cyclomatic 37) packages/sandcastle/scripts/buildGallery.js:102 — buildGallery.buildGalleryList has cyclomatic complexity 37 (threshold 15). Of this number, 36 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 · Geometry3DTileContent.getBatchIds (cyclomatic 37) · ×1
  • Geometry3DTileContent.getBatchIds (cyclomatic 37) packages/engine/Source/Scene/Geometry3DTileContent.js:205 — Geometry3DTileContent.getBatchIds has cyclomatic complexity 37 (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 · StaticGeometryColorBatch.Batch.update (cyclomatic 37) · ×1
  • StaticGeometryColorBatch.Batch.update (cyclomatic 37) packages/engine/Source/DataSources/StaticGeometryColorBatch.js:124 — StaticGeometryColorBatch.Batch.update has cyclomatic complexity 37 (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 · AnimationViewModel.AnimationViewModel (cyclomatic 37) · ×1
  • AnimationViewModel.AnimationViewModel (cyclomatic 37) packages/widgets/Source/Animation/AnimationViewModel.js:104 — AnimationViewModel.AnimationViewModel has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 4 of the 37 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 238, 198, 168, …). 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 · QuadtreePrimitive.visitTile (cyclomatic 36) · ×1
  • QuadtreePrimitive.visitTile (cyclomatic 36) packages/engine/Source/Scene/QuadtreePrimitive.js:717 — QuadtreePrimitive.visitTile 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 · Timeline.Timeline._makeTics (cyclomatic 36) · ×1
  • Timeline.Timeline._makeTics (cyclomatic 36) packages/widgets/Source/Timeline/Timeline.js:407 — Timeline.Timeline._makeTics 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 · Texture3D (cyclomatic 36) · ×1
  • Texture3D (cyclomatic 36) packages/engine/Source/Renderer/Texture3D.js:56 — Texture3D 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 · EntityCluster.createDeclutterCallback.<returned closure> (cyclomatic 35) · ×1
  • EntityCluster.createDeclutterCallback.<returned closure> (cyclomatic 35) packages/engine/Source/DataSources/EntityCluster.js:226 — EntityCluster.createDeclutterCallback.<returned closure> 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 · transcodeKTX2.transcodeCompressed (cyclomatic 35) · ×1
  • transcodeKTX2.transcodeCompressed (cyclomatic 35) packages/engine/Source/Workers/transcodeKTX2.js:138 — transcodeKTX2.transcodeCompressed 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.
D1 · Cyclomatic Complexity · createDeclutterCallback (cyclomatic 35) · ×1
  • createDeclutterCallback (cyclomatic 35) packages/engine/Source/DataSources/EntityCluster.js:225 — createDeclutterCallback 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 one function literal inside it that branches (line 226). 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 · ParticleSystem (cyclomatic 35) · ×1
  • ParticleSystem (cyclomatic 35) packages/engine/Source/Scene/ParticleSystem.js:60 — ParticleSystem 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.
D1 · Cyclomatic Complexity · _onEntityPropertyChanged (cyclomatic 35) · ×1
  • _onEntityPropertyChanged (cyclomatic 35) packages/engine/Source/DataSources/PolylineGeometryUpdater.js:478 — _onEntityPropertyChanged 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 · ModelRuntimePrimitive.ModelRuntimePrimitive.configurePipeline (cyclomatic 34) · ×1
  • ModelRuntimePrimitive.ModelRuntimePrimitive.configurePipeline (cyclomatic 34) packages/engine/Source/Scene/Model/ModelRuntimePrimitive.js:194 — ModelRuntimePrimitive.ModelRuntimePrimitive.configurePipeline 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 · PathVisualizer.subSampleSampledProperty (cyclomatic 34) · ×1
  • PathVisualizer.subSampleSampledProperty (cyclomatic 34) packages/engine/Source/DataSources/PathVisualizer.js:226 — PathVisualizer.subSampleSampledProperty 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.
D1 · Cyclomatic Complexity · removeUnusedElements.Remove.bufferView (cyclomatic 34) · ×1
  • removeUnusedElements.Remove.bufferView (cyclomatic 34) packages/gltf/Source/removeUnusedElements.js:165 — removeUnusedElements.Remove.bufferView has cyclomatic complexity 34 (threshold 15). Of this number, 25 points are the body's own statements and 9 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 · processNetworkLink (cyclomatic 34) · ×1
  • processNetworkLink (cyclomatic 34) REDACTED:2999 — processNetworkLink has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 13 of the 34 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3078, 3196). 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 · Resource.Resource._Implementations.loadWithXhr (cyclomatic 33) · ×1
  • Resource.Resource._Implementations.loadWithXhr (cyclomatic 33) packages/engine/Source/Core/Resource.js:2099 — Resource.Resource._Implementations.loadWithXhr has cyclomatic complexity 33 (threshold 15). Of this number, 24 points are the body's own statements and 9 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 · Framebuffer.Framebuffer (cyclomatic 33) · ×1
  • Framebuffer.Framebuffer (cyclomatic 33) packages/engine/Source/Renderer/Framebuffer.js:86 — Framebuffer.Framebuffer 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 · ModelAnimationCollection.ModelAnimationCollection.update (cyclomatic 33) · ×1
  • ModelAnimationCollection.ModelAnimationCollection.update (cyclomatic 33) packages/engine/Source/Scene/Model/ModelAnimationCollection.js:405 — ModelAnimationCollection.ModelAnimationCollection.update 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 · PolylineCollection.PolylineCollection.update (cyclomatic 33) · ×1
  • PolylineCollection.PolylineCollection.update (cyclomatic 33) packages/engine/Source/Scene/PolylineCollection.js:419 — PolylineCollection.PolylineCollection.update 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 · Camera.updateMembers (cyclomatic 33) · ×1
  • Camera.updateMembers (cyclomatic 33) packages/engine/Source/Scene/Camera.js:660 — Camera.updateMembers 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 · Scene.Scene.updateEnvironment (cyclomatic 33) · ×1
  • Scene.Scene.updateEnvironment (cyclomatic 33) packages/engine/Source/Scene/Scene.js:3720 — Scene.Scene.updateEnvironment 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 · TimeIntervalCollection.removeInterval (cyclomatic 32) · ×1
  • TimeIntervalCollection.removeInterval (cyclomatic 32) packages/core/Source/TimeIntervalCollection.js:488 — TimeIntervalCollection.removeInterval has cyclomatic complexity 32 (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 · Vector3DTilePoints.Vector3DTilePoints.applyStyle (cyclomatic 32) · ×1
  • Vector3DTilePoints.Vector3DTilePoints.applyStyle (cyclomatic 32) packages/engine/Source/Scene/Vector3DTilePoints.js:324 — Vector3DTilePoints.Vector3DTilePoints.applyStyle 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 · VertexAIClient.geminiStreamRequest (cyclomatic 32) · ×1
  • VertexAIClient.geminiStreamRequest (cyclomatic 32) packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:457 — VertexAIClient.geminiStreamRequest 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 · ApiKeyDialog.ApiKeyDialogBody (cyclomatic 32) · ×1
  • ApiKeyDialog.ApiKeyDialogBody (cyclomatic 32) packages/sandcastle/src/copilot/ApiKeyDialog.tsx:45 — ApiKeyDialog.ApiKeyDialogBody has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 11 of the 32 points are its own statements and the rest belongs to 4 function items inside it that branch (handleVertexSave, handleAnthropicSave, handleGeminiSave, …). 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 · CesiumInspectorViewModel.CesiumInspectorViewModel (cyclomatic 32) · ×1
  • CesiumInspectorViewModel.CesiumInspectorViewModel (cyclomatic 32) packages/widgets/Source/CesiumInspector/CesiumInspectorViewModel.js:67 — CesiumInspectorViewModel.CesiumInspectorViewModel has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 8 of the 32 points are its own statements and the rest belongs to 12 function items inside it that branch (selectTile, a function literal at line 366, a function literal at line 343, …). 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 · ShadowMap (cyclomatic 32) · ×1
  • ShadowMap (cyclomatic 32) packages/engine/Source/Scene/ShadowMap.js:83 — ShadowMap 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.
D1 · Cyclomatic Complexity · CorridorGeometry.combine (cyclomatic 31) · ×1
  • CorridorGeometry.combine (cyclomatic 31) packages/core/Source/CorridorGeometry.js:59 — CorridorGeometry.combine has cyclomatic complexity 31 (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.
D1 · Cyclomatic Complexity · PixelFormat.PixelFormat.toInternalFormat (cyclomatic 31) · ×1
  • PixelFormat.PixelFormat.toInternalFormat (cyclomatic 31) packages/core/Source/PixelFormat.js:582 — PixelFormat.PixelFormat.toInternalFormat has cyclomatic complexity 31 (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 · RectangleGeometry.constructRectangle (cyclomatic 31) · ×1
  • RectangleGeometry.constructRectangle (cyclomatic 31) packages/core/Source/RectangleGeometry.js:220 — RectangleGeometry.constructRectangle 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 · RenderState.createFuncs (cyclomatic 31) · ×1
  • RenderState.createFuncs (cyclomatic 31) packages/engine/Source/Renderer/RenderState.js:741 — RenderState.createFuncs has cyclomatic complexity 31 (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 · PolylineCollection.PolylineBucket.write (cyclomatic 31) · ×1
  • PolylineCollection.PolylineBucket.write (cyclomatic 31) packages/engine/Source/Scene/PolylineCollection.js:1351 — PolylineCollection.PolylineBucket.write 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 · Scene.executeCommand (cyclomatic 31) · ×1
  • Scene.executeCommand (cyclomatic 31) packages/engine/Source/Scene/Scene.js:2277 — Scene.executeCommand 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 · decodeI3S.generateGltfBuffer (cyclomatic 31) · ×1
  • decodeI3S.generateGltfBuffer (cyclomatic 31) packages/engine/Source/Workers/decodeI3S.js:628 — decodeI3S.generateGltfBuffer 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.
D1 · Cyclomatic Complexity · Billboard (cyclomatic 31) · ×1
  • Billboard (cyclomatic 31) packages/engine/Source/Scene/Billboard.js:100 — Billboard 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 · InvertClassification.InvertClassification.update (cyclomatic 30) · ×1
  • InvertClassification.InvertClassification.update (cyclomatic 30) packages/engine/Source/Scene/InvertClassification.js:177 — InvertClassification.InvertClassification.update has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShadowMapShader.ShadowMapShader.createShadowReceiveFragmentShader (cyclomatic 30) · ×1
  • ShadowMapShader.ShadowMapShader.createShadowReceiveFragmentShader (cyclomatic 30) packages/engine/Source/Scene/ShadowMapShader.js:215 — ShadowMapShader.ShadowMapShader.createShadowReceiveFragmentShader 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.
D1 · Cyclomatic Complexity · PostProcessStageCollection.PostProcessStageCollection.update (cyclomatic 30) · ×1
  • PostProcessStageCollection.PostProcessStageCollection.update (cyclomatic 30) packages/engine/Source/Scene/PostProcessStageCollection.js:574 — PostProcessStageCollection.PostProcessStageCollection.update has cyclomatic complexity 30 (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 · TimeDynamicPointCloud.TimeDynamicPointCloud.update (cyclomatic 30) · ×1
  • TimeDynamicPointCloud.TimeDynamicPointCloud.update (cyclomatic 30) packages/engine/Source/Scene/TimeDynamicPointCloud.js:614 — TimeDynamicPointCloud.TimeDynamicPointCloud.update 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.
D1 · Cyclomatic Complexity · processScreenOverlay · ×1
  • processScreenOverlay::onload (cyclomatic 30) REDACTED:2500 — processScreenOverlay::onload has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GeometryPipeline.GeometryPipeline.compressVertices (cyclomatic 29) · ×1
  • GeometryPipeline.GeometryPipeline.compressVertices (cyclomatic 29) packages/core/Source/GeometryPipeline.js:1480 — GeometryPipeline.GeometryPipeline.compressVertices 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.
D1 · Cyclomatic Complexity · GroundPolylineGeometry.generateGeometryAttributes (cyclomatic 29) · ×1
  • GroundPolylineGeometry.generateGeometryAttributes (cyclomatic 29) packages/engine/Source/Core/GroundPolylineGeometry.js:1058 — GroundPolylineGeometry.generateGeometryAttributes 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.
D1 · Cyclomatic Complexity · ImageBasedLighting.ImageBasedLighting.update (cyclomatic 29) · ×1
  • ImageBasedLighting.ImageBasedLighting.update (cyclomatic 29) packages/engine/Source/Scene/ImageBasedLighting.js:331 — ImageBasedLighting.ImageBasedLighting.update has cyclomatic complexity 29 (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 · FramebufferManager.FramebufferManager.destroy (cyclomatic 29) · ×1
  • FramebufferManager.FramebufferManager.destroy (cyclomatic 29) packages/engine/Source/Renderer/FramebufferManager.js:424 — FramebufferManager.FramebufferManager.destroy 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.
D1 · Cyclomatic Complexity · TerrainFillMesh.visitRenderedTiles (cyclomatic 29) · ×1
  • TerrainFillMesh.visitRenderedTiles (cyclomatic 29) packages/engine/Source/Scene/TerrainFillMesh.js:230 — TerrainFillMesh.visitRenderedTiles has cyclomatic complexity 29 (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 · createVerticesFromGoogleEarthEnterpriseBuffer.processBuffer (cyclomatic 29) · ×1
  • createVerticesFromGoogleEarthEnterpriseBuffer.processBuffer (cyclomatic 29) packages/engine/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js:89 — createVerticesFromGoogleEarthEnterpriseBuffer.processBuffer 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.
D1 · Cyclomatic Complexity · BaseLayerPickerViewModel.BaseLayerPickerViewModel (cyclomatic 29) · ×1
  • BaseLayerPickerViewModel.BaseLayerPickerViewModel (cyclomatic 29) packages/widgets/Source/BaseLayerPicker/BaseLayerPickerViewModel.js:25 — BaseLayerPickerViewModel.BaseLayerPickerViewModel has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 2 of the 29 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 180, 136, 246, …). 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 · Label (cyclomatic 29) · ×1
  • Label (cyclomatic 29) packages/engine/Source/Scene/Label.js:141 — Label 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.
D1 · Cyclomatic Complexity · Tipsify.Tipsify.tipsify (cyclomatic 28) · ×1
  • Tipsify.Tipsify.tipsify (cyclomatic 28) packages/core/Source/Tipsify.js:119 — Tipsify.Tipsify.tipsify has cyclomatic complexity 28 (threshold 15). Of this number, 18 points are the body's own statements and 10 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 · WallGeometry.createGeometry (cyclomatic 28) · ×1
  • WallGeometry.createGeometry (cyclomatic 28) packages/core/Source/WallGeometry.js:343 — WallGeometry.createGeometry has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PolylineCollection.PolylineBucket.writeUpdate (cyclomatic 28) · ×1
  • PolylineCollection.PolylineBucket.writeUpdate (cyclomatic 28) packages/engine/Source/Scene/PolylineCollection.js:1807 — PolylineCollection.PolylineBucket.writeUpdate has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Vector3DTileContent.getBatchIds (cyclomatic 28) · ×1
  • Vector3DTileContent.getBatchIds (cyclomatic 28) packages/engine/Source/Scene/Vector3DTileContent.js:277 — Vector3DTileContent.getBatchIds has cyclomatic complexity 28 (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 · View.View.createPotentiallyVisibleSet (cyclomatic 28) · ×1
  • View.View.createPotentiallyVisibleSet (cyclomatic 28) packages/engine/Source/Scene/View.js:287 — View.View.createPotentiallyVisibleSet has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Scene.Scene.destroy (cyclomatic 28) · ×1
  • Scene.Scene.destroy (cyclomatic 28) packages/engine/Source/Scene/Scene.js:5527 — Scene.Scene.destroy has cyclomatic complexity 28 (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 · Cesium3DTile.applyDebugSettings (cyclomatic 28) · ×1
  • Cesium3DTile.applyDebugSettings (cyclomatic 28) packages/engine/Source/Scene/Cesium3DTile.js:2165 — Cesium3DTile.applyDebugSettings has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · StaticGeometryPerMaterialBatch.Batch.update (cyclomatic 28) · ×1
  • StaticGeometryPerMaterialBatch.Batch.update (cyclomatic 28) packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:128 — StaticGeometryPerMaterialBatch.Batch.update has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · StaticOutlineGeometryBatch.Batch.update (cyclomatic 28) · ×1
  • StaticOutlineGeometryBatch.Batch.update (cyclomatic 28) packages/engine/Source/DataSources/StaticOutlineGeometryBatch.js:83 — StaticOutlineGeometryBatch.Batch.update has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GlobeSurfaceTileProvider.computeTileVisibility (cyclomatic 28) · ×1
  • GlobeSurfaceTileProvider.computeTileVisibility (cyclomatic 28) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:756 — GlobeSurfaceTileProvider.computeTileVisibility has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · createTracks (cyclomatic 28) · ×1
  • createTracks (cyclomatic 28) packages/engine/Source/DataSources/exportKml.js:629 — createTracks has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EllipseGeometry.computeWallAttributes (cyclomatic 27) · ×1
  • EllipseGeometry.computeWallAttributes (cyclomatic 27) packages/core/Source/EllipseGeometry.js:450 — EllipseGeometry.computeWallAttributes 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 · GroundPolylineGeometry.GroundPolylineGeometry.createGeometry (cyclomatic 27) · ×1
  • GroundPolylineGeometry.GroundPolylineGeometry.createGeometry (cyclomatic 27) packages/engine/Source/Core/GroundPolylineGeometry.js:461 — GroundPolylineGeometry.GroundPolylineGeometry.createGeometry 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 · Material.createTexture2DUpdateFunction.<returned closure> (cyclomatic 27) · ×1
  • Material.createTexture2DUpdateFunction.<returned closure> (cyclomatic 27) REDACTED:902 — Material.createTexture2DUpdateFunction.<returned closure> 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 · PrimitivePipeline.geometryPipeline (cyclomatic 27) · ×1
  • PrimitivePipeline.geometryPipeline (cyclomatic 27) packages/engine/Source/Scene/PrimitivePipeline.js:89 — PrimitivePipeline.geometryPipeline 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 · MaterialPipelineStage.MaterialPipelineStage.process (cyclomatic 27) · ×1
  • MaterialPipelineStage.MaterialPipelineStage.process (cyclomatic 27) packages/engine/Source/Scene/Model/MaterialPipelineStage.js:66 — MaterialPipelineStage.MaterialPipelineStage.process has cyclomatic complexity 27 (threshold 15). Of this number, 26 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 · SampledProperty.SampledProperty.getValue (cyclomatic 27) · ×1
  • SampledProperty.SampledProperty.getValue (cyclomatic 27) packages/engine/Source/DataSources/SampledProperty.js:368 — SampledProperty.SampledProperty.getValue 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 · PointVisualizer.PointVisualizer.update (cyclomatic 27) · ×1
  • PointVisualizer.PointVisualizer.update (cyclomatic 27) packages/engine/Source/DataSources/PointVisualizer.js:77 — PointVisualizer.PointVisualizer.update 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 · I3SGeometry.I3SGeometry._generateGltf (cyclomatic 27) · ×1
  • I3SGeometry.I3SGeometry._generateGltf (cyclomatic 27) packages/engine/Source/Scene/I3SGeometry.js:290 — I3SGeometry.I3SGeometry._generateGltf 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 · buildVectorGltfFromMVT.buildVectorGltfFromMVT · ×1
  • buildVectorGltfFromMVT.buildVectorGltfFromMVT::buildStructuralMetadata (cyclomatic 27) packages/engine/Source/Scene/buildVectorGltfFromMVT.js:282 — buildVectorGltfFromMVT.buildVectorGltfFromMVT::buildStructuralMetadata 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 · removeUnusedElements.Remove.texture (cyclomatic 27) · ×1
  • removeUnusedElements.Remove.texture (cyclomatic 27) packages/gltf/Source/removeUnusedElements.js:401 — removeUnusedElements.Remove.texture 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 · Animation.setShuttleRingFromMouseOrTouch (cyclomatic 27) · ×1
  • Animation.setShuttleRingFromMouseOrTouch (cyclomatic 27) packages/widgets/Source/Animation/Animation.js:214 — Animation.setShuttleRingFromMouseOrTouch has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · processDescription (cyclomatic 27) · ×1
  • processDescription (cyclomatic 27) REDACTED:2088 — processDescription 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 · ImageryLayer (cyclomatic 27) · ×1
  • ImageryLayer (cyclomatic 27) packages/engine/Source/Scene/ImageryLayer.js:176 — ImageryLayer has cyclomatic complexity 27 (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 · createTexture2DUpdateFunction (cyclomatic 27) · ×1
  • createTexture2DUpdateFunction (cyclomatic 27) REDACTED:900 — createTexture2DUpdateFunction has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to one function literal inside it that branches (line 902). 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 · WebMapServiceImageryProvider (cyclomatic 27) · ×1
  • WebMapServiceImageryProvider (cyclomatic 27) packages/engine/Source/Scene/WebMapServiceImageryProvider.js:112 — WebMapServiceImageryProvider has cyclomatic complexity 27 (threshold 15). Of this number, 26 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 · OrientedBoundingBox.distanceSquaredTo (cyclomatic 26) · ×1
  • OrientedBoundingBox.distanceSquaredTo (cyclomatic 26) packages/core/Source/OrientedBoundingBox.js:629 — OrientedBoundingBox.distanceSquaredTo 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.
D1 · Cyclomatic Complexity · CorridorGeometry.extrudedAttributes (cyclomatic 26) · ×1
  • CorridorGeometry.extrudedAttributes (cyclomatic 26) packages/core/Source/CorridorGeometry.js:530 — CorridorGeometry.extrudedAttributes 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 · Intersections2D.Intersections2D.clipTriangleAtAxisAlignedThreshold (cyclomatic 26) · ×1
  • Intersections2D.Intersections2D.clipTriangleAtAxisAlignedThreshold (cyclomatic 26) packages/core/Source/Intersections2D.js:40 — Intersections2D.Intersections2D.clipTriangleAtAxisAlignedThreshold 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 · GroundPrimitive.GroundPrimitive.update (cyclomatic 26) · ×1
  • GroundPrimitive.GroundPrimitive.update (cyclomatic 26) packages/engine/Source/Scene/GroundPrimitive.js:689 — GroundPrimitive.GroundPrimitive.update has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body's own statements and 4 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 · VoxelRenderResources.VoxelRenderResources (cyclomatic 26) · ×1
  • VoxelRenderResources.VoxelRenderResources (cyclomatic 26) packages/engine/Source/Scene/VoxelRenderResources.js:31 — VoxelRenderResources.VoxelRenderResources 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.
D1 · Cyclomatic Complexity · Cesium3DTile.Cesium3DTile (cyclomatic 26) · ×1
  • Cesium3DTile.Cesium3DTile (cyclomatic 26) packages/engine/Source/Scene/Cesium3DTile.js:63 — Cesium3DTile.Cesium3DTile 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.
D1 · Cyclomatic Complexity · ModelVisualizer.ModelVisualizer.update (cyclomatic 26) · ×1
  • ModelVisualizer.ModelVisualizer.update (cyclomatic 26) packages/engine/Source/DataSources/ModelVisualizer.js:133 — ModelVisualizer.ModelVisualizer.update 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 · EntityView.updateTransform (cyclomatic 26) · ×1
  • EntityView.updateTransform (cyclomatic 26) packages/engine/Source/DataSources/EntityView.js:35 — EntityView.updateTransform 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 · GlobeSurfaceTileProvider.updateTileBoundingRegion (cyclomatic 26) · ×1
  • GlobeSurfaceTileProvider.updateTileBoundingRegion (cyclomatic 26) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1703 — GlobeSurfaceTileProvider.updateTileBoundingRegion 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 · addDefaults.addDefaults (cyclomatic 26) · ×1
  • addDefaults.addDefaults (cyclomatic 26) packages/gltf/Source/addDefaults.js:14 — addDefaults.addDefaults 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 8 function literals inside it that branch (lines 62, 154, 28, …). 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 · GeocoderViewModel.GeocoderViewModel (cyclomatic 26) · ×1
  • GeocoderViewModel.GeocoderViewModel (cyclomatic 26) packages/widgets/Source/Geocoder/GeocoderViewModel.js:37 — GeocoderViewModel.GeocoderViewModel has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 11 of the 26 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 105, 93, 74, …). 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 · loadPrimitive (cyclomatic 26) · ×1
  • loadPrimitive (cyclomatic 26) packages/engine/Source/Scene/GltfLoader.js:2322 — loadPrimitive 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 · test (cyclomatic 26) · ×1
  • test (cyclomatic 26) REDACTED:899 — test has cyclomatic complexity 26 (threshold 15). Of this number, 24 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 · GeometryPipeline.splitLongitudePolyline (cyclomatic 25) · ×1
  • GeometryPipeline.splitLongitudePolyline (cyclomatic 25) packages/core/Source/GeometryPipeline.js:2933 — GeometryPipeline.splitLongitudePolyline has cyclomatic complexity 25 (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.
D1 · Cyclomatic Complexity · Vector3DTileGeometry.createPrimitive (cyclomatic 25) · ×1
  • Vector3DTileGeometry.createPrimitive (cyclomatic 25) packages/engine/Source/Scene/Vector3DTileGeometry.js:221 — Vector3DTileGeometry.createPrimitive has cyclomatic complexity 25 (threshold 15). Of this number, 22 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 · LabelCollection.repositionAllGlyphs (cyclomatic 25) · ×1
  • LabelCollection.repositionAllGlyphs (cyclomatic 25) packages/engine/Source/Scene/LabelCollection.js:382 — LabelCollection.repositionAllGlyphs 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 · CzmlDataSource.processMaterialProperty (cyclomatic 25) · ×1
  • CzmlDataSource.processMaterialProperty (cyclomatic 25) packages/engine/Source/DataSources/CzmlDataSource.js:1200 — CzmlDataSource.processMaterialProperty 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. This is NOT this file's highest cyclomatic complexity: CzmlDataSource.unwrapInterval (cyclomatic 31) 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 · QuadtreePrimitive.updateHeights (cyclomatic 25) · ×1
  • QuadtreePrimitive.updateHeights (cyclomatic 25) packages/engine/Source/Scene/QuadtreePrimitive.js:1395 — QuadtreePrimitive.updateHeights 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 · PointCloud.createResources (cyclomatic 25) · ×1
  • PointCloud.createResources (cyclomatic 25) packages/engine/Source/Scene/PointCloud.js:355 — PointCloud.createResources 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 · PointCloud.PointCloud.update (cyclomatic 25) · ×1
  • PointCloud.PointCloud.update (cyclomatic 25) packages/engine/Source/Scene/PointCloud.js:1275 — PointCloud.PointCloud.update 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 · main.buildCategoryPanel (cyclomatic 25) · ×1
  • main.buildCategoryPanel (cyclomatic 25) REDACTED:64 — main.buildCategoryPanel has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body's own statements and 10 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.
D1 · Cyclomatic Complexity · DiffMatcher.fuzzyMatch (cyclomatic 25) · ×1
  • DiffMatcher.fuzzyMatch (cyclomatic 25) packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:250 — DiffMatcher.fuzzyMatch 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 · equals (cyclomatic 25) · ×1
  • equals (cyclomatic 25) packages/engine/Source/Scene/Label.js:1389 — equals 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 · update (cyclomatic 25) · ×1
  • update (cyclomatic 25) packages/engine/Source/Scene/VoxelCylinderShape.js:219 — update 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 · Primitive.modifyForEncodedNormals (cyclomatic 24) · ×1
  • Primitive.modifyForEncodedNormals (cyclomatic 24) packages/engine/Source/Scene/Primitive.js:1009 — Primitive.modifyForEncodedNormals 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 · GeometryUpdater.GeometryUpdater._onEntityPropertyChanged (cyclomatic 24) · ×1
  • GeometryUpdater.GeometryUpdater._onEntityPropertyChanged (cyclomatic 24) packages/engine/Source/DataSources/GeometryUpdater.js:411 — GeometryUpdater.GeometryUpdater._onEntityPropertyChanged 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 · Cesium3DTileBatchTable.Cesium3DTileBatchTable.addDerivedCommands (cyclomatic 24) · ×1
  • Cesium3DTileBatchTable.Cesium3DTileBatchTable.addDerivedCommands (cyclomatic 24) REDACTED:850 — Cesium3DTileBatchTable.Cesium3DTileBatchTable.addDerivedCommands 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 · PolylineCollection.createCommandLists (cyclomatic 24) · ×1
  • PolylineCollection.createCommandLists (cyclomatic 24) packages/engine/Source/Scene/PolylineCollection.js:593 — PolylineCollection.createCommandLists 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 · TerrainFillMesh.addEdgeMesh (cyclomatic 24) · ×1
  • TerrainFillMesh.addEdgeMesh (cyclomatic 24) packages/engine/Source/Scene/TerrainFillMesh.js:1794 — TerrainFillMesh.addEdgeMesh 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 · removeUnusedElements.getListOfElementsIdsInUse.bufferView (cyclomatic 24) · ×1
  • removeUnusedElements.getListOfElementsIdsInUse.bufferView (cyclomatic 24) packages/gltf/Source/removeUnusedElements.js:608 — removeUnusedElements.getListOfElementsIdsInUse.bufferView has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body's own statements and 5 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 · applyStyle (cyclomatic 24) · ×1
  • applyStyle (cyclomatic 24) REDACTED:1013 — applyStyle 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 · getNetworkLinkUpdateCallback (cyclomatic 24) · ×1
  • getNetworkLinkUpdateCallback (cyclomatic 24) REDACTED:3992 — getNetworkLinkUpdateCallback has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 2 function items inside it that branch (a function literal at line 3999, (anonymous)::removeChildren). 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 · MetadataTableProperty (cyclomatic 24) · ×1
  • MetadataTableProperty (cyclomatic 24) packages/engine/Source/Scene/MetadataTableProperty.js:37 — MetadataTableProperty 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 · QuarticRealPolynomial.neumark (cyclomatic 23) · ×1
  • QuarticRealPolynomial.neumark (cyclomatic 23) packages/core/Source/QuarticRealPolynomial.js:169 — QuarticRealPolynomial.neumark 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. This is NOT this file's highest cyclomatic complexity: QuarticRealPolynomial.QuarticRealPolynomial.computeRealRoots (cyclomatic 27) 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 · PolygonGeometryLibrary.PolygonGeometryLibrary.computeWallGeometry (cyclomatic 23) · ×1
  • PolygonGeometryLibrary.PolygonGeometryLibrary.computeWallGeometry (cyclomatic 23) packages/core/Source/PolygonGeometryLibrary.js:1050 — PolygonGeometryLibrary.PolygonGeometryLibrary.computeWallGeometry 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 · CoplanarPolygonGeometry.createGeometryFromPolygon (cyclomatic 23) · ×1
  • CoplanarPolygonGeometry.createGeometryFromPolygon (cyclomatic 23) packages/core/Source/CoplanarPolygonGeometry.js:41 — CoplanarPolygonGeometry.createGeometryFromPolygon 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 · SimplePolylineGeometry.createGeometry (cyclomatic 23) · ×1
  • SimplePolylineGeometry.createGeometry (cyclomatic 23) packages/core/Source/SimplePolylineGeometry.js:244 — SimplePolylineGeometry.createGeometry 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 · GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.requestTileGeometry (cyclomatic 23) · ×1
  • GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.requestTileGeometry (cyclomatic 23) packages/engine/Source/Core/GoogleEarthEnterpriseTerrainProvider.js:303 — GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.requestTileGeometry has cyclomatic complexity 23 (threshold 15). Of this number, 16 points are the body's own statements and 7 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 · Expression.getEvaluateTernaryComponentwise.<returned closure> (cyclomatic 23) · ×1
  • Expression.getEvaluateTernaryComponentwise.<returned closure> (cyclomatic 23) REDACTED:415 — Expression.getEvaluateTernaryComponentwise.<returned closure> 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 · Label.reverseRtl (cyclomatic 23) · ×1
  • Label.reverseRtl (cyclomatic 23) packages/engine/Source/Scene/Label.js:1549 — Label.reverseRtl 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. This is NOT this file's highest cyclomatic complexity: Label.Label.equals (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 · Camera.Camera._updateCameraChanged (cyclomatic 23) · ×1
  • Camera.Camera._updateCameraChanged (cyclomatic 23) packages/engine/Source/Scene/Camera.js:377 — Camera.Camera._updateCameraChanged 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 · OIT.OIT.update (cyclomatic 23) · ×1
  • OIT.OIT.update (cyclomatic 23) packages/engine/Source/Scene/OIT.js:238 — OIT.OIT.update 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 · PostProcessStageTextureCache.PostProcessStageTextureCache.update (cyclomatic 23) · ×1
  • PostProcessStageTextureCache.PostProcessStageTextureCache.update (cyclomatic 23) packages/engine/Source/Scene/PostProcessStageTextureCache.js:321 — PostProcessStageTextureCache.PostProcessStageTextureCache.update 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 · ScreenSpaceCameraController.pan3D (cyclomatic 23) · ×1
  • ScreenSpaceCameraController.pan3D (cyclomatic 23) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2104 — ScreenSpaceCameraController.pan3D 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 · StaticGroundPolylinePerMaterialBatch.Batch.update (cyclomatic 23) · ×1
  • StaticGroundPolylinePerMaterialBatch.Batch.update (cyclomatic 23) packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:125 — StaticGroundPolylinePerMaterialBatch.Batch.update 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 · KmlDataSource.processStyles (cyclomatic 23) · ×1
  • KmlDataSource.processStyles (cyclomatic 23) REDACTED:1217 — KmlDataSource.processStyles 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. This is NOT this file's highest cyclomatic complexity: KmlDataSource.processScreenOverlay (cyclomatic 32) 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 · CubeMapPanorama.CubeMapPanorama.update (cyclomatic 23) · ×1
  • CubeMapPanorama.CubeMapPanorama.update (cyclomatic 23) packages/engine/Source/Scene/CubeMapPanorama.js:162 — CubeMapPanorama.CubeMapPanorama.update has cyclomatic complexity 23 (threshold 15). Of this number, 22 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 · I3SNode.I3SNode._create3DTileDefinition (cyclomatic 23) · ×1
  • I3SNode.I3SNode._create3DTileDefinition (cyclomatic 23) packages/engine/Source/Scene/I3SNode.js:441 — I3SNode.I3SNode._create3DTileDefinition 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 · GeminiClient.streamRequest (cyclomatic 23) · ×1
  • GeminiClient.streamRequest (cyclomatic 23) packages/sandcastle/src/copilot/ai/clients/GeminiClient.ts:168 — GeminiClient.streamRequest 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 · PromptInput.PromptInput (cyclomatic 23) · ×1
  • PromptInput.PromptInput (cyclomatic 23) packages/sandcastle/src/copilot/PromptInput.tsx:32 — PromptInput.PromptInput has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 122, 50, 77, …). 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 · loadAsynchronous (cyclomatic 23) · ×1
  • loadAsynchronous (cyclomatic 23) packages/engine/Source/Scene/Primitive.js:1153 — loadAsynchronous has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body's own statements and 2 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 · getEvaluateTernaryComponentwise (cyclomatic 23) · ×1
  • getEvaluateTernaryComponentwise (cyclomatic 23) REDACTED:414 — getEvaluateTernaryComponentwise has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to one function literal inside it that branches (line 415). 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 · wirePolygon (cyclomatic 23) · ×1
  • wirePolygon (cyclomatic 23) packages/core/Source/PolygonGeometryLibrary.js:615 — wirePolygon 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 · WebMapTileServiceImageryProvider (cyclomatic 23) · ×1
  • WebMapTileServiceImageryProvider (cyclomatic 23) packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js:181 — WebMapTileServiceImageryProvider has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body's own statements and 1 belongs 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 · QuarticRealPolynomial.original (cyclomatic 22) · ×1
  • QuarticRealPolynomial.original (cyclomatic 22) packages/core/Source/QuarticRealPolynomial.js:75 — QuarticRealPolynomial.original 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. This is NOT this file's highest cyclomatic complexity: QuarticRealPolynomial.QuarticRealPolynomial.computeRealRoots (cyclomatic 27) 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 · CubeMap.CubeMap (cyclomatic 22) · ×1
  • CubeMap.CubeMap (cyclomatic 22) packages/engine/Source/Renderer/CubeMap.js:73 — CubeMap.CubeMap 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 · Material.getUniformType (cyclomatic 22) · ×1
  • Material.getUniformType (cyclomatic 22) REDACTED:1257 — Material.getUniformType 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 · I3dmLoader.createInstances (cyclomatic 22) · ×1
  • I3dmLoader.createInstances (cyclomatic 22) packages/engine/Source/Scene/Model/I3dmLoader.js:375 — I3dmLoader.createInstances 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 · PntsParser.PntsParser.parse (cyclomatic 22) · ×1
  • PntsParser.PntsParser.parse (cyclomatic 22) packages/engine/Source/Scene/PntsParser.js:35 — PntsParser.PntsParser.parse 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 · LabelCollection.rebindAllGlyphs (cyclomatic 22) · ×1
  • LabelCollection.rebindAllGlyphs (cyclomatic 22) packages/engine/Source/Scene/LabelCollection.js:139 — LabelCollection.rebindAllGlyphs 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 · CameraFlightPath.CameraFlightPath.createTween (cyclomatic 22) · ×1
  • CameraFlightPath.CameraFlightPath.createTween (cyclomatic 22) packages/engine/Source/Scene/CameraFlightPath.js:408 — CameraFlightPath.CameraFlightPath.createTween 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, 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 · PostProcessStageCollection.PostProcessStageCollection.execute (cyclomatic 22) · ×1
  • PostProcessStageCollection.PostProcessStageCollection.execute (cyclomatic 22) packages/engine/Source/Scene/PostProcessStageCollection.js:770 — PostProcessStageCollection.PostProcessStageCollection.execute 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 · Scene.Scene.updateDerivedCommands (cyclomatic 22) · ×1
  • Scene.Scene.updateDerivedCommands (cyclomatic 22) packages/engine/Source/Scene/Scene.js:1897 — Scene.Scene.updateDerivedCommands 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 · Cesium3DTileset.updateTiles (cyclomatic 22) · ×1
  • Cesium3DTileset.updateTiles (cyclomatic 22) packages/engine/Source/Scene/Cesium3DTileset.js:3604 — Cesium3DTileset.updateTiles 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 · StaticGroundGeometryColorBatch.Batch.update (cyclomatic 22) · ×1
  • StaticGroundGeometryColorBatch.Batch.update (cyclomatic 22) packages/engine/Source/DataSources/StaticGroundGeometryColorBatch.js:91 — StaticGroundGeometryColorBatch.Batch.update 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 · KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> (cyclomatic 22) · ×1
  • KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> (cyclomatic 22) REDACTED:3999 — KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> 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, separate the cases: extract each independent 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: KmlDataSource.processScreenOverlay (cyclomatic 32) 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 · TerrainFillMesh.getCornerFromEdge (cyclomatic 22) · ×1
  • TerrainFillMesh.getCornerFromEdge (cyclomatic 22) packages/engine/Source/Scene/TerrainFillMesh.js:2033 — TerrainFillMesh.getCornerFromEdge has cyclomatic complexity 22 (threshold 15). 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, separate the cases: extract each independent 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 · GlobeSurfaceTileProvider.canRenderWithoutLosingDetail (cyclomatic 22) · ×1
  • GlobeSurfaceTileProvider.canRenderWithoutLosingDetail (cyclomatic 22) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:937 — GlobeSurfaceTileProvider.canRenderWithoutLosingDetail 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 · decodeMVT.decodeGeometry (cyclomatic 22) · ×1
  • decodeMVT.decodeGeometry (cyclomatic 22) packages/engine/Source/Scene/decodeMVT.js:302 — decodeMVT.decodeGeometry 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 · removeUnusedElements.getListOfElementsIdsInUse.texture (cyclomatic 22) · ×1
  • removeUnusedElements.getListOfElementsIdsInUse.texture (cyclomatic 22) packages/gltf/Source/removeUnusedElements.js:815 — removeUnusedElements.getListOfElementsIdsInUse.texture has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body's own statements and 9 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 · decodeDraco (cyclomatic 22) · ×1
  • decodeDraco (cyclomatic 22) packages/engine/Source/Scene/PointCloud.js:1168 — decodeDraco has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1179, 1263). 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 · updateDerivedCommands (cyclomatic 22) · ×1
  • updateDerivedCommands (cyclomatic 22) packages/engine/Source/Scene/GlobeTranslucencyState.js:780 — updateDerivedCommands 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 · fromGeometry (cyclomatic 22) · ×1
  • fromGeometry (cyclomatic 22) packages/engine/Source/Renderer/VertexArray.js:577 — fromGeometry 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 · PolygonGeometryLibrary.PolygonGeometryLibrary.polygonsFromHierarchy (cyclomatic 21) · ×1
  • PolygonGeometryLibrary.PolygonGeometryLibrary.polygonsFromHierarchy (cyclomatic 21) packages/core/Source/PolygonGeometryLibrary.js:774 — PolygonGeometryLibrary.PolygonGeometryLibrary.polygonsFromHierarchy 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 · TimeInterval.intersect (cyclomatic 21) · ×1
  • TimeInterval.intersect (cyclomatic 21) packages/core/Source/TimeInterval.js:261 — TimeInterval.intersect 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 · Cesium3DTilesTerrainGeometryProcessor.clipTileFromQuadrant (cyclomatic 21) · ×1
  • Cesium3DTilesTerrainGeometryProcessor.clipTileFromQuadrant (cyclomatic 21) packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1659 — Cesium3DTilesTerrainGeometryProcessor.clipTileFromQuadrant 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 · ScreenSpaceEventHandler.fireTouchEvents (cyclomatic 21) · ×1
  • ScreenSpaceEventHandler.fireTouchEvents (cyclomatic 21) packages/engine/Source/Core/ScreenSpaceEventHandler.js:544 — ScreenSpaceEventHandler.fireTouchEvents has cyclomatic complexity 21 (threshold 15). Of this number, 18 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 · ShaderSource.combineShader (cyclomatic 21) · ×1
  • ShaderSource.combineShader (cyclomatic 21) packages/engine/Source/Renderer/ShaderSource.js:153 — ShaderSource.combineShader 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, 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 · Expression.Node._evaluateTimes (cyclomatic 21) · ×1
  • Expression.Node._evaluateTimes (cyclomatic 21) REDACTED:1497 — Expression.Node._evaluateTimes 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 · Cesium3DTileFeature.getPropertyInherited (cyclomatic 21) · ×1
  • Cesium3DTileFeature.getPropertyInherited (cyclomatic 21) packages/engine/Source/Scene/Cesium3DTileFeature.js:244 — Cesium3DTileFeature.getPropertyInherited 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 · FramebufferManager.FramebufferManager.update (cyclomatic 21) · ×1
  • FramebufferManager.FramebufferManager.update (cyclomatic 21) packages/engine/Source/Renderer/FramebufferManager.js:132 — FramebufferManager.FramebufferManager.update 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 · TileMapServiceImageryProvider.TileMapServiceImageryProvider._metadataSuccess (cyclomatic 21) · ×1
  • TileMapServiceImageryProvider.TileMapServiceImageryProvider._metadataSuccess (cyclomatic 21) packages/engine/Source/Scene/TileMapServiceImageryProvider.js:216 — TileMapServiceImageryProvider.TileMapServiceImageryProvider._metadataSuccess 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 · Vector3DTileContent.initialize (cyclomatic 21) · ×1
  • Vector3DTileContent.initialize (cyclomatic 21) packages/engine/Source/Scene/Vector3DTileContent.js:378 — Vector3DTileContent.initialize 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 · TranslucentTileClassification.updateResources (cyclomatic 21) · ×1
  • TranslucentTileClassification.updateResources (cyclomatic 21) packages/engine/Source/Scene/TranslucentTileClassification.js:134 — TranslucentTileClassification.updateResources 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 · ScreenSpaceCameraController.rotateCVOnTerrain (cyclomatic 21) · ×1
  • ScreenSpaceCameraController.rotateCVOnTerrain (cyclomatic 21) packages/engine/Source/Scene/ScreenSpaceCameraController.js:1503 — ScreenSpaceCameraController.rotateCVOnTerrain 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 · PathVisualizer.PathVisualizer.update (cyclomatic 21) · ×1
  • PathVisualizer.PathVisualizer.update (cyclomatic 21) packages/engine/Source/DataSources/PathVisualizer.js:1270 — PathVisualizer.PathVisualizer.update 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 · TerrainFillMesh.createFillMesh (cyclomatic 21) · ×1
  • TerrainFillMesh.createFillMesh (cyclomatic 21) packages/engine/Source/Scene/TerrainFillMesh.js:824 — TerrainFillMesh.createFillMesh has cyclomatic complexity 21 (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.
D1 · Cyclomatic Complexity · createVectorTilePolygons.createVectorTilePolygons (cyclomatic 21) · ×1
  • createVectorTilePolygons.createVectorTilePolygons (cyclomatic 21) packages/engine/Source/Workers/createVectorTilePolygons.js:105 — createVectorTilePolygons.createVectorTilePolygons has cyclomatic complexity 21 (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.
D1 · Cyclomatic Complexity · Viewer.Viewer.resize (cyclomatic 21) · ×1
  • Viewer.Viewer.resize (cyclomatic 21) packages/widgets/Source/Viewer/Viewer.js:1575 — Viewer.Viewer.resize 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 · VoxelInspectorViewModel.VoxelInspectorViewModel (cyclomatic 21) · ×1
  • VoxelInspectorViewModel.VoxelInspectorViewModel (cyclomatic 21) packages/widgets/Source/VoxelInspector/VoxelInspectorViewModel.js:54 — VoxelInspectorViewModel.VoxelInspectorViewModel has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 11 function items inside it that branch (a function literal at line 95, addProperty, a function literal at line 642, …). 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 · processBillboardIcon (cyclomatic 21) · ×1
  • processBillboardIcon (cyclomatic 21) REDACTED:920 — processBillboardIcon 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 · update (cyclomatic 21) · ×1
  • update (cyclomatic 21) REDACTED:3846 — update has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 3894, recurseIgnoreEntities, a function literal at line 3957). 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 · look3D (cyclomatic 21) · ×1
  • look3D (cyclomatic 21) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2751 — look3D 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 · loadWithXhr · ×1
  • loadWithXhr::onload (cyclomatic 21) packages/engine/Source/Core/Resource.js:2159 — loadWithXhr::onload 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 · constructor (cyclomatic 21) · ×1
  • constructor (cyclomatic 21) packages/core/Source/PolygonGeometry.js:667 — constructor 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 · GeometryPipeline.splitLongitudeTriangles (cyclomatic 20) · ×1
  • GeometryPipeline.splitLongitudeTriangles (cyclomatic 20) packages/core/Source/GeometryPipeline.js:2411 — GeometryPipeline.splitLongitudeTriangles 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 · PolygonGeometry.createGeometry (cyclomatic 20) · ×1
  • PolygonGeometry.createGeometry (cyclomatic 20) packages/core/Source/PolygonGeometry.js:1062 — PolygonGeometry.createGeometry 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 · Buffer.Buffer.copyFromBuffer (cyclomatic 20) · ×1
  • Buffer.Buffer.copyFromBuffer (cyclomatic 20) packages/engine/Source/Renderer/Buffer.js:298 — Buffer.Buffer.copyFromBuffer 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 · GltfTextureLoader.createTexture (cyclomatic 20) · ×1
  • GltfTextureLoader.createTexture (cyclomatic 20) packages/engine/Source/Scene/GltfTextureLoader.js:248 — GltfTextureLoader.createTexture 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 · GroundPolylinePrimitive.GroundPolylinePrimitive.update (cyclomatic 20) · ×1
  • GroundPolylinePrimitive.GroundPolylinePrimitive.update (cyclomatic 20) packages/engine/Source/Scene/GroundPolylinePrimitive.js:664 — GroundPolylinePrimitive.GroundPolylinePrimitive.update has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 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 · pickModel.pickModel (cyclomatic 20) · ×1
  • pickModel.pickModel (cyclomatic 20) packages/engine/Source/Scene/Model/pickModel.js:60 — pickModel.pickModel has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 93). 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 · ScreenSpaceCameraController.tilt3DOnTerrain (cyclomatic 20) · ×1
  • ScreenSpaceCameraController.tilt3DOnTerrain (cyclomatic 20) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2550 — ScreenSpaceCameraController.tilt3DOnTerrain 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 · VoxelPrimitive.VoxelPrimitive.update (cyclomatic 20) · ×1
  • VoxelPrimitive.VoxelPrimitive.update (cyclomatic 20) packages/engine/Source/Scene/VoxelPrimitive.js:1155 — VoxelPrimitive.VoxelPrimitive.update 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.
D1 · Cyclomatic Complexity · Cesium3DTilesetBaseTraversal.updateAndPushChildren (cyclomatic 20) · ×1
  • Cesium3DTilesetBaseTraversal.updateAndPushChildren (cyclomatic 20) packages/engine/Source/Scene/Cesium3DTilesetBaseTraversal.js:94 — Cesium3DTilesetBaseTraversal.updateAndPushChildren 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 · GeoJsonDataSource.createObject (cyclomatic 20) · ×1
  • GeoJsonDataSource.createObject (cyclomatic 20) packages/engine/Source/DataSources/GeoJsonDataSource.js:115 — GeoJsonDataSource.createObject 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 · KmlDataSource.processGroundOverlay (cyclomatic 20) · ×1
  • KmlDataSource.processGroundOverlay (cyclomatic 20) REDACTED:2620 — KmlDataSource.processGroundOverlay 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: KmlDataSource.processScreenOverlay (cyclomatic 32) 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 · exportKml.recurseEntities (cyclomatic 20) · ×1
  • exportKml.recurseEntities (cyclomatic 20) packages/engine/Source/DataSources/exportKml.js:416 — exportKml.recurseEntities 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 · updateForPass (cyclomatic 20) · ×1
  • updateForPass (cyclomatic 20) packages/engine/Source/Scene/Cesium3DTileset.js:4106 — updateForPass 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 · update (cyclomatic 20) · ×1
  • update (cyclomatic 20) packages/engine/Source/Scene/Model/Model.js:2030 — update 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 · processLineStringOrLinearRing (cyclomatic 20) · ×1
  • processLineStringOrLinearRing (cyclomatic 20) REDACTED:1574 — processLineStringOrLinearRing 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 · equals (cyclomatic 20) · ×1
  • equals (cyclomatic 20) packages/engine/Source/Scene/Billboard.js:1555 — equals 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 · fromRectangle (cyclomatic 20) · ×1
  • fromRectangle (cyclomatic 20) packages/core/Source/OrientedBoundingBox.js:241 — fromRectangle 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.
D1 · Cyclomatic Complexity · getHeight (cyclomatic 20) · ×1
  • getHeight (cyclomatic 20) packages/engine/Source/Scene/Globe.js:853 — getHeight 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 · CubicRealPolynomial.CubicRealPolynomial.computeRealRoots (cyclomatic 19) · ×1
  • CubicRealPolynomial.CubicRealPolynomial.computeRealRoots (cyclomatic 19) packages/core/Source/CubicRealPolynomial.js:164 — CubicRealPolynomial.CubicRealPolynomial.computeRealRoots 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 · BoundingSphere.fromEncodedCartesianVertices (cyclomatic 19) · ×1
  • BoundingSphere.fromEncodedCartesianVertices (cyclomatic 19) packages/core/Source/BoundingSphere.js:546 — BoundingSphere.fromEncodedCartesianVertices 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 · GeometryPipeline.combineGeometries (cyclomatic 19) · ×1
  • GeometryPipeline.combineGeometries (cyclomatic 19) packages/core/Source/GeometryPipeline.js:939 — GeometryPipeline.combineGeometries has cyclomatic complexity 19 (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.
D1 · Cyclomatic Complexity · GeometryPipeline.computeTriangleAttributes (cyclomatic 19) · ×1
  • GeometryPipeline.computeTriangleAttributes (cyclomatic 19) packages/core/Source/GeometryPipeline.js:2168 — GeometryPipeline.computeTriangleAttributes has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PolylineVolumeGeometry.computeAttributes (cyclomatic 19) · ×1
  • PolylineVolumeGeometry.computeAttributes (cyclomatic 19) packages/core/Source/PolylineVolumeGeometry.js:25 — PolylineVolumeGeometry.computeAttributes has cyclomatic complexity 19 (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.
D1 · Cyclomatic Complexity · TimeIntervalCollection.parseDuration (cyclomatic 19) · ×1
  • TimeIntervalCollection.parseDuration (cyclomatic 19) packages/core/Source/TimeIntervalCollection.js:1042 — TimeIntervalCollection.parseDuration 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 · TileAvailability.findMaxLevelFromNode (cyclomatic 19) · ×1
  • TileAvailability.findMaxLevelFromNode (cyclomatic 19) packages/engine/Source/Core/TileAvailability.js:390 — TileAvailability.findMaxLevelFromNode 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 · PrimitiveOutlineGenerator.matchAndStoreCoordinates (cyclomatic 19) · ×1
  • PrimitiveOutlineGenerator.matchAndStoreCoordinates (cyclomatic 19) packages/engine/Source/Scene/Model/PrimitiveOutlineGenerator.js:305 — PrimitiveOutlineGenerator.matchAndStoreCoordinates has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · EdgeVisibilityPipelineStage.collectVertexColors (cyclomatic 19) · ×1
  • EdgeVisibilityPipelineStage.collectVertexColors (cyclomatic 19) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:518 — EdgeVisibilityPipelineStage.collectVertexColors has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body's own statements and 3 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 · PointCloudStylingPipelineStage.PointCloudStylingPipelineStage.process (cyclomatic 19) · ×1
  • PointCloudStylingPipelineStage.PointCloudStylingPipelineStage.process (cyclomatic 19) packages/engine/Source/Scene/Model/PointCloudStylingPipelineStage.js:59 — PointCloudStylingPipelineStage.PointCloudStylingPipelineStage.process has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 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 · Model3DTileContent.update (cyclomatic 19) · ×1
  • Model3DTileContent.update (cyclomatic 19) packages/engine/Source/Scene/Model/Model3DTileContent.js:254 — Model3DTileContent.update has cyclomatic complexity 19 (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 · Vector3DTileContent.update (cyclomatic 19) · ×1
  • Vector3DTileContent.update (cyclomatic 19) packages/engine/Source/Scene/Vector3DTileContent.js:212 — Vector3DTileContent.update 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 · GaussianSplatPrimitive.processGeneratedSplatTextureData (cyclomatic 19) · ×1
  • GaussianSplatPrimitive.processGeneratedSplatTextureData (cyclomatic 19) packages/engine/Source/Scene/GaussianSplatPrimitive.js:503 — GaussianSplatPrimitive.processGeneratedSplatTextureData 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 · TileOrientedBoundingBox.checkHalfAxes (cyclomatic 19) · ×1
  • TileOrientedBoundingBox.checkHalfAxes (cyclomatic 19) packages/engine/Source/Scene/TileOrientedBoundingBox.js:43 — TileOrientedBoundingBox.checkHalfAxes has cyclomatic complexity 19 (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 · EntityCluster.EntityCluster.update (cyclomatic 19) · ×1
  • EntityCluster.EntityCluster.update (cyclomatic 19) packages/engine/Source/DataSources/EntityCluster.js:881 — EntityCluster.EntityCluster.update has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · StaticGroundGeometryPerMaterialBatch.Batch.update (cyclomatic 19) · ×1
  • StaticGroundGeometryPerMaterialBatch.Batch.update (cyclomatic 19) packages/engine/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js:137 — StaticGroundGeometryPerMaterialBatch.Batch.update 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 · loadMaterial (cyclomatic 19) · ×1
  • loadMaterial (cyclomatic 19) packages/engine/Source/Scene/GltfLoader.js:1896 — loadMaterial 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 · fetchImage (cyclomatic 19) · ×1
  • fetchImage (cyclomatic 19) packages/engine/Source/Core/Resource.js:903 — fetchImage has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body's own statements and 6 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 · fromVertices (cyclomatic 19) · ×1
  • fromVertices (cyclomatic 19) packages/core/Source/BoundingSphere.js:359 — fromVertices 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 · Spline.findTimeInterval (cyclomatic 18) · ×1
  • Spline.findTimeInterval (cyclomatic 18) packages/core/Source/Spline.js:106 — Spline.findTimeInterval 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 · MetadataClassProperty.parseType (cyclomatic 18) · ×1
  • MetadataClassProperty.parseType (cyclomatic 18) packages/engine/Source/Scene/MetadataClassProperty.js:542 — MetadataClassProperty.parseType 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 · CesiumTerrainProvider.requestTileGeometry (cyclomatic 18) · ×1
  • CesiumTerrainProvider.requestTileGeometry (cyclomatic 18) packages/engine/Source/Core/CesiumTerrainProvider.js:914 — CesiumTerrainProvider.requestTileGeometry has cyclomatic complexity 18 (threshold 15). Of this number, 16 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 · VectorPipeline._clipRingToRect (cyclomatic 18) · ×1
  • VectorPipeline._clipRingToRect (cyclomatic 18) packages/engine/Source/Core/VectorPipeline.js:1072 — VectorPipeline._clipRingToRect 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 · GeoJsonLoader.parse (cyclomatic 18) · ×1
  • GeoJsonLoader.parse (cyclomatic 18) packages/engine/Source/Scene/Model/GeoJsonLoader.js:531 — GeoJsonLoader.parse 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 · EdgeVisibilityPipelineStage.EdgeVisibilityPipelineStage.process (cyclomatic 18) · ×1
  • EdgeVisibilityPipelineStage.EdgeVisibilityPipelineStage.process (cyclomatic 18) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:62 — EdgeVisibilityPipelineStage.EdgeVisibilityPipelineStage.process 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 · ShadowMap.applyDebugSettings (cyclomatic 18) · ×1
  • ShadowMap.applyDebugSettings (cyclomatic 18) packages/engine/Source/Scene/ShadowMap.js:929 — ShadowMap.applyDebugSettings 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 · processVoxelProperties.processVoxelProperties (cyclomatic 18) · ×1
  • processVoxelProperties.processVoxelProperties (cyclomatic 18) packages/engine/Source/Scene/processVoxelProperties.js:15 — processVoxelProperties.processVoxelProperties has cyclomatic complexity 18 (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.
D1 · Cyclomatic Complexity · Scene.Scene.getCompressedTextureFormatSupported (cyclomatic 18) · ×1
  • Scene.Scene.getCompressedTextureFormatSupported (cyclomatic 18) packages/engine/Source/Scene/Scene.js:1770 — Scene.Scene.getCompressedTextureFormatSupported 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 · PolylineGeometryUpdater.DynamicGeometryUpdater.update (cyclomatic 18) · ×1
  • PolylineGeometryUpdater.DynamicGeometryUpdater.update (cyclomatic 18) packages/engine/Source/DataSources/PolylineGeometryUpdater.js:677 — PolylineGeometryUpdater.DynamicGeometryUpdater.update 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 · GeoJsonDataSource.createPolygon (cyclomatic 18) · ×1
  • GeoJsonDataSource.createPolygon (cyclomatic 18) packages/engine/Source/DataSources/GeoJsonDataSource.js:431 — GeoJsonDataSource.createPolygon 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 · CloudCollection.CloudCollection.update (cyclomatic 18) · ×1
  • CloudCollection.CloudCollection.update (cyclomatic 18) packages/engine/Source/Scene/CloudCollection.js:944 — CloudCollection.CloudCollection.update 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 · ParticleSystem.ParticleSystem.update (cyclomatic 18) · ×1
  • ParticleSystem.ParticleSystem.update (cyclomatic 18) packages/engine/Source/Scene/ParticleSystem.js:706 — ParticleSystem.ParticleSystem.update 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 · decodeI3S.decodeDracoEncodedGeometry (cyclomatic 18) · ×1
  • decodeI3S.decodeDracoEncodedGeometry (cyclomatic 18) packages/engine/Source/Workers/decodeI3S.js:1076 — decodeI3S.decodeDracoEncodedGeometry 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 · decodeI3S.decodeDracoAttribute (cyclomatic 18) · ×1
  • decodeI3S.decodeDracoAttribute (cyclomatic 18) packages/engine/Source/Workers/decodeI3S.js:1204 — decodeI3S.decodeDracoAttribute 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 8 function literals inside it that branch (lines 1216, 1234, 1252, …). 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 · GalleryItemStore.useGalleryItemStore (cyclomatic 18) · ×1
  • GalleryItemStore.useGalleryItemStore (cyclomatic 18) packages/sandcastle/src/Gallery/GalleryItemStore.ts:49 — GalleryItemStore.useGalleryItemStore 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 7 function literals inside it that branch (lines 108, 306, 97, …). 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 · Bucket.Bucket (cyclomatic 18) · ×1
  • Bucket.Bucket (cyclomatic 18) packages/sandcastle/src/Bucket.tsx:16 — Bucket.Bucket 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 literals inside it that branch (lines 61, 44, 118, …). 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 · Scene (cyclomatic 18) · ×1
  • Scene (cyclomatic 18) packages/engine/Source/Scene/Scene.js:136 — Scene 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 · load (cyclomatic 18) · ×1
  • load (cyclomatic 18) REDACTED:3354 — load has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body's own statements and 8 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 · updateZoomTarget (cyclomatic 18) · ×1
  • updateZoomTarget (cyclomatic 18) packages/engine/Source/Widget/CesiumWidget.js:1443 — updateZoomTarget has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 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 · isNodeEmpty (cyclomatic 18) · ×1
  • isNodeEmpty (cyclomatic 18) packages/gltf/Source/updateVersion.js:852 — isNodeEmpty 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 · GroundPrimitive (cyclomatic 18) · ×1
  • GroundPrimitive (cyclomatic 18) packages/engine/Source/Scene/GroundPrimitive.js:116 — GroundPrimitive 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 · preload (cyclomatic 18) · ×1
  • preload (cyclomatic 18) packages/engine/Source/DataSources/GeoJsonDataSource.js:910 — preload 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 · QuadraticRealPolynomial.QuadraticRealPolynomial.computeRealRoots (cyclomatic 17) · ×1
  • QuadraticRealPolynomial.QuadraticRealPolynomial.computeRealRoots (cyclomatic 17) packages/core/Source/QuadraticRealPolynomial.js:56 — QuadraticRealPolynomial.QuadraticRealPolynomial.computeRealRoots 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 · BoundingSphere.fromPoints (cyclomatic 17) · ×1
  • BoundingSphere.fromPoints (cyclomatic 17) packages/core/Source/BoundingSphere.js:61 — BoundingSphere.fromPoints 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 · GeometryPipeline.GeometryPipeline.computeNormal (cyclomatic 17) · ×1
  • GeometryPipeline.GeometryPipeline.computeNormal (cyclomatic 17) packages/core/Source/GeometryPipeline.js:1162 — GeometryPipeline.GeometryPipeline.computeNormal 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 · GeometryPipeline.splitTriangle (cyclomatic 17) · ×1
  • GeometryPipeline.splitTriangle (cyclomatic 17) packages/core/Source/GeometryPipeline.js:1899 — GeometryPipeline.splitTriangle 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 · PolylineVolumeGeometryLibrary.PolylineVolumeGeometryLibrary.computePositions (cyclomatic 17) · ×1
  • PolylineVolumeGeometryLibrary.PolylineVolumeGeometryLibrary.computePositions (cyclomatic 17) packages/core/Source/PolylineVolumeGeometryLibrary.js:371 — PolylineVolumeGeometryLibrary.PolylineVolumeGeometryLibrary.computePositions 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 · CorridorOutlineGeometry.combine (cyclomatic 17) · ×1
  • CorridorOutlineGeometry.combine (cyclomatic 17) packages/core/Source/CorridorOutlineGeometry.js:31 — CorridorOutlineGeometry.combine 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 · OrthographicOffCenterFrustum.update (cyclomatic 17) · ×1
  • OrthographicOffCenterFrustum.update (cyclomatic 17) packages/core/Source/OrthographicOffCenterFrustum.js:417 — OrthographicOffCenterFrustum.update 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 · MetadataClassProperty.validateScalar (cyclomatic 17) · ×1
  • MetadataClassProperty.validateScalar (cyclomatic 17) packages/engine/Source/Scene/MetadataClassProperty.js:1071 — MetadataClassProperty.validateScalar has cyclomatic complexity 17 (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 · FrustumGeometry.FrustumGeometry.createGeometry (cyclomatic 17) · ×1
  • FrustumGeometry.FrustumGeometry.createGeometry (cyclomatic 17) packages/engine/Source/Core/FrustumGeometry.js:385 — FrustumGeometry.FrustumGeometry.createGeometry 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 · MaterialPipelineStage.processMaterialUniforms (cyclomatic 17) · ×1
  • MaterialPipelineStage.processMaterialUniforms (cyclomatic 17) packages/engine/Source/Scene/Model/MaterialPipelineStage.js:779 — MaterialPipelineStage.processMaterialUniforms 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 · OIT.executeTranslucentCommandsSortedMultipass (cyclomatic 17) · ×1
  • OIT.executeTranslucentCommandsSortedMultipass (cyclomatic 17) packages/engine/Source/Scene/OIT.js:711 — OIT.executeTranslucentCommandsSortedMultipass 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 · Scene.updateDerivedCommands (cyclomatic 17) · ×1
  • Scene.updateDerivedCommands (cyclomatic 17) packages/engine/Source/Scene/Scene.js:1805 — Scene.updateDerivedCommands 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.Scene.render (cyclomatic 17) · ×1
  • Scene.Scene.render (cyclomatic 17) packages/engine/Source/Scene/Scene.js:4630 — Scene.Scene.render 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 · VectorGltf3DTileContent.applyStyle (cyclomatic 17) · ×1
  • VectorGltf3DTileContent.applyStyle (cyclomatic 17) packages/engine/Source/Scene/VectorGltf3DTileContent.js:290 — VectorGltf3DTileContent.applyStyle 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 · ImageryLayerCollection.ImageryLayerCollection.pickImageryLayerFeatures (cyclomatic 17) · ×1
  • ImageryLayerCollection.ImageryLayerCollection.pickImageryLayerFeatures (cyclomatic 17) packages/engine/Source/Scene/ImageryLayerCollection.js:635 — ImageryLayerCollection.ImageryLayerCollection.pickImageryLayerFeatures has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 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 · PolylineGeometryUpdater.PolylineGeometryUpdater.createFillGeometryInstance (cyclomatic 17) · ×1
  • PolylineGeometryUpdater.PolylineGeometryUpdater.createFillGeometryInstance (cyclomatic 17) packages/engine/Source/DataSources/PolylineGeometryUpdater.js:362 — PolylineGeometryUpdater.PolylineGeometryUpdater.createFillGeometryInstance 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 · GeoJsonDataSource.load (cyclomatic 17) · ×1
  • GeoJsonDataSource.load (cyclomatic 17) packages/engine/Source/DataSources/GeoJsonDataSource.js:986 — GeoJsonDataSource.load has cyclomatic complexity 17 (threshold 15). Of this number, 15 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 · createElevationBandMaterial.preprocess (cyclomatic 17) · ×1
  • createElevationBandMaterial.preprocess (cyclomatic 17) packages/engine/Source/Scene/createElevationBandMaterial.js:97 — createElevationBandMaterial.preprocess 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 · getComponentReader.getComponentReader (cyclomatic 17) · ×1
  • getComponentReader.getComponentReader (cyclomatic 17) packages/gltf/Source/getComponentReader.js:15 — getComponentReader.getComponentReader has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body's own statements and 8 belong to 8 function literals 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 · main.viewer.screenSpaceEventHandler.setInputAction() (cyclomatic 17) · ×1
  • main.viewer.screenSpaceEventHandler.setInputAction() (cyclomatic 17) packages/sandcastle/gallery/aec-snapping/main.js:145 — main.viewer.screenSpaceEventHandler.setInputAction() 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 · ToolCallDisplay.ToolCallDisplay (cyclomatic 17) · ×1
  • ToolCallDisplay.ToolCallDisplay (cyclomatic 17) packages/sandcastle/src/copilot/ToolCallDisplay.tsx:19 — ToolCallDisplay.ToolCallDisplay 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 · updateHeight (cyclomatic 17) · ×1
  • updateHeight (cyclomatic 17) packages/engine/Source/Scene/Scene.js:4310 — updateHeight 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 5 function items inside it that branch (callbackWrapper, createPrimitiveEventListener, a function literal at line 4382, …). 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 · setView (cyclomatic 17) · ×1
  • setView (cyclomatic 17) packages/engine/Source/Scene/Camera.js:1491 — setView 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 · flyTo (cyclomatic 17) · ×1
  • flyTo (cyclomatic 17) packages/engine/Source/Scene/Camera.js:3428 — flyTo has cyclomatic complexity 17 (threshold 15). Of this number, 15 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 · createTileUniformMap (cyclomatic 17) · ×1
  • createTileUniformMap (cyclomatic 17) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1910 — createTileUniformMap has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 65 function items inside it that branch (u_clippingPlanes, u_clippingPlanesMatrix, u_vectorSegmentTexture, …). 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 · constructor (cyclomatic 17) · ×1
  • constructor (cyclomatic 17) packages/core/Source/Matrix4.js:81 — constructor has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file's highest cyclomatic complexity: equalsEpsilon (cyclomatic 20) 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 · parse (cyclomatic 17) · ×1
  • parse (cyclomatic 17) packages/engine/Source/Scene/GltfLoader.js:3204 — parse 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 · Primitive (cyclomatic 17) · ×1
  • Primitive (cyclomatic 17) packages/engine/Source/Scene/Primitive.js:156 — Primitive 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 · zoomToOrFly (cyclomatic 17) · ×1
  • zoomToOrFly (cyclomatic 17) packages/engine/Source/Widget/CesiumWidget.js:1314 — zoomToOrFly has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 1336, a function literal at line 1360, a function literal at line 1381, …). 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 · Context (cyclomatic 17) · ×1
  • Context (cyclomatic 17) packages/engine/Source/Renderer/Context.js:44 — Context 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 · merge (cyclomatic 17) · ×1
  • merge (cyclomatic 17) packages/engine/Source/DataSources/Entity.js:612 — merge 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 · packCreateGeometryResults (cyclomatic 17) · ×1
  • packCreateGeometryResults (cyclomatic 17) packages/engine/Source/Scene/PrimitivePipeline.js:453 — packCreateGeometryResults 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 · Rectangle.intersection (cyclomatic 16) · ×1
  • Rectangle.intersection (cyclomatic 16) packages/core/Source/Rectangle.js:690 — Rectangle.intersection 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 · EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions (cyclomatic 16) · ×1
  • EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions (cyclomatic 16) packages/core/Source/EllipseGeometryLibrary.js:113 — EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions 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 · GeometryPipeline.GeometryPipeline.fitToUnsignedShortIndices (cyclomatic 16) · ×1
  • GeometryPipeline.GeometryPipeline.fitToUnsignedShortIndices (cyclomatic 16) packages/core/Source/GeometryPipeline.js:495 — GeometryPipeline.GeometryPipeline.fitToUnsignedShortIndices 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 · PolygonPipeline.PolygonPipeline.computeSubdivision (cyclomatic 16) · ×1
  • PolygonPipeline.PolygonPipeline.computeSubdivision (cyclomatic 16) packages/core/Source/PolygonPipeline.js:107 — PolygonPipeline.PolygonPipeline.computeSubdivision 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 (PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision) 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 · PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision (cyclomatic 16) · ×1
  • PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision (cyclomatic 16) packages/core/Source/PolygonPipeline.js:342 — PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision 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 (PolygonPipeline.PolygonPipeline.computeSubdivision) 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 · RectangleGeometry.calculateAttributesWall (cyclomatic 16) · ×1
  • RectangleGeometry.calculateAttributesWall (cyclomatic 16) packages/core/Source/RectangleGeometry.js:139 — RectangleGeometry.calculateAttributesWall 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 · TimeIntervalCollection.intersect (cyclomatic 16) · ×1
  • TimeIntervalCollection.intersect (cyclomatic 16) packages/core/Source/TimeIntervalCollection.js:652 — TimeIntervalCollection.intersect 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 · Fullscreen.Fullscreen.supportsFullscreen (cyclomatic 16) · ×1
  • Fullscreen.Fullscreen.supportsFullscreen (cyclomatic 16) packages/engine/Source/Core/Fullscreen.js:117 — Fullscreen.Fullscreen.supportsFullscreen 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 · CartographicGeocoderService.geocode (cyclomatic 16) · ×1
  • CartographicGeocoderService.geocode (cyclomatic 16) packages/engine/Source/Core/CartographicGeocoderService.js:29 — CartographicGeocoderService.geocode 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 · Texture.Texture.copyFrom (cyclomatic 16) · ×1
  • Texture.Texture.copyFrom (cyclomatic 16) packages/engine/Source/Renderer/Texture.js:862 — Texture.Texture.copyFrom 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 · QuantizedMeshTerrainData.QuantizedMeshTerrainData.upsample (cyclomatic 16) · ×1
  • QuantizedMeshTerrainData.QuantizedMeshTerrainData.upsample (cyclomatic 16) packages/engine/Source/Core/QuantizedMeshTerrainData.js:404 — QuantizedMeshTerrainData.QuantizedMeshTerrainData.upsample has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CesiumTerrainProvider.createQuantizedMeshTerrainData (cyclomatic 16) · ×1
  • CesiumTerrainProvider.createQuantizedMeshTerrainData (cyclomatic 16) packages/engine/Source/Core/CesiumTerrainProvider.js:598 — CesiumTerrainProvider.createQuantizedMeshTerrainData 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 · VertexArray.interleaveAttributes (cyclomatic 16) · ×1
  • VertexArray.interleaveAttributes (cyclomatic 16) packages/engine/Source/Renderer/VertexArray.js:386 — VertexArray.interleaveAttributes has cyclomatic complexity 16 (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.
D1 · Cyclomatic Complexity · RenderState.RenderState.partialApply (cyclomatic 16) · ×1
  • RenderState.RenderState.partialApply (cyclomatic 16) packages/engine/Source/Renderer/RenderState.js:831 — RenderState.RenderState.partialApply 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 · ShaderProgram.createAndLinkProgram (cyclomatic 16) · ×1
  • ShaderProgram.createAndLinkProgram (cyclomatic 16) REDACTED:186 — ShaderProgram.createAndLinkProgram has cyclomatic complexity 16 (threshold 15). Of this number, 14 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 · Primitive.recomputeBoundingSpheres (cyclomatic 16) · ×1
  • Primitive.recomputeBoundingSpheres (cyclomatic 16) packages/engine/Source/Scene/Primitive.js:1376 — Primitive.recomputeBoundingSpheres 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 · ClassificationPrimitive.updateAndQueueCommands (cyclomatic 16) · ×1
  • ClassificationPrimitive.updateAndQueueCommands (cyclomatic 16) packages/engine/Source/Scene/ClassificationPrimitive.js:915 — ClassificationPrimitive.updateAndQueueCommands 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 · DynamicGeometryUpdater.DynamicGeometryUpdater.getBoundingSphere (cyclomatic 16) · ×1
  • DynamicGeometryUpdater.DynamicGeometryUpdater.getBoundingSphere (cyclomatic 16) packages/engine/Source/DataSources/DynamicGeometryUpdater.js:200 — DynamicGeometryUpdater.DynamicGeometryUpdater.getBoundingSphere 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.
D1 · Cyclomatic Complexity · Expression.Node.getVariables (cyclomatic 16) · ×1
  • Expression.Node.getVariables (cyclomatic 16) REDACTED:2169 — Expression.Node.getVariables 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 · Geometry3DTileContent.initialize (cyclomatic 16) · ×1
  • Geometry3DTileContent.initialize (cyclomatic 16) packages/engine/Source/Scene/Geometry3DTileContent.js:320 — Geometry3DTileContent.initialize 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 · DynamicEnvironmentMapManager.DynamicEnvironmentMapManager.update (cyclomatic 16) · ×1
  • DynamicEnvironmentMapManager.DynamicEnvironmentMapManager.update (cyclomatic 16) packages/engine/Source/Scene/DynamicEnvironmentMapManager.js:864 — DynamicEnvironmentMapManager.DynamicEnvironmentMapManager.update 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.
D1 · Cyclomatic Complexity · SceneTransforms.SceneTransforms.worldWithEyeOffsetToWindowCoordinates (cyclomatic 16) · ×1
  • SceneTransforms.SceneTransforms.worldWithEyeOffsetToWindowCoordinates (cyclomatic 16) packages/engine/Source/Scene/SceneTransforms.js:101 — SceneTransforms.SceneTransforms.worldWithEyeOffsetToWindowCoordinates 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 · ImageBasedLightingPipelineStage.ImageBasedLightingPipelineStage.process (cyclomatic 16) · ×1
  • ImageBasedLightingPipelineStage.ImageBasedLightingPipelineStage.process (cyclomatic 16) packages/engine/Source/Scene/Model/ImageBasedLightingPipelineStage.js:19 — ImageBasedLightingPipelineStage.ImageBasedLightingPipelineStage.process has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent 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 · TileImagery.TileImagery.processStateMachine (cyclomatic 16) · ×1
  • TileImagery.TileImagery.processStateMachine (cyclomatic 16) packages/engine/Source/Scene/TileImagery.js:46 — TileImagery.TileImagery.processStateMachine 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 · Model.Model.destroy (cyclomatic 16) · ×1
  • Model.Model.destroy (cyclomatic 16) packages/engine/Source/Scene/Model/Model.js:3125 — Model.Model.destroy 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 · Picking.Picking.pickPositionWorldCoordinates (cyclomatic 16) · ×1
  • Picking.Picking.pickPositionWorldCoordinates (cyclomatic 16) packages/engine/Source/Scene/Picking.js:693 — Picking.Picking.pickPositionWorldCoordinates 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 · Picking.addDrillPickedResults (cyclomatic 16) · ×1
  • Picking.addDrillPickedResults (cyclomatic 16) packages/engine/Source/Scene/Picking.js:830 — Picking.addDrillPickedResults 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 · PostProcessStage.createSelectedTexture (cyclomatic 16) · ×1
  • PostProcessStage.createSelectedTexture (cyclomatic 16) packages/engine/Source/Scene/PostProcessStage.js:779 — PostProcessStage.createSelectedTexture 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 · SharedContext.SharedContext.createSceneContext (cyclomatic 16) · ×1
  • SharedContext.SharedContext.createSceneContext (cyclomatic 16) packages/engine/Source/Renderer/SharedContext.js:45 — SharedContext.SharedContext.createSceneContext has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body's own statements and 5 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 · SampledProperty.SampledProperty.equals (cyclomatic 16) · ×1
  • SampledProperty.SampledProperty.equals (cyclomatic 16) packages/engine/Source/DataSources/SampledProperty.js:788 — SampledProperty.SampledProperty.equals 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 · GeometryVisualizer.GeometryVisualizer._insertUpdaterIntoBatch (cyclomatic 16) · ×1
  • GeometryVisualizer.GeometryVisualizer._insertUpdaterIntoBatch (cyclomatic 16) packages/engine/Source/DataSources/GeometryVisualizer.js:431 — GeometryVisualizer.GeometryVisualizer._insertUpdaterIntoBatch 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 · KmlDataSource.computeFinalStyle (cyclomatic 16) · ×1
  • KmlDataSource.computeFinalStyle (cyclomatic 16) REDACTED:1119 — KmlDataSource.computeFinalStyle 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 is NOT this file's highest cyclomatic complexity: KmlDataSource.processScreenOverlay (cyclomatic 32) 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 · ScreenSpaceZoomCameraController.update (cyclomatic 16) · ×1
  • ScreenSpaceZoomCameraController.update (cyclomatic 16) packages/engine/Source/Scene/Controllers/ScreenSpaceZoomCameraController.js:297 — ScreenSpaceZoomCameraController.update 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 · GlobeSurfaceTile.processTerrainStateMachine (cyclomatic 16) · ×1
  • GlobeSurfaceTile.processTerrainStateMachine (cyclomatic 16) packages/engine/Source/Scene/GlobeSurfaceTile.js:709 — GlobeSurfaceTile.processTerrainStateMachine 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 · I3SDataProvider.addLayers (cyclomatic 16) · ×1
  • I3SDataProvider.addLayers (cyclomatic 16) packages/engine/Source/Scene/I3SDataProvider.js:426 — I3SDataProvider.addLayers 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 · decodeMVT.decodeValue (cyclomatic 16) · ×1
  • decodeMVT.decodeValue (cyclomatic 16) packages/engine/Source/Scene/decodeMVT.js:404 — decodeMVT.decodeValue 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 · Sun.Sun.update (cyclomatic 16) · ×1
  • Sun.Sun.update (cyclomatic 16) packages/engine/Source/Scene/Sun.js:117 — Sun.Sun.update 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 · decodeGoogleEarthEnterprisePacket.processMetadata (cyclomatic 16) · ×1
  • decodeGoogleEarthEnterprisePacket.processMetadata (cyclomatic 16) packages/engine/Source/Workers/decodeGoogleEarthEnterprisePacket.js:52 — decodeGoogleEarthEnterprisePacket.processMetadata has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body's own statements and 7 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 · main.viewer.screenSpaceEventHandler.setInputAction() (cyclomatic 16) · ×1
  • main.viewer.screenSpaceEventHandler.setInputAction() (cyclomatic 16) packages/sandcastle/gallery/hybrid-snapping-dev/main.js:235 — main.viewer.screenSpaceEventHandler.setInputAction() 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 · DiffMatcher.lineTrimmedMatch (cyclomatic 16) · ×1
  • DiffMatcher.lineTrimmedMatch (cyclomatic 16) packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:170 — DiffMatcher.lineTrimmedMatch 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 · DiffMatcher.contextBasedMatch (cyclomatic 16) · ×1
  • DiffMatcher.contextBasedMatch (cyclomatic 16) packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:365 — DiffMatcher.contextBasedMatch 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 · toolRegistry.createApplyDiffHandler.<returned closure> (cyclomatic 16) · ×1
  • toolRegistry.createApplyDiffHandler.<returned closure> (cyclomatic 16) packages/sandcastle/src/copilot/ai/tools/toolRegistry.ts:74 — toolRegistry.createApplyDiffHandler.<returned closure> 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 · Viewer.enableVRUI (cyclomatic 16) · ×1
  • Viewer.enableVRUI (cyclomatic 16) packages/widgets/Source/Viewer/Viewer.js:249 — Viewer.enableVRUI 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 · getIconHref (cyclomatic 16) · ×1
  • getIconHref (cyclomatic 16) REDACTED:837 — getIconHref 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 · _onLayerAdded (cyclomatic 16) · ×1
  • _onLayerAdded (cyclomatic 16) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1237 — _onLayerAdded has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 1251, a function literal at line 1313, reloadFunction). 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 · adjustHeightForTerrain (cyclomatic 16) · ×1
  • adjustHeightForTerrain (cyclomatic 16) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2911 — adjustHeightForTerrain 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 · commitSnapshot (cyclomatic 16) · ×1
  • commitSnapshot (cyclomatic 16) packages/engine/Source/Scene/GaussianSplatPrimitive.js:419 — commitSnapshot 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 · initializeMaterial (cyclomatic 16) · ×1
  • initializeMaterial (cyclomatic 16) REDACTED:696 — initializeMaterial 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 · fromJulianDateArray (cyclomatic 16) · ×1
  • fromJulianDateArray (cyclomatic 16) packages/core/Source/TimeIntervalCollection.js:721 — fromJulianDateArray 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 · localFrameToFixedFrameGenerator · ×1
  • localFrameToFixedFrameGenerator::resultat (cyclomatic 16) packages/core/Source/FixedFrameTransforms.js:144 — localFrameToFixedFrameGenerator::resultat 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.
D15 · Churn × Complexity Hotspots · Repeated repair · ×1
  • Repeated repair: packages/engine/Source/Scene/GaussianSplatRenderResources.js packages/engine/Source/Scene/GaussianSplatRenderResources.js:54 — packages/engine/Source/Scene/GaussianSplatRenderResources.js changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 8 (its worst body is GaussianSplatRenderResources.GaussianSplatRenderResources at line 54), 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 errors”; “Fix js doc”; “Fix GaussianSplatRenderResources”; “Fix buildGSplatDrawCommand”. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-15 23:38:44 +00:00' --until='2026-11-13 23:38:44 +00:00' --full-history --no-merges -- packages/engine/Source/Scene/GaussianSplatRenderResources.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.
D17 · Explicit Debt · TodoComment · ×1
  • TodoComment packages/sandcastle/src/ConsoleMirror.tsx:46 — // TODO: determine if we need this lib or can implement ourselves. It's a little outdated — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D2 · Cognitive Complexity · PolygonGeometry.computeAttributes (cognitive 209) · ×1
  • PolygonGeometry.computeAttributes (cognitive 209) packages/core/Source/PolygonGeometry.js:62 — PolygonGeometry.computeAttributes has cognitive complexity 209 (threshold 15). Drivers by points: if/else 51 (181 pts), boolean chains 14, ternaries 6 (12 pts), loops 1 (2 pts) (nesting depth added 137). 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 · update (cognitive 185) · ×1
  • update (cognitive 185) packages/engine/Source/Scene/BillboardCollection.js:1569 — update has cognitive complexity 185 (threshold 15). Drivers by points: if/else 61 (114 pts), boolean chains 30, loops 8 (22 pts), ternaries 7 (19 pts) (nesting depth added 79). Of this number, 184 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 · update (cognitive 181) · ×1
  • update (cognitive 181) packages/engine/Source/Scene/GaussianSplatPrimitive.js:1967 — update has cognitive complexity 181 (threshold 15). Drivers by points: if/else 50 (114 pts), loops 7 (24 pts), boolean chains 20, ternaries 5 (16 pts), match/switch 1 (5 pts), other 2 (nesting depth added 96). Of this number, 126 points are the body's own statements and 55 belong to 8 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 · addDrawCommandsForTile (cognitive 148) · ×1
  • addDrawCommandsForTile (cognitive 148) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511 — addDrawCommandsForTile has cognitive complexity 148 (threshold 15). Drivers by points: if/else 43 (80 pts), boolean chains 42, loops 6 (12 pts), ternaries 6 (11 pts), other 3 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ChatPanel.ChatPanel (cognitive 135) · ×1
  • ChatPanel.ChatPanel (cognitive 135) packages/sandcastle/src/copilot/ChatPanel.tsx:152 — ChatPanel.ChatPanel has cognitive complexity 135 (threshold 15). Drivers by points: if/else 35 (44 pts), ternaries 18 (41 pts), boolean chains 35, loops 4 (7 pts), error handling 3 (6 pts), match/switch 1 (2 pts) (nesting depth added 39). Most of this is not in the body itself: 9 of the 135 points are its own statements and the rest belongs to 19 function literals inside it that branch (lines 297, 437, 457, …). 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 · buildVectorGltfFromMVT (cognitive 131) · ×1
  • buildVectorGltfFromMVT (cognitive 131) packages/engine/Source/Scene/buildVectorGltfFromMVT.js:80 — buildVectorGltfFromMVT has cognitive complexity 131 (threshold 15). Drivers by points: if/else 49 (98 pts), loops 22 (74 pts), ternaries 7 (24 pts), boolean chains 8, other 3 (nesting depth added 118). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PathVisualizer.PolylineUpdater.updateObject (cognitive 114) · ×1
  • PathVisualizer.PolylineUpdater.updateObject (cognitive 114) packages/engine/Source/DataSources/PathVisualizer.js:900 — PathVisualizer.PolylineUpdater.updateObject has cognitive complexity 114 (threshold 15). Drivers by points: if/else 26 (73 pts), loops 9 (30 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 69). 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 · GlobeSurfaceShaderSet.getShaderProgram (cognitive 112) · ×1
  • GlobeSurfaceShaderSet.getShaderProgram (cognitive 112) packages/engine/Source/Scene/GlobeSurfaceShaderSet.js:106 — GlobeSurfaceShaderSet.getShaderProgram has cognitive complexity 112 (threshold 15). Drivers by points: if/else 49 (99 pts), boolean chains 11, loops 1 (2 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · createGeometry (cognitive 112) · ×1
  • createGeometry (cognitive 112) packages/core/Source/EllipsoidGeometry.js:214 — createGeometry has cognitive complexity 112 (threshold 15). Drivers by points: if/else 32 (64 pts), loops 17 (32 pts), ternaries 6 (9 pts), boolean chains 7 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · constructExtrudedRectangle (cognitive 106) · ×1
  • constructExtrudedRectangle (cognitive 106) packages/core/Source/RectangleGeometry.js:457 — constructExtrudedRectangle has cognitive complexity 106 (threshold 15). Drivers by points: if/else 40 (73 pts), loops 11 (18 pts), ternaries 10 (14 pts), boolean chains 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch 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 (cognitive 106) · ×1
  • update (cognitive 106) packages/engine/Source/Scene/PointPrimitiveCollection.js:845 — update has cognitive complexity 106 (threshold 15). Drivers by points: if/else 31 (49 pts), boolean chains 22, loops 7 (21 pts), ternaries 5 (14 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · fromIso8601 (cognitive 103) · ×1
  • fromIso8601 (cognitive 103) packages/core/Source/JulianDate.js:312 — fromIso8601 has cognitive complexity 103 (threshold 15). Drivers by points: if/else 32 (66 pts), boolean chains 24, loops 6, ternaries 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 37). 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 · AnthropicClient.processSSEStream (cognitive 102) · ×1
  • AnthropicClient.processSSEStream (cognitive 102) packages/sandcastle/src/copilot/ai/clients/AnthropicClient.ts:181 — AnthropicClient.processSSEStream has cognitive complexity 102 (threshold 15). Drivers by points: if/else 17 (57 pts), ternaries 3 (18 pts), error handling 4 (13 pts), boolean chains 11, loops 2 (3 pts) (nesting depth added 65). 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 · VertexAIClient.processClaudeSSEStream (cognitive 102) · ×1
  • VertexAIClient.processClaudeSSEStream (cognitive 102) packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:866 — VertexAIClient.processClaudeSSEStream has cognitive complexity 102 (threshold 15). Drivers by points: if/else 17 (57 pts), ternaries 3 (18 pts), error handling 4 (13 pts), boolean chains 11, loops 2 (3 pts) (nesting depth added 65). 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 · executeCommands (cognitive 100) · ×1
  • executeCommands (cognitive 100) packages/engine/Source/Scene/Scene.js:2780 — executeCommands has cognitive complexity 100 (threshold 15). Drivers by points: if/else 38 (78 pts), boolean chains 11, ternaries 3 (8 pts), loops 3 (nesting depth added 45). Of this number, 98 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 · RenderState (cognitive 99) · ×1
  • RenderState (cognitive 99) packages/engine/Source/Renderer/RenderState.js:93 — RenderState has cognitive complexity 99 (threshold 15). Drivers by points: other 57, if/else 28 (32 pts), boolean chains 9, 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 · Expression.Node.getShaderExpression (cognitive 98) · ×1
  • Expression.Node.getShaderExpression (cognitive 98) REDACTED:1906 — Expression.Node.getShaderExpression has cognitive complexity 98 (threshold 15). Drivers by points: if/else 49 (86 pts), boolean chains 7, loops 1 (2 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · forEachTextureInMaterial.forEachTextureInMaterial (cognitive 98) · ×1
  • forEachTextureInMaterial.forEachTextureInMaterial (cognitive 98) packages/gltf/Source/forEachTextureInMaterial.js:24 — forEachTextureInMaterial.forEachTextureInMaterial has cognitive complexity 98 (threshold 15). Drivers by points: if/else 36 (92 pts), boolean chains 6 (nesting depth added 56). Of this number, 95 points are the body's own statements and 3 belong 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 · createElevationBandMaterial.createLayeredEntries (cognitive 97) · ×1
  • createElevationBandMaterial.createLayeredEntries (cognitive 97) packages/engine/Source/Scene/createElevationBandMaterial.js:202 — createElevationBandMaterial.createLayeredEntries has cognitive complexity 97 (threshold 15). Drivers by points: if/else 34 (64 pts), ternaries 6 (18 pts), boolean chains 12, loops 2 (3 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · renderBufferPolylineCollection (cognitive 96) · ×1
  • renderBufferPolylineCollection (cognitive 96) packages/engine/Source/Scene/renderBufferPolylineCollection.js:116 — renderBufferPolylineCollection has cognitive complexity 96 (threshold 15). Drivers by points: if/else 23 (44 pts), loops 8 (24 pts), ternaries 10 (23 pts), boolean chains 5 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · handleZoom (cognitive 95) · ×1
  • handleZoom (cognitive 95) packages/engine/Source/Scene/ScreenSpaceCameraController.js:561 — handleZoom has cognitive complexity 95 (threshold 15). Drivers by points: if/else 34 (70 pts), boolean chains 17, ternaries 2 (7 pts), other 1 (nesting depth added 41). 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 · Viewer (cognitive 95) · ×1
  • Viewer (cognitive 95) packages/widgets/Source/Viewer/Viewer.js:429 — Viewer has cognitive complexity 95 (threshold 15). Drivers by points: if/else 40 (55 pts), boolean chains 23, ternaries 5 (9 pts), other 5, error handling 1 (2 pts), loops 1 (nesting depth added 20). Of this number, 77 points are the body's own statements and 18 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 · removeUnusedElements.Remove.bufferView (cognitive 94) · ×1
  • removeUnusedElements.Remove.bufferView (cognitive 94) packages/gltf/Source/removeUnusedElements.js:165 — removeUnusedElements.Remove.bufferView has cognitive complexity 94 (threshold 15). Drivers by points: if/else 19 (70 pts), loops 4 (14 pts), boolean chains 10 (nesting depth added 61). Of this number, 82 points are the body's own statements and 12 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 · HeightmapTessellator.HeightmapTessellator.computeVertices (cognitive 93) · ×1
  • HeightmapTessellator.HeightmapTessellator.computeVertices (cognitive 93) packages/engine/Source/Core/HeightmapTessellator.js:117 — HeightmapTessellator.HeightmapTessellator.computeVertices has cognitive complexity 93 (threshold 15). Drivers by points: if/else 38 (70 pts), loops 5 (14 pts), boolean chains 6, ternaries 3 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · processNetworkLink (cognitive 93) · ×1
  • processNetworkLink (cognitive 93) REDACTED:2999 — processNetworkLink has cognitive complexity 93 (threshold 15). Drivers by points: if/else 22 (68 pts), error handling 2 (9 pts), other 6, ternaries 1 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 58). Of this number, 33 points are the body's own statements and 60 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 · removeUnusedElements.Remove.texture (cognitive 87) · ×1
  • removeUnusedElements.Remove.texture (cognitive 87) packages/gltf/Source/removeUnusedElements.js:401 — removeUnusedElements.Remove.texture has cognitive complexity 87 (threshold 15). Drivers by points: if/else 18 (63 pts), loops 6 (22 pts), boolean chains 2 (nesting depth added 61). Of this number, 50 points are the body's own statements and 37 belong to 3 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 · EdgeVisibilityPipelineStage.extractVisibleEdges (cognitive 84) · ×1
  • EdgeVisibilityPipelineStage.extractVisibleEdges (cognitive 84) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:348 — EdgeVisibilityPipelineStage.extractVisibleEdges has cognitive complexity 84 (threshold 15). Drivers by points: if/else 18 (52 pts), ternaries 5 (13 pts), loops 4 (10 pts), boolean chains 9 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Cesium3DTilesInspectorViewModel (cognitive 84) · ×1
  • Cesium3DTilesInspectorViewModel (cognitive 84) packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js:167 — Cesium3DTilesInspectorViewModel has cognitive complexity 84 (threshold 15). Drivers by points: if/else 55 (75 pts), ternaries 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 24). Most of this is not in the body itself: 1 of the 84 points is its own statement and the rest belongs to 67 function items inside it that branch (a function literal at line 398, set, set, …). 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 · StaticGeometryColorBatch.Batch.update (cognitive 83) · ×1
  • StaticGeometryColorBatch.Batch.update (cognitive 83) packages/engine/Source/DataSources/StaticGeometryColorBatch.js:124 — StaticGeometryColorBatch.Batch.update has cognitive complexity 83 (threshold 15). Drivers by points: if/else 25 (70 pts), boolean chains 11, loops 1 (2 pts) (nesting depth added 46). 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 · KmlDataSource.processStyles (cognitive 83) · ×1
  • KmlDataSource.processStyles (cognitive 83) REDACTED:1217 — KmlDataSource.processStyles has cognitive complexity 83 (threshold 15). Drivers by points: if/else 17 (71 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 59). 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 · PolylineCollection.PolylineCollection.update (cognitive 82) · ×1
  • PolylineCollection.PolylineCollection.update (cognitive 82) packages/engine/Source/Scene/PolylineCollection.js:419 — PolylineCollection.PolylineCollection.update has cognitive complexity 82 (threshold 15). Drivers by points: if/else 20 (57 pts), loops 4 (11 pts), boolean chains 8, ternaries 1 (6 pts) (nesting depth added 49). 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 · removeUnusedElements.getListOfElementsIdsInUse.bufferView (cognitive 82) · ×1
  • removeUnusedElements.getListOfElementsIdsInUse.bufferView (cognitive 82) packages/gltf/Source/removeUnusedElements.js:608 — removeUnusedElements.getListOfElementsIdsInUse.bufferView has cognitive complexity 82 (threshold 15). Drivers by points: if/else 18 (67 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 59). Of this number, 76 points are the body's own statements and 6 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 · PolylineGeometry.createGeometry (cognitive 79) · ×1
  • PolylineGeometry.createGeometry (cognitive 79) packages/core/Source/PolylineGeometry.js:281 — PolylineGeometry.createGeometry has cognitive complexity 79 (threshold 15). Drivers by points: if/else 22 (39 pts), loops 7 (20 pts), ternaries 6 (13 pts), boolean chains 7 (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 · useToolChainExecution.useToolChainExecution.continueToolChain (cognitive 79) · ×1
  • useToolChainExecution.useToolChainExecution.continueToolChain (cognitive 79) packages/sandcastle/src/copilot/hooks/useToolChainExecution.ts:170 — useToolChainExecution.useToolChainExecution.continueToolChain has cognitive complexity 79 (threshold 15). Drivers by points: if/else 24 (59 pts), ternaries 3 (8 pts), boolean chains 5, error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 43). Of this number, 75 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 · createCommandLists (cognitive 79) · ×1
  • createCommandLists (cognitive 79) packages/engine/Source/Scene/PolylineCollection.js:593 — createCommandLists has cognitive complexity 79 (threshold 15). Drivers by points: if/else 15 (46 pts), ternaries 4 (20 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PointCloud.createShaders (cognitive 78) · ×1
  • PointCloud.createShaders (cognitive 78) packages/engine/Source/Scene/PointCloud.js:770 — PointCloud.createShaders has cognitive complexity 78 (threshold 15). Drivers by points: if/else 55 (63 pts), boolean chains 11, loops 3, error handling 1 (nesting depth added 8). 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 · QuadtreePrimitive.updateHeights (cognitive 77) · ×1
  • QuadtreePrimitive.updateHeights (cognitive 77) packages/engine/Source/Scene/QuadtreePrimitive.js:1395 — QuadtreePrimitive.updateHeights has cognitive complexity 77 (threshold 15). Drivers by points: if/else 19 (66 pts), boolean chains 4, loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 50). 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 · subSampleSampledProperty (cognitive 77) · ×1
  • subSampleSampledProperty (cognitive 77) packages/engine/Source/DataSources/PathVisualizer.js:226 — subSampleSampledProperty has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (66 pts), boolean chains 10, loops 1 (nesting depth added 40). 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 · write (cognitive 75) · ×1
  • write (cognitive 75) packages/engine/Source/Scene/PolylineCollection.js:1351 — write has cognitive complexity 75 (threshold 15). Drivers by points: if/else 16 (45 pts), ternaries 5 (14 pts), boolean chains 10, loops 3 (6 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EllipseGeometry.computeTopBottomAttributes (cognitive 74) · ×1
  • EllipseGeometry.computeTopBottomAttributes (cognitive 74) packages/core/Source/EllipseGeometry.js:46 — EllipseGeometry.computeTopBottomAttributes has cognitive complexity 74 (threshold 15). Drivers by points: if/else 24 (57 pts), ternaries 8 (10 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · EntityCluster.createDeclutterCallback.<returned closure> (cognitive 73) · ×1
  • EntityCluster.createDeclutterCallback.<returned closure> (cognitive 73) packages/engine/Source/DataSources/EntityCluster.js:226 — EntityCluster.createDeclutterCallback.<returned closure> has cognitive complexity 73 (threshold 15). Drivers by points: if/else 24 (45 pts), loops 7 (23 pts), boolean chains 5 (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 · createDeclutterCallback (cognitive 73) · ×1
  • createDeclutterCallback (cognitive 73) packages/engine/Source/DataSources/EntityCluster.js:225 — createDeclutterCallback has cognitive complexity 73 (threshold 15). Drivers by points: if/else 24 (45 pts), loops 7 (23 pts), boolean chains 5 (nesting depth added 37). None of this is in the body itself: all 73 points belong to one function literal inside it that branches (line 226). 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 · updateVersion.objectsToArrays (cognitive 72) · ×1
  • updateVersion.objectsToArrays (cognitive 72) packages/gltf/Source/updateVersion.js:308 — updateVersion.objectsToArrays has cognitive complexity 72 (threshold 15). Drivers by points: if/else 40 (57 pts), loops 7 (12 pts), boolean chains 3 (nesting depth added 22). Most of this is not in the body itself: 14 of the 72 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 429, 376, 518, …). 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 · CesiumViewer.main (cognitive 71) · ×1
  • CesiumViewer.main (cognitive 71) Apps/CesiumViewer/CesiumViewer.js:24 — CesiumViewer.main has cognitive complexity 71 (threshold 15). Drivers by points: if/else 29 (42 pts), ternaries 6 (18 pts), boolean chains 7, error handling 2 (4 pts) (nesting depth added 27). Of this number, 70 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 · Vector3DTilePoints.Vector3DTilePoints.applyStyle (cognitive 71) · ×1
  • Vector3DTilePoints.Vector3DTilePoints.applyStyle (cognitive 71) packages/engine/Source/Scene/Vector3DTilePoints.js:324 — Vector3DTilePoints.Vector3DTilePoints.applyStyle has cognitive complexity 71 (threshold 15). Drivers by points: if/else 38 (70 pts), loops 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · createQuadEdgeGeometry (cognitive 71) · ×1
  • createQuadEdgeGeometry (cognitive 71) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:623 — createQuadEdgeGeometry has cognitive complexity 71 (threshold 15). Drivers by points: ternaries 17 (25 pts), loops 8 (22 pts), if/else 15 (20 pts), boolean chains 4 (nesting depth added 27). Of this number, 61 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 · Cesium3DTileset (cognitive 69) · ×1
  • Cesium3DTileset (cognitive 69) packages/engine/Source/Scene/Cesium3DTileset.js:215 — Cesium3DTileset has cognitive complexity 69 (threshold 15). Drivers by points: other 57, if/else 8, boolean chains 2, loops 1, 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 · splitLongitudePolyline (cognitive 69) · ×1
  • splitLongitudePolyline (cognitive 69) packages/core/Source/GeometryPipeline.js:2933 — splitLongitudePolyline has cognitive complexity 69 (threshold 15). Drivers by points: loops 10 (33 pts), if/else 12 (28 pts), ternaries 4 (8 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · visitTile (cognitive 69) · ×1
  • visitTile (cognitive 69) packages/engine/Source/Scene/QuadtreePrimitive.js:717 — visitTile has cognitive complexity 69 (threshold 15). Drivers by points: if/else 16 (39 pts), ternaries 5 (13 pts), loops 2 (9 pts), boolean chains 8 (nesting depth added 38). 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 · CylinderGeometry.createGeometry (cognitive 67) · ×1
  • CylinderGeometry.createGeometry (cognitive 67) packages/core/Source/CylinderGeometry.js:185 — CylinderGeometry.createGeometry has cognitive complexity 67 (threshold 15). Drivers by points: if/else 20 (46 pts), loops 7 (11 pts), ternaries 5 (6 pts), boolean chains 4 (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 · Expression.parseCall (cognitive 67) · ×1
  • Expression.parseCall (cognitive 67) REDACTED:652 — Expression.parseCall has cognitive complexity 67 (threshold 15). Drivers by points: if/else 34 (57 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · I3SGeometry.I3SGeometry._generateGltf (cognitive 67) · ×1
  • I3SGeometry.I3SGeometry._generateGltf (cognitive 67) packages/engine/Source/Scene/I3SGeometry.js:290 — I3SGeometry.I3SGeometry._generateGltf has cognitive complexity 67 (threshold 15). Drivers by points: if/else 15 (43 pts), loops 5 (18 pts), boolean chains 6 (nesting depth added 41). 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 · PolylineCollection.PolylineBucket.writeUpdate (cognitive 66) · ×1
  • PolylineCollection.PolylineBucket.writeUpdate (cognitive 66) packages/engine/Source/Scene/PolylineCollection.js:1807 — PolylineCollection.PolylineBucket.writeUpdate has cognitive complexity 66 (threshold 15). Drivers by points: if/else 17 (45 pts), boolean chains 10, ternaries 2 (6 pts), loops 2 (5 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · VertexAIClient.geminiStreamRequest (cognitive 66) · ×1
  • VertexAIClient.geminiStreamRequest (cognitive 66) packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:457 — VertexAIClient.geminiStreamRequest has cognitive complexity 66 (threshold 15). Drivers by points: if/else 16 (35 pts), ternaries 5 (12 pts), error handling 3 (7 pts), loops 3 (7 pts), boolean chains 5 (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 · addInterval (cognitive 66) · ×1
  • addInterval (cognitive 66) packages/core/Source/TimeIntervalCollection.js:283 — addInterval has cognitive complexity 66 (threshold 15). Drivers by points: if/else 20 (36 pts), ternaries 4 (16 pts), boolean chains 13, loops 1 (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 · Label.reverseRtl (cognitive 64) · ×1
  • Label.reverseRtl (cognitive 64) packages/engine/Source/Scene/Label.js:1549 — Label.reverseRtl has cognitive complexity 64 (threshold 15). Drivers by points: if/else 22 (55 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · StaticOutlineGeometryBatch.Batch.update (cognitive 64) · ×1
  • StaticOutlineGeometryBatch.Batch.update (cognitive 64) packages/engine/Source/DataSources/StaticOutlineGeometryBatch.js:83 — StaticOutlineGeometryBatch.Batch.update has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (54 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · ModelVisualizer.ModelVisualizer.update (cognitive 64) · ×1
  • ModelVisualizer.ModelVisualizer.update (cognitive 64) packages/engine/Source/DataSources/ModelVisualizer.js:133 — ModelVisualizer.ModelVisualizer.update has cognitive complexity 64 (threshold 15). Drivers by points: if/else 18 (51 pts), loops 3 (9 pts), boolean chains 4 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Timeline.Timeline._makeTics (cognitive 64) · ×1
  • Timeline.Timeline._makeTics (cognitive 64) packages/widgets/Source/Timeline/Timeline.js:407 — Timeline.Timeline._makeTics has cognitive complexity 64 (threshold 15). Drivers by points: if/else 27 (48 pts), loops 6 (12 pts), boolean chains 4 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Texture (cognitive 63) · ×1
  • Texture (cognitive 63) packages/engine/Source/Renderer/Texture.js:50 — Texture has cognitive complexity 63 (threshold 15). Drivers by points: if/else 33 (44 pts), boolean chains 14, other 4, ternaries 1 (nesting depth added 11). 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 · StaticGeometryPerMaterialBatch.Batch.update (cognitive 62) · ×1
  • StaticGeometryPerMaterialBatch.Batch.update (cognitive 62) packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:128 — StaticGeometryPerMaterialBatch.Batch.update has cognitive complexity 62 (threshold 15). Drivers by points: if/else 21 (54 pts), boolean chains 6, loops 1 (2 pts) (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 · removeUnusedElements.getListOfElementsIdsInUse.texture (cognitive 62) · ×1
  • removeUnusedElements.getListOfElementsIdsInUse.texture (cognitive 62) packages/gltf/Source/removeUnusedElements.js:815 — removeUnusedElements.getListOfElementsIdsInUse.texture has cognitive complexity 62 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 6 (22 pts), boolean chains 2 (nesting depth added 41). Of this number, 37 points are the body's own statements and 25 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 · EllipsoidOutlineGeometry.createGeometry (cognitive 60) · ×1
  • EllipsoidOutlineGeometry.createGeometry (cognitive 60) packages/core/Source/EllipsoidOutlineGeometry.js:205 — EllipsoidOutlineGeometry.createGeometry has cognitive complexity 60 (threshold 15). Drivers by points: loops 20 (37 pts), if/else 14 (18 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 22). 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 · ShaderProgram.findUniforms (cognitive 60) · ×1
  • ShaderProgram.findUniforms (cognitive 60) REDACTED:301 — ShaderProgram.findUniforms has cognitive complexity 60 (threshold 15). Drivers by points: if/else 13 (52 pts), loops 2 (6 pts), ternaries 1 (2 pts) (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 · CorridorGeometry.combine (cognitive 59) · ×1
  • CorridorGeometry.combine (cognitive 59) packages/core/Source/CorridorGeometry.js:59 — CorridorGeometry.combine has cognitive complexity 59 (threshold 15). Drivers by points: loops 17 (40 pts), if/else 13 (16 pts), ternaries 3 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · ImageryLayer.ImageryLayer._createTileImagerySkeletons (cognitive 59) · ×1
  • ImageryLayer.ImageryLayer._createTileImagerySkeletons (cognitive 59) packages/engine/Source/Scene/ImageryLayer.js:688 — ImageryLayer.ImageryLayer._createTileImagerySkeletons has cognitive complexity 59 (threshold 15). Drivers by points: if/else 31 (42 pts), boolean chains 14, 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 · App.App (cognitive 59) · ×1
  • App.App (cognitive 59) packages/sandcastle/src/App.tsx:123 — App.App has cognitive complexity 59 (threshold 15). Drivers by points: if/else 27 (28 pts), boolean chains 16, ternaries 11 (13 pts), error handling 2 (nesting depth added 3). Most of this is not in the body itself: 11 of the 59 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 473, a function literal at line 251, a function literal at line 284, …). 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 · upsampleQuantizedTerrainMesh.upsampleQuantizedTerrainMesh (cognitive 58) · ×1
  • upsampleQuantizedTerrainMesh.upsampleQuantizedTerrainMesh (cognitive 58) packages/engine/Source/Workers/upsampleQuantizedTerrainMesh.js:38 — upsampleQuantizedTerrainMesh.upsampleQuantizedTerrainMesh has cognitive complexity 58 (threshold 15). Drivers by points: if/else 22 (38 pts), boolean chains 7, ternaries 7, loops 6 (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 · processProperty (cognitive 58) · ×1
  • processProperty (cognitive 58) packages/engine/Source/DataSources/CzmlDataSource.js:671 — processProperty has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25 (37 pts), boolean chains 10, ternaries 3 (9 pts), other 2 (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 · ModelAnimationCollection.ModelAnimationCollection.update (cognitive 57) · ×1
  • ModelAnimationCollection.ModelAnimationCollection.update (cognitive 57) packages/engine/Source/Scene/Model/ModelAnimationCollection.js:405 — ModelAnimationCollection.ModelAnimationCollection.update has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (43 pts), boolean chains 9, ternaries 1 (3 pts), loops 2 (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.
D2 · Cognitive Complexity · update (cognitive 57) · ×1
  • update (cognitive 57) packages/engine/Source/Scene/GroundPrimitive.js:689 — update has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (35 pts), loops 5 (15 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 30). Of this number, 52 points are the body's own statements and 5 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 · renderBufferPolygonCollection.renderBufferPolygonCollection (cognitive 56) · ×1
  • renderBufferPolygonCollection.renderBufferPolygonCollection (cognitive 56) packages/engine/Source/Scene/renderBufferPolygonCollection.js:90 — renderBufferPolygonCollection.renderBufferPolygonCollection has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 7 (19 pts), boolean chains 5, ternaries 3 (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 · Cesium3DTileBatchTable.Cesium3DTileBatchTable.addDerivedCommands (cognitive 56) · ×1
  • Cesium3DTileBatchTable.Cesium3DTileBatchTable.addDerivedCommands (cognitive 56) REDACTED:850 — Cesium3DTileBatchTable.Cesium3DTileBatchTable.addDerivedCommands has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (48 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 32). 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 · SampledProperty.SampledProperty.getValue (cognitive 56) · ×1
  • SampledProperty.SampledProperty.getValue (cognitive 56) packages/engine/Source/DataSources/SampledProperty.js:368 — SampledProperty.SampledProperty.getValue has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (46 pts), boolean chains 5, loops 2 (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 · EntityView.updateTransform (cognitive 56) · ×1
  • EntityView.updateTransform (cognitive 56) packages/engine/Source/DataSources/EntityView.js:35 — EntityView.updateTransform has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (48 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 29). 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 · buildVectorGltfFromMVT · ×1
  • buildVectorGltfFromMVT::buildStructuralMetadata (cognitive 56) packages/engine/Source/Scene/buildVectorGltfFromMVT.js:282 — buildVectorGltfFromMVT::buildStructuralMetadata has cognitive complexity 56 (threshold 15). Drivers by points: if/else 19 (33 pts), loops 8 (17 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TerrainFillMesh.propagateEdge (cognitive 55) · ×1
  • TerrainFillMesh.propagateEdge (cognitive 55) packages/engine/Source/Scene/TerrainFillMesh.js:504 — TerrainFillMesh.propagateEdge has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 8 (16 pts), boolean chains 6, match/switch 2 (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 · processPositionProperty (cognitive 55) · ×1
  • processPositionProperty (cognitive 55) packages/engine/Source/DataSources/CzmlDataSource.js:913 — processPositionProperty has cognitive complexity 55 (threshold 15). Drivers by points: if/else 27 (41 pts), boolean chains 11, other 2, 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 · decodeDraco (cognitive 55) · ×1
  • decodeDraco (cognitive 55) packages/engine/Source/Scene/PointCloud.js:1168 — decodeDraco has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (31 pts), ternaries 5 (15 pts), error handling 1 (3 pts), loops 1 (3 pts), boolean chains 2, other 1 (nesting depth added 34). Most of this is not in the body itself: 7 of the 55 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1179, 1263). 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 · Expression.setEvaluateFunction (cognitive 54) · ×1
  • Expression.setEvaluateFunction (cognitive 54) REDACTED:955 — Expression.setEvaluateFunction has cognitive complexity 54 (threshold 15). Drivers by points: if/else 49 (54 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 · getCornerFromEdge (cognitive 54) · ×1
  • getCornerFromEdge (cognitive 54) packages/engine/Source/Scene/TerrainFillMesh.js:2033 — getCornerFromEdge has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (30 pts), ternaries 8 (22 pts), boolean chains 2 (nesting depth added 30). Of this number, 46 points are the body's own statements and 8 belong 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 · StaticGroundPolylinePerMaterialBatch.Batch.update (cognitive 53) · ×1
  • StaticGroundPolylinePerMaterialBatch.Batch.update (cognitive 53) packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:125 — StaticGroundPolylinePerMaterialBatch.Batch.update has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (47 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 29). 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 · PolygonGeometryLibrary.PolygonGeometryLibrary.polygonsFromHierarchy (cognitive 52) · ×1
  • PolygonGeometryLibrary.PolygonGeometryLibrary.polygonsFromHierarchy (cognitive 52) packages/core/Source/PolygonGeometryLibrary.js:774 — PolygonGeometryLibrary.PolygonGeometryLibrary.polygonsFromHierarchy has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 6 (17 pts), ternaries 1 (2 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PolygonGeometryLibrary.PolygonGeometryLibrary.computeWallGeometry (cognitive 52) · ×1
  • PolygonGeometryLibrary.PolygonGeometryLibrary.computeWallGeometry (cognitive 52) packages/core/Source/PolygonGeometryLibrary.js:1050 — PolygonGeometryLibrary.PolygonGeometryLibrary.computeWallGeometry has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 7 (18 pts), ternaries 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.
D2 · Cognitive Complexity · PrimitivePipeline.geometryPipeline (cognitive 52) · ×1
  • PrimitivePipeline.geometryPipeline (cognitive 52) packages/engine/Source/Scene/PrimitivePipeline.js:89 — PrimitivePipeline.geometryPipeline has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 8 (15 pts), boolean chains 5 (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 · Vector3DTileGeometry.createPrimitive (cognitive 52) · ×1
  • Vector3DTileGeometry.createPrimitive (cognitive 52) packages/engine/Source/Scene/Vector3DTileGeometry.js:221 — Vector3DTileGeometry.createPrimitive has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (33 pts), ternaries 8 (16 pts), loops 1 (3 pts) (nesting depth added 27). Of this number, 45 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 · recurseEntities (cognitive 52) · ×1
  • recurseEntities (cognitive 52) packages/engine/Source/DataSources/exportKml.js:416 — recurseEntities has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (36 pts), loops 4 (11 pts), ternaries 1 (4 pts), boolean chains 1 (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 · parseMetadataSuccess (cognitive 52) · ×1
  • parseMetadataSuccess (cognitive 52) packages/engine/Source/Core/CesiumTerrainProvider.js:119 — parseMetadataSuccess has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 11, ternaries 5 (10 pts), loops 2 (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 · GeminiClient.streamRequest (cognitive 51) · ×1
  • GeminiClient.streamRequest (cognitive 51) packages/sandcastle/src/copilot/ai/clients/GeminiClient.ts:168 — GeminiClient.streamRequest has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (29 pts), error handling 3 (7 pts), loops 3 (7 pts), ternaries 3 (6 pts), boolean chains 2 (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 · buildGallery.buildGalleryList (cognitive 50) · ×1
  • buildGallery.buildGalleryList (cognitive 50) packages/sandcastle/scripts/buildGallery.js:102 — buildGallery.buildGalleryList has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (32 pts), boolean chains 7, error handling 3 (5 pts), loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 18). Of this number, 49 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 · SimplePolylineGeometry.createGeometry (cognitive 50) · ×1
  • SimplePolylineGeometry.createGeometry (cognitive 50) packages/core/Source/SimplePolylineGeometry.js:244 — SimplePolylineGeometry.createGeometry has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 6 (18 pts), boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · decodeMVT.decodeGeometry (cognitive 50) · ×1
  • decodeMVT.decodeGeometry (cognitive 50) packages/engine/Source/Scene/decodeMVT.js:302 — decodeMVT.decodeGeometry has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 6 (18 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.
D2 · Cognitive Complexity · createTracks (cognitive 50) · ×1
  • createTracks (cognitive 50) packages/engine/Source/DataSources/exportKml.js:629 — createTracks has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (28 pts), loops 6 (14 pts), ternaries 2 (4 pts), boolean chains 3, other 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 · Tipsify.Tipsify.tipsify (cognitive 49) · ×1
  • Tipsify.Tipsify.tipsify (cognitive 49) packages/core/Source/Tipsify.js:119 — Tipsify.Tipsify.tipsify has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 10 (15 pts), boolean chains 2 (nesting depth added 21). Of this number, 32 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 · WallGeometry.createGeometry (cognitive 49) · ×1
  • WallGeometry.createGeometry (cognitive 49) packages/core/Source/WallGeometry.js:343 — WallGeometry.createGeometry has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (41 pts), ternaries 5, loops 2, boolean chains 1 (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 · FramebufferManager.FramebufferManager.destroy (cognitive 49) · ×1
  • FramebufferManager.FramebufferManager.destroy (cognitive 49) packages/engine/Source/Renderer/FramebufferManager.js:424 — FramebufferManager.FramebufferManager.destroy has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 12, loops 1 (2 pts) (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 · StaticGroundGeometryColorBatch.Batch.update (cognitive 49) · ×1
  • StaticGroundGeometryColorBatch.Batch.update (cognitive 49) packages/engine/Source/DataSources/StaticGroundGeometryColorBatch.js:91 — StaticGroundGeometryColorBatch.Batch.update has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (42 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 26). 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 (cognitive 49) · ×1
  • Model (cognitive 49) packages/engine/Source/Scene/Model/Model.js:213 — Model has cognitive complexity 49 (threshold 15). Drivers by points: other 33, if/else 9, boolean chains 5, ternaries 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.
D2 · Cognitive Complexity · loadAsynchronous (cognitive 49) · ×1
  • loadAsynchronous (cognitive 49) packages/engine/Source/Scene/Primitive.js:1153 — loadAsynchronous has cognitive complexity 49 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 5 (14 pts), boolean chains 4, error handling 2 (4 pts), ternaries 2 (4 pts), other 1 (nesting depth added 26). Of this number, 45 points are the body's own statements and 4 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 · CesiumWidget (cognitive 49) · ×1
  • CesiumWidget (cognitive 49) packages/engine/Source/Widget/CesiumWidget.js:209 — CesiumWidget has cognitive complexity 49 (threshold 15). Drivers by points: if/else 23 (29 pts), other 9, boolean chains 6, ternaries 3, error handling 1, loops 1 (nesting depth added 6). Of this number, 47 points are the body's own statements and 2 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 · createVerticesFromGoogleEarthEnterpriseBuffer.processBuffer (cognitive 48) · ×1
  • createVerticesFromGoogleEarthEnterpriseBuffer.processBuffer (cognitive 48) packages/engine/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js:89 — createVerticesFromGoogleEarthEnterpriseBuffer.processBuffer has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (36 pts), loops 5 (7 pts), boolean chains 3, ternaries 2 (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 · GroundPolylineGeometry.generateGeometryAttributes (cognitive 47) · ×1
  • GroundPolylineGeometry.generateGeometryAttributes (cognitive 47) packages/engine/Source/Core/GroundPolylineGeometry.js:1058 — GroundPolylineGeometry.generateGeometryAttributes has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 6 (9 pts), ternaries 3 (7 pts), boolean chains 4 (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 · processDescription (cognitive 47) · ×1
  • processDescription (cognitive 47) REDACTED:2088 — processDescription has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (22 pts), other 10, loops 3 (8 pts), ternaries 1 (6 pts), boolean chains 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · clipTileFromQuadrant (cognitive 47) · ×1
  • clipTileFromQuadrant (cognitive 47) packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1659 — clipTileFromQuadrant has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (28 pts), ternaries 6 (13 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · fromGeometry (cognitive 47) · ×1
  • fromGeometry (cognitive 47) packages/engine/Source/Renderer/VertexArray.js:577 — fromGeometry has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (5 pts), other 5, boolean chains 3, ternaries 1 (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 · CesiumInspectorViewModel (cognitive 47) · ×1
  • CesiumInspectorViewModel (cognitive 47) packages/widgets/Source/CesiumInspector/CesiumInspectorViewModel.js:67 — CesiumInspectorViewModel has cognitive complexity 47 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 7, loops 2 (5 pts), ternaries 1 (2 pts) (nesting depth added 11). Most of this is not in the body itself: 2 of the 47 points are its own statements and the rest belongs to 32 function items inside it that branch (selectTile, a function literal at line 470, (anonymous)::debugCommandFilter, …). 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 · CorridorGeometry.extrudedAttributes (cognitive 46) · ×1
  • CorridorGeometry.extrudedAttributes (cognitive 46) packages/core/Source/CorridorGeometry.js:530 — CorridorGeometry.extrudedAttributes has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 4 (10 pts), ternaries 3 (6 pts), boolean chains 4 (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 · View.View.createPotentiallyVisibleSet (cognitive 46) · ×1
  • View.View.createPotentiallyVisibleSet (cognitive 46) packages/engine/Source/Scene/View.js:287 — View.View.createPotentiallyVisibleSet has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 7 (9 pts), boolean chains 3, ternaries 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · BaseLayerPickerViewModel.BaseLayerPickerViewModel (cognitive 46) · ×1
  • BaseLayerPickerViewModel.BaseLayerPickerViewModel (cognitive 46) packages/widgets/Source/BaseLayerPicker/BaseLayerPickerViewModel.js:25 — BaseLayerPickerViewModel.BaseLayerPickerViewModel has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (32 pts), loops 7 (10 pts), boolean chains 2, ternaries 2 (nesting depth added 14). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 180, 73, 104, …). 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 · repositionAllGlyphs (cognitive 46) · ×1
  • repositionAllGlyphs (cognitive 46) packages/engine/Source/Scene/LabelCollection.js:382 — repositionAllGlyphs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 22 (41 pts), loops 2, ternaries 2, boolean chains 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 · processScreenOverlay · ×1
  • processScreenOverlay::onload (cognitive 45) REDACTED:2500 — processScreenOverlay::onload has cognitive complexity 45 (threshold 15). Drivers by points: if/else 25 (43 pts), boolean chains 2 (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 · Framebuffer.Framebuffer (cognitive 44) · ×1
  • Framebuffer.Framebuffer (cognitive 44) packages/engine/Source/Renderer/Framebuffer.js:86 — Framebuffer.Framebuffer has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 10, loops 2 (4 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 · DiffMatcher.fuzzyMatch (cognitive 44) · ×1
  • DiffMatcher.fuzzyMatch (cognitive 44) packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:250 — DiffMatcher.fuzzyMatch has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 9, loops 3 (6 pts), ternaries 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 · updateEnvironment (cognitive 44) · ×1
  • updateEnvironment (cognitive 44) packages/engine/Source/Scene/Scene.js:3720 — updateEnvironment has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 14, ternaries 6 (11 pts), 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 (cognitive 44) · ×1
  • update (cognitive 44) packages/engine/Source/Scene/Primitive.js:2083 — update has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 14, other 4, 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, 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 · _clipRingToRect (cognitive 44) · ×1
  • _clipRingToRect (cognitive 44) packages/engine/Source/Core/VectorPipeline.js:1072 — _clipRingToRect has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 10 (27 pts), if/else 6 (14 pts), loops 2 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch 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.updateAndClearFramebuffers (cognitive 43) · ×1
  • Scene.updateAndClearFramebuffers (cognitive 43) packages/engine/Source/Scene/Scene.js:3964 — Scene.updateAndClearFramebuffers has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 14 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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 · _onEntityPropertyChanged (cognitive 43) · ×1
  • _onEntityPropertyChanged (cognitive 43) packages/engine/Source/DataSources/PolylineGeometryUpdater.js:478 — _onEntityPropertyChanged has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 8, ternaries 4 (8 pts), other 6 (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 · PolygonPipeline.PolygonPipeline.computeSubdivision (cognitive 42) · ×1
  • PolygonPipeline.PolygonPipeline.computeSubdivision (cognitive 42) packages/core/Source/PolygonPipeline.js:107 — PolygonPipeline.PolygonPipeline.computeSubdivision has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (40 pts), loops 2 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision) 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 · PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision (cognitive 42) · ×1
  • PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision (cognitive 42) packages/core/Source/PolygonPipeline.js:342 — PolygonPipeline.PolygonPipeline.computeRhumbLineSubdivision has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (40 pts), loops 2 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (PolygonPipeline.PolygonPipeline.computeSubdivision) 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 · RectangleGeometry.constructRectangle (cognitive 42) · ×1
  • RectangleGeometry.constructRectangle (cognitive 42) packages/core/Source/RectangleGeometry.js:220 — RectangleGeometry.constructRectangle has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 7 (14 pts), boolean chains 4, ternaries 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 · Geometry3DTileContent.getBatchIds (cognitive 42) · ×1
  • Geometry3DTileContent.getBatchIds (cognitive 42) packages/engine/Source/Scene/Geometry3DTileContent.js:205 — Geometry3DTileContent.getBatchIds has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 16, if/else 10 (14 pts), loops 4 (12 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 · KmlDataSource.computeFinalStyle (cognitive 42) · ×1
  • KmlDataSource.computeFinalStyle (cognitive 42) REDACTED:1119 — KmlDataSource.computeFinalStyle has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (36 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 24). 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 · ChatMessage.ChatMessage (cognitive 42) · ×1
  • ChatMessage.ChatMessage (cognitive 42) packages/sandcastle/src/copilot/ChatMessage.tsx:19 — ChatMessage.ChatMessage has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 25, if/else 9 (13 pts), ternaries 2, error handling 1, loops 1 (nesting depth added 4). Of this number, 31 points are the body's own statements and 11 belong to 6 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 · Intersections2D.Intersections2D.clipTriangleAtAxisAlignedThreshold (cognitive 41) · ×1
  • Intersections2D.Intersections2D.clipTriangleAtAxisAlignedThreshold (cognitive 41) packages/core/Source/Intersections2D.js:40 — Intersections2D.Intersections2D.clipTriangleAtAxisAlignedThreshold has cognitive complexity 41 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 3 (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 · EllipsoidGeometryUpdater.DynamicEllipsoidGeometryUpdater.update (cognitive 41) · ×1
  • EllipsoidGeometryUpdater.DynamicEllipsoidGeometryUpdater.update (cognitive 41) packages/engine/Source/DataSources/EllipsoidGeometryUpdater.js:388 — EllipsoidGeometryUpdater.DynamicEllipsoidGeometryUpdater.update has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 5, ternaries 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 · StaticGroundGeometryPerMaterialBatch.Batch.update (cognitive 41) · ×1
  • StaticGroundGeometryPerMaterialBatch.Batch.update (cognitive 41) packages/engine/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js:137 — StaticGroundGeometryPerMaterialBatch.Batch.update has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 21). 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 · main.buildCategoryPanel (cognitive 41) · ×1
  • main.buildCategoryPanel (cognitive 41) REDACTED:64 — main.buildCategoryPanel has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 4 (6 pts), boolean chains 5 (nesting depth added 16). Of this number, 19 points are the body's own statements and 22 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 · createGeometry (cognitive 41) · ×1
  • createGeometry (cognitive 41) packages/engine/Source/Core/GroundPolylineGeometry.js:461 — createGeometry has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 8, loops 4 (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 · Texture3D (cognitive 41) · ×1
  • Texture3D (cognitive 41) packages/engine/Source/Renderer/Texture3D.js:56 — Texture3D has cognitive complexity 41 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 8, other 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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 · EllipseGeometry.computeWallAttributes (cognitive 40) · ×1
  • EllipseGeometry.computeWallAttributes (cognitive 40) packages/core/Source/EllipseGeometry.js:450 — EllipseGeometry.computeWallAttributes has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (28 pts), ternaries 6 (8 pts), loops 2 (3 pts), boolean chains 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 · LabelCollection.rebindAllGlyphs (cognitive 40) · ×1
  • LabelCollection.rebindAllGlyphs (cognitive 40) packages/engine/Source/Scene/LabelCollection.js:139 — LabelCollection.rebindAllGlyphs has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 4 (12 pts), boolean chains 3 (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 · CzmlDataSource.processMaterialProperty (cognitive 40) · ×1
  • CzmlDataSource.processMaterialProperty (cognitive 40) packages/engine/Source/DataSources/CzmlDataSource.js:1200 — CzmlDataSource.processMaterialProperty has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28 (40 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 · I3SSymbology.buildUniqueValueHash (cognitive 40) · ×1
  • I3SSymbology.buildUniqueValueHash (cognitive 40) packages/engine/Source/Scene/I3SSymbology.js:107 — I3SSymbology.buildUniqueValueHash has cognitive complexity 40 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 5 (19 pts) (nesting depth added 29). 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 · applyStyle (cognitive 40) · ×1
  • applyStyle (cognitive 40) REDACTED:1013 — applyStyle has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (31 pts), other 7, boolean chains 1, 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.
D2 · Cognitive Complexity · getUniformType (cognitive 40) · ×1
  • getUniformType (cognitive 40) REDACTED:1257 — getUniformType has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 7, loops 1 (4 pts) (nesting depth added 18). 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 · renderBufferPointCollection.renderBufferPointCollection (cognitive 39) · ×1
  • renderBufferPointCollection.renderBufferPointCollection (cognitive 39) packages/engine/Source/Scene/renderBufferPointCollection.js:90 — renderBufferPointCollection.renderBufferPointCollection has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (21 pts), loops 4 (8 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VectorGltf3DTileContent.applyStyle (cognitive 39) · ×1
  • VectorGltf3DTileContent.applyStyle (cognitive 39) packages/engine/Source/Scene/VectorGltf3DTileContent.js:290 — VectorGltf3DTileContent.applyStyle has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 6 (9 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 · EllipsoidPrimitive.EllipsoidPrimitive.update (cognitive 39) · ×1
  • EllipsoidPrimitive.EllipsoidPrimitive.update (cognitive 39) packages/engine/Source/Scene/EllipsoidPrimitive.js:245 — EllipsoidPrimitive.EllipsoidPrimitive.update has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 10 (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 · GlobeSurfaceTileProvider.updateTileBoundingRegion (cognitive 39) · ×1
  • GlobeSurfaceTileProvider.updateTileBoundingRegion (cognitive 39) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1703 — GlobeSurfaceTileProvider.updateTileBoundingRegion has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 7, loops 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 · compressVertices (cognitive 39) · ×1
  • compressVertices (cognitive 39) packages/core/Source/GeometryPipeline.js:1480 — compressVertices has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 4, ternaries 4, loops 2 (3 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 · createFillMesh (cognitive 39) · ×1
  • createFillMesh (cognitive 39) packages/engine/Source/Scene/TerrainFillMesh.js:824 — createFillMesh has cognitive complexity 39 (threshold 15). Drivers by points: loops 9 (18 pts), if/else 8 (11 pts), ternaries 3 (8 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 · createResources (cognitive 39) · ×1
  • createResources (cognitive 39) packages/engine/Source/Scene/PointCloud.js:355 — createResources has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (26 pts), ternaries 5 (10 pts), loops 1 (2 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 · QuarticRealPolynomial.original (cognitive 38) · ×1
  • QuarticRealPolynomial.original (cognitive 38) packages/core/Source/QuarticRealPolynomial.js:75 — QuarticRealPolynomial.original has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 6 (nesting depth added 17). 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 · Camera.updateMembers (cognitive 38) · ×1
  • Camera.updateMembers (cognitive 38) packages/engine/Source/Scene/Camera.js:660 — Camera.updateMembers has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 10 (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 · PolygonGeometry.createGeometry (cognitive 37) · ×1
  • PolygonGeometry.createGeometry (cognitive 37) packages/core/Source/PolygonGeometry.js:1062 — PolygonGeometry.createGeometry has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 4 (11 pts), loops 3 (7 pts), boolean chains 3 (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 · Fullscreen.Fullscreen.supportsFullscreen (cognitive 37) · ×1
  • Fullscreen.Fullscreen.supportsFullscreen (cognitive 37) packages/engine/Source/Core/Fullscreen.js:117 — Fullscreen.Fullscreen.supportsFullscreen has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (36 pts), loops 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 · ScreenSpaceCameraController.rotateCVOnTerrain (cognitive 37) · ×1
  • ScreenSpaceCameraController.rotateCVOnTerrain (cognitive 37) packages/engine/Source/Scene/ScreenSpaceCameraController.js:1503 — ScreenSpaceCameraController.rotateCVOnTerrain has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 4 (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 · ScreenSpaceCameraController.pan3D (cognitive 37) · ×1
  • ScreenSpaceCameraController.pan3D (cognitive 37) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2104 — ScreenSpaceCameraController.pan3D has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 8 (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 · I3SSymbology.parseSymbol (cognitive 37) · ×1
  • I3SSymbology.parseSymbol (cognitive 37) packages/engine/Source/Scene/I3SSymbology.js:57 — I3SSymbology.parseSymbol has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (34 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 26). 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 · createTexture2DUpdateFunction (cognitive 37) · ×1
  • createTexture2DUpdateFunction (cognitive 37) REDACTED:900 — createTexture2DUpdateFunction has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 10 (nesting depth added 12). None of this is in the body itself: all 37 points belong to one function literal inside it that branches (line 902). 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 · update (cognitive 37) · ×1
  • update (cognitive 37) packages/engine/Source/DataSources/PathVisualizer.js:1270 — update has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 4, loops 3 (4 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 · fireTouchEvents (cognitive 37) · ×1
  • fireTouchEvents (cognitive 37) packages/engine/Source/Core/ScreenSpaceEventHandler.js:544 — fireTouchEvents has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 5 (nesting depth added 17). Of this number, 28 points are the body's own statements and 9 belong 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 · createObject (cognitive 37) · ×1
  • createObject (cognitive 37) packages/engine/Source/DataSources/GeoJsonDataSource.js:115 — createObject has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 6, loops 2 (5 pts), 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 · addAttribute (cognitive 37) · ×1
  • addAttribute (cognitive 37) packages/engine/Source/Renderer/VertexArray.js:22 — addAttribute has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 9, other 7, match/switch 1 (2 pts), ternaries 2 (nesting depth added 4). Of this number, 33 points are the body's own statements and 4 belong to 7 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · FramebufferManager.FramebufferManager.update (cognitive 36) · ×1
  • FramebufferManager.FramebufferManager.update (cognitive 36) packages/engine/Source/Renderer/FramebufferManager.js:132 — FramebufferManager.FramebufferManager.update has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 6, loops 1 (3 pts) (nesting depth added 16). 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 · Scene.executeCommand (cognitive 36) · ×1
  • Scene.executeCommand (cognitive 36) packages/engine/Source/Scene/Scene.js:2277 — Scene.executeCommand has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 10 (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 · GaussianSplat3DTileContent.update (cognitive 36) · ×1
  • GaussianSplat3DTileContent.update (cognitive 36) packages/engine/Source/Scene/GaussianSplat3DTileContent.js:496 — GaussianSplat3DTileContent.update has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 2 (9 pts), boolean chains 2 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · Cesium3DTilesetSkipTraversal.traverseAndSelect (cognitive 36) · ×1
  • Cesium3DTilesetSkipTraversal.traverseAndSelect (cognitive 36) packages/engine/Source/Scene/Cesium3DTilesetSkipTraversal.js:353 — Cesium3DTilesetSkipTraversal.traverseAndSelect has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 2 (4 pts), boolean chains 1 (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 · PointVisualizer.PointVisualizer.update (cognitive 36) · ×1
  • PointVisualizer.PointVisualizer.update (cognitive 36) packages/engine/Source/DataSources/PointVisualizer.js:77 — PointVisualizer.PointVisualizer.update has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 6, 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 · DiffMatcher.lineTrimmedMatch (cognitive 36) · ×1
  • DiffMatcher.lineTrimmedMatch (cognitive 36) packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:170 — DiffMatcher.lineTrimmedMatch has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 5 (11 pts), loops 3 (6 pts), boolean chains 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 · getNetworkLinkUpdateCallback (cognitive 36) · ×1
  • getNetworkLinkUpdateCallback (cognitive 36) REDACTED:3992 — getNetworkLinkUpdateCallback has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3, error handling 1 (3 pts), loops 3, other 2 (nesting depth added 11). None of this is in the body itself: all 36 points belong to 2 function items inside it that branch (a function literal at line 3999, (anonymous)::removeChildren). 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 · modifyForEncodedNormals (cognitive 36) · ×1
  • modifyForEncodedNormals (cognitive 36) packages/engine/Source/Scene/Primitive.js:1009 — modifyForEncodedNormals has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 9 (19 pts), if/else 8 (11 pts), boolean chains 6 (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 · wirePolygon (cognitive 36) · ×1
  • wirePolygon (cognitive 36) packages/core/Source/PolygonGeometryLibrary.js:615 — wirePolygon has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (21 pts), ternaries 3 (8 pts), boolean chains 4, loops 3 (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 · GeometryPipeline.combineGeometries (cognitive 35) · ×1
  • GeometryPipeline.combineGeometries (cognitive 35) packages/core/Source/GeometryPipeline.js:939 — GeometryPipeline.combineGeometries has cognitive complexity 35 (threshold 15). Drivers by points: loops 9 (19 pts), if/else 8 (15 pts), ternaries 1 (nesting depth added 17). 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 · getStringFromTypedArray.utf8Handler (cognitive 35) · ×1
  • getStringFromTypedArray.utf8Handler (cognitive 35) packages/core/Source/getStringFromTypedArray.js:68 — getStringFromTypedArray.utf8Handler has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (34 pts), 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.
D2 · Cognitive Complexity · Material.createTexture2DUpdateFunction.<returned closure> (cognitive 35) · ×1
  • Material.createTexture2DUpdateFunction.<returned closure> (cognitive 35) REDACTED:902 — Material.createTexture2DUpdateFunction.<returned closure> has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 8 (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 · GeoJsonLoader.parse (cognitive 35) · ×1
  • GeoJsonLoader.parse (cognitive 35) packages/engine/Source/Scene/Model/GeoJsonLoader.js:531 — GeoJsonLoader.parse has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 8 (17 pts) (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 · TileMapServiceImageryProvider.TileMapServiceImageryProvider._metadataSuccess (cognitive 35) · ×1
  • TileMapServiceImageryProvider.TileMapServiceImageryProvider._metadataSuccess (cognitive 35) packages/engine/Source/Scene/TileMapServiceImageryProvider.js:216 — TileMapServiceImageryProvider.TileMapServiceImageryProvider._metadataSuccess has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 5, loops 2 (4 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 · ScreenSpaceCameraController.tilt3DOnTerrain (cognitive 35) · ×1
  • ScreenSpaceCameraController.tilt3DOnTerrain (cognitive 35) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2550 — ScreenSpaceCameraController.tilt3DOnTerrain has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 3, 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 · CzmlDataSource.getPropertyType (cognitive 35) · ×1
  • CzmlDataSource.getPropertyType (cognitive 35) packages/engine/Source/DataSources/CzmlDataSource.js:431 — CzmlDataSource.getPropertyType has cognitive complexity 35 (threshold 15). Drivers by points: if/else 30, boolean chains 5. 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 · KmlDataSource.processGroundOverlay (cognitive 35) · ×1
  • KmlDataSource.processGroundOverlay (cognitive 35) REDACTED:2620 — KmlDataSource.processGroundOverlay has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (34 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 · splitLongitudeTriangles (cognitive 35) · ×1
  • splitLongitudeTriangles (cognitive 35) packages/core/Source/GeometryPipeline.js:2411 — splitLongitudeTriangles has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 7 (10 pts), loops 4 (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 · visitRenderedTiles (cognitive 35) · ×1
  • visitRenderedTiles (cognitive 35) packages/engine/Source/Scene/TerrainFillMesh.js:230 — visitRenderedTiles has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 4 (16 pts), if/else 8 (11 pts), match/switch 2 (4 pts), boolean chains 3, 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.
D2 · Cognitive Complexity · KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> (cognitive 34) · ×1
  • KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> (cognitive 34) REDACTED:3999 — KmlDataSource.getNetworkLinkUpdateCallback.<returned closure> has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3, error handling 1 (3 pts), loops 3 (nesting depth added 11). Of this number, 33 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · I3SLayer.I3SLayer._computeGeometryDefinitions (cognitive 34) · ×1
  • I3SLayer.I3SLayer._computeGeometryDefinitions (cognitive 34) packages/engine/Source/Scene/I3SLayer.js:205 — I3SLayer.I3SLayer._computeGeometryDefinitions has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (15 pts), boolean chains 3 (nesting depth added 21). Of this number, 28 points are the body's own statements and 6 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 · ApiKeyDialog.ApiKeyDialogBody (cognitive 34) · ×1
  • ApiKeyDialog.ApiKeyDialogBody (cognitive 34) packages/sandcastle/src/copilot/ApiKeyDialog.tsx:45 — ApiKeyDialog.ApiKeyDialogBody has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 9, if/else 9, error handling 4 (nesting depth added 3). Most of this is not in the body itself: 10 of the 34 points are its own statements and the rest belongs to 4 function items inside it that branch (handleVertexSave, handleAnthropicSave, handleGeminiSave, …). 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 · loadPrimitive (cognitive 34) · ×1
  • loadPrimitive (cognitive 34) packages/engine/Source/Scene/GltfLoader.js:2322 — loadPrimitive has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 4, loops 2 (4 pts), other 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 · Cesium3DTile (cognitive 34) · ×1
  • Cesium3DTile (cognitive 34) packages/engine/Source/Scene/Cesium3DTile.js:63 — Cesium3DTile has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 8 (10 pts), boolean chains 5 (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 · Billboard (cognitive 34) · ×1
  • Billboard (cognitive 34) packages/engine/Source/Scene/Billboard.js:100 — Billboard has cognitive complexity 34 (threshold 15). Drivers by points: other 18, if/else 11 (15 pts), boolean chains 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 · updateDerivedCommands (cognitive 34) · ×1
  • updateDerivedCommands (cognitive 34) packages/engine/Source/Scene/GlobeTranslucencyState.js:780 — updateDerivedCommands has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (22 pts), other 6, boolean chains 4, loops 1 (2 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 · QuarticRealPolynomial.neumark (cognitive 33) · ×1
  • QuarticRealPolynomial.neumark (cognitive 33) packages/core/Source/QuarticRealPolynomial.js:169 — QuarticRealPolynomial.neumark has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6 (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 · OrientedBoundingBox.distanceSquaredTo (cognitive 33) · ×1
  • OrientedBoundingBox.distanceSquaredTo (cognitive 33) packages/core/Source/OrientedBoundingBox.js:629 — OrientedBoundingBox.distanceSquaredTo has cognitive complexity 33 (threshold 15). Drivers by points: if/else 28 (33 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 · CoplanarPolygonGeometry.createGeometryFromPolygon (cognitive 33) · ×1
  • CoplanarPolygonGeometry.createGeometryFromPolygon (cognitive 33) packages/core/Source/CoplanarPolygonGeometry.js:41 — CoplanarPolygonGeometry.createGeometryFromPolygon has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (26 pts), ternaries 4, 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 · PolylineCollection.PolylineBucket.writeForMorph (cognitive 33) · ×1
  • PolylineCollection.PolylineBucket.writeForMorph (cognitive 33) packages/engine/Source/Scene/PolylineCollection.js:1542 — PolylineCollection.PolylineBucket.writeForMorph has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 3 (6 pts), ternaries 2 (6 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 · Vector3DTileContent.getBatchIds (cognitive 33) · ×1
  • Vector3DTileContent.getBatchIds (cognitive 33) packages/engine/Source/Scene/Vector3DTileContent.js:277 — Vector3DTileContent.getBatchIds has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (11 pts), loops 3 (9 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 · InvertClassification.InvertClassification.update (cognitive 33) · ×1
  • InvertClassification.InvertClassification.update (cognitive 33) packages/engine/Source/Scene/InvertClassification.js:177 — InvertClassification.InvertClassification.update has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 9, 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 · decodeI3S.generateGltfBuffer (cognitive 33) · ×1
  • decodeI3S.generateGltfBuffer (cognitive 33) packages/engine/Source/Workers/decodeI3S.js:628 — decodeI3S.generateGltfBuffer has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (20 pts), ternaries 6, loops 3 (5 pts), boolean chains 2 (nesting depth added 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.
D2 · Cognitive Complexity · decodeI3S.decodeDracoEncodedGeometry (cognitive 33) · ×1
  • decodeI3S.decodeDracoEncodedGeometry (cognitive 33) packages/engine/Source/Workers/decodeI3S.js:1076 — decodeI3S.decodeDracoEncodedGeometry has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 3 (8 pts), boolean chains 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 · processLineStringOrLinearRing (cognitive 33) · ×1
  • processLineStringOrLinearRing (cognitive 33) REDACTED:1574 — processLineStringOrLinearRing has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 4 (11 pts), boolean chains 4, 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 · parse (cognitive 33) · ×1
  • parse (cognitive 33) packages/engine/Source/Scene/GltfLoader.js:3204 — parse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (6 pts), ternaries 2 (4 pts), boolean chains 1, other 1 (nesting depth added 17). 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 · packCreateGeometryResults (cognitive 33) · ×1
  • packCreateGeometryResults (cognitive 33) packages/engine/Source/Scene/PrimitivePipeline.js:453 — packCreateGeometryResults has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 5 (11 pts), loops 3 (5 pts), boolean chains 1, other 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 · WebMapServiceImageryProvider (cognitive 33) · ×1
  • WebMapServiceImageryProvider (cognitive 33) packages/engine/Source/Scene/WebMapServiceImageryProvider.js:112 — WebMapServiceImageryProvider has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6, other 6, ternaries 2 (4 pts) (nesting depth added 6). Of this number, 31 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 · CorridorGeometryLibrary.CorridorGeometryLibrary.computePositions (cognitive 32) · ×1
  • CorridorGeometryLibrary.CorridorGeometryLibrary.computePositions (cognitive 32) packages/core/Source/CorridorGeometryLibrary.js:210 — CorridorGeometryLibrary.CorridorGeometryLibrary.computePositions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 2, ternaries 2, 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 · CorridorOutlineGeometry.combine (cognitive 32) · ×1
  • CorridorOutlineGeometry.combine (cognitive 32) packages/core/Source/CorridorOutlineGeometry.js:31 — CorridorOutlineGeometry.combine has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 9 (16 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 · ArcGISTiledElevationTerrainProvider.findRange (cognitive 32) · ×1
  • ArcGISTiledElevationTerrainProvider.findRange (cognitive 32) REDACTED:547 — ArcGISTiledElevationTerrainProvider.findRange has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (7 pts), ternaries 1 (2 pts), boolean chains 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 · Cesium3DTileFeature.getPropertyInherited (cognitive 32) · ×1
  • Cesium3DTileFeature.getPropertyInherited (cognitive 32) packages/engine/Source/Scene/Cesium3DTileFeature.js:244 — Cesium3DTileFeature.getPropertyInherited has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (31 pts), 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 · ModelRuntimePrimitive.ModelRuntimePrimitive.configurePipeline (cognitive 32) · ×1
  • ModelRuntimePrimitive.ModelRuntimePrimitive.configurePipeline (cognitive 32) packages/engine/Source/Scene/Model/ModelRuntimePrimitive.js:194 — ModelRuntimePrimitive.ModelRuntimePrimitive.configurePipeline has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 14 (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 · PolylineCollection.createVertexArrays (cognitive 32) · ×1
  • PolylineCollection.createVertexArrays (cognitive 32) packages/engine/Source/Scene/PolylineCollection.js:843 — PolylineCollection.createVertexArrays has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 18). 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 · GaussianSplatPrimitive.processGeneratedSplatTextureData (cognitive 32) · ×1
  • GaussianSplatPrimitive.processGeneratedSplatTextureData (cognitive 32) packages/engine/Source/Scene/GaussianSplatPrimitive.js:503 — GaussianSplatPrimitive.processGeneratedSplatTextureData has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 3, loops 1 (3 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 · Cesium3DTile.applyDebugSettings (cognitive 32) · ×1
  • Cesium3DTile.applyDebugSettings (cognitive 32) packages/engine/Source/Scene/Cesium3DTile.js:2165 — Cesium3DTile.applyDebugSettings has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 11 (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 · GeometryVisualizer.GeometryVisualizer._insertUpdaterIntoBatch (cognitive 32) · ×1
  • GeometryVisualizer.GeometryVisualizer._insertUpdaterIntoBatch (cognitive 32) packages/engine/Source/DataSources/GeometryVisualizer.js:431 — GeometryVisualizer.GeometryVisualizer._insertUpdaterIntoBatch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (31 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 · AnimationViewModel.AnimationViewModel (cognitive 32) · ×1
  • AnimationViewModel.AnimationViewModel (cognitive 32) packages/widgets/Source/Animation/AnimationViewModel.js:104 — AnimationViewModel.AnimationViewModel has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 12 (nesting depth added 1). Most of this is not in the body itself: 3 of the 32 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 238, 198, 168, …). 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 (cognitive 32) · ×1
  • update (cognitive 32) REDACTED:3846 — update has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 4, error handling 1 (3 pts), loops 1, other 1 (nesting depth added 12). Most of this is not in the body itself: 6 of the 32 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 3894, recurseIgnoreEntities, a function literal at line 3957). 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 · Label (cognitive 32) · ×1
  • Label (cognitive 32) packages/engine/Source/Scene/Label.js:141 — Label has cognitive complexity 32 (threshold 15). Drivers by points: other 18, if/else 9 (13 pts), boolean chains 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 · moveByteStrideToBufferView (cognitive 32) · ×1
  • moveByteStrideToBufferView (cognitive 32) packages/gltf/Source/updateVersion.js:767 — moveByteStrideToBufferView has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (9 pts), ternaries 2 (9 pts), other 1 (nesting depth added 21). Of this number, 29 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 · GeometryPipeline.GeometryPipeline.reorderForPreVertexCache (cognitive 31) · ×1
  • GeometryPipeline.GeometryPipeline.reorderForPreVertexCache (cognitive 31) packages/core/Source/GeometryPipeline.js:315 — GeometryPipeline.GeometryPipeline.reorderForPreVertexCache has cognitive complexity 31 (threshold 15). Drivers by points: loops 5 (16 pts), if/else 6 (14 pts), boolean chains 1 (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.
D2 · Cognitive Complexity · PolylineVolumeGeometryLibrary.PolylineVolumeGeometryLibrary.computePositions (cognitive 31) · ×1
  • PolylineVolumeGeometryLibrary.PolylineVolumeGeometryLibrary.computePositions (cognitive 31) packages/core/Source/PolylineVolumeGeometryLibrary.js:371 — PolylineVolumeGeometryLibrary.PolylineVolumeGeometryLibrary.computePositions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 5 (6 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.
D2 · Cognitive Complexity · TimeIntervalCollection.removeInterval (cognitive 31) · ×1
  • TimeIntervalCollection.removeInterval (cognitive 31) packages/core/Source/TimeIntervalCollection.js:488 — TimeIntervalCollection.removeInterval has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 13, 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 · TileAvailability.findMaxLevelFromNode (cognitive 31) · ×1
  • TileAvailability.findMaxLevelFromNode (cognitive 31) packages/engine/Source/Core/TileAvailability.js:390 — TileAvailability.findMaxLevelFromNode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 5, loops 3 (4 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 · CesiumTerrainProvider.createQuantizedMeshTerrainData (cognitive 31) · ×1
  • CesiumTerrainProvider.createQuantizedMeshTerrainData (cognitive 31) packages/engine/Source/Core/CesiumTerrainProvider.js:598 — CesiumTerrainProvider.createQuantizedMeshTerrainData has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (13 pts), boolean chains 3 (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 · Vector3DTileContent.initialize (cognitive 31) · ×1
  • Vector3DTileContent.initialize (cognitive 31) packages/engine/Source/Scene/Vector3DTileContent.js:378 — Vector3DTileContent.initialize has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (27 pts), loops 1 (3 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 · CreditDisplay.displayCredits (cognitive 31) · ×1
  • CreditDisplay.displayCredits (cognitive 31) packages/engine/Source/Scene/CreditDisplay.js:76 — CreditDisplay.displayCredits has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 2 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · ShadowMapShader.ShadowMapShader.createShadowReceiveFragmentShader (cognitive 31) · ×1
  • ShadowMapShader.ShadowMapShader.createShadowReceiveFragmentShader (cognitive 31) packages/engine/Source/Scene/ShadowMapShader.js:215 — ShadowMapShader.ShadowMapShader.createShadowReceiveFragmentShader has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 7, ternaries 2 (3 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.
D2 · Cognitive Complexity · ScreenSpaceCameraController.spin3D (cognitive 31) · ×1
  • ScreenSpaceCameraController.spin3D (cognitive 31) packages/engine/Source/Scene/ScreenSpaceCameraController.js:1908 — ScreenSpaceCameraController.spin3D has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (30 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 · VoxelRenderResources.VoxelRenderResources (cognitive 31) · ×1
  • VoxelRenderResources.VoxelRenderResources (cognitive 31) packages/engine/Source/Scene/VoxelRenderResources.js:31 — VoxelRenderResources.VoxelRenderResources has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 2, loops 2, ternaries 1 (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 · GlobeSurfaceTileProvider.canRenderWithoutLosingDetail (cognitive 31) · ×1
  • GlobeSurfaceTileProvider.canRenderWithoutLosingDetail (cognitive 31) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:937 — GlobeSurfaceTileProvider.canRenderWithoutLosingDetail has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 7, loops 4 (7 pts), ternaries 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.
D2 · Cognitive Complexity · arrayRemoveDuplicates.arrayRemoveDuplicates (cognitive 30) · ×1
  • arrayRemoveDuplicates.arrayRemoveDuplicates (cognitive 30) packages/core/Source/arrayRemoveDuplicates.js:49 — arrayRemoveDuplicates.arrayRemoveDuplicates has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 1, loops 1, 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 · RectangleGeometry.calculateAttributesWall (cognitive 30) · ×1
  • RectangleGeometry.calculateAttributesWall (cognitive 30) packages/core/Source/RectangleGeometry.js:139 — RectangleGeometry.calculateAttributesWall has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 3, boolean chains 2, loops 1 (2 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 · GroundPrimitive.updateAndQueueCommands (cognitive 30) · ×1
  • GroundPrimitive.updateAndQueueCommands (cognitive 30) packages/engine/Source/Scene/GroundPrimitive.js:546 — GroundPrimitive.updateAndQueueCommands has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 3 (7 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 · Picking.addDrillPickedResults (cognitive 30) · ×1
  • Picking.addDrillPickedResults (cognitive 30) packages/engine/Source/Scene/Picking.js:830 — Picking.addDrillPickedResults has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 3, 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 · CameraEventAggregator.listenMouseMove (cognitive 30) · ×1
  • CameraEventAggregator.listenMouseMove (cognitive 30) packages/engine/Source/Scene/CameraEventAggregator.js:298 — CameraEventAggregator.listenMouseMove has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 2 (nesting depth added 19). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 330). 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 · Cesium3DTilesetBaseTraversal.updateAndPushChildren (cognitive 30) · ×1
  • Cesium3DTilesetBaseTraversal.updateAndPushChildren (cognitive 30) packages/engine/Source/Scene/Cesium3DTilesetBaseTraversal.js:94 — Cesium3DTilesetBaseTraversal.updateAndPushChildren has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, loops 3 (4 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 · GlobeSurfaceTileProvider.computeTileVisibility (cognitive 30) · ×1
  • GlobeSurfaceTileProvider.computeTileVisibility (cognitive 30) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:756 — GlobeSurfaceTileProvider.computeTileVisibility has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 6 (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 · I3SGeometry.I3SGeometry.getClosestPointIndexOnTriangle (cognitive 30) · ×1
  • I3SGeometry.I3SGeometry.getClosestPointIndexOnTriangle (cognitive 30) packages/engine/Source/Scene/I3SGeometry.js:137 — I3SGeometry.I3SGeometry.getClosestPointIndexOnTriangle has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3, 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 · I3SNode.I3SNode._create3DTileDefinition (cognitive 30) · ×1
  • I3SNode.I3SNode._create3DTileDefinition (cognitive 30) packages/engine/Source/Scene/I3SNode.js:441 — I3SNode.I3SNode._create3DTileDefinition has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 3 (5 pts), boolean chains 3, ternaries 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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 · createVectorTilePolygons.createVectorTilePolygons (cognitive 30) · ×1
  • createVectorTilePolygons.createVectorTilePolygons (cognitive 30) packages/engine/Source/Workers/createVectorTilePolygons.js:105 — createVectorTilePolygons.createVectorTilePolygons has cognitive complexity 30 (threshold 15). Drivers by points: loops 11 (15 pts), if/else 8 (12 pts), boolean chains 2, ternaries 1 (nesting depth added 8). 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 · Viewer.Viewer.resize (cognitive 30) · ×1
  • Viewer.Viewer.resize (cognitive 30) packages/widgets/Source/Viewer/Viewer.js:1575 — Viewer.Viewer.resize has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 6 (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 (cognitive 30) · ×1
  • update (cognitive 30) packages/engine/Source/Scene/PointCloud.js:1275 — update has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 4, ternaries 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.
D2 · Cognitive Complexity · process (cognitive 30) · ×1
  • process (cognitive 30) packages/engine/Source/Scene/Model/MaterialPipelineStage.js:66 — process has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 9 (nesting depth added 5). Of this number, 27 points are the body's own statements and 3 belong 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, 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 · createInstances (cognitive 30) · ×1
  • createInstances (cognitive 30) packages/engine/Source/Scene/Model/I3dmLoader.js:375 — createInstances has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (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 · CubicRealPolynomial.CubicRealPolynomial.computeRealRoots (cognitive 29) · ×1
  • CubicRealPolynomial.CubicRealPolynomial.computeRealRoots (cognitive 29) packages/core/Source/CubicRealPolynomial.js:164 — CubicRealPolynomial.CubicRealPolynomial.computeRealRoots has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (26 pts), ternaries 1 (3 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 · ShadowMap.applyDebugSettings (cognitive 29) · ×1
  • ShadowMap.applyDebugSettings (cognitive 29) packages/engine/Source/Scene/ShadowMap.js:929 — ShadowMap.applyDebugSettings has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 7, loops 1 (3 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 · I3SDataProvider.addLayers (cognitive 29) · ×1
  • I3SDataProvider.addLayers (cognitive 29) packages/engine/Source/Scene/I3SDataProvider.js:426 — I3SDataProvider.addLayers has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 2 (6 pts), boolean chains 2 (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 · DiffMatcher.contextBasedMatch (cognitive 29) · ×1
  • DiffMatcher.contextBasedMatch (cognitive 29) packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:365 — DiffMatcher.contextBasedMatch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (6 pts), boolean chains 4, ternaries 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 · look3D (cognitive 29) · ×1
  • look3D (cognitive 29) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2751 — look3D has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 6, ternaries 2, other 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ShadowMap (cognitive 29) · ×1
  • ShadowMap (cognitive 29) packages/engine/Source/Scene/ShadowMap.js:83 — ShadowMap has cognitive complexity 29 (threshold 15). Drivers by points: other 13, if/else 10, boolean chains 3, ternaries 2, loops 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 · PolygonGeometryLibrary.PolygonGeometryLibrary.polygonOutlinesFromHierarchy (cognitive 28) · ×1
  • PolygonGeometryLibrary.PolygonGeometryLibrary.polygonOutlinesFromHierarchy (cognitive 28) packages/core/Source/PolygonGeometryLibrary.js:425 — PolygonGeometryLibrary.PolygonGeometryLibrary.polygonOutlinesFromHierarchy has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 5 (13 pts), ternaries 1 (2 pts) (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 · HermitePolynomialApproximation.interpolateOrderZero (cognitive 28) · ×1
  • HermitePolynomialApproximation.interpolateOrderZero (cognitive 28) packages/core/Source/HermitePolynomialApproximation.js:134 — HermitePolynomialApproximation.interpolateOrderZero has cognitive complexity 28 (threshold 15). Drivers by points: loops 10 (18 pts), if/else 4 (9 pts), boolean chains 1 (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 · VertexArray.interleaveAttributes (cognitive 28) · ×1
  • VertexArray.interleaveAttributes (cognitive 28) packages/engine/Source/Renderer/VertexArray.js:386 — VertexArray.interleaveAttributes has cognitive complexity 28 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 6 (12 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 · ClassificationPrimitive.updateAndQueueCommands (cognitive 28) · ×1
  • ClassificationPrimitive.updateAndQueueCommands (cognitive 28) packages/engine/Source/Scene/ClassificationPrimitive.js:915 — ClassificationPrimitive.updateAndQueueCommands has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3 (7 pts), boolean chains 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 · pickModel.pickModel (cognitive 28) · ×1
  • pickModel.pickModel (cognitive 28) packages/engine/Source/Scene/Model/pickModel.js:60 — pickModel.pickModel has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (nesting depth added 9). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 93). 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 · CompositeEntityCollection.CompositeEntityCollection._onCollectionChanged (cognitive 28) · ×1
  • CompositeEntityCollection.CompositeEntityCollection._onCollectionChanged (cognitive 28) packages/engine/Source/DataSources/CompositeEntityCollection.js:472 — CompositeEntityCollection.CompositeEntityCollection._onCollectionChanged has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 4 (6 pts) (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 · GeoJsonDataSource.createPolygon (cognitive 28) · ×1
  • GeoJsonDataSource.createPolygon (cognitive 28) packages/engine/Source/DataSources/GeoJsonDataSource.js:431 — GeoJsonDataSource.createPolygon has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 3, 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 · TerrainFillMesh.addEdgeMesh (cognitive 28) · ×1
  • TerrainFillMesh.addEdgeMesh (cognitive 28) packages/engine/Source/Scene/TerrainFillMesh.js:1794 — TerrainFillMesh.addEdgeMesh has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7, ternaries 1 (2 pts), loops 1, 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 · ParticleSystem.ParticleSystem.update (cognitive 28) · ×1
  • ParticleSystem.ParticleSystem.update (cognitive 28) packages/engine/Source/Scene/ParticleSystem.js:706 — ParticleSystem.ParticleSystem.update has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 3 (7 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 · _onLayerAdded (cognitive 28) · ×1
  • _onLayerAdded (cognitive 28) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1237 — _onLayerAdded has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2, loops 1 (2 pts), other 1 (nesting depth added 13). Most of this is not in the body itself: 4 of the 28 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 1251, a function literal at line 1313, reloadFunction). 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 · setShuttleRingFromMouseOrTouch (cognitive 28) · ×1
  • setShuttleRingFromMouseOrTouch (cognitive 28) packages/widgets/Source/Animation/Animation.js:214 — setShuttleRingFromMouseOrTouch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 12 (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 · WebMapTileServiceImageryProvider (cognitive 28) · ×1
  • WebMapTileServiceImageryProvider (cognitive 28) packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js:181 — WebMapTileServiceImageryProvider has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (18 pts), other 6, boolean chains 4 (nesting depth added 3). Of this number, 26 points are the body's own statements and 2 belong 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, 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 · createGeometry (cognitive 28) · ×1
  • createGeometry (cognitive 28) packages/core/Source/PolygonOutlineGeometry.js:560 — createGeometry has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 2 (9 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 16). 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 · PolylineVolumeGeometry.computeAttributes (cognitive 27) · ×1
  • PolylineVolumeGeometry.computeAttributes (cognitive 27) packages/core/Source/PolylineVolumeGeometry.js:25 — PolylineVolumeGeometry.computeAttributes has cognitive complexity 27 (threshold 15). Drivers by points: loops 7 (13 pts), if/else 7 (10 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 10). 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 · ImageryLayerCollection.pickModelFeatures (cognitive 27) · ×1
  • ImageryLayerCollection.pickModelFeatures (cognitive 27) packages/engine/Source/Scene/ImageryLayerCollection.js:544 — ImageryLayerCollection.pickModelFeatures has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 3 (6 pts), boolean chains 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 · GeoJsonDataSource.load (cognitive 27) · ×1
  • GeoJsonDataSource.load (cognitive 27) packages/engine/Source/DataSources/GeoJsonDataSource.js:986 — GeoJsonDataSource.load has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 1, ternaries 1 (nesting depth added 10). Of this number, 25 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 · TimeDynamicPointCloud.TimeDynamicPointCloud.update (cognitive 27) · ×1
  • TimeDynamicPointCloud.TimeDynamicPointCloud.update (cognitive 27) packages/engine/Source/Scene/TimeDynamicPointCloud.js:614 — TimeDynamicPointCloud.TimeDynamicPointCloud.update has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 7 (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 · createVectorTilePolylines.createVectorTilePolylines (cognitive 27) · ×1
  • createVectorTilePolylines.createVectorTilePolylines (cognitive 27) packages/engine/Source/Workers/createVectorTilePolylines.js:53 — createVectorTilePolylines.createVectorTilePolylines has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 5 (9 pts), loops 4 (7 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 · updateVersion.updateAnimations (cognitive 27) · ×1
  • updateVersion.updateAnimations (cognitive 27) packages/gltf/Source/updateVersion.js:144 — updateVersion.updateAnimations has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 3 (11 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · destroy (cognitive 27) · ×1
  • destroy (cognitive 27) packages/engine/Source/Scene/Scene.js:5527 — destroy has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 23, if/else 3, loops 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 · _updateCameraChanged (cognitive 27) · ×1
  • _updateCameraChanged (cognitive 27) packages/engine/Source/Scene/Camera.js:377 — _updateCameraChanged has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 4, ternaries 2 (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 · load (cognitive 27) · ×1
  • load (cognitive 27) REDACTED:3354 — load has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (3 pts), loops 1 (3 pts), other 3, ternaries 1 (3 pts), boolean chains 2 (nesting depth added 10). Most of this is not in the body itself: 13 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 3399, 3387, 3389, …). 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 · adjustHeightForTerrain (cognitive 27) · ×1
  • adjustHeightForTerrain (cognitive 27) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2911 — adjustHeightForTerrain has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 4, other 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 · fromVertices (cognitive 27) · ×1
  • fromVertices (cognitive 27) packages/core/Source/BoundingSphere.js:359 — fromVertices has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 2, other 2, 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 · pickPositionWorldCoordinates (cognitive 27) · ×1
  • pickPositionWorldCoordinates (cognitive 27) packages/engine/Source/Scene/Picking.js:693 — pickPositionWorldCoordinates has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), ternaries 1 (4 pts), boolean chains 1, 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 · Clock.tick (cognitive 26) · ×1
  • Clock.tick (cognitive 26) packages/core/Source/Clock.js:246 — Clock.tick has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · Resource.Resource._Implementations.loadWithXhr (cognitive 26) · ×1
  • Resource.Resource._Implementations.loadWithXhr (cognitive 26) packages/engine/Source/Core/Resource.js:2099 — Resource.Resource._Implementations.loadWithXhr has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (10 pts), loops 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 · ShaderProgram.createAndLinkProgram (cognitive 26) · ×1
  • ShaderProgram.createAndLinkProgram (cognitive 26) REDACTED:186 — ShaderProgram.createAndLinkProgram has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 10). Of this number, 24 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 · VectorPipeline.packPolygonGrid (cognitive 26) · ×1
  • VectorPipeline.packPolygonGrid (cognitive 26) packages/engine/Source/Core/VectorPipeline.js:554 — VectorPipeline.packPolygonGrid has cognitive complexity 26 (threshold 15). Drivers by points: loops 9 (17 pts), if/else 2 (9 pts) (nesting depth added 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.
D2 · Cognitive Complexity · Material.createMethodDefinition (cognitive 26) · ×1
  • Material.createMethodDefinition (cognitive 26) REDACTED:857 — Material.createMethodDefinition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (6 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 15). 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 · PrimitivePipeline.PrimitivePipeline.combineGeometry (cognitive 26) · ×1
  • PrimitivePipeline.PrimitivePipeline.combineGeometry (cognitive 26) packages/engine/Source/Scene/PrimitivePipeline.js:317 — PrimitivePipeline.PrimitivePipeline.combineGeometry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 4, 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.
D2 · Cognitive Complexity · GeometryUpdater.GeometryUpdater._onEntityPropertyChanged (cognitive 26) · ×1
  • GeometryUpdater.GeometryUpdater._onEntityPropertyChanged (cognitive 26) packages/engine/Source/DataSources/GeometryUpdater.js:411 — GeometryUpdater.GeometryUpdater._onEntityPropertyChanged has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 9, 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, 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 · ArcGisMapServerImageryProvider.metadataSuccess (cognitive 26) · ×1
  • ArcGisMapServerImageryProvider.metadataSuccess (cognitive 26) packages/engine/Source/Scene/ArcGisMapServerImageryProvider.js:132 — ArcGisMapServerImageryProvider.metadataSuccess has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4 (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 · PolylineCollection.PolylineBucket.updateIndices (cognitive 26) · ×1
  • PolylineCollection.PolylineBucket.updateIndices (cognitive 26) packages/engine/Source/Scene/PolylineCollection.js:1644 — PolylineCollection.PolylineBucket.updateIndices has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (8 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 · ScreenSpaceInputBindings.registerDragInputBindings (cognitive 26) · ×1
  • ScreenSpaceInputBindings.registerDragInputBindings (cognitive 26) packages/engine/Source/Scene/Controllers/ScreenSpaceInputBindings.js:79 — ScreenSpaceInputBindings.registerDragInputBindings has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2, boolean chains 1 (nesting depth added 15). Most of this is not in the body itself: 6 of the 26 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 111, 124, 139, …). 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 · I3SField.I3SField._validateBody (cognitive 26) · ×1
  • I3SField.I3SField._validateBody (cognitive 26) packages/engine/Source/Scene/I3SField.js:302 — I3SField.I3SField._validateBody has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (5 pts), boolean chains 2, ternaries 1 (2 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 · createElevationBandMaterial.preprocess (cognitive 26) · ×1
  • createElevationBandMaterial.preprocess (cognitive 26) packages/engine/Source/Scene/createElevationBandMaterial.js:97 — createElevationBandMaterial.preprocess has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (5 pts), boolean chains 4 (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 · decodeI3S.generateIndexArray (cognitive 26) · ×1
  • decodeI3S.generateIndexArray (cognitive 26) packages/engine/Source/Workers/decodeI3S.js:206 — decodeI3S.generateIndexArray has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (10 pts), boolean chains 3, 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 · transcodeKTX2.transcodeCompressed (cognitive 26) · ×1
  • transcodeKTX2.transcodeCompressed (cognitive 26) packages/engine/Source/Workers/transcodeKTX2.js:138 — transcodeKTX2.transcodeCompressed has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 3, 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.
D2 · Cognitive Complexity · addDefaults.addDefaults (cognitive 26) · ×1
  • addDefaults.addDefaults (cognitive 26) packages/gltf/Source/addDefaults.js:14 — addDefaults.addDefaults has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 62, 28, 154, …). 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 (cognitive 26) · ×1
  • update (cognitive 26) packages/engine/Source/Scene/Model/Model.js:2030 — update has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7, error handling 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 · test (cognitive 26) · ×1
  • test (cognitive 26) REDACTED:899 — test has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 11, boolean chains 2, other 1 (nesting depth added 1). Of this number, 24 points are the body's own statements and 2 belong to 2 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 · BoundingSphere.fromPoints (cognitive 25) · ×1
  • BoundingSphere.fromPoints (cognitive 25) packages/core/Source/BoundingSphere.js:61 — BoundingSphere.fromPoints has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 2, 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 · BoundingSphere.fromEncodedCartesianVertices (cognitive 25) · ×1
  • BoundingSphere.fromEncodedCartesianVertices (cognitive 25) packages/core/Source/BoundingSphere.js:546 — BoundingSphere.fromEncodedCartesianVertices has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 2, 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 · Spline.findTimeInterval (cognitive 25) · ×1
  • Spline.findTimeInterval (cognitive 25) packages/core/Source/Spline.js:106 — Spline.findTimeInterval has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, loops 2 (4 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 · GeometryPipeline.splitLongitudeLines (cognitive 25) · ×1
  • GeometryPipeline.splitLongitudeLines (cognitive 25) packages/core/Source/GeometryPipeline.js:2651 — GeometryPipeline.splitLongitudeLines has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2, 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 · PolygonOutlineGeometry.createGeometryFromPositionsExtruded (cognitive 25) · ×1
  • PolygonOutlineGeometry.createGeometryFromPositionsExtruded (cognitive 25) packages/core/Source/PolygonOutlineGeometry.js:136 — PolygonOutlineGeometry.createGeometryFromPositionsExtruded has cognitive complexity 25 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 7 (10 pts) (nesting depth added 11). 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 · combine.combine (cognitive 25) · ×1
  • combine.combine (cognitive 25) packages/core/Source/combine.js:34 — combine.combine has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 13). 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 · CubeMapFace.CubeMapFace.copyFrom (cognitive 25) · ×1
  • CubeMapFace.CubeMapFace.copyFrom (cognitive 25) packages/engine/Source/Renderer/CubeMapFace.js:85 — CubeMapFace.CubeMapFace.copyFrom has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (24 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.
D2 · Cognitive Complexity · CubeMap.CubeMap (cognitive 25) · ×1
  • CubeMap.CubeMap (cognitive 25) packages/engine/Source/Renderer/CubeMap.js:73 — CubeMap.CubeMap has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5, loops 2 (3 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.
D2 · Cognitive Complexity · PrimitiveOutlineGenerator.initialize (cognitive 25) · ×1
  • PrimitiveOutlineGenerator.initialize (cognitive 25) packages/engine/Source/Scene/Model/PrimitiveOutlineGenerator.js:175 — PrimitiveOutlineGenerator.initialize has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (7 pts), boolean chains 6 (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 · ImageryLayerCollection.ImageryLayerCollection.pickImageryLayerFeatures (cognitive 25) · ×1
  • ImageryLayerCollection.ImageryLayerCollection.pickImageryLayerFeatures (cognitive 25) packages/engine/Source/Scene/ImageryLayerCollection.js:635 — ImageryLayerCollection.ImageryLayerCollection.pickImageryLayerFeatures has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 9). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 706, queuePickFeatures). 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 · PathVisualizer.PathVisualizer._onCollectionChanged (cognitive 25) · ×1
  • PathVisualizer.PathVisualizer._onCollectionChanged (cognitive 25) packages/engine/Source/DataSources/PathVisualizer.js:1392 — PathVisualizer.PathVisualizer._onCollectionChanged has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3, 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.
D2 · Cognitive Complexity · CubeMapPanorama.CubeMapPanorama.update (cognitive 25) · ×1
  • CubeMapPanorama.CubeMapPanorama.update (cognitive 25) packages/engine/Source/Scene/CubeMapPanorama.js:162 — CubeMapPanorama.CubeMapPanorama.update has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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 · createVectorTileClampedPolylines.createVectorTileClampedPolylines (cognitive 25) · ×1
  • createVectorTileClampedPolylines.createVectorTileClampedPolylines (cognitive 25) packages/engine/Source/Workers/createVectorTileClampedPolylines.js:329 — createVectorTileClampedPolylines.createVectorTileClampedPolylines has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 4 (5 pts), 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 · styleEditorKeyPress (cognitive 25) · ×1
  • styleEditorKeyPress (cognitive 25) packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspectorViewModel.js:1485 — styleEditorKeyPress has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 13). 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 · shaderEditorKeyPress (cognitive 25) · ×1
  • shaderEditorKeyPress (cognitive 25) packages/widgets/Source/VoxelInspector/VoxelInspectorViewModel.js:911 — shaderEditorKeyPress has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 13). 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 · MetadataTableProperty (cognitive 25) · ×1
  • MetadataTableProperty (cognitive 25) packages/engine/Source/Scene/MetadataTableProperty.js:37 — MetadataTableProperty has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, other 10, 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.
D2 · Cognitive Complexity · GeometryPipeline.GeometryPipeline.fitToUnsignedShortIndices (cognitive 24) · ×1
  • GeometryPipeline.GeometryPipeline.fitToUnsignedShortIndices (cognitive 24) packages/core/Source/GeometryPipeline.js:495 — GeometryPipeline.GeometryPipeline.fitToUnsignedShortIndices has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (5 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 · PolygonGeometry.createGeometryFromPositionsExtruded (cognitive 24) · ×1
  • PolygonGeometry.createGeometryFromPositionsExtruded (cognitive 24) packages/core/Source/PolygonGeometry.js:428 — PolygonGeometry.createGeometryFromPositionsExtruded has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (7 pts), boolean chains 4 (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 · PolygonOutlineGeometry.createGeometryFromPositions (cognitive 24) · ×1
  • PolygonOutlineGeometry.createGeometryFromPositions (cognitive 24) packages/core/Source/PolygonOutlineGeometry.js:26 — PolygonOutlineGeometry.createGeometryFromPositions has cognitive complexity 24 (threshold 15). Drivers by points: loops 6 (14 pts), if/else 7 (10 pts) (nesting depth added 11). 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 · RectangleGeometry.calculateAttributes (cognitive 24) · ×1
  • RectangleGeometry.calculateAttributes (cognitive 24) packages/core/Source/RectangleGeometry.js:72 — RectangleGeometry.calculateAttributes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 3, boolean chains 2, 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.
D2 · Cognitive Complexity · CartographicGeocoderService.geocode (cognitive 24) · ×1
  • CartographicGeocoderService.geocode (cognitive 24) packages/engine/Source/Core/CartographicGeocoderService.js:29 — CartographicGeocoderService.geocode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 4, loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 12). 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 · GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.requestTileGeometry (cognitive 24) · ×1
  • GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.requestTileGeometry (cognitive 24) packages/engine/Source/Core/GoogleEarthEnterpriseTerrainProvider.js:303 — GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.requestTileGeometry has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 6). Of this number, 20 points are the body's own statements and 4 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 · PntsParser.PntsParser.parse (cognitive 24) · ×1
  • PntsParser.PntsParser.parse (cognitive 24) packages/engine/Source/Scene/PntsParser.js:35 — PntsParser.PntsParser.parse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 6 (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 · GlobeTranslucencyState.getDerivedCommandTypes (cognitive 24) · ×1
  • GlobeTranslucencyState.getDerivedCommandTypes (cognitive 24) packages/engine/Source/Scene/GlobeTranslucencyState.js:292 — GlobeTranslucencyState.getDerivedCommandTypes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 4 (6 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 · SampledProperty.mergeNewSamples (cognitive 24) · ×1
  • SampledProperty.mergeNewSamples (cognitive 24) packages/engine/Source/DataSources/SampledProperty.js:58 — SampledProperty.mergeNewSamples has cognitive complexity 24 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 4 (10 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 · QuadtreePrimitive.selectTilesForRendering (cognitive 24) · ×1
  • QuadtreePrimitive.selectTilesForRendering (cognitive 24) packages/engine/Source/Scene/QuadtreePrimitive.js:507 — QuadtreePrimitive.selectTilesForRendering has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (5 pts), ternaries 1 (nesting depth added 11). Of this number, 22 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 · I3SField.I3SField._parseBody (cognitive 24) · ×1
  • I3SField.I3SField._parseBody (cognitive 24) packages/engine/Source/Scene/I3SField.js:218 — I3SField.I3SField._parseBody has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (9 pts), ternaries 1 (2 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 · decodeGoogleEarthEnterprisePacket.processMetadata (cognitive 24) · ×1
  • decodeGoogleEarthEnterprisePacket.processMetadata (cognitive 24) packages/engine/Source/Workers/decodeGoogleEarthEnterprisePacket.js:52 — decodeGoogleEarthEnterprisePacket.processMetadata has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 2 (nesting depth added 7). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to one function item inside it that branches (populateTiles). 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 · decodeI3S.addOutlinesForEdge (cognitive 24) · ×1
  • decodeI3S.addOutlinesForEdge (cognitive 24) packages/engine/Source/Workers/decodeI3S.js:442 — decodeI3S.addOutlinesForEdge has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 2 (8 pts), loops 2 (5 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 · processNetworkLinkQueryString (cognitive 24) · ×1
  • processNetworkLinkQueryString (cognitive 24) REDACTED:2819 — processNetworkLinkQueryString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 2, other 1 (nesting depth added 6). Of this number, 20 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 · loadMaterial (cognitive 24) · ×1
  • loadMaterial (cognitive 24) packages/engine/Source/Scene/GltfLoader.js:1896 — loadMaterial has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 5, other 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 · createCommands (cognitive 24) · ×1
  • createCommands (cognitive 24) packages/engine/Source/Scene/Primitive.js:1846 — createCommands has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (20 pts), ternaries 3, 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.
D2 · Cognitive Complexity · addSkirtsToMesh (cognitive 24) · ×1
  • addSkirtsToMesh (cognitive 24) packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1111 — addSkirtsToMesh has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (9 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 · equals (cognitive 24) · ×1
  • equals (cognitive 24) packages/engine/Source/Scene/Label.js:1389 — equals has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 24. 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 · intersect (cognitive 24) · ×1
  • intersect (cognitive 24) packages/core/Source/TimeIntervalCollection.js:652 — intersect has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 7, 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 · updateRadianceMap (cognitive 24) · ×1
  • updateRadianceMap (cognitive 24) packages/engine/Source/Scene/DynamicEnvironmentMapManager.js:492 — updateRadianceMap has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 11). Of this number, 17 points are the body's own statements and 7 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 · executeTranslucentCommandsSortedMultipass (cognitive 24) · ×1
  • executeTranslucentCommandsSortedMultipass (cognitive 24) packages/engine/Source/Scene/OIT.js:711 — executeTranslucentCommandsSortedMultipass has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 4, if/else 2, loops 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 · EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions (cognitive 23) · ×1
  • EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions (cognitive 23) packages/core/Source/EllipseGeometryLibrary.js:113 — EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (8 pts), ternaries 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 · HermitePolynomialApproximation.calculateCoefficientTerm (cognitive 23) · ×1
  • HermitePolynomialApproximation.calculateCoefficientTerm (cognitive 23) packages/core/Source/HermitePolynomialApproximation.js:20 — HermitePolynomialApproximation.calculateCoefficientTerm has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (8 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.
D2 · Cognitive Complexity · TimeIntervalCollection.parseDuration (cognitive 23) · ×1
  • TimeIntervalCollection.parseDuration (cognitive 23) packages/core/Source/TimeIntervalCollection.js:1042 — TimeIntervalCollection.parseDuration has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (21 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 · DoubleEndedPriorityQueue.pushDown (cognitive 23) · ×1
  • DoubleEndedPriorityQueue.pushDown (cognitive 23) packages/engine/Source/Core/DoubleEndedPriorityQueue.js:354 — DoubleEndedPriorityQueue.pushDown has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (4 pts), boolean chains 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 · FrustumGeometry.FrustumGeometry.createGeometry (cognitive 23) · ×1
  • FrustumGeometry.FrustumGeometry.createGeometry (cognitive 23) packages/engine/Source/Core/FrustumGeometry.js:385 — FrustumGeometry.FrustumGeometry.createGeometry has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 5 (9 pts), boolean chains 1, 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 · ImageBasedLighting.ImageBasedLighting.update (cognitive 23) · ×1
  • ImageBasedLighting.ImageBasedLighting.update (cognitive 23) packages/engine/Source/Scene/ImageBasedLighting.js:331 — ImageBasedLighting.ImageBasedLighting.update has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 16, if/else 6 (7 pts) (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 · TextureAtlas.TextureAtlas._resize (cognitive 23) · ×1
  • TextureAtlas.TextureAtlas._resize (cognitive 23) packages/engine/Source/Renderer/TextureAtlas.js:336 — TextureAtlas.TextureAtlas._resize has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 10). Of this number, 22 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 · CameraFlightPath.CameraFlightPath.createTween (cognitive 23) · ×1
  • CameraFlightPath.CameraFlightPath.createTween (cognitive 23) packages/engine/Source/Scene/CameraFlightPath.js:408 — CameraFlightPath.CameraFlightPath.createTween has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 3). Of this number, 21 points are the body's own statements and 2 belong 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, 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 · PostProcessStageTextureCache.getCompositeDependencies (cognitive 23) · ×1
  • PostProcessStageTextureCache.getCompositeDependencies (cognitive 23) packages/engine/Source/Scene/PostProcessStageTextureCache.js:72 — PostProcessStageTextureCache.getCompositeDependencies has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (8 pts), boolean chains 4 (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 · processVoxelProperties.processVoxelProperties (cognitive 23) · ×1
  • processVoxelProperties.processVoxelProperties (cognitive 23) packages/engine/Source/Scene/processVoxelProperties.js:15 — processVoxelProperties.processVoxelProperties has cognitive complexity 23 (threshold 15). Drivers by points: loops 12 (15 pts), if/else 3 (6 pts), boolean chains 2 (nesting depth added 6). 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 · CloudCollection.updateClouds (cognitive 23) · ×1
  • CloudCollection.updateClouds (cognitive 23) packages/engine/Source/Scene/CloudCollection.js:793 — CloudCollection.updateClouds has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · main.document.addEventListener("keydown") (cognitive 23) · ×1
  • main.document.addEventListener("keydown") (cognitive 23) packages/sandcastle/gallery/localtofixedframe/main.js:127 — main.document.addEventListener("keydown") has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 1 (nesting depth added 12). 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 · main.applySelection (cognitive 23) · ×1
  • main.applySelection (cognitive 23) packages/sandcastle/gallery/time-dependent-path-graphics/main.js:480 — main.applySelection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (23 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 · getEvaluateTernaryComponentwise (cognitive 23) · ×1
  • getEvaluateTernaryComponentwise (cognitive 23) REDACTED:414 — getEvaluateTernaryComponentwise has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 9 (10 pts) (nesting depth added 1). None of this is in the body itself: all 23 points belong to one function literal inside it that branches (line 415). 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 · updateZoomTarget (cognitive 23) · ×1
  • updateZoomTarget (cognitive 23) packages/engine/Source/Widget/CesiumWidget.js:1443 — updateZoomTarget has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 2, loops 1, other 1 (nesting depth added 3). Of this number, 20 points are the body's own statements and 3 belong to 8 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · update (cognitive 23) · ×1
  • update (cognitive 23) packages/engine/Source/Scene/VoxelCylinderShape.js:219 — update has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6, other 2, loops 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 · merge (cognitive 23) · ×1
  • merge (cognitive 23) packages/engine/Source/DataSources/Entity.js:612 — merge has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, other 2, loops 1, 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 · CubicRealPolynomial.computeRealRoots (cognitive 22) · ×1
  • CubicRealPolynomial.computeRealRoots (cognitive 22) packages/core/Source/CubicRealPolynomial.js:49 — CubicRealPolynomial.computeRealRoots has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 5 (8 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 · GeometryPipeline.GeometryPipeline.computeNormal (cognitive 22) · ×1
  • GeometryPipeline.GeometryPipeline.computeNormal (cognitive 22) packages/core/Source/GeometryPipeline.js:1162 — GeometryPipeline.GeometryPipeline.computeNormal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 6 (8 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 · Cesium3DTileBatchTable.getBinaryProperties (cognitive 22) · ×1
  • Cesium3DTileBatchTable.getBinaryProperties (cognitive 22) REDACTED:159 — Cesium3DTileBatchTable.getBinaryProperties has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Label.Label.getScreenSpaceBoundingBox (cognitive 22) · ×1
  • Label.Label.getScreenSpaceBoundingBox (cognitive 22) packages/engine/Source/Scene/Label.js:1282 — Label.Label.getScreenSpaceBoundingBox has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3, loops 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.
D2 · Cognitive Complexity · Vector3DTileContent.update (cognitive 22) · ×1
  • Vector3DTileContent.update (cognitive 22) packages/engine/Source/Scene/Vector3DTileContent.js:212 — Vector3DTileContent.update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 10 (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 · GeoJsonPrimitive.createGeoJsonCollections (cognitive 22) · ×1
  • GeoJsonPrimitive.createGeoJsonCollections (cognitive 22) packages/engine/Source/Scene/GeoJsonPrimitive.js:394 — GeoJsonPrimitive.createGeoJsonCollections has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (9 pts), loops 4 (7 pts), if/else 5 (6 pts) (nesting depth added 10). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Cesium3DTileset.updateTiles (cognitive 22) · ×1
  • Cesium3DTileset.updateTiles (cognitive 22) packages/engine/Source/Scene/Cesium3DTileset.js:3604 — Cesium3DTileset.updateTiles has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 4 (6 pts), boolean chains 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 · Cesium3DTilesetVisualizer.Cesium3DTilesetVisualizer.update (cognitive 22) · ×1
  • Cesium3DTilesetVisualizer.Cesium3DTilesetVisualizer.update (cognitive 22) packages/engine/Source/DataSources/Cesium3DTilesetVisualizer.js:54 — Cesium3DTilesetVisualizer.Cesium3DTilesetVisualizer.update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, ternaries 1 (2 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.
D2 · Cognitive Complexity · CzmlDataSource.processProperties (cognitive 22) · ×1
  • CzmlDataSource.processProperties (cognitive 22) packages/engine/Source/DataSources/CzmlDataSource.js:1666 — CzmlDataSource.processProperties has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (7 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 · PolylineGeometryUpdater.DynamicGeometryUpdater.update (cognitive 22) · ×1
  • PolylineGeometryUpdater.DynamicGeometryUpdater.update (cognitive 22) packages/engine/Source/DataSources/PolylineGeometryUpdater.js:677 — PolylineGeometryUpdater.DynamicGeometryUpdater.update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 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 · useToolChainExecution.useToolChainExecution.executeToolCall (cognitive 22) · ×1
  • useToolChainExecution.useToolChainExecution.executeToolCall (cognitive 22) packages/sandcastle/src/copilot/hooks/useToolChainExecution.ts:110 — useToolChainExecution.useToolChainExecution.executeToolCall has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 5 (8 pts), boolean chains 3, error handling 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 · CesiumInspectorViewModel.frustumStatisticsToString (cognitive 22) · ×1
  • CesiumInspectorViewModel.frustumStatisticsToString (cognitive 22) packages/widgets/Source/CesiumInspector/CesiumInspectorViewModel.js:19 — CesiumInspectorViewModel.frustumStatisticsToString has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (7 pts) (nesting depth added 15). 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 · generateNormals (cognitive 22) · ×1
  • generateNormals (cognitive 22) packages/engine/Source/Workers/decodeI3S.js:553 — generateNormals has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 3 (6 pts), loops 3 (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 · copyFrom (cognitive 22) · ×1
  • copyFrom (cognitive 22) packages/engine/Source/Renderer/Texture.js:862 — copyFrom has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4 (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 · ParticleSystem (cognitive 22) · ×1
  • ParticleSystem (cognitive 22) packages/engine/Source/Scene/ParticleSystem.js:60 — ParticleSystem has cognitive complexity 22 (threshold 15). Drivers by points: other 21, 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.
D2 · Cognitive Complexity · VoxelInspectorViewModel (cognitive 22) · ×1
  • VoxelInspectorViewModel (cognitive 22) packages/widgets/Source/VoxelInspector/VoxelInspectorViewModel.js:54 — VoxelInspectorViewModel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 2). None of this is in the body itself: all 22 points belong to 78 function items inside it that branch (addProperty::set, addProperty, setPrimitiveFunction, …). 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 · update (cognitive 22) · ×1
  • update (cognitive 22) packages/engine/Source/Scene/OIT.js:238 — update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (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 · QuadraticRealPolynomial.QuadraticRealPolynomial.computeRealRoots (cognitive 21) · ×1
  • QuadraticRealPolynomial.QuadraticRealPolynomial.computeRealRoots (cognitive 21) packages/core/Source/QuadraticRealPolynomial.js:56 — QuadraticRealPolynomial.QuadraticRealPolynomial.computeRealRoots has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GeometryPipeline.updateAdjacencyAfterSplit (cognitive 21) · ×1
  • GeometryPipeline.updateAdjacencyAfterSplit (cognitive 21) packages/core/Source/GeometryPipeline.js:2879 — GeometryPipeline.updateAdjacencyAfterSplit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 6, 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 · PixelFormat.PixelFormat.toInternalFormat (cognitive 21) · ×1
  • PixelFormat.PixelFormat.toInternalFormat (cognitive 21) packages/core/Source/PixelFormat.js:582 — PixelFormat.PixelFormat.toInternalFormat has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 5 (10 pts) (nesting depth added 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.
D2 · Cognitive Complexity · GltfDracoLoader.process (cognitive 21) · ×1
  • GltfDracoLoader.process (cognitive 21) packages/engine/Source/Scene/GltfDracoLoader.js:108 — GltfDracoLoader.process has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (20 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.
D2 · Cognitive Complexity · CesiumTerrainProvider.requestTileGeometry (cognitive 21) · ×1
  • CesiumTerrainProvider.requestTileGeometry (cognitive 21) packages/engine/Source/Core/CesiumTerrainProvider.js:914 — CesiumTerrainProvider.requestTileGeometry has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 2). Of this number, 19 points are the body's own statements and 2 belong 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 · ShaderSource.combineShader (cognitive 21) · ×1
  • ShaderSource.combineShader (cognitive 21) packages/engine/Source/Renderer/ShaderSource.js:153 — ShaderSource.combineShader has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 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.
D2 · Cognitive Complexity · Material.createUniform (cognitive 21) · ×1
  • Material.createUniform (cognitive 21) REDACTED:1163 — Material.createUniform has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (19 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 · Expression.createRuntimeAst (cognitive 21) · ×1
  • Expression.createRuntimeAst (cognitive 21) REDACTED:896 — Expression.createRuntimeAst has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (19 pts), loops 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.
D2 · Cognitive Complexity · SceneTransforms.SceneTransforms.worldWithEyeOffsetToWindowCoordinates (cognitive 21) · ×1
  • SceneTransforms.SceneTransforms.worldWithEyeOffsetToWindowCoordinates (cognitive 21) packages/engine/Source/Scene/SceneTransforms.js:101 — SceneTransforms.SceneTransforms.worldWithEyeOffsetToWindowCoordinates has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4 (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 · Cesium3DTilesetSkipTraversal.executeTraversal (cognitive 21) · ×1
  • Cesium3DTilesetSkipTraversal.executeTraversal (cognitive 21) packages/engine/Source/Scene/Cesium3DTilesetSkipTraversal.js:266 — Cesium3DTilesetSkipTraversal.executeTraversal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 1, 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 · I3SSymbology.buildClassBreaksHash (cognitive 21) · ×1
  • I3SSymbology.buildClassBreaksHash (cognitive 21) packages/engine/Source/Scene/I3SSymbology.js:162 — I3SSymbology.buildClassBreaksHash has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 2, 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.
D2 · Cognitive Complexity · ConsoleWrapper.setupWindowErrorHandler (cognitive 21) · ×1
  • ConsoleWrapper.setupWindowErrorHandler (cognitive 21) packages/sandcastle/src/util/ConsoleWrapper.ts:219 — ConsoleWrapper.setupWindowErrorHandler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 2 (5 pts), boolean chains 1 (nesting depth added 9). None of this is in the body itself: all 21 points belong to 2 function literals inside it that branch (lines 220, 263). 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 · DiffMatcher.findClosestMatch (cognitive 21) · ×1
  • DiffMatcher.findClosestMatch (cognitive 21) packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts:612 — DiffMatcher.findClosestMatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, loops 3 (4 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 · processDocument (cognitive 21) · ×1
  • processDocument (cognitive 21) packages/engine/Source/DataSources/CzmlDataSource.js:2628 — processDocument has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), other 5 (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 · zoomToOrFly (cognitive 21) · ×1
  • zoomToOrFly (cognitive 21) packages/engine/Source/Widget/CesiumWidget.js:1314 — zoomToOrFly has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4, other 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 8 function items inside it that branch (a function literal at line 1336, a function literal at line 1360, a function literal at line 1381, …). 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 · GroundPrimitive (cognitive 21) · ×1
  • GroundPrimitive (cognitive 21) packages/engine/Source/Scene/GroundPrimitive.js:116 — GroundPrimitive has cognitive complexity 21 (threshold 15). Drivers by points: other 11, if/else 2 (4 pts), boolean chains 2, loops 1 (2 pts), 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 · load (cognitive 21) · ×1
  • load (cognitive 21) REDACTED:669 — load has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (3 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 2, other 1 (nesting depth added 9). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 690, 688, 727). 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 · equals (cognitive 21) · ×1
  • equals (cognitive 21) packages/engine/Source/DataSources/SampledProperty.js:788 — equals has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (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 · Expression.Node._evaluateTimes (cognitive 20) · ×1
  • Expression.Node._evaluateTimes (cognitive 20) REDACTED:1497 — Expression.Node._evaluateTimes has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, 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 · Expression.Node.getVariables (cognitive 20) · ×1
  • Expression.Node.getVariables (cognitive 20) REDACTED:2169 — Expression.Node.getVariables has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (7 pts), boolean chains 1, 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 · PrimitiveOutlineGenerator.matchAndStoreCoordinates (cognitive 20) · ×1
  • PrimitiveOutlineGenerator.matchAndStoreCoordinates (cognitive 20) packages/engine/Source/Scene/Model/PrimitiveOutlineGenerator.js:305 — PrimitiveOutlineGenerator.matchAndStoreCoordinates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 6, boolean chains 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 · TileImagery.TileImagery.processStateMachine (cognitive 20) · ×1
  • TileImagery.TileImagery.processStateMachine (cognitive 20) packages/engine/Source/Scene/TileImagery.js:46 — TileImagery.TileImagery.processStateMachine has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6, 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 · createVectorTileBuffersFromModelComponents.appendBufferPolygons (cognitive 20) · ×1
  • createVectorTileBuffersFromModelComponents.appendBufferPolygons (cognitive 20) packages/engine/Source/Scene/Model/createVectorTileBuffersFromModelComponents.js:471 — createVectorTileBuffersFromModelComponents.appendBufferPolygons has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), ternaries 2 (5 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 · Cesium3DTile.processArrayBuffer (cognitive 20) · ×1
  • Cesium3DTile.processArrayBuffer (cognitive 20) packages/engine/Source/Scene/Cesium3DTile.js:1262 — Cesium3DTile.processArrayBuffer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, error handling 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 · KmlDataSource.loadKmz (cognitive 20) · ×1
  • KmlDataSource.loadKmz (cognitive 20) REDACTED:3290 — KmlDataSource.loadKmz has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · moveTechniqueRenderStates.moveTechniqueRenderStates (cognitive 20) · ×1
  • moveTechniqueRenderStates.moveTechniqueRenderStates (cognitive 20) packages/gltf/Source/moveTechniqueRenderStates.js:59 — moveTechniqueRenderStates.moveTechniqueRenderStates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2 (nesting depth added 8). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 67, 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 · PromptInput.PromptInput (cognitive 20) · ×1
  • PromptInput.PromptInput (cognitive 20) packages/sandcastle/src/copilot/PromptInput.tsx:32 — PromptInput.PromptInput has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 9, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 122, 77, 50, …). 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 · updateDerivedCommands (cognitive 20) · ×1
  • updateDerivedCommands (cognitive 20) packages/engine/Source/Scene/Scene.js:1805 — updateDerivedCommands has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, ternaries 1 (3 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 · updateForPass (cognitive 20) · ×1
  • updateForPass (cognitive 20) packages/engine/Source/Scene/Cesium3DTileset.js:4106 — updateForPass has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (6 pts), other 3 (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 · processBillboardIcon (cognitive 20) · ×1
  • processBillboardIcon (cognitive 20) REDACTED:920 — processBillboardIcon has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, 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 · loadWithXhr · ×1
  • loadWithXhr::onload (cognitive 20) packages/engine/Source/Core/Resource.js:2159 — loadWithXhr::onload has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8, error handling 1 (2 pts) (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 · Context (cognitive 20) · ×1
  • Context (cognitive 20) packages/engine/Source/Renderer/Context.js:44 — Context has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 6, other 4, boolean chains 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, 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 · getRayIntersection (cognitive 20) · ×1
  • getRayIntersection (cognitive 20) packages/engine/Source/Scene/Picking.js:1133 — getRayIntersection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, ternaries 1 (4 pts), loops 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.
D2 · Cognitive Complexity · fromRectangle (cognitive 20) · ×1
  • fromRectangle (cognitive 20) packages/core/Source/OrientedBoundingBox.js:241 — fromRectangle has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (7 pts), boolean chains 5, if/else 5, other 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 · fromJulianDateArray (cognitive 20) · ×1
  • fromJulianDateArray (cognitive 20) packages/core/Source/TimeIntervalCollection.js:721 — fromJulianDateArray has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5, other 4, 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 · getHeight (cognitive 20) · ×1
  • getHeight (cognitive 20) packages/engine/Source/Scene/Globe.js:853 — getHeight has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 2, other 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 · preload (cognitive 20) · ×1
  • preload (cognitive 20) packages/engine/Source/DataSources/GeoJsonDataSource.js:910 — preload has cognitive complexity 20 (threshold 15). Drivers by points: other 10, if/else 4 (5 pts), loops 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · EarthOrientationParameters.EarthOrientationParameters.compute (cognitive 19) · ×1
  • EarthOrientationParameters.EarthOrientationParameters.compute (cognitive 19) packages/engine/Source/Core/EarthOrientationParameters.js:165 — EarthOrientationParameters.EarthOrientationParameters.compute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 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 · TexturePacker.TexturePacker._findNode (cognitive 19) · ×1
  • TexturePacker.TexturePacker._findNode (cognitive 19) packages/engine/Source/Core/TexturePacker.js:94 — TexturePacker.TexturePacker._findNode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 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 · PrimitivePipeline.PrimitivePipeline.unpackCreateGeometryResults (cognitive 19) · ×1
  • PrimitivePipeline.PrimitivePipeline.unpackCreateGeometryResults (cognitive 19) packages/engine/Source/Scene/PrimitivePipeline.js:546 — PrimitivePipeline.PrimitivePipeline.unpackCreateGeometryResults has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (9 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 · PropertyBag.PropertyBag.merge (cognitive 19) · ×1
  • PropertyBag.PropertyBag.merge (cognitive 19) packages/engine/Source/DataSources/PropertyBag.js:196 — PropertyBag.PropertyBag.merge has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 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 · Expression.getEvaluateTernaryComponentwise.<returned closure> (cognitive 19) · ×1
  • Expression.getEvaluateTernaryComponentwise.<returned closure> (cognitive 19) REDACTED:415 — Expression.getEvaluateTernaryComponentwise.<returned closure> has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 9 (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 · EdgeVisibilityPipelineStage.collectVertexColors (cognitive 19) · ×1
  • EdgeVisibilityPipelineStage.collectVertexColors (cognitive 19) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:518 — EdgeVisibilityPipelineStage.collectVertexColors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4, loops 1 (nesting depth added 1). Of this number, 16 points are the body's own statements and 3 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 · ArcGisMapServerImageryProvider.ArcGisMapServerImageryProvider.pickFeatures (cognitive 19) · ×1
  • ArcGisMapServerImageryProvider.ArcGisMapServerImageryProvider.pickFeatures (cognitive 19) packages/engine/Source/Scene/ArcGisMapServerImageryProvider.js:773 — ArcGisMapServerImageryProvider.ArcGisMapServerImageryProvider.pickFeatures has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 823). 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 · DebugCameraPrimitive.DebugCameraPrimitive.update (cognitive 19) · ×1
  • DebugCameraPrimitive.DebugCameraPrimitive.update (cognitive 19) packages/engine/Source/Scene/DebugCameraPrimitive.js:93 — DebugCameraPrimitive.DebugCameraPrimitive.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PostProcessStage.createSelectedTexture (cognitive 19) · ×1
  • PostProcessStage.createSelectedTexture (cognitive 19) packages/engine/Source/Scene/PostProcessStage.js:779 — PostProcessStage.createSelectedTexture has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), boolean chains 4 (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 · PostProcessStageCollection.PostProcessStageCollection.execute (cognitive 19) · ×1
  • PostProcessStageCollection.PostProcessStageCollection.execute (cognitive 19) packages/engine/Source/Scene/PostProcessStageCollection.js:770 — PostProcessStageCollection.PostProcessStageCollection.execute has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 7, loops 1 (2 pts) (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 · SpatialNode.SpatialNode.computeSurroundingRenderableKeyframeNodes (cognitive 19) · ×1
  • SpatialNode.SpatialNode.computeSurroundingRenderableKeyframeNodes (cognitive 19) packages/engine/Source/Scene/SpatialNode.js:178 — SpatialNode.SpatialNode.computeSurroundingRenderableKeyframeNodes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, ternaries 1 (3 pts), 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 · VoxelTraversal.generateOctree · ×1
  • VoxelTraversal.generateOctree::buildOctree (cognitive 19) packages/engine/Source/Scene/VoxelTraversal.js:998 — VoxelTraversal.generateOctree::buildOctree has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), loops 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 · VoxelPrimitive.VoxelPrimitive.update (cognitive 19) · ×1
  • VoxelPrimitive.VoxelPrimitive.update (cognitive 19) packages/engine/Source/Scene/VoxelPrimitive.js:1155 — VoxelPrimitive.VoxelPrimitive.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 2 (3 pts), boolean chains 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 · Scene.insertShadowCastCommands (cognitive 19) · ×1
  • Scene.insertShadowCastCommands (cognitive 19) packages/engine/Source/Scene/Scene.js:3262 — Scene.insertShadowCastCommands has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (7 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.
D2 · Cognitive Complexity · TileBoundingS2Cell.TileBoundingS2Cell.distanceToCamera (cognitive 19) · ×1
  • TileBoundingS2Cell.TileBoundingS2Cell.distanceToCamera (cognitive 19) packages/engine/Source/Scene/TileBoundingS2Cell.js:392 — TileBoundingS2Cell.TileBoundingS2Cell.distanceToCamera has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (3 pts), 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 · CompositeEntityCollection.CompositeEntityCollection._onDefinitionChanged (cognitive 19) · ×1
  • CompositeEntityCollection.CompositeEntityCollection._onDefinitionChanged (cognitive 19) packages/engine/Source/DataSources/CompositeEntityCollection.js:545 — CompositeEntityCollection.CompositeEntityCollection._onDefinitionChanged has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · StaticOutlineGeometryBatch.StaticOutlineGeometryBatch.update (cognitive 19) · ×1
  • StaticOutlineGeometryBatch.StaticOutlineGeometryBatch.update (cognitive 19) packages/engine/Source/DataSources/StaticOutlineGeometryBatch.js:369 — StaticOutlineGeometryBatch.StaticOutlineGeometryBatch.update has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 2 (6 pts) (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 · PolylineGeometryUpdater.PolylineGeometryUpdater.createFillGeometryInstance (cognitive 19) · ×1
  • PolylineGeometryUpdater.PolylineGeometryUpdater.createFillGeometryInstance (cognitive 19) packages/engine/Source/DataSources/PolylineGeometryUpdater.js:362 — PolylineGeometryUpdater.PolylineGeometryUpdater.createFillGeometryInstance has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6 (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 · GoogleEarthEnterpriseImageryProvider.decodeEarthImageryPacket (cognitive 19) · ×1
  • GoogleEarthEnterpriseImageryProvider.decodeEarthImageryPacket (cognitive 19) packages/engine/Source/Scene/GoogleEarthEnterpriseImageryProvider.js:483 — GoogleEarthEnterpriseImageryProvider.decodeEarthImageryPacket has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 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.
D2 · Cognitive Complexity · decodeMVT.decodeFeature (cognitive 19) · ×1
  • decodeMVT.decodeFeature (cognitive 19) packages/engine/Source/Scene/decodeMVT.js:225 — decodeMVT.decodeFeature has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5 (7 pts), boolean chains 4 (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 · TimeDynamicPointCloud.unloadFrames (cognitive 19) · ×1
  • TimeDynamicPointCloud.unloadFrames (cognitive 19) packages/engine/Source/Scene/TimeDynamicPointCloud.js:512 — TimeDynamicPointCloud.unloadFrames has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (17 pts), boolean chains 1, 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.
D2 · Cognitive Complexity · upsampleQuantizedTerrainMesh.addClippedPolygon (cognitive 19) · ×1
  • upsampleQuantizedTerrainMesh.addClippedPolygon (cognitive 19) packages/engine/Source/Workers/upsampleQuantizedTerrainMesh.js:613 — upsampleQuantizedTerrainMesh.addClippedPolygon has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 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 · ForEach.ForEach.nodeInTree (cognitive 19) · ×1
  • ForEach.ForEach.nodeInTree (cognitive 19) packages/gltf/Source/ForEach.js:449 — ForEach.ForEach.nodeInTree has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 1 (2 pts) (nesting depth added 13). 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 · removeExtension.removeExtensionAndTraverse (cognitive 19) · ×1
  • removeExtension.removeExtensionAndTraverse (cognitive 19) packages/gltf/Source/removeExtension.js:35 — removeExtension.removeExtensionAndTraverse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · Bucket.Bucket (cognitive 19) · ×1
  • Bucket.Bucket (cognitive 19) packages/sandcastle/src/Bucket.tsx:16 — Bucket.Bucket has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3 (nesting depth added 3). None of this is in the body itself: all 19 points belong to 4 function literals inside it that branch (lines 61, 118, 44, …). 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 · toolRegistry.createApplyDiffHandler.<returned closure> (cognitive 19) · ×1
  • toolRegistry.createApplyDiffHandler.<returned closure> (cognitive 19) packages/sandcastle/src/copilot/ai/tools/toolRegistry.ts:74 — toolRegistry.createApplyDiffHandler.<returned closure> has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 6 (7 pts), boolean chains 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.
D2 · Cognitive Complexity · Timeline.createTouchMoveCallback.<returned closure> (cognitive 19) · ×1
  • Timeline.createTouchMoveCallback.<returned closure> (cognitive 19) packages/widgets/Source/Timeline/Timeline.js:916 — Timeline.createTouchMoveCallback.<returned closure> has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 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 · flyTo (cognitive 19) · ×1
  • flyTo (cognitive 19) packages/engine/Source/Scene/Camera.js:3428 — flyTo has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), other 2, boolean chains 1, ternaries 1 (nesting depth added 3). Of this number, 17 points are the body's own statements and 2 belong 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 · getIconHref (cognitive 19) · ×1
  • getIconHref (cognitive 19) REDACTED:837 — getIconHref has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), other 4, boolean chains 3, 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 · unwrapInterval (cognitive 19) · ×1
  • unwrapInterval (cognitive 19) packages/engine/Source/DataSources/CzmlDataSource.js:524 — unwrapInterval has cognitive complexity 19 (threshold 15). Drivers by points: other 18, match/switch 1. 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 · fetchImage (cognitive 19) · ×1
  • fetchImage (cognitive 19) packages/engine/Source/Core/Resource.js:903 — fetchImage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, other 5, error handling 1 (nesting depth added 1). Of this number, 12 points are the body's own statements and 7 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 · updateAndQueueCommands (cognitive 19) · ×1
  • updateAndQueueCommands (cognitive 19) packages/engine/Source/Scene/Primitive.js:2001 — updateAndQueueCommands has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (4 pts), boolean chains 3, loops 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.
D2 · Cognitive Complexity · equals (cognitive 19) · ×1
  • equals (cognitive 19) packages/engine/Source/Scene/Billboard.js:1555 — equals has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 19. 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 · continueDraw (cognitive 19) · ×1
  • continueDraw (cognitive 19) packages/engine/Source/Renderer/Context.js:1323 — continueDraw has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 1, other 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · createTouchMoveCallback (cognitive 19) · ×1
  • createTouchMoveCallback (cognitive 19) packages/widgets/Source/Timeline/Timeline.js:915 — createTouchMoveCallback has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2 (nesting depth added 7). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 916). 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 · Occluder.computeVisibility (cognitive 18) · ×1
  • Occluder.computeVisibility (cognitive 18) packages/core/Source/Occluder.js:280 — Occluder.computeVisibility has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (7 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · BoxGeometry.createGeometry (cognitive 18) · ×1
  • BoxGeometry.createGeometry (cognitive 18) packages/core/Source/BoxGeometry.js:235 — BoxGeometry.createGeometry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WallGeometryLibrary.removeDuplicates (cognitive 18) · ×1
  • WallGeometryLibrary.removeDuplicates (cognitive 18) packages/core/Source/WallGeometryLibrary.js:22 — WallGeometryLibrary.removeDuplicates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, 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 · ArcGISTiledElevationTerrainProvider.parseMetadataSuccess (cognitive 18) · ×1
  • ArcGISTiledElevationTerrainProvider.parseMetadataSuccess (cognitive 18) REDACTED:83 — ArcGISTiledElevationTerrainProvider.parseMetadataSuccess has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 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 · Iau2006XysData.Iau2006XysData.computeXysRadians (cognitive 18) · ×1
  • Iau2006XysData.Iau2006XysData.computeXysRadians (cognitive 18) packages/engine/Source/Core/Iau2006XysData.js:147 — Iau2006XysData.Iau2006XysData.computeXysRadians has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 3 (4 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.
D2 · Cognitive Complexity · GltfVertexBufferLoader.process (cognitive 18) · ×1
  • GltfVertexBufferLoader.process (cognitive 18) packages/engine/Source/Scene/GltfVertexBufferLoader.js:218 — GltfVertexBufferLoader.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.getTileDataAvailable (cognitive 18) · ×1
  • GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.getTileDataAvailable (cognitive 18) packages/engine/Source/Core/GoogleEarthEnterpriseTerrainProvider.js:504 — GoogleEarthEnterpriseTerrainProvider.GoogleEarthEnterpriseTerrainProvider.getTileDataAvailable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 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 · VRTheWorldTerrainProvider.getChildMask (cognitive 18) · ×1
  • VRTheWorldTerrainProvider.getChildMask (cognitive 18) packages/engine/Source/Core/VRTheWorldTerrainProvider.js:360 — VRTheWorldTerrainProvider.getChildMask has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1, 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 · VertexArray.setVertexAttribDivisor (cognitive 18) · ×1
  • VertexArray.setVertexAttribDivisor (cognitive 18) packages/engine/Source/Renderer/VertexArray.js:760 — VertexArray.setVertexAttribDivisor has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 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.
D2 · Cognitive Complexity · RenderState.createFuncs (cognitive 18) · ×1
  • RenderState.createFuncs (cognitive 18) packages/engine/Source/Renderer/RenderState.js:741 — RenderState.createFuncs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 7. 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 · Primitive.recomputeBoundingSpheres (cognitive 18) · ×1
  • Primitive.recomputeBoundingSpheres (cognitive 18) packages/engine/Source/Scene/Primitive.js:1376 — Primitive.recomputeBoundingSpheres has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 7 (8 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Geometry3DTileContent.initialize (cognitive 18) · ×1
  • Geometry3DTileContent.initialize (cognitive 18) packages/engine/Source/Scene/Geometry3DTileContent.js:320 — Geometry3DTileContent.initialize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 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 · ClippingPlaneCollection.ClippingPlaneCollection.update (cognitive 18) · ×1
  • ClippingPlaneCollection.ClippingPlaneCollection.update (cognitive 18) packages/engine/Source/Scene/ClippingPlaneCollection.js:469 — ClippingPlaneCollection.ClippingPlaneCollection.update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2, 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 · GltfGpmLocal.GltfGpmLocal (cognitive 18) · ×1
  • GltfGpmLocal.GltfGpmLocal (cognitive 18) packages/engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js:50 — GltfGpmLocal.GltfGpmLocal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 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 · GeoJsonLoader.createLinesPrimitive (cognitive 18) · ×1
  • GeoJsonLoader.createLinesPrimitive (cognitive 18) packages/engine/Source/Scene/Model/GeoJsonLoader.js:253 — GeoJsonLoader.createLinesPrimitive has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 3 (8 pts) (nesting depth added 10). 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 · ImageBasedLightingPipelineStage.ImageBasedLightingPipelineStage.process (cognitive 18) · ×1
  • ImageBasedLightingPipelineStage.ImageBasedLightingPipelineStage.process (cognitive 18) packages/engine/Source/Scene/Model/ImageBasedLightingPipelineStage.js:19 — ImageBasedLightingPipelineStage.ImageBasedLightingPipelineStage.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5 (nesting depth added 4). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ClassificationModelDrawCommand.ClassificationModelDrawCommand.pushCommands (cognitive 18) · ×1
  • ClassificationModelDrawCommand.ClassificationModelDrawCommand.pushCommands (cognitive 18) packages/engine/Source/Scene/Model/ClassificationModelDrawCommand.js:481 — ClassificationModelDrawCommand.ClassificationModelDrawCommand.pushCommands has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 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 · ModelDrawCommand.ModelDrawCommand.pushCommands (cognitive 18) · ×1
  • ModelDrawCommand.ModelDrawCommand.pushCommands (cognitive 18) packages/engine/Source/Scene/Model/ModelDrawCommand.js:567 — ModelDrawCommand.ModelDrawCommand.pushCommands has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 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 · ModelImagery._imageryConfigurationsModified (cognitive 18) · ×1
  • ModelImagery._imageryConfigurationsModified (cognitive 18) packages/engine/Source/Scene/Model/ModelImagery.js:327 — ModelImagery._imageryConfigurationsModified has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 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 · TextureAtlas.TextureAtlas._processImageQueue (cognitive 18) · ×1
  • TextureAtlas.TextureAtlas._processImageQueue (cognitive 18) packages/engine/Source/Renderer/TextureAtlas.js:541 — TextureAtlas.TextureAtlas._processImageQueue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 pts), error handling 1 (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 · Camera.rotateVertical (cognitive 18) · ×1
  • Camera.rotateVertical (cognitive 18) packages/engine/Source/Scene/Camera.js:2084 — Camera.rotateVertical has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 7 (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 · TranslucentTileClassification.updateResources (cognitive 18) · ×1
  • TranslucentTileClassification.updateResources (cognitive 18) packages/engine/Source/Scene/TranslucentTileClassification.js:134 — TranslucentTileClassification.updateResources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (15 pts), 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 · VoxelTraversal.updateKeyframeNodes (cognitive 18) · ×1
  • VoxelTraversal.updateKeyframeNodes (cognitive 18) packages/engine/Source/Scene/VoxelTraversal.js:561 — VoxelTraversal.updateKeyframeNodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, 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 · createVectorTileBuffersFromModelComponents.gatherPrimitiveStats (cognitive 18) · ×1
  • createVectorTileBuffersFromModelComponents.gatherPrimitiveStats (cognitive 18) packages/engine/Source/Scene/Model/createVectorTileBuffersFromModelComponents.js:82 — createVectorTileBuffersFromModelComponents.gatherPrimitiveStats has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 1 (4 pts), ternaries 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 · FrameRateMonitor.update (cognitive 18) · ×1
  • FrameRateMonitor.update (cognitive 18) packages/engine/Source/Scene/FrameRateMonitor.js:305 — FrameRateMonitor.update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (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 · GlobeSurfaceTile.processTerrainStateMachine (cognitive 18) · ×1
  • GlobeSurfaceTile.processTerrainStateMachine (cognitive 18) packages/engine/Source/Scene/GlobeSurfaceTile.js:709 — GlobeSurfaceTile.processTerrainStateMachine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 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 · GlobeSurfaceShaderSet.destroy (cognitive 18) · ×1
  • GlobeSurfaceShaderSet.destroy (cognitive 18) packages/engine/Source/Scene/GlobeSurfaceShaderSet.js:498 — GlobeSurfaceShaderSet.destroy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 2 (4 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 · TerrainFillMesh.getCorner (cognitive 18) · ×1
  • TerrainFillMesh.getCorner (cognitive 18) packages/engine/Source/Scene/TerrainFillMesh.js:1596 — TerrainFillMesh.getCorner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 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 · moveTechniquesToExtension.moveTechniquesToExtension (cognitive 18) · ×1
  • moveTechniquesToExtension.moveTechniquesToExtension (cognitive 18) packages/gltf/Source/moveTechniquesToExtension.js:15 — moveTechniquesToExtension.moveTechniquesToExtension has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 pts) (nesting depth added 8). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 110, 31, 116, …). 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 · main.starBurst (cognitive 18) · ×1
  • main.starBurst (cognitive 18) packages/sandcastle/gallery/star-burst/main.js:122 — main.starBurst has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Scene (cognitive 18) · ×1
  • Scene (cognitive 18) packages/engine/Source/Scene/Scene.js:136 — Scene has cognitive complexity 18 (threshold 15). Drivers by points: other 9, if/else 7, boolean chains 1, 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 · setView (cognitive 18) · ×1
  • setView (cognitive 18) packages/engine/Source/Scene/Camera.js:1491 — setView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), other 7, boolean chains 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.
D2 · Cognitive Complexity · processPolygon (cognitive 18) · ×1
  • processPolygon (cognitive 18) REDACTED:1676 — processPolygon has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (5 pts), ternaries 3 (5 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 · constructor (cognitive 18) · ×1
  • constructor (cognitive 18) packages/core/Source/PolygonGeometry.js:667 — constructor has cognitive complexity 18 (threshold 15). Drivers by points: other 11, boolean chains 3, if/else 3, 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 · updateSpecularMaps (cognitive 18) · ×1
  • updateSpecularMaps (cognitive 18) packages/engine/Source/Scene/DynamicEnvironmentMapManager.js:630 — updateSpecularMaps has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 1, other 1 (nesting depth added 8). Of this number, 12 points are the body's own statements and 6 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 · upsample (cognitive 18) · ×1
  • upsample (cognitive 18) packages/engine/Source/Core/HeightmapTerrainData.js:494 — upsample has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 2 (6 pts), 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.
D2 · Cognitive Complexity · localFrameToFixedFrameGenerator · ×1
  • localFrameToFixedFrameGenerator::resultat (cognitive 18) packages/core/Source/FixedFrameTransforms.js:144 — localFrameToFixedFrameGenerator::resultat has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, other 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 · FixedFrameTransforms.FixedFrameTransforms.localFrameToFixedFrameGenerator.resultat (cognitive 17) · ×1
  • FixedFrameTransforms.FixedFrameTransforms.localFrameToFixedFrameGenerator.resultat (cognitive 17) packages/core/Source/FixedFrameTransforms.js:144 — FixedFrameTransforms.FixedFrameTransforms.localFrameToFixedFrameGenerator.resultat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (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 · PolylinePipeline.PolylinePipeline.wrapLongitude (cognitive 17) · ×1
  • PolylinePipeline.PolylinePipeline.wrapLongitude (cognitive 17) packages/core/Source/PolylinePipeline.js:207 — PolylinePipeline.PolylinePipeline.wrapLongitude has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · HermitePolynomialApproximation.fillCoefficientList (cognitive 17) · ×1
  • HermitePolynomialApproximation.fillCoefficientList (cognitive 17) packages/core/Source/HermitePolynomialApproximation.js:306 — HermitePolynomialApproximation.fillCoefficientList has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (8 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.
D2 · Cognitive Complexity · MetadataClassProperty.parseType (cognitive 17) · ×1
  • MetadataClassProperty.parseType (cognitive 17) packages/engine/Source/Scene/MetadataClassProperty.js:542 — MetadataClassProperty.parseType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 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.
D2 · Cognitive Complexity · Buffer.Buffer.copyFromBuffer (cognitive 17) · ×1
  • Buffer.Buffer.copyFromBuffer (cognitive 17) packages/engine/Source/Renderer/Buffer.js:298 — Buffer.Buffer.copyFromBuffer has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 7. 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 · CesiumTerrainProvider.checkLayer (cognitive 17) · ×1
  • CesiumTerrainProvider.checkLayer (cognitive 17) packages/engine/Source/Core/CesiumTerrainProvider.js:1344 — CesiumTerrainProvider.checkLayer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · VectorPipeline.packPolygonRings (cognitive 17) · ×1
  • VectorPipeline.packPolygonRings (cognitive 17) packages/engine/Source/Core/VectorPipeline.js:472 — VectorPipeline.packPolygonRings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (6 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · sampleTerrainMostDetailed.sampleTerrainMostDetailed (cognitive 17) · ×1
  • sampleTerrainMostDetailed.sampleTerrainMostDetailed (cognitive 17) packages/engine/Source/Core/sampleTerrainMostDetailed.js:35 — sampleTerrainMostDetailed.sampleTerrainMostDetailed has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (nesting depth added 5). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DynamicGeometryUpdater.DynamicGeometryUpdater.update (cognitive 17) · ×1
  • DynamicGeometryUpdater.DynamicGeometryUpdater.update (cognitive 17) packages/engine/Source/DataSources/DynamicGeometryUpdater.js:70 — DynamicGeometryUpdater.DynamicGeometryUpdater.update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), 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 · GroundPolylinePrimitive.updateAndQueueCommands (cognitive 17) · ×1
  • GroundPolylinePrimitive.updateAndQueueCommands (cognitive 17) packages/engine/Source/Scene/GroundPolylinePrimitive.js:585 — GroundPolylinePrimitive.updateAndQueueCommands has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 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.
D2 · Cognitive Complexity · GltfLoader.processLoaders (cognitive 17) · ×1
  • GltfLoader.processLoaders (cognitive 17) packages/engine/Source/Scene/GltfLoader.js:621 — GltfLoader.processLoaders has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, 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 · EdgeVisibilityPipelineStage.EdgeVisibilityPipelineStage.process (cognitive 17) · ×1
  • EdgeVisibilityPipelineStage.EdgeVisibilityPipelineStage.process (cognitive 17) packages/engine/Source/Scene/Model/EdgeVisibilityPipelineStage.js:62 — EdgeVisibilityPipelineStage.EdgeVisibilityPipelineStage.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, ternaries 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.
D2 · Cognitive Complexity · CameraFlightPath.createUpdate3D (cognitive 17) · ×1
  • CameraFlightPath.createUpdate3D (cognitive 17) packages/engine/Source/Scene/CameraFlightPath.js:221 — CameraFlightPath.createUpdate3D has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 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 · PostProcessStageComposite.isSelectedTextureDirty (cognitive 17) · ×1
  • PostProcessStageComposite.isSelectedTextureDirty (cognitive 17) packages/engine/Source/Scene/PostProcessStageComposite.js:261 — PostProcessStageComposite.isSelectedTextureDirty has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, loops 1 (2 pts), ternaries 2 (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 · GeoJsonPrimitive.normalizePolygon (cognitive 17) · ×1
  • GeoJsonPrimitive.normalizePolygon (cognitive 17) packages/engine/Source/Scene/GeoJsonPrimitive.js:834 — GeoJsonPrimitive.normalizePolygon has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (4 pts), boolean chains 2 (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 · ImageryLayerCollection.pickImageryHelper (cognitive 17) · ×1
  • ImageryLayerCollection.pickImageryHelper (cognitive 17) packages/engine/Source/Scene/ImageryLayerCollection.js:353 — ImageryLayerCollection.pickImageryHelper has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 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 · DataSourceDisplay.DataSourceDisplay.getBoundingSphere (cognitive 17) · ×1
  • DataSourceDisplay.DataSourceDisplay.getBoundingSphere (cognitive 17) packages/engine/Source/DataSources/DataSourceDisplay.js:380 — DataSourceDisplay.DataSourceDisplay.getBoundingSphere has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 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 · I3SSymbology.I3SSymbology._getSymbology (cognitive 17) · ×1
  • I3SSymbology.I3SSymbology._getSymbology (cognitive 17) packages/engine/Source/Scene/I3SSymbology.js:281 — I3SSymbology.I3SSymbology._getSymbology has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (7 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 · decodeI3S.decodeDracoAttribute (cognitive 17) · ×1
  • decodeI3S.decodeDracoAttribute (cognitive 17) packages/engine/Source/Workers/decodeI3S.js:1204 — decodeI3S.decodeDracoAttribute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 8. Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 1216, 1234, 1252, …). 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 · decodeI3S.decodeAndCreateGltf (cognitive 17) · ×1
  • decodeI3S.decodeAndCreateGltf (cognitive 17) packages/engine/Source/Workers/decodeI3S.js:1514 — decodeI3S.decodeAndCreateGltf has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (5 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 · getComponentReader.getComponentReader (cognitive 17) · ×1
  • getComponentReader.getComponentReader (cognitive 17) packages/gltf/Source/getComponentReader.js:15 — getComponentReader.getComponentReader has cognitive complexity 17 (threshold 15). Drivers by points: loops 8 (16 pts), match/switch 1 (nesting depth added 8). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 21, 27, 33, …). 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 · loadFromUrl.loadFromUrl (cognitive 17) · ×1
  • loadFromUrl.loadFromUrl (cognitive 17) packages/sandcastle/src/Gallery/loadFromUrl.ts:69 — loadFromUrl.loadFromUrl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 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 · GalleryItemStore.useGalleryItemStore.searchResults (cognitive 17) · ×1
  • GalleryItemStore.useGalleryItemStore.searchResults (cognitive 17) packages/sandcastle/src/Gallery/GalleryItemStore.ts:166 — GalleryItemStore.useGalleryItemStore.searchResults has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConsoleWrapper.errorLineNumber (cognitive 17) · ×1
  • ConsoleWrapper.errorLineNumber (cognitive 17) packages/sandcastle/src/util/ConsoleWrapper.ts:100 — ConsoleWrapper.errorLineNumber has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 1 (4 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 · TimelineTrack.TimelineTrack.render (cognitive 17) · ×1
  • TimelineTrack.TimelineTrack.render (cognitive 17) packages/widgets/Source/Timeline/TimelineTrack.js:13 — TimelineTrack.TimelineTrack.render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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.
D2 · Cognitive Complexity · splitTriangle (cognitive 17) · ×1
  • splitTriangle (cognitive 17) packages/core/Source/GeometryPipeline.js:1899 — splitTriangle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 3, boolean chains 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 · computeTriangleAttributes (cognitive 17) · ×1
  • computeTriangleAttributes (cognitive 17) packages/core/Source/GeometryPipeline.js:2168 — computeTriangleAttributes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, loops 1 (2 pts) (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.
D2 · Cognitive Complexity · initializeMaterial (cognitive 17) · ×1
  • initializeMaterial (cognitive 17) REDACTED:696 — initializeMaterial has cognitive complexity 17 (threshold 15). Drivers by points: other 9, if/else 5 (6 pts), ternaries 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.
D2 · Cognitive Complexity · createMesh (cognitive 17) · ×1
  • createMesh (cognitive 17) packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:113 — createMesh has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2, boolean chains 1, loops 1, other 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 · showErrorPanel (cognitive 17) · ×1
  • showErrorPanel (cognitive 17) packages/engine/Source/Widget/CesiumWidget.js:913 — showErrorPanel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2 (nesting depth added 8). Of this number, 15 points are the body's own statements and 2 belong to 3 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 · createIconStyleFromBillboard (cognitive 17) · ×1
  • createIconStyleFromBillboard (cognitive 17) packages/engine/Source/DataSources/exportKml.js:829 — createIconStyleFromBillboard has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, other 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · processLineStyleUniforms (cognitive 17) · ×1
  • processLineStyleUniforms (cognitive 17) packages/engine/Source/Scene/Model/MaterialPipelineStage.js:493 — processLineStyleUniforms has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 10 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 · beginFrame (cognitive 17) · ×1
  • beginFrame (cognitive 17) packages/engine/Source/Scene/Globe.js:994 — beginFrame has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 5). Of this number, 13 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · packPolygonHierarchy (cognitive 17) · ×1
  • packPolygonHierarchy (cognitive 17) packages/core/Source/PolygonGeometryLibrary.js:63 — packPolygonHierarchy has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 3 (6 pts), ternaries 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 · getLogDepthShaderProgram (cognitive 17) · ×1
  • getLogDepthShaderProgram (cognitive 17) packages/engine/Source/Scene/DerivedCommand.js:139 — getLogDepthShaderProgram has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 4 (6 pts), ternaries 2 (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 · barycentricCoordinates.barycentricCoordinates (cognitive 16) · ×1
  • barycentricCoordinates.barycentricCoordinates (cognitive 16) packages/core/Source/barycentricCoordinates.js:31 — barycentricCoordinates.barycentricCoordinates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 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 · PolylineVolumeGeometryLibrary.computeRoundCorner (cognitive 16) · ×1
  • PolylineVolumeGeometryLibrary.computeRoundCorner (cognitive 16) packages/core/Source/PolylineVolumeGeometryLibrary.js:230 — PolylineVolumeGeometryLibrary.computeRoundCorner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (3 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.
D2 · Cognitive Complexity · CorridorGeometry.computePositionsExtruded (cognitive 16) · ×1
  • CorridorGeometry.computePositionsExtruded (cognitive 16) packages/core/Source/CorridorGeometry.js:733 — CorridorGeometry.computePositionsExtruded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 3 (4 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TileAvailability.subtractRectangle (cognitive 16) · ×1
  • TileAvailability.subtractRectangle (cognitive 16) packages/engine/Source/Core/TileAvailability.js:507 — TileAvailability.subtractRectangle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), 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 · Buffer.Buffer.getBufferData (cognitive 16) · ×1
  • Buffer.Buffer.getBufferData (cognitive 16) packages/engine/Source/Renderer/Buffer.js:372 — Buffer.Buffer.getBufferData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 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, 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 · ModelReader.computeInstanceTransforms (cognitive 16) · ×1
  • ModelReader.computeInstanceTransforms (cognitive 16) packages/engine/Source/Scene/Model/ModelReader.js:1032 — ModelReader.computeInstanceTransforms has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 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 · Framebuffer.Framebuffer.destroy (cognitive 16) · ×1
  • Framebuffer.Framebuffer.destroy (cognitive 16) packages/engine/Source/Renderer/Framebuffer.js:419 — Framebuffer.Framebuffer.destroy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 5, loops 2 (4 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 · RenderState.RenderState.partialApply (cognitive 16) · ×1
  • RenderState.RenderState.partialApply (cognitive 16) packages/engine/Source/Renderer/RenderState.js:831 — RenderState.RenderState.partialApply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, ternaries 4, loops 1 (2 pts) (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.
D2 · Cognitive Complexity · VideoSynchronizer.VideoSynchronizer._onTick (cognitive 16) · ×1
  • VideoSynchronizer.VideoSynchronizer._onTick (cognitive 16) packages/engine/Source/Core/VideoSynchronizer.js:160 — VideoSynchronizer.VideoSynchronizer._onTick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, 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, 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 · BillboardVisualizer.BillboardVisualizer.update (cognitive 16) · ×1
  • BillboardVisualizer.BillboardVisualizer.update (cognitive 16) packages/engine/Source/DataSources/BillboardVisualizer.js:84 — BillboardVisualizer.BillboardVisualizer.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, 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 · Material.Material.update (cognitive 16) · ×1
  • Material.Material.update (cognitive 16) REDACTED:533 — Material.Material.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4, boolean chains 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 · Expression.Node._evaluateLiteralVector (cognitive 16) · ×1
  • Expression.Node._evaluateLiteralVector (cognitive 16) REDACTED:1152 — Expression.Node._evaluateLiteralVector has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 2, loops 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 · parseBatchTable.transcodeBinaryPropertiesAsPropertyAttributes (cognitive 16) · ×1
  • parseBatchTable.transcodeBinaryPropertiesAsPropertyAttributes (cognitive 16) packages/engine/Source/Scene/parseBatchTable.js:280 — parseBatchTable.transcodeBinaryPropertiesAsPropertyAttributes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, 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 · ModelAnimationChannel.createSplines (cognitive 16) · ×1
  • ModelAnimationChannel.createSplines (cognitive 16) packages/engine/Source/Scene/Model/ModelAnimationChannel.js:175 — ModelAnimationChannel.createSplines has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 4 (6 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 · GeometryPipelineStage.GeometryPipelineStage.process (cognitive 16) · ×1
  • GeometryPipelineStage.GeometryPipelineStage.process (cognitive 16) packages/engine/Source/Scene/Model/GeometryPipelineStage.js:63 — GeometryPipelineStage.GeometryPipelineStage.process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, ternaries 1 (2 pts), 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 · GetFeatureInfoFormat.esriXmlToFeatureInfo (cognitive 16) · ×1
  • GetFeatureInfoFormat.esriXmlToFeatureInfo (cognitive 16) packages/engine/Source/Scene/GetFeatureInfoFormat.js:182 — GetFeatureInfoFormat.esriXmlToFeatureInfo has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (6 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 · MaterialPipelineStage.processMaterialUniforms (cognitive 16) · ×1
  • MaterialPipelineStage.processMaterialUniforms (cognitive 16) packages/engine/Source/Scene/Model/MaterialPipelineStage.js:779 — MaterialPipelineStage.processMaterialUniforms has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7 (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 · PointCloudStylingPipelineStage.PointCloudStylingPipelineStage.process (cognitive 16) · ×1
  • PointCloudStylingPipelineStage.PointCloudStylingPipelineStage.process (cognitive 16) packages/engine/Source/Scene/Model/PointCloudStylingPipelineStage.js:59 — PointCloudStylingPipelineStage.PointCloudStylingPipelineStage.process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, 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 · Camera.zoom2D (cognitive 16) · ×1
  • Camera.zoom2D (cognitive 16) packages/engine/Source/Scene/Camera.js:2174 — Camera.zoom2D has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 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 · Camera.rectangleCameraPosition3D (cognitive 16) · ×1
  • Camera.rectangleCameraPosition3D (cognitive 16) packages/engine/Source/Scene/Camera.js:2585 — Camera.rectangleCameraPosition3D has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, 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 · JobScheduler.JobScheduler.execute (cognitive 16) · ×1
  • JobScheduler.JobScheduler.execute (cognitive 16) packages/engine/Source/Scene/JobScheduler.js:135 — JobScheduler.JobScheduler.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 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.
D2 · Cognitive Complexity · PickFramebuffer.pickObjectsFromPixels (cognitive 16) · ×1
  • PickFramebuffer.pickObjectsFromPixels (cognitive 16) packages/engine/Source/Scene/PickFramebuffer.js:47 — PickFramebuffer.pickObjectsFromPixels has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, 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 · ShadowMap.ShadowMap.update (cognitive 16) · ×1
  • ShadowMap.ShadowMap.update (cognitive 16) packages/engine/Source/Scene/ShadowMap.js:1566 — ShadowMap.ShadowMap.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 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 · PostProcessStage.isSelectedTextureDirty (cognitive 16) · ×1
  • PostProcessStage.isSelectedTextureDirty (cognitive 16) packages/engine/Source/Scene/PostProcessStage.js:746 — PostProcessStage.isSelectedTextureDirty has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 3, loops 1 (2 pts), ternaries 2 (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 · ScreenSpaceCameraController.zoom3D (cognitive 16) · ×1
  • ScreenSpaceCameraController.zoom3D (cognitive 16) packages/engine/Source/Scene/ScreenSpaceCameraController.js:2320 — ScreenSpaceCameraController.zoom3D has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 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, 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 · Scene.Scene.updateDerivedCommands (cognitive 16) · ×1
  • Scene.Scene.updateDerivedCommands (cognitive 16) packages/engine/Source/Scene/Scene.js:1897 — Scene.Scene.updateDerivedCommands has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 6. 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 · Scene.renderEnvironment (cognitive 16) · ×1
  • Scene.renderEnvironment (cognitive 16) packages/engine/Source/Scene/Scene.js:3166 — Scene.renderEnvironment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 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 · Cesium3DTile.Cesium3DTile.createBoundingVolume (cognitive 16) · ×1
  • Cesium3DTile.Cesium3DTile.createBoundingVolume (cognitive 16) packages/engine/Source/Scene/Cesium3DTile.js:1943 — Cesium3DTile.Cesium3DTile.createBoundingVolume has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 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 · ImageryLayerCollection.ImageryLayerCollection._update (cognitive 16) · ×1
  • ImageryLayerCollection.ImageryLayerCollection._update (cognitive 16) packages/engine/Source/Scene/ImageryLayerCollection.js:795 — ImageryLayerCollection.ImageryLayerCollection._update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 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 · CompositeEntityCollection.recomposite (cognitive 16) · ×1
  • CompositeEntityCollection.recomposite (cognitive 16) packages/engine/Source/DataSources/CompositeEntityCollection.js:43 — CompositeEntityCollection.recomposite has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 5 (7 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 · EntityCluster.EntityCluster.update (cognitive 16) · ×1
  • EntityCluster.EntityCluster.update (cognitive 16) packages/engine/Source/DataSources/EntityCluster.js:881 — EntityCluster.EntityCluster.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 5. 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 · CzmlDataSource.processModel (cognitive 16) · ×1
  • CzmlDataSource.processModel (cognitive 16) packages/engine/Source/DataSources/CzmlDataSource.js:3246 — CzmlDataSource.processModel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 2 (6 pts) (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 · PathVisualizer.computeVvlhTransform (cognitive 16) · ×1
  • PathVisualizer.computeVvlhTransform (cognitive 16) packages/engine/Source/DataSources/PathVisualizer.js:111 — PathVisualizer.computeVvlhTransform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2 (nesting depth added 8). 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 · GeoJsonDataSource.defaultDescribe (cognitive 16) · ×1
  • GeoJsonDataSource.defaultDescribe (cognitive 16) packages/engine/Source/DataSources/GeoJsonDataSource.js:70 — GeoJsonDataSource.defaultDescribe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, 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 · GlobeSurfaceTile.updateExaggeration (cognitive 16) · ×1
  • GlobeSurfaceTile.updateExaggeration (cognitive 16) packages/engine/Source/Scene/GlobeSurfaceTile.js:417 — GlobeSurfaceTile.updateExaggeration has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, loops 1 (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 · I3SNode.filterFeatures (cognitive 16) · ×1
  • I3SNode.filterFeatures (cognitive 16) packages/engine/Source/Scene/I3SNode.js:771 — I3SNode.filterFeatures has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 2 (7 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 · decodeMVT.decodeValue (cognitive 16) · ×1
  • decodeMVT.decodeValue (cognitive 16) packages/engine/Source/Scene/decodeMVT.js:404 — decodeMVT.decodeValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, loops 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 · decodeI3S.decodeBinaryGeometry (cognitive 16) · ×1
  • decodeI3S.decodeBinaryGeometry (cognitive 16) packages/engine/Source/Workers/decodeI3S.js:1437 — decodeI3S.decodeBinaryGeometry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (6 pts), boolean chains 1, 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 · main.handler.setInputAction() (cognitive 16) · ×1
  • main.handler.setInputAction() (cognitive 16) packages/sandcastle/gallery/3d-tiles-1.1-cdb-yemen/main.js:175 — main.handler.setInputAction() has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 1 (3 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 · AnchorPointVisualizer.initialize (cognitive 16) · ×1
  • AnchorPointVisualizer.initialize (cognitive 16) packages/sandcastle/gallery/3d-tiles-nga-gpm-visualization/main.js:886 — AnchorPointVisualizer.initialize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3, boolean chains 1 (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 906). 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 · main.viewer.screenSpaceEventHandler.setInputAction() (cognitive 16) · ×1
  • main.viewer.screenSpaceEventHandler.setInputAction() (cognitive 16) packages/sandcastle/gallery/i3s-building-scene-layer/main.js:84 — main.viewer.screenSpaceEventHandler.setInputAction() has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 114). 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 · Viewer.enableVRUI (cognitive 16) · ×1
  • Viewer.enableVRUI (cognitive 16) packages/widgets/Source/Viewer/Viewer.js:249 — Viewer.enableVRUI has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 2 (3 pts), boolean chains 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.
D2 · Cognitive Complexity · updateHeight (cognitive 16) · ×1
  • updateHeight (cognitive 16) packages/engine/Source/Scene/Scene.js:4310 — updateHeight has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 6, loops 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (callbackWrapper, a function literal at line 4382, createPrimitiveEventListener, …). 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 · render (cognitive 16) · ×1
  • render (cognitive 16) packages/engine/Source/Scene/Scene.js:4630 — render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7 (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 · updateClock (cognitive 16) · ×1
  • updateClock (cognitive 16) packages/engine/Source/DataSources/CzmlDataSource.js:4666 — updateClock has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), other 2 (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 · createTileUniformMap (cognitive 16) · ×1
  • createTileUniformMap (cognitive 16) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1910 — createTileUniformMap has cognitive complexity 16 (threshold 15). Drivers by points: other 12, if/else 2, boolean chains 1, ternaries 1. Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 65 function items inside it that branch (u_clippingPlanes, u_clippingPlanesMatrix, u_vectorSegmentTexture, …). 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 · constructor (cognitive 16) · ×1
  • constructor (cognitive 16) packages/core/Source/Matrix4.js:81 — constructor has cognitive complexity 16 (threshold 15). Drivers by points: other 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 · combineQueryParameters (cognitive 16) · ×1
  • combineQueryParameters (cognitive 16) packages/engine/Source/Core/Resource.js:510 — combineQueryParameters has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (4 pts), 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 · Primitive (cognitive 16) · ×1
  • Primitive (cognitive 16) packages/engine/Source/Scene/Primitive.js:156 — Primitive has cognitive complexity 16 (threshold 15). Drivers by points: other 12, boolean chains 3, if/else 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 · BillboardCollection (cognitive 16) · ×1
  • BillboardCollection (cognitive 16) packages/engine/Source/Scene/BillboardCollection.js:132 — BillboardCollection has cognitive complexity 16 (threshold 15). Drivers by points: other 8, if/else 3 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 3). Of this number, 11 points are the body's own statements and 5 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 · fromCssColorString (cognitive 16) · ×1
  • fromCssColorString (cognitive 16) packages/core/Source/Color.js:362 — fromCssColorString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 3 (6 pts), other 4 (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 · ImageryLayer (cognitive 16) · ×1
  • ImageryLayer (cognitive 16) packages/engine/Source/Scene/ImageryLayer.js:176 — ImageryLayer has cognitive complexity 16 (threshold 15). Drivers by points: other 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 · VertexArray (cognitive 16) · ×1
  • VertexArray (cognitive 16) packages/engine/Source/Renderer/VertexArray.js:293 — VertexArray has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4, boolean chains 2, other 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · getAttributes (cognitive 16) · ×1
  • getAttributes (cognitive 16) packages/engine/Source/Core/TerrainEncoding.js:668 — getAttributes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 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.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D6 · Cohesion (LCOM4) · Low cohesion · ×1
  • Low cohesion: GlobeSurfaceTile (LCOM4 5) packages/engine/Source/Scene/GlobeSurfaceTile.js:52 — GlobeSurfaceTile's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
GD1 · Unfinished & placeholder code · Unfinished stub · ×1
  • Unfinished stub — throws a "not implemented" error packages/engine/Source/Scene/Cesium3DTileVectorFeature.js:444 — A shipped function's whole body still throws a "not implemented" error — generated scaffolding that was never completed. Implement it or remove the dead surface.
IC1 · Incompleteness & stubs · Unfinished stub · ×1
  • Unfinished stub — throws a "not implemented" exception packages/engine/Source/Scene/Cesium3DTileVectorFeature.js:444 — `setProperty` throws an exception whose message says it isn't finished — a not-implemented stub wearing an ordinary exception. Implement it or remove it.
IC1 · Incompleteness & stubs · Guard cannot change the result · ×1
  • Guard cannot change the result — returns what the code already falls through to packages/engine/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js:96 — The guard above `return true;` also returns `true`, so no input can make it matter. Implement the distinction that was intended, or delete the guard.
P2 · Observability · No structured logging · ×1
  • No structured logging — No logging call was found in the 1647 JavaScript/TypeScript production file(s) this check read across 6 module(s). Each was searched for its ecosystem's logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×1
  • Outbound HTTP without resilience REDACTED:653 — `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.
R10 · Code Duplication · Duplication concentrated across 234 sibling directories (235 clone groups) · ×1
  • Duplication concentrated across 234 sibling directories (235 clone groups) packages/sandcastle/gallery/aec-snapping/main.js:12 — 235 duplicated blocks under packages/sandcastle/gallery/ have copies in at least two of the sibling directories 3d-models, 3d-models-articulations-dev, 3d-models-coloring, 3d-models-dev, 3d-models-node-explorer-dev, 3d-tiles-1.1-cdb-yemen (+228 more sibling(s) not listed) — 175 of them are reported below, and 60 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 235 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 235 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 235 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 6 sibling directories (142 clone groups) · ×1
  • Duplication concentrated across 6 sibling directories (142 clone groups) packages/engine/Source/DataSources/DataSourceCollection.js:15 — 142 duplicated blocks under packages/engine/Source/ have copies in at least two of the sibling directories Core, DataSources, Renderer, Scene, Widget, Workers — 49 of them are reported below, and 93 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 142 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 142 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 142 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 5 sibling directories (122 clone groups) · ×1
  • Duplication concentrated across 5 sibling directories (122 clone groups) packages/core/Source/PolylineGeometry.js:410 — 122 duplicated blocks under packages/ have copies in at least two of the sibling directories core, engine, gltf, sandcastle, widgets — 44 of them are reported below, and 78 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 122 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 122 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 122 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 15 sibling directories (23 clone groups) · ×1
  • Duplication concentrated across 15 sibling directories (23 clone groups) packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspector.js:29 — 23 duplicated blocks under packages/widgets/Source/ have copies in at least two of the sibling directories Animation, BaseLayerPicker, Cesium3DTilesInspector, CesiumInspector, FullscreenButton, Geocoder (+9 more sibling(s) not listed) — 14 of them are reported below, and 9 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 23 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 23 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 23 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 · Duplicated block with local edits (421 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (421 matched lines × 2 locations) packages/engine/Source/Scene/BillboardCollection.js:191 — packages/engine/Source/Scene/BillboardCollection.js:191 · packages/engine/Source/Scene/PointPrimitiveCollection.js:125 — the two spans are one implementation copied and then locally edited — 1999 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (337 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (337 matched lines × 2 locations) packages/engine/Source/DataSources/StaticGeometryColorBatch.js:19 — packages/engine/Source/DataSources/StaticGeometryColorBatch.js:19 · packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:18 — the two spans are one implementation copied and then locally edited — 1831 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (335 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (335 matched lines × 2 locations) packages/engine/Source/Scene/Vector3DTileClampedPolylines.js:177 — packages/engine/Source/Scene/Vector3DTileClampedPolylines.js:177 · packages/engine/Source/Scene/Vector3DTilePolylines.js:139 — the two spans are one implementation copied and then locally edited — 1843 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (269 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (269 matched lines × 2 locations) packages/engine/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js:28 — packages/engine/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js:28 · packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:37 — the two spans are one implementation copied and then locally edited — 1651 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (257 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (257 matched lines × 2 locations) packages/engine/Source/Scene/VoxelBoxShape.js:75 — packages/engine/Source/Scene/VoxelBoxShape.js:75 · packages/engine/Source/Scene/VoxelCylinderShape.js:53 — the two spans are one implementation copied and then locally edited — 1366 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (248 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (248 matched lines × 2 locations) packages/core/Source/Cartesian3.js:110 — packages/core/Source/Cartesian3.js:110 · packages/core/Source/Cartesian4.js:117 — the two spans are one implementation copied and then locally edited — 1961 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (240 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (240 matched lines × 2 locations) packages/engine/Source/DataSources/StaticGeometryColorBatch.js:81 — packages/engine/Source/DataSources/StaticGeometryColorBatch.js:81 · packages/engine/Source/DataSources/StaticOutlineGeometryBatch.js:40 — the two spans are one implementation copied and then locally edited — 1428 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (229 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (229 matched lines × 2 locations) packages/engine/Source/Scene/WebMapServiceImageryProvider.js:116 — packages/engine/Source/Scene/WebMapServiceImageryProvider.js:116 · packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js:191 — the two spans are one implementation copied and then locally edited — 1133 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (226 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (226 matched lines × 2 locations) packages/engine/Source/DataSources/StaticGroundGeometryColorBatch.js:16 — packages/engine/Source/DataSources/StaticGroundGeometryColorBatch.js:16 · packages/engine/Source/DataSources/StaticOutlineGeometryBatch.js:20 — the two spans are one implementation copied and then locally edited — 1388 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (224 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (224 matched lines × 2 locations) packages/engine/Source/Renderer/Texture.js:74 — packages/engine/Source/Renderer/Texture.js:74 · packages/engine/Source/Renderer/Texture3D.js:91 — the two spans are one implementation copied and then locally edited — 1065 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (222 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (222 matched lines × 2 locations) packages/core/Source/OrthographicOffCenterFrustum.js:93 — packages/core/Source/OrthographicOffCenterFrustum.js:93 · packages/core/Source/PerspectiveOffCenterFrustum.js:109 — the two spans are one implementation copied and then locally edited — 1237 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (209 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (209 matched lines × 2 locations) packages/engine/Source/Scene/Vector3DTileGeometry.js:75 — packages/engine/Source/Scene/Vector3DTileGeometry.js:75 · packages/engine/Source/Scene/Vector3DTilePolygons.js:77 — the two spans are one implementation copied and then locally edited — 1288 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (205 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (205 matched lines × 2 locations) packages/engine/Source/Scene/BillboardCollection.js:1729 — packages/engine/Source/Scene/BillboardCollection.js:1729 · packages/engine/Source/Scene/PointPrimitiveCollection.js:902 — the two spans are one implementation copied and then locally edited — 1118 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (182 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (182 matched lines × 2 locations) packages/engine/Source/DataSources/BillboardVisualizer.js:30 — packages/engine/Source/DataSources/BillboardVisualizer.js:30 · packages/engine/Source/DataSources/LabelVisualizer.js:31 — the two spans are one implementation copied and then locally edited — 877 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (181 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (181 matched lines × 2 locations) packages/engine/Source/DataSources/BoxGeometryUpdater.js:54 — packages/engine/Source/DataSources/BoxGeometryUpdater.js:54 · packages/engine/Source/DataSources/CylinderGeometryUpdater.js:63 — the two spans are one implementation copied and then locally edited — 899 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (176 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (176 matched lines × 2 locations) packages/engine/Source/Scene/ClippingPlaneCollection.js:142 — packages/engine/Source/Scene/ClippingPlaneCollection.js:142 · packages/engine/Source/Scene/VoxelBoundsCollection.js:79 — the two spans are one implementation copied and then locally edited — 949 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (174 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (174 matched lines × 2 locations) packages/sandcastle/gallery/aec-snapping/main.js:12 — packages/sandcastle/gallery/aec-snapping/main.js:12 · packages/sandcastle/gallery/hybrid-snapping-dev/main.js:45 — the two spans are one implementation copied and then locally edited — 1096 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (168 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (168 matched lines × 2 locations) packages/core/Source/EllipseGeometry.js:740 — packages/core/Source/EllipseGeometry.js:740 · packages/core/Source/EllipseOutlineGeometry.js:66 — the two spans are one implementation copied and then locally edited — 939 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (165 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (165 matched lines × 2 locations) packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:310 — packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:310 · packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:252 — the two spans are one implementation copied and then locally edited — 1013 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (164 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (164 matched lines × 2 locations) packages/engine/Source/DataSources/PolylineVolumeGeometryUpdater.js:76 — packages/engine/Source/DataSources/PolylineVolumeGeometryUpdater.js:76 · packages/engine/Source/DataSources/WallGeometryUpdater.js:66 — the two spans are one implementation copied and then locally edited — 805 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (162 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (162 matched lines × 2 locations) packages/engine/Source/Scene/Model/B3dmLoader.js:67 — packages/engine/Source/Scene/Model/B3dmLoader.js:67 · packages/engine/Source/Scene/Model/I3dmLoader.js:79 — the two spans are one implementation copied and then locally edited — 839 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (158 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (158 matched lines × 2 locations) packages/core/Source/EllipseGeometry.js:953 — packages/core/Source/EllipseGeometry.js:953 · packages/core/Source/RectangleGeometry.js:1041 — the two spans are one implementation copied and then locally edited — 899 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (155 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (155 matched lines × 2 locations) packages/engine/Source/Scene/Composite3DTileContent.js:34 — packages/engine/Source/Scene/Composite3DTileContent.js:34 · packages/engine/Source/Scene/Multiple3DTileContent.js:81 — the two spans are one implementation copied and then locally edited — 768 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (151 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (151 matched lines × 2 locations) packages/engine/Source/Scene/GroundPolylinePrimitive.js:574 — packages/engine/Source/Scene/GroundPolylinePrimitive.js:574 · packages/engine/Source/Scene/GroundPrimitive.js:533 — the two spans are one implementation copied and then locally edited — 682 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (141 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (141 matched lines × 2 locations) packages/sandcastle/src/copilot/ai/clients/GeminiClient.ts:54 — packages/sandcastle/src/copilot/ai/clients/GeminiClient.ts:54 · packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts:278 — the two spans are one implementation copied and then locally edited — 735 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (135 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (135 matched lines × 2 locations) packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:37 — packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js:37 · packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js:37 — the two spans are one implementation copied and then locally edited — 832 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 (131 lines × 2 locations) · ×1
  • Duplicated block (131 lines × 2 locations) packages/engine/Source/DataSources/CorridorGeometryUpdater.js:27 — packages/engine/Source/DataSources/CorridorGeometryUpdater.js:27 · packages/engine/Source/DataSources/EllipseGeometryUpdater.js:27 — 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 (130 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (130 matched lines × 2 locations) packages/engine/Source/Core/GoogleEarthEnterpriseTerrainData.js:306 — packages/engine/Source/Core/GoogleEarthEnterpriseTerrainData.js:306 · packages/engine/Source/Core/QuantizedMeshTerrainData.js:435 — the two spans are one implementation copied and then locally edited — 730 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (125 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (125 matched lines × 2 locations) packages/engine/Source/Scene/GltfIndexBufferLoader.js:24 — packages/engine/Source/Scene/GltfIndexBufferLoader.js:24 · packages/engine/Source/Scene/GltfVertexBufferLoader.js:24 — the two spans are one implementation copied and then locally edited — 714 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (114 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (114 matched lines × 2 locations) packages/engine/Source/Scene/GltfDracoLoader.js:15 — packages/engine/Source/Scene/GltfDracoLoader.js:15 · packages/engine/Source/Scene/GltfSpzLoader.js:126 — the two spans are one implementation copied and then locally edited — 658 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (111 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (111 matched lines × 2 locations) packages/sandcastle/gallery/geometry-offset-attribute-box-cylinder-ellipsoid-dev/main.js:6 — packages/sandcastle/gallery/geometry-offset-attribute-box-cylinder-ellipsoid-dev/main.js:6 · packages/sandcastle/gallery/geometry-offset-attribute-dev/main.js:6 — the two spans are one implementation copied and then locally edited — 659 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 · Wholesale file copy (110 identical lines × 2 files) · ×1
  • Wholesale file copy (110 identical lines × 2 files) packages/engine/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js:5 — packages/engine/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js:5 · packages/engine/Source/Scene/Controllers/ScreenSpaceMapCameraController.js:5 — these 2 files are line-for-line copies of one another — 110 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.
R2 · Cyclomatic Complexity · Complex function update (cyclomatic 108, cognitive 184) · ×1
  • Complex function update (cyclomatic 108, cognitive 184) packages/engine/Source/Scene/BillboardCollection.js:1569 — update has cyclomatic complexity 108 and cognitive complexity 184; 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 addDrawCommandsForTile (cyclomatic 108, cognitive 148) · ×1
  • Complex function addDrawCommandsForTile (cyclomatic 108, cognitive 148) packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:2511 — addDrawCommandsForTile has cyclomatic complexity 108 and cognitive complexity 148; 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 intersectPlaneTestCornersEdgesFaces (cyclomatic 105, cognitive 104) · ×1
  • Complex function intersectPlaneTestCornersEdgesFaces (cyclomatic 105, cognitive 104) packages/core/Specs/OrientedBoundingBoxSpec.js:960 — intersectPlaneTestCornersEdgesFaces has cyclomatic complexity 105 and cognitive complexity 104; 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 RenderState (cyclomatic 96, cognitive 99) · ×1
  • Complex function RenderState (cyclomatic 96, cognitive 99) packages/engine/Source/Renderer/RenderState.js:93 — RenderState has cyclomatic complexity 96 and cognitive complexity 99; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function getShaderExpression (cyclomatic 90, cognitive 98) · ×1
  • Complex function getShaderExpression (cyclomatic 90, cognitive 98) REDACTED:1906 — getShaderExpression has cyclomatic complexity 90 and cognitive complexity 98; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function getShaderProgram (cyclomatic 85, cognitive 155) · ×1
  • Complex function getShaderProgram (cyclomatic 85, cognitive 155) packages/engine/Source/Scene/GlobeSurfaceShaderSet.js:106 — getShaderProgram has cyclomatic complexity 85 and cognitive complexity 155; 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 computeAttributes (cyclomatic 73, cognitive 209) · ×1
  • Complex function computeAttributes (cyclomatic 73, cognitive 209) packages/core/Source/PolygonGeometry.js:62 — computeAttributes has cyclomatic complexity 73 and cognitive complexity 209; 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 update (cyclomatic 70, cognitive 126) · ×1
  • Complex function update (cyclomatic 70, cognitive 126) packages/engine/Source/Scene/GaussianSplatPrimitive.js:1967 — update has cyclomatic complexity 70 and cognitive complexity 126; 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 createGeometry (cyclomatic 69, cognitive 112) · ×1
  • Complex function createGeometry (cyclomatic 69, cognitive 112) packages/core/Source/EllipsoidGeometry.js:214 — createGeometry has cyclomatic complexity 69 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 fromIso8601 (cyclomatic 69, cognitive 103) · ×1
  • Complex function fromIso8601 (cyclomatic 69, cognitive 103) packages/core/Source/JulianDate.js:312 — fromIso8601 has cyclomatic complexity 69 and cognitive complexity 103; 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 Cesium3DTileset (cyclomatic 69, cognitive 69) · ×1
  • Complex function Cesium3DTileset (cyclomatic 69, cognitive 69) packages/engine/Source/Scene/Cesium3DTileset.js:215 — Cesium3DTileset has cyclomatic complexity 69 and cognitive complexity 69; 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 Viewer (cyclomatic 66, cognitive 77) · ×1
  • Complex function Viewer (cyclomatic 66, cognitive 77) packages/widgets/Source/Viewer/Viewer.js:429 — Viewer has cyclomatic complexity 66 and cognitive complexity 77; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function update (cyclomatic 64, cognitive 106) · ×1
  • Complex function update (cyclomatic 64, cognitive 106) packages/engine/Source/Scene/PointPrimitiveCollection.js:845 — update has cyclomatic complexity 64 and cognitive complexity 106; 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 createShaders (cyclomatic 64, cognitive 78) · ×1
  • Complex function createShaders (cyclomatic 64, cognitive 78) packages/engine/Source/Scene/PointCloud.js:770 — createShaders has cyclomatic complexity 64 and cognitive complexity 78; 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 computeVertices (cyclomatic 62, cognitive 106) · ×1
  • Complex function computeVertices (cyclomatic 62, cognitive 106) packages/engine/Source/Core/HeightmapTessellator.js:117 — computeVertices has cyclomatic complexity 62 and cognitive complexity 106; 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 constructExtrudedRectangle (cyclomatic 60, cognitive 106) · ×1
  • Complex function constructExtrudedRectangle (cyclomatic 60, cognitive 106) packages/core/Source/RectangleGeometry.js:457 — constructExtrudedRectangle has cyclomatic complexity 60 and cognitive complexity 106; 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 createLayeredEntries (cyclomatic 56, cognitive 105) · ×1
  • Complex function createLayeredEntries (cyclomatic 56, cognitive 105) packages/engine/Source/Scene/createElevationBandMaterial.js:202 — createLayeredEntries has cyclomatic complexity 56 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 update (cyclomatic 54, cognitive 54) · ×1
  • Complex function update (cyclomatic 54, cognitive 54) packages/engine/Source/Scene/VoxelEllipsoidShape.js:236 — update has cyclomatic complexity 54 and cognitive complexity 54; 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 Texture (cyclomatic 53, cognitive 63) · ×1
  • Complex function Texture (cyclomatic 53, cognitive 63) packages/engine/Source/Renderer/Texture.js:50 — Texture has cyclomatic complexity 53 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 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 handleZoom (cyclomatic 51, cognitive 95) · ×1
  • Complex function handleZoom (cyclomatic 51, cognitive 95) packages/engine/Source/Scene/ScreenSpaceCameraController.js:561 — handleZoom has cyclomatic complexity 51 and cognitive complexity 95; 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 unwrapInterval (cyclomatic 51, cognitive 19) · ×1
  • Complex function unwrapInterval (cyclomatic 51, cognitive 19) packages/engine/Source/DataSources/CzmlDataSource.js:524 — unwrapInterval has cyclomatic complexity 51 and cognitive complexity 19; 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 (anonymous) (cyclomatic 49, cognitive 68) · ×1
  • Complex function (anonymous) (cyclomatic 49, cognitive 68) packages/sandcastle/src/copilot/ChatPanel.tsx:297 — (anonymous) has cyclomatic complexity 49 and cognitive complexity 68; 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 ChatMessage (cyclomatic 49, cognitive 36) · ×1
  • Complex function ChatMessage (cyclomatic 49, cognitive 36) packages/sandcastle/src/copilot/ChatMessage.tsx:19 — ChatMessage has cyclomatic complexity 49 and cognitive complexity 36; 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 executeCommands (cyclomatic 48, cognitive 98) · ×1
  • Complex function executeCommands (cyclomatic 48, cognitive 98) packages/engine/Source/Scene/Scene.js:2780 — executeCommands has cyclomatic complexity 48 and cognitive complexity 98; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _createTileImagerySkeletons (cyclomatic 48, cognitive 59) · ×1
  • Complex function _createTileImagerySkeletons (cyclomatic 48, cognitive 59) packages/engine/Source/Scene/ImageryLayer.js:688 — _createTileImagerySkeletons has cyclomatic complexity 48 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 setEvaluateFunction (cyclomatic 48, cognitive 54) · ×1
  • Complex function setEvaluateFunction (cyclomatic 48, cognitive 54) REDACTED:955 — setEvaluateFunction has cyclomatic complexity 48 and cognitive complexity 54; 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 Model (cyclomatic 48, cognitive 49) · ×1
  • Complex function Model (cyclomatic 48, cognitive 49) packages/engine/Source/Scene/Model/Model.js:213 — Model has cyclomatic complexity 48 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 buildVectorGltfFromMVT (cyclomatic 47, cognitive 131) · ×1
  • Complex function buildVectorGltfFromMVT (cyclomatic 47, cognitive 131) packages/engine/Source/Scene/buildVectorGltfFromMVT.js:80 — buildVectorGltfFromMVT has cyclomatic complexity 47 and cognitive complexity 131; 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 buildGalleryList (cyclomatic 46, cognitive 61) · ×1
  • Complex function buildGalleryList (cyclomatic 46, cognitive 61) packages/sandcastle/scripts/buildGallery.js:102 — buildGalleryList has cyclomatic complexity 46 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function renderBufferPolylineCollection (cyclomatic 45, cognitive 96) · ×1
  • Complex function renderBufferPolylineCollection (cyclomatic 45, cognitive 96) packages/engine/Source/Scene/renderBufferPolylineCollection.js:116 — renderBufferPolylineCollection has cyclomatic complexity 45 and cognitive complexity 96; 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 parseCall (cyclomatic 45, cognitive 67) · ×1
  • Complex function parseCall (cyclomatic 45, cognitive 67) REDACTED:652 — parseCall has cyclomatic complexity 45 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function updateObject (cyclomatic 44, cognitive 114) · ×1
  • Complex function updateObject (cyclomatic 44, cognitive 114) packages/engine/Source/DataSources/PathVisualizer.js:900 — updateObject 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 main (cyclomatic 42, cognitive 70) · ×1
  • Complex function main (cyclomatic 42, cognitive 70) Apps/CesiumViewer/CesiumViewer.js:24 — main has cyclomatic complexity 42 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function createGeometry (cyclomatic 42, cognitive 60) · ×1
  • Complex function createGeometry (cyclomatic 42, cognitive 60) packages/core/Source/EllipsoidOutlineGeometry.js:205 — createGeometry has cyclomatic complexity 42 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 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 CesiumWidget (cyclomatic 42, cognitive 47) · ×1
  • Complex function CesiumWidget (cyclomatic 42, cognitive 47) packages/engine/Source/Widget/CesiumWidget.js:209 — CesiumWidget has cyclomatic complexity 42 and cognitive complexity 47; 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 update (cyclomatic 42, cognitive 44) · ×1
  • Complex function update (cyclomatic 42, cognitive 44) packages/engine/Source/Scene/Primitive.js:2083 — update has cyclomatic complexity 42 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 updateAndClearFramebuffers (cyclomatic 42, cognitive 43) · ×1
  • Complex function updateAndClearFramebuffers (cyclomatic 42, cognitive 43) packages/engine/Source/Scene/Scene.js:3964 — updateAndClearFramebuffers has cyclomatic complexity 42 and cognitive complexity 43; 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 forEachTextureInMaterial (cyclomatic 41, cognitive 95) · ×1
  • Complex function forEachTextureInMaterial (cyclomatic 41, cognitive 95) packages/gltf/Source/forEachTextureInMaterial.js:24 — forEachTextureInMaterial has cyclomatic complexity 41 and cognitive complexity 95; 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 getBatchIds (cyclomatic 41, cognitive 48) · ×1
  • Complex function getBatchIds (cyclomatic 41, cognitive 48) packages/engine/Source/Scene/Geometry3DTileContent.js:205 — getBatchIds has cyclomatic complexity 41 and cognitive complexity 48; 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 processSSEStream (cyclomatic 40, cognitive 104) · ×1
  • Complex function processSSEStream (cyclomatic 40, cognitive 104) packages/sandcastle/src/copilot/ai/clients/AnthropicClient.ts:181 — processSSEStream has cyclomatic complexity 40 and cognitive complexity 104; 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 · packages/engine/Specs/DataSources/CzmlDataSourceSpec.js · ×1
  • packages/engine/Specs/DataSources/CzmlDataSourceSpec.js: 9682 lines of code packages/engine/Specs/DataSources/CzmlDataSourceSpec.js:1 — packages/engine/Specs/DataSources/CzmlDataSourceSpec.js has 9682 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 · packages/engine/Specs/Scene/Cesium3DTilesetSpec.js · ×1
  • packages/engine/Specs/Scene/Cesium3DTilesetSpec.js: 6142 lines of code packages/engine/Specs/Scene/Cesium3DTilesetSpec.js:1 — packages/engine/Specs/Scene/Cesium3DTilesetSpec.js has 6142 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 · packages/engine/Specs/DataSources/KmlDataSourceSpec.js · ×1
  • packages/engine/Specs/DataSources/KmlDataSourceSpec.js: 5277 lines of code packages/engine/Specs/DataSources/KmlDataSourceSpec.js:1 — packages/engine/Specs/DataSources/KmlDataSourceSpec.js has 5277 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 · packages/engine/Source/Scene/Scene.js · ×1
  • packages/engine/Source/Scene/Scene.js: 4985 lines of code packages/engine/Source/Scene/Scene.js:1 — packages/engine/Source/Scene/Scene.js has 4985 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 · packages/engine/Source/DataSources/CzmlDataSource.js · ×1
  • packages/engine/Source/DataSources/CzmlDataSource.js: 4888 lines of code packages/engine/Source/DataSources/CzmlDataSource.js:1 — packages/engine/Source/DataSources/CzmlDataSource.js has 4888 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 · packages/engine/Specs/Scene/Model/ModelSpec.js · ×1
  • packages/engine/Specs/Scene/Model/ModelSpec.js: 4597 lines of code packages/engine/Specs/Scene/Model/ModelSpec.js:1 — packages/engine/Specs/Scene/Model/ModelSpec.js has 4597 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 · packages/core/Specs/Matrix4Spec.js · ×1
  • packages/core/Specs/Matrix4Spec.js: 4544 lines of code packages/core/Specs/Matrix4Spec.js:1 — packages/core/Specs/Matrix4Spec.js has 4544 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 · packages/engine/Specs/Scene/GltfLoaderSpec.js · ×1
  • packages/engine/Specs/Scene/GltfLoaderSpec.js: 4367 lines of code packages/engine/Specs/Scene/GltfLoaderSpec.js:1 — packages/engine/Specs/Scene/GltfLoaderSpec.js has 4367 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 · packages/engine/Source/Scene/Cesium3DTileset.js · ×1
  • packages/engine/Source/Scene/Cesium3DTileset.js: 4141 lines of code packages/engine/Source/Scene/Cesium3DTileset.js:1 — packages/engine/Source/Scene/Cesium3DTileset.js has 4141 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 · packages/engine/Specs/Scene/CameraSpec.js · ×1
  • packages/engine/Specs/Scene/CameraSpec.js: 3982 lines of code packages/engine/Specs/Scene/CameraSpec.js:1 — packages/engine/Specs/Scene/CameraSpec.js has 3982 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: 3728 lines of code REDACTED:1 — REDACTED has 3728 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 · packages/engine/Specs/Scene/SceneSpec.js · ×1
  • packages/engine/Specs/Scene/SceneSpec.js: 3718 lines of code packages/engine/Specs/Scene/SceneSpec.js:1 — packages/engine/Specs/Scene/SceneSpec.js has 3718 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 · packages/engine/Source/Scene/Camera.js · ×1
  • packages/engine/Source/Scene/Camera.js: 3594 lines of code packages/engine/Source/Scene/Camera.js:1 — packages/engine/Source/Scene/Camera.js has 3594 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 · packages/engine/Specs/Scene/ExpressionSpec.js · ×1
  • packages/engine/Specs/Scene/ExpressionSpec.js: 3400 lines of code packages/engine/Specs/Scene/ExpressionSpec.js:1 — packages/engine/Specs/Scene/ExpressionSpec.js has 3400 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 · packages/engine/Source/Scene/Model/Model.js · ×1
  • packages/engine/Source/Scene/Model/Model.js: 3290 lines of code packages/engine/Source/Scene/Model/Model.js:1 — packages/engine/Source/Scene/Model/Model.js has 3290 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 · packages/core/Specs/GeometryPipelineSpec.js · ×1
  • packages/core/Specs/GeometryPipelineSpec.js: 3182 lines of code packages/core/Specs/GeometryPipelineSpec.js:1 — packages/core/Specs/GeometryPipelineSpec.js has 3182 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 · packages/engine/Specs/Scene/Cesium3DTileStyleSpec.js · ×1
  • packages/engine/Specs/Scene/Cesium3DTileStyleSpec.js: 3153 lines of code packages/engine/Specs/Scene/Cesium3DTileStyleSpec.js:1 — packages/engine/Specs/Scene/Cesium3DTileStyleSpec.js has 3153 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 · packages/engine/Specs/Scene/MetadataClassPropertySpec.js · ×1
  • packages/engine/Specs/Scene/MetadataClassPropertySpec.js: 3116 lines of code packages/engine/Specs/Scene/MetadataClassPropertySpec.js:1 — packages/engine/Specs/Scene/MetadataClassPropertySpec.js has 3116 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 · packages/engine/Specs/Scene/ImplicitSubtreeSpec.js · ×1
  • packages/engine/Specs/Scene/ImplicitSubtreeSpec.js: 3038 lines of code packages/engine/Specs/Scene/ImplicitSubtreeSpec.js:1 — packages/engine/Specs/Scene/ImplicitSubtreeSpec.js has 3038 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 · packages/core/Source/Matrix4.js · ×1
  • packages/core/Source/Matrix4.js: 3016 lines of code packages/core/Source/Matrix4.js:1 — packages/core/Source/Matrix4.js has 3016 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 · packages/engine/Source/Scene/GlobeSurfaceTileProvider.js · ×1
  • packages/engine/Source/Scene/GlobeSurfaceTileProvider.js: 2998 lines of code packages/engine/Source/Scene/GlobeSurfaceTileProvider.js:1 — packages/engine/Source/Scene/GlobeSurfaceTileProvider.js has 2998 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 · packages/engine/Source/Scene/GltfLoader.js · ×1
  • packages/engine/Source/Scene/GltfLoader.js: 2975 lines of code packages/engine/Source/Scene/GltfLoader.js:1 — packages/engine/Source/Scene/GltfLoader.js has 2975 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 · packages/core/Source/GeometryPipeline.js · ×1
  • packages/core/Source/GeometryPipeline.js: 2900 lines of code packages/core/Source/GeometryPipeline.js:1 — packages/core/Source/GeometryPipeline.js has 2900 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 · packages/engine/Source/Scene/ScreenSpaceCameraController.js · ×1
  • packages/engine/Source/Scene/ScreenSpaceCameraController.js: 2708 lines of code packages/engine/Source/Scene/ScreenSpaceCameraController.js:1 — packages/engine/Source/Scene/ScreenSpaceCameraController.js has 2708 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 · packages/engine/Specs/Scene/PickingSpec.js · ×1
  • packages/engine/Specs/Scene/PickingSpec.js: 2564 lines of code packages/engine/Specs/Scene/PickingSpec.js:1 — packages/engine/Specs/Scene/PickingSpec.js has 2564 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 · packages/core/Specs/OrientedBoundingBoxSpec.js · ×1
  • packages/core/Specs/OrientedBoundingBoxSpec.js: 2443 lines of code packages/core/Specs/OrientedBoundingBoxSpec.js:1 — packages/core/Specs/OrientedBoundingBoxSpec.js has 2443 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 · packages/engine/Specs/Core/ResourceSpec.js · ×1
  • packages/engine/Specs/Core/ResourceSpec.js: 2400 lines of code packages/engine/Specs/Core/ResourceSpec.js:1 — packages/engine/Specs/Core/ResourceSpec.js has 2400 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 · packages/engine/Specs/Scene/BillboardCollectionSpec.js · ×1
  • packages/engine/Specs/Scene/BillboardCollectionSpec.js: 2398 lines of code packages/engine/Specs/Scene/BillboardCollectionSpec.js:1 — packages/engine/Specs/Scene/BillboardCollectionSpec.js has 2398 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 · packages/engine/Source/Scene/Cesium3DTile.js · ×1
  • packages/engine/Source/Scene/Cesium3DTile.js: 2345 lines of code packages/engine/Source/Scene/Cesium3DTile.js:1 — packages/engine/Source/Scene/Cesium3DTile.js has 2345 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 · packages/engine/Specs/Scene/Model/ModelReaderSpec.js · ×1
  • packages/engine/Specs/Scene/Model/ModelReaderSpec.js: 2320 lines of code packages/engine/Specs/Scene/Model/ModelReaderSpec.js:1 — packages/engine/Specs/Scene/Model/ModelReaderSpec.js has 2320 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 · packages/engine/Source/Scene/GaussianSplatPrimitive.js · ×1
  • packages/engine/Source/Scene/GaussianSplatPrimitive.js: 2306 lines of code packages/engine/Source/Scene/GaussianSplatPrimitive.js:1 — packages/engine/Source/Scene/GaussianSplatPrimitive.js has 2306 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 · packages/engine/Specs/Renderer/AutomaticUniformSpec.js · ×1
  • packages/engine/Specs/Renderer/AutomaticUniformSpec.js: 2238 lines of code packages/engine/Specs/Renderer/AutomaticUniformSpec.js:1 — packages/engine/Specs/Renderer/AutomaticUniformSpec.js has 2238 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 · packages/engine/Source/Scene/Primitive.js · ×1
  • packages/engine/Source/Scene/Primitive.js: 2234 lines of code packages/engine/Source/Scene/Primitive.js:1 — packages/engine/Source/Scene/Primitive.js has 2234 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 · packages/engine/Specs/Scene/LabelCollectionSpec.js · ×1
  • packages/engine/Specs/Scene/LabelCollectionSpec.js: 2157 lines of code packages/engine/Specs/Scene/LabelCollectionSpec.js:1 — packages/engine/Specs/Scene/LabelCollectionSpec.js has 2157 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 · packages/engine/Source/Core/Resource.js · ×1
  • packages/engine/Source/Core/Resource.js: 2094 lines of code packages/engine/Source/Core/Resource.js:1 — packages/engine/Source/Core/Resource.js has 2094 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 · packages/engine/Specs/Scene/I3SNodeSpec.js · ×1
  • packages/engine/Specs/Scene/I3SNodeSpec.js: 2064 lines of code packages/engine/Specs/Scene/I3SNodeSpec.js:1 — packages/engine/Specs/Scene/I3SNodeSpec.js has 2064 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 · packages/core/Source/Color.js · ×1
  • packages/core/Source/Color.js: 2063 lines of code packages/core/Source/Color.js:1 — packages/core/Source/Color.js has 2063 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 · packages/engine/Specs/Scene/Vector3DTileContentSpec.js · ×1
  • packages/engine/Specs/Scene/Vector3DTileContentSpec.js: 2060 lines of code packages/engine/Specs/Scene/Vector3DTileContentSpec.js:1 — packages/engine/Specs/Scene/Vector3DTileContentSpec.js has 2060 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 · packages/engine/Source/Scene/TerrainFillMesh.js · ×1
  • packages/engine/Source/Scene/TerrainFillMesh.js: 2057 lines of code packages/engine/Source/Scene/TerrainFillMesh.js:1 — packages/engine/Source/Scene/TerrainFillMesh.js has 2057 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: 2046 lines of code REDACTED:1 — REDACTED has 2046 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R7 · Dead Code · Dead file (~518 LoC) · ×1
  • Dead file (~518 LoC) Tools/jsdoc/cesium_template/publish.js — no import path from any entry point (276 application, 20 tooling, 836 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 (~103 LoC) · ×1
  • Dead file (~103 LoC) Tools/jsdoc/ignoreLocalDoclets.js — no import path from any entry point (276 application, 20 tooling, 836 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 (~100 LoC) · ×1
  • Dead file (~100 LoC) Tools/jsdoc/cesiumTags.js — no import path from any entry point (276 application, 20 tooling, 836 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 'tsd-jsdoc' · ×1
  • Unused dependency 'tsd-jsdoc' — Declared in the root 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.
X1 · Async correctness · `async` callback passed to `forEach` · ×1
  • `async` callback passed to `forEach` REDACTED:58 — `forEach` ignores what its callback returns, so the Promise each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early), and a rejection is never handled — in Node.js an unhandled rejection terminates the process by default, and in a browser it is lost. Iterate with `for (const item of items) { await … }` when the work must run in order, or `await Promise.all(items.map(async (item) => { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape.
Minor — 540 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×277
  • Orphaned file packages/core/Source/CorridorOutlineGeometry.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/widgets/Source/Animation/AnimationViewModel.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/TweenCollection.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/DataSources/CompositeEntityCollection.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Core/GoogleEarthEnterpriseTerrainProvider.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/Model/GeometryPipelineStage.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/DataSources/LabelGraphics.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/DataSources/PolygonGeometryUpdater.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Core/FrustumGeometry.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/core/Source/WebGLConstants.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Workers/upsampleQuantizedTerrainMesh.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/Model/FeatureIdPipelineStage.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/Vector3DTilePoints.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/core/Source/RectangleOutlineGeometry.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/BatchTexture.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/DataSources/PolygonGraphics.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Core/TileAvailability.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/BatchTableHierarchy.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/DataSources/GeometryVisualizer.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Renderer/ShaderSource.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Renderer/FramebufferManager.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/Vector3DTileGeometry.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/TileBoundingRegion.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Scene/EllipsoidPrimitive.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/engine/Source/Core/EarthOrientationParameters.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • + 252 more in this group — see findings.md.
D24 · Comment Value · redundant comment · ×168
  • redundant comment Specs/Cesium3DTilesTester.js:305 — 5 comments in this file only repeat the code they sit on (lines 305, 466, 467, 578, 647), for example "featureTableJsonByteLength". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Specs/getWebGLStub.js:153 — "ANGLE_instanced_arrays" repeats the code it sits on: 3 of its 3 words (angle, instanced, arrays) are already in `const instancedArraysStub = {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Specs/getWebGLStub.js:160 — "WEBGL_draw_buffers" repeats the code it sits on: 3 of its 3 words (webgl, draw, buffers) are already in `const drawBuffersStub = {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Tools/jsdoc/cesium_template/publish.js:293 — "set up tutorials for helper" repeats the code it sits on: 3 of its 3 words (set, tutorials, helper) are already in `helper.setTutorials(tutorials);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:425 — "Copy Draco3D files from node_modules into Source" repeats the code it sits on: 6 of its 6 words (copy, draco, files, node, modules, source) are already in `copyFileSync(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:435 — "Copy zip.js worker and wasm files to Source/ThirdParty" repeats the code it sits on: 8 of its 9 words (copy, zip, js, worker, files, source, third, party) are already in `copyFileSync(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:445 — "Copy prism.js and prism.css files into Tools" repeats the code it sits on: 5 of its 6 words (copy, prism, js, files, tools) are already in `copyFileSync(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:523 — "Generate Build/Sandcastle/CesiumUnminified" repeats the code it sits on: 4 of its 5 words (build, sandcastle, cesium, unminified) are already in `await buildCesium({`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment gulpfile.makezip.js:32 — "Read the contents of the file." repeats the code it sits on: 3 of its 3 words (read, contents, file) are already in `const contents = await readFile(packageJsonPath, "utf8");`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/core/Source/Occluder.js:410 — "Compute a plane with a normal from the occluder to the occludee position." repeats the code it sits on: 5 of its 6 words (plane, normal, occluder, occludee, position) are already in `const occluderPlaneNormal = Cartesian3.normalize(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/core/Source/Tipsify.js:81 — "Vertex time stamps" repeats the code it sits on: 3 of its 3 words (vertex, time, stamps) are already in `const vertexTimeStamps = [];`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/core/scripts/build.js:41 — "Create REDACTED" repeats the code it sits on: 3 of its 3 words (create, index, js) are already in `await createIndexJs("core", sourceGlobs);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:3406 — "Remove Duplicate Namespaces" repeats the code it sits on: 3 of its 3 words (remove, duplicate, namespaces) are already in `text = removeDuplicateNamespaces(text);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/DataSources/PathVisualizer.js:1170 — "Emit segments for this interval's split times" repeats the code it sits on: 4 of its 5 words (emit, segments, split, times) are already in `nextSegIndex = emitSegmentsForSplitTimes(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/DataSources/exportKml.js:611 — 5 comments in this file only repeat the code they sit on (lines 611, 956, 1161, 1216, 1326), for example "Set altitude mode". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Renderer/demodernizeShader.js:21 — 6 comments in this file only repeat the code they sit on (lines 21, 43, 53, 59, 63, 65), for example "Replace all texture calls with texture2D". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/B3dmParser.js:134 — "Has a batch table binary" repeats the code it sits on: 3 of its 3 words (batch, table, binary) are already in `batchTableBinary = new Uint8Array(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/Billboard.js:1420 — "World to window coordinates" repeats the code it sits on: 3 of its 3 words (world, window, coordinates) are already in `const positionWC = SceneTransforms.worldWithEyeOffsetToWindowCoordinates(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:1048 — "Set the 3D Tiles bit" repeats the code it sits on: 3 of its 3 words (set, tiles, bit) are already in `rs.stencilTest = StencilConstants.setCesium3DTileBit();`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/Cesium3DTileStyleEngine.js:9 — "The "time" when the last style was assigned" repeats the code it sits on: 4 of its 4 words (time, last, style, assigned) are already in `this._lastStyleTime = 0;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/EdgeFramebuffer.js:148 — "Get the textures from the framebuffer manager or use existing ones" repeats the code it sits on: 5 of its 6 words (get, textures, framebuffer, manager, existing) are already in `this._colorTexture = defined(existingColorTexture)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/EquirectangularPanorama.js:124 — "Create the primitive with the material" repeats the code it sits on: 3 of its 3 words (create, primitive, material) are already in `this._primitive = new Primitive({`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/GaussianSplatPrimitive.js:1825 — "Feature ID texture uniform." repeats the code it sits on: 4 of its 4 words (feature, id, texture, uniform) are already in `shaderBuilder.addUniform(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/Geometry3DTileContent.js:389 — "Has a batch table binary" repeats the code it sits on: 3 of its 3 words (batch, table, binary) are already in `batchTableBinary = new Uint8Array(`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/engine/Source/Scene/GltfLoader.js:1973 — "BENTLEY_materials_point_style extension" repeats the code it sits on: 5 of its 5 words (bentley, materials, point, style, extension) are already in `const pointStyleExtension = extensions.BENTLEY_materials_point_style;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • + 143 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate packages/core/Source/Cartesian2.js:141 — `!Array.isArray(result) && result.length !== resultLength` appears character-identically in 6 files — packages/core/Source/Cartesian2.js, packages/core/Source/Cartesian3.js, packages/core/Source/Cartesian4.js, packages/core/Source/Matrix2.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate REDACTED:303 — `!Cesium.defined(feature) || !(feature instanceof Cesium.Cesium3DTileFeature)` appears character-identically in 2 files — REDACTED, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/sandcastle/gallery/i3s-3d-object-layer/main.js:77 — `!Cesium.defined(name) && isNameProperty(fieldName)` appears character-identically in 3 files — packages/sandcastle/gallery/i3s-3d-object-layer/main.js, packages/sandcastle/gallery/i3s-building-scene-layer/main.js, packages/sandcastle/gallery/i3s-feature-picking/main.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/sandcastle/gallery/aec-snapping/main.js:221 — `!Cesium.defined(result) || !Cesium.defined(result.snapPoint)` appears character-identically in 2 files — packages/sandcastle/gallery/aec-snapping/main.js, packages/sandcastle/gallery/hybrid-snapping-dev/main.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate gulpfile.apps.js:133 — `!argv.embeddings || !!process.env.SANDCASTLE_NO_EMBEDDINGS` appears character-identically in 3 files — gulpfile.apps.js, packages/sandcastle/scripts/buildGallery.js, server.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Core/ITwinPlatform.js:93 — `!defined(ITwinPlatform.defaultAccessToken) && !defined(ITwinPlatform.defaultShareKey)` appears character-identically in 2 files — packages/engine/Source/Core/ITwinPlatform.js, packages/engine/Source/Scene/ITwinData.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/DataSources/StaticGeometryColorBatch.js:381 — `!defined(attributes) || !defined(attributes.boundingSphere) || (defined(attributes.show) && attributes.show[0] === 0)` appears character-identically in 5 files — packages/engine/Source/DataSources/StaticGeometryColorBatch.js, packages/engine/Source/DataSources/StaticGeometryPerMaterialBatch.js, packages/engine/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js, packages/engine/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/BatchTexture.js:222 — `!defined(batchId) || batchId < 0 || batchId >= featuresLength` appears character-identically in 4 files — packages/engine/Source/Scene/BatchTexture.js, REDACTED, packages/engine/Source/Scene/Geometry3DTileContent.js, packages/engine/Source/Scene/Vector3DTileContent.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/Geometry3DTileContent.js:505 — `!defined(content._features) && featuresLength > 0` appears character-identically in 2 files — packages/engine/Source/Scene/Geometry3DTileContent.js, packages/engine/Source/Scene/Vector3DTileContent.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/core/Source/OrthographicOffCenterFrustum.js:272 — `!defined(drawingBufferWidth) || !defined(drawingBufferHeight)` appears character-identically in 2 files — packages/core/Source/OrthographicOffCenterFrustum.js, packages/core/Source/PerspectiveOffCenterFrustum.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/Model/Model3DTileContent.js:218 — `!defined(featureId) || featureId < 0 || featureId >= featuresLength` appears character-identically in 2 files — packages/engine/Source/Scene/Model/Model3DTileContent.js, packages/engine/Source/Scene/PropertyTable.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/core/Source/OrthographicOffCenterFrustum.js:420 — `!defined(frustum.right) || !defined(frustum.left) || !defined(frustum.top) || !defined(frustum.bottom) || !defined(frustum.near) || !defined…` appears character-identically in 2 files — packages/core/Source/OrthographicOffCenterFrustum.js, packages/core/Source/PerspectiveOffCenterFrustum.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/widgets/Source/Geocoder/Geocoder.js:28 — `!defined(options) || !defined(options.container)` appears character-identically in 3 files — packages/widgets/Source/Geocoder/Geocoder.js, packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.js, packages/widgets/Source/PerformanceWatchdog/PerformanceWatchdog.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/FrameRateMonitor.js:35 — `!defined(options) || !defined(options.scene)` appears character-identically in 3 files — packages/engine/Source/Scene/FrameRateMonitor.js, packages/widgets/Source/Geocoder/GeocoderViewModel.js, packages/widgets/Source/PerformanceWatchdog/PerformanceWatchdogViewModel.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/core/Source/GeometryPipeline.js:907 — `!defined(otherAttribute) || attribute.componentDatatype !== otherAttribute.componentDatatype || attribute.componentsPerAttribute !== otherAt…` appears character-identically in 2 files — packages/core/Source/GeometryPipeline.js, packages/engine/Source/Scene/Primitive.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/core/Source/PolylineGeometry.js:108 — `!defined(positions) || positions.length < 2` appears character-identically in 4 files — packages/core/Source/PolylineGeometry.js, packages/core/Source/SimplePolylineGeometry.js, packages/engine/Source/Core/GroundPolylineGeometry.js, packages/engine/Source/DataSources/PolylineGeometryUpdater.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/core/Source/AxisAlignedBoundingBox.js:103 — `!defined(positions) || positions.length === 0` appears character-identically in 5 files — packages/core/Source/AxisAlignedBoundingBox.js, packages/core/Source/BoundingRectangle.js, packages/core/Source/BoundingSphere.js, packages/core/Source/OrientedBoundingBox.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/DataSources/GeometryVisualizer.js:512 — `!defined(removedObjects.get(id)) && !defined(changedObjects.get(id))` appears character-identically in 2 files — packages/engine/Source/DataSources/GeometryVisualizer.js, packages/engine/Source/DataSources/PolylineVisualizer.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/renderBufferPolygonCollection.js:99 — `!defined(renderContext.attributeArrays) || !defined(renderContext.indexArray)` appears character-identically in 2 files — packages/engine/Source/Scene/renderBufferPolygonCollection.js, packages/engine/Source/Scene/renderBufferPolylineCollection.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/ClassificationPrimitive.js:1043 — `!defined(this._primitive) && !defined(this.geometryInstances)` appears character-identically in 3 files — packages/engine/Source/Scene/ClassificationPrimitive.js, packages/engine/Source/Scene/GroundPolylinePrimitive.js, packages/engine/Source/Scene/GroundPrimitive.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/BillboardCollection.js:1791 — `!defined(this._vaf) || !defined(this._vaf.va)` appears character-identically in 2 files — packages/engine/Source/Scene/BillboardCollection.js, packages/engine/Source/Scene/PointPrimitiveCollection.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/DataSources/EntityView.js:86 — `!defined(toInertial) || !defined(toInertialDelta)` appears character-identically in 2 files — packages/engine/Source/DataSources/EntityView.js, packages/engine/Source/DataSources/PathVisualizer.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/PostProcessStage.js:765 — `!dirty && defined(stage._combinedSelected)` appears character-identically in 2 files — packages/engine/Source/Scene/PostProcessStage.js, packages/engine/Source/Scene/PostProcessStageComposite.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Scene/Azure2DImageryProvider.js:272 — `!hasAttributions || !defined(this._tileCredits)` appears character-identically in 2 files — packages/engine/Source/Scene/Azure2DImageryProvider.js, packages/engine/Source/Scene/Google2DImageryProvider.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/engine/Source/Renderer/Texture.js:120 — `!isCompressed && !PixelDatatype.validate(pixelDatatype)` appears character-identically in 2 files — packages/engine/Source/Renderer/Texture.js, packages/engine/Source/Renderer/Texture3D.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • + 15 more in this group — see findings.md.
D16 · Bus Factor · Off-boarding risk · ×11
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 40 significant file(s) lose their only recent owner: packages/engine/Source/Scene/VoxelEllipsoidShape.js, packages/engine/Source/Scene/GroundPrimitive.js, packages/engine/Source/Scene/Cesium3DTilesVoxelProvider.js, packages/engine/Source/Scene/VoxelCylinderShape.js, packages/engine/Source/Core/TerrainProvider.js, packages/gltf/Source/ForEach.js, packages/engine/Source/Core/CelestialFrameTransforms.js, packages/core/Source/HermiteSpline.js (+32 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 20 significant file(s) lose their only recent owner: packages/core/Source/PerspectiveOffCenterFrustum.js, packages/engine/Source/Scene/Cesium3DTileFeature.js, packages/core/Source/OrthographicOffCenterFrustum.js, packages/sandcastle/gallery/ground-primitive-materials-dev/main.js, packages/core/Source/BoundingRectangle.js, packages/engine/Source/Core/WebMercatorTilingScheme.js, packages/core/Source/Cartographic.js, packages/core/Source/Plane.js (+12 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 16 significant file(s) lose their only recent owner: packages/sandcastle/src/copilot/ai/clients/VertexAIClient.ts, packages/sandcastle/src/copilot/ai/diff/DiffMatcher.ts, packages/sandcastle/src/copilot/hooks/useToolChainExecution.ts, packages/sandcastle/src/copilot/ai/clients/AnthropicClient.ts, packages/sandcastle/src/copilot/ai/prompts/PromptBuilder.ts, packages/sandcastle/src/copilot/ChatMessage.tsx, packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts, REDACTED (+8 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #4 — If anonymized user #4 becomes unavailable, 10 significant file(s) lose their only recent owner: packages/sandcastle/gallery/hybrid-snapping-dev/main.js, packages/engine/Source/Core/IonSnapService.js, packages/sandcastle/gallery/multifrustum-snapping-dev/main.js, packages/engine/Source/Scene/Snapping.js, packages/sandcastle/gallery/ion-snapping-dev/main.js, packages/sandcastle/gallery/gltf-planar-fill-dev/main.js, packages/sandcastle/gallery/client-side-snapping-dev/main.js, packages/engine/Source/Scene/PlanarFillIdFramebuffer.js (+2 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #5 — If anonymized user #5 becomes unavailable, 9 significant file(s) lose their only recent owner: packages/widgets/Source/BaseLayerPicker/createDefaultImageryProviderViewModels.js, packages/engine/Source/Scene/CubeMapPanorama.js, packages/sandcastle/gallery/google-streetview-panorama/main.js, packages/engine/Source/Scene/GoogleStreetViewCubeMapPanoramaProvider.js, packages/engine/Source/Scene/EquirectangularPanorama.js, packages/sandcastle/gallery/panorama/main.js, packages/engine/Source/Core/Credit.js, packages/engine/Source/Core/IauOrientationAxes.js (+1 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #6 — If anonymized user #6 becomes unavailable, 11 significant file(s) lose their only recent owner: packages/engine/Source/Scene/Controllers/ScreenSpaceTiltOrbitCameraController.js, packages/engine/Source/Scene/Controllers/ScreenSpaceZoomCameraController.js, packages/engine/Source/Scene/Controllers/ScreenSpaceMapCameraController.js, packages/engine/Source/Core/Iau2006XysData.js, packages/engine/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js, packages/engine/Source/Workers/decodeGoogleEarthEnterprisePacket.js, packages/engine/Source/Scene/Controllers/ScreenSpaceInputBindings.js, packages/engine/Source/Scene/Controllers/HybridScreenSpacePanCameraController.js (+3 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #7 — If anonymized user #7 becomes unavailable, 7 significant file(s) lose their only recent owner: packages/engine/Source/Scene/Model/ModelPrimitiveImagery.js, packages/engine/Source/Scene/GroundPolylinePrimitive.js, packages/engine/Source/Scene/Model/Extensions/Gpm/GltfMeshPrimitiveGpmLoader.js, packages/engine/Source/Scene/MetadataPicking.js, packages/engine/Source/Scene/Model/ModelImagery.js, packages/engine/Source/Scene/ImplicitTileset.js, packages/sandcastle/gallery/gltf-pbr-extensions/main.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #8 — If anonymized user #8 becomes unavailable, 5 significant file(s) lose their only recent owner: packages/engine/Source/DataSources/PathVisualizer.js, packages/sandcastle/gallery/time-dependent-path-graphics/main.js, packages/engine/Source/DataSources/PathGraphics.js, packages/sandcastle/gallery/relative-paths/main.js, packages/sandcastle/gallery/constant-lod-dev/main.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #9 — If anonymized user #9 becomes unavailable, 5 significant file(s) lose their only recent owner: packages/engine/Source/Scene/buildVectorGltfFromMVT.js, packages/engine/Source/Scene/decodeMVT.js, packages/engine/Source/Scene/EdgeFramebuffer.js, packages/engine/Source/Scene/Model/ModelVectorLookupPipelineStage.js, packages/engine/Source/Scene/MVTDataProvider.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #10 — If anonymized user #10 becomes unavailable, 5 significant file(s) lose their only recent owner: packages/engine/Source/Scene/Model/CustomShaderPipelineStage.js, packages/engine/Source/Scene/PropertyTable.js, packages/engine/Source/Scene/Cesium3DTilesetBaseTraversal.js, packages/engine/Source/Scene/StructuralMetadata.js, packages/engine/Source/Scene/PropertyTextureProperty.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #11 — If anonymized user #11 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/sandcastle/src/Bucket.tsx, packages/sandcastle/src/ViewerConsoleStack.tsx, packages/sandcastle/src/setupSandcastleSnippets.ts. Pair on, review, or document these before any departure.
IC1 · Incompleteness & stubs · Disabled test · ×11
  • Disabled test packages/core/Specs/PolylineVolumeGeometrySpec.js:116 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Core/ResourceSpec.js:2100 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/Cesium3DTileBatchTableSpec.js:23 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/Cesium3DTilesetSpec.js:2240 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/ClassificationPrimitiveSpec.js:389 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/ClassificationPrimitiveSpec.js:403 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/GroundPolylinePrimitiveSpec.js:701 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/Model/ModelSpec.js:672 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/Vector3DTileClampedPolylinesSpec.js:98 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/Vector3DTileClampedPolylinesSpec.js:115 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test packages/engine/Specs/Scene/VoxelBoxShapeSpec.js:119 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
IC1 · Incompleteness & stubs · Blanket warning suppression · ×10
  • Blanket warning suppression packages/sandcastle/gallery/3d-models-articulations-dev/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-models-coloring/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-models-node-explorer-dev/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-tiles-1.1-cdb-yemen/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-tiles-feature-styling/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-tiles-formats/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-tiles-nga-gpm-visualization/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-tiles-performance-testing-dev/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-tiles-picking-dev/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
  • Blanket warning suppression packages/sandcastle/gallery/3d-tiles-split-dev/main.js:1 — A bare `eslint-disable` or `@ts-nocheck` with no rule list switches every lint rule or the whole type checker off for the rest of the file — hidden debt. Disable the specific rule on the specific line, with a justification, instead.
M4 · Documentation accuracy · README/code drift · ×4
  • README/code drift Documentation/Contributors/DocumentationGuide/README.md:53 — Documentation/Contributors/DocumentationGuide/README.md links to `../../../packages/engine/Source/Core/defined.js`, but `packages/engine/Source/Core/defined.js` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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 Specs/Data/Models/glTF-2.0/BoxAnisotropy/README.md:5 — Specs/Data/Models/glTF-2.0/BoxAnisotropy/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxAnisotropy/screenshot/screenshot.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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 Specs/Data/Models/glTF-2.0/BoxClearcoat/README.md:5 — Specs/Data/Models/glTF-2.0/BoxClearcoat/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxClearcoat/screenshot/screenshot.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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 Specs/Data/Models/glTF-2.0/BoxSpecular/README.md:5 — Specs/Data/Models/glTF-2.0/BoxSpecular/README.md links to `screenshot/screenshot.png`, but `Specs/Data/Models/glTF-2.0/BoxSpecular/screenshot/screenshot.png` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, 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.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×3
  • Hand-rolled JSON/XML parsing via regex packages/engine/Source/Scene/GetFeatureInfoFormat.js:368 — 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 packages/engine/Source/Scene/GetFeatureInfoFormat.js:370 — 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 packages/engine/Source/Scene/GetFeatureInfoFormat.js:371 — 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.
D21 · Naming Consistency · `moduleID` spells `ID` where 207 names in the project spell it `Id` · ×2
  • `moduleID` spells `ID` where 207 names in the project spell it `Id` packages/engine/Source/Core/buildModuleUrl.js:77 — 207 of 209 names in project cesium spell the token `Id` (207 of 209; unit: names in project cesium containing `Id`). Peers: Cesium3DTilesTerrainGeometryProcessor.inside(edgeId) (packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1381); Cesium3DTilesTerrainGeometryProcessor.intersect(edgeId) (packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1406); Cesium3DTilesTerrainProvider.getRootIdFromGeographic (packages/engine/Source/Core/Cesium3DTilesTerrainProvider.js:475); Cesium3DTilesTerrainProvider.ImplicitSubtreeCacheNode(rootId) (packages/engine/Source/Core/Cesium3DTilesTerrainProvider.js:769); IonSnapService._assetId (packages/engine/Source/Core/IonSnapService.js:146). Rename to `moduleId`. [rule N6]
  • `moduleID` spells `ID` where 207 names in the project spell it `Id` packages/engine/Source/Core/buildModuleUrl.js:82 — 207 of 209 names in project cesium spell the token `Id` (207 of 209; unit: names in project cesium containing `Id`). Peers: Cesium3DTilesTerrainGeometryProcessor.inside(edgeId) (packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1381); Cesium3DTilesTerrainGeometryProcessor.intersect(edgeId) (packages/engine/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js:1406); Cesium3DTilesTerrainProvider.getRootIdFromGeographic (packages/engine/Source/Core/Cesium3DTilesTerrainProvider.js:475); Cesium3DTilesTerrainProvider.ImplicitSubtreeCacheNode(rootId) (packages/engine/Source/Core/Cesium3DTilesTerrainProvider.js:769); IonSnapService._assetId (packages/engine/Source/Core/IonSnapService.js:146). Rename to `moduleId`. [rule N6]
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 10 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 (146 single-owned of 1009 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; 1009 of the 1652 production source files in this repository met that bar). They are anonymized user #12 (2 file(s)), anonymized user #13 (2 file(s)), anonymized user #14 (2 file(s)), anonymized user #15 (1 file(s)), anonymized user #16 (1 file(s)), anonymized user #17 (1 file(s)) (+4 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: packages/engine/Source/Scene/ShadowMapShader.js, packages/engine/Source/Scene/Model/ModelClippingPlanesPipelineStage.js, REDACTED, packages/sandcastle/gallery/aec-snapping/main.js, packages/sandcastle/gallery/clipping-performance-dev/main.js, packages/engine/Source/Renderer/Sync.js, packages/gltf/Source/removeUnusedElements.js, packages/engine/Source/Scene/TweenCollection.js (+5 more).
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found package.json:114 — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`. ADRs are expected here because `package.json` makes this repository a deployable product (line 114).
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 4 of 8 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `packages/engine` (292696 LoC, 829 module-visible types across 12 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D34 · Knowledge Freshness · Further orphaned files (smaller) · ×1
  • Further orphaned files (smaller) — 277 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: packages/core/Source/CorridorOutlineGeometry.js, packages/widgets/Source/Animation/AnimationViewModel.js, packages/engine/Source/Scene/TweenCollection.js, packages/engine/Source/DataSources/CompositeEntityCollection.js, packages/engine/Source/Core/GoogleEarthEnterpriseTerrainProvider.js, packages/engine/Source/Scene/Model/GeometryPipelineStage.js, packages/engine/Source/DataSources/LabelGraphics.js, packages/engine/Source/DataSources/PolygonGeometryUpdater.js (and 269 more) (320 orphaned of 1009 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; 1009 of the 1652 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST REDACTED:3 — 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 7 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 · Dependabot does not watch npm · ×1
  • Dependabot does not watch npm REDACTED:2 — `REDACTED` schedules updates, but no `package-ecosystem` entry covers `npm`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list.
S1 · Web-Security Posture · No app-layer HTTPS enforcement detected · ×1
  • No app-layer HTTPS enforcement detected server.js:446 — `app.listen(…)` serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (`https.createServer`, Fastify `https`, Nest `httpsOptions`), no redirect of plain requests to `https://`, no `Strict-Transport-Security` (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it — so a browser may talk to it in clear text. (−2.0 on this card.)
X2 · Cancellation propagation · Not all async functions that make a request accept an AbortSignal · ×1
  • Not all async functions that make a request accept an AbortSignal — Only 5/14 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 · Strict null checking is not enabled everywhere the repository type-checks · ×1
  • Strict null checking is not enabled everywhere the repository type-checks — 4/15 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
X5 · Nullable reference types · Null assertions (`!`) override strict null checking · ×1
  • Null assertions (`!`) override strict null checking — ~0.8 `!` null assertions per 1k TypeScript source lines — 11 assertion(s) across the 13879 source line(s) of the 77 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: packages/sandcastle/src/Gallery/EmbeddingSearch.ts (5), packages/sandcastle/src/copilot/ChatMessage.tsx (2), packages/sandcastle/src/Gallery/GalleryItemStore.ts (1). 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 — 13 finding(s)
D10 · Test Quality · Skipped (documented) · ×6
  • Skipped (documented): (unnamed test) packages/engine/Specs/test.mjs:6 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
  • Skipped (documented): (unnamed test) packages/engine/Specs/test.mjs:19 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
  • Skipped (documented): (unnamed test) Specs/test.cjs:12 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
  • Skipped (documented): (unnamed test) Specs/test.cjs:24 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
  • Skipped (documented): (unnamed test) Specs/test.mjs:6 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
  • Skipped (documented): (unnamed test) Specs/test.mjs:18 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
D24 · Comment Value · doc comments repeat the names · ×6
  • doc comments repeat the names packages/core/Source/BoundingSphere.js:823 — 106 of 2369 documented parameters and 13 of 1170 summaries in `@cesium/core` only repeat the member or parameter name (e.g. "The oriented bounding box." for `orientedBoundingBox`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/engine/Source/Core/Cesium3DTilesTerrainData.js:494 — 337 of 2950 documented parameters and 131 of 4525 summaries in `@cesium/engine` only repeat the member or parameter name (e.g. "The terrain mesh." for `terrainMesh`). 1 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/gltf/Source/getAccessorByteStride.js:9 — 2 of 47 documented parameters and 0 of 29 summaries in `@cesium/gltf` only repeat the member or parameter name (e.g. "The accessor." for `accessor`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/sandcastle/gallery/3d-tiles-nga-gpm-visualization/main.js:63 — 17 of 99 documented parameters and 0 of 206 summaries in `@cesium/sandcastle` only repeat the member or parameter name (e.g. "The data set option" for `dataSetOption`). 2 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/widgets/Source/Animation/Animation.js:715 — 8 of 117 documented parameters and 55 of 212 summaries in `@cesium/widgets` only repeat the member or parameter name (e.g. "Gets the view model." for `viewModel`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Specs/customizeJasmine.js:11 — 5 of 122 documented parameters and 0 of 46 summaries in `cesium` only repeat the member or parameter name (e.g. "The width of the debug canvas." for `debugCanvasWidth`). Delete the restating tags, or add what the name does not say.
D12 · Dependency Hygiene · Dependency hygiene PARTLY measured · ×1
  • Dependency hygiene PARTLY measured — npm pinning read, dependency currency not (no committed lockfile, so no resolved version to grade) — This repository's npm dependencies were read for PINNING discipline: 60 production declaration(s) plus 58 development one(s) across 7 package.json (7 of them the product — the rest are example, documentation or fixture manifests, which are read and counted but screened off the rules below, because both prescribe a MOVE and "align your example apps" is not a remedy), against 0 committed lockfile(s). No pinning defect was found. That is only PART of dependency hygiene, so this dimension is NOT SCORED: whether any of these packages has a newer, deprecated or abandoned release is the dependency-CURRENCY question, and answering it needs a lockfile resolved to concrete versions, which this repository does not commit: a package.json states version RANGES, and a range names no particular release to be behind. So there was nothing here for the registry to grade — that is a fact about the repository, not a reader we are missing, and no lockfile reader we could write would change it. A clean pinning pass is NOT an all-clear for these dependencies, and it is not a finding that they are all USED. Note also what is deliberately NOT charged here: a workspace legitimately carries ONE lockfile for many manifests, so no row is raised off the lockfile count, only reported. Known CVEs in the same dependency graph are a separate question again, reported under D30 wherever the manifest is OSV-readable.

Appendix B — Reproduction & audit trail

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

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-e810027cfbdf44a39c3fedb7d96bfe20/history.json --exit-code 0 --source .378artifacts/raw/gitleaks-history.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-e810027cfbdf44a39c3fedb7d96bfe20/tree.json --exit-code 0 --source .10artifacts/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 --exclude packages/engine/Source/ThirdParty/Workers --exclude packages/widgets/Source/ThirdParty .49artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .0—
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/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 3 file(s) — `packages/engine/Source/Scene/ScreenSpaceCameraController.js`, `packages/engine/Source/ThirdParty/google-earth-dbroot-parser.js`, `packages/engine/Specs/DataSources/CzmlDataSourceSpec.js` — 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 Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .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 01a1dd9b-7a8d-74ee-a08c-596cfeba66c0 · 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