Public report of stride3d/stride, published 12 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.3). 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, 12 November 2026, 02:38 UTC · Survey ID cd_41c17a5f2fa145f3903171f95102cce0

stride3d/stride

Measured 12 November 2026, 02:34 UTC, at code version 68c2f65

Boundary Type-Coupling is not measured: Bounded contexts not declared.

CAI score 53out of 100 Provisional Up 14 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 very large codebase: 672,501 lines of product code in 247 projects, tests not counted · Estimated rebuild effort: about 15.5 person-years · Weakest lens: Security and Compliance, 48

Findings by how serious they are

795 critical 4040 serious 839 minor

13 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
12 November 2026, 02:34 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 code didn't build, so the score is provisional
We couldn't build the code: the build stopped with 32 errors. The dimensions that need a working build, such as complexity, duplication and dead code, were measured on an incomplete picture of the code, so their grades and the score are provisional. Fix the build errors and run the survey again for a final score. The first errors: MSB4062: The "AssemblyProcessorTask" task could not be loaded from the assembly /tmp/codehealth-child-tmp-efdb690d6c0a4f69824a8197697850d3/stride/AssemblyProcessor/netstandard2.0/6F3D9E60A4862DF47347520EA20E06A0E6C70C8E7CE549C684CE0B8F1060E59B/Stride.Core.AssemblyProcessor.dll. Unknown file format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.; MSB3073: The command ""clang" -std=c++11 -fno-rtti -fno-exceptions -Wno-ignored-attributes -Wno-delete-non-virtual-dtor -Wno-macro-redefined -I"sources/native/../../deps/NativePath" -I"sources/native/../../deps/NativePath/standard" -O0 -g -DPLATFORM_LINUX -o "sources/crashreport/Stride.CrashReport/obj/Debug/net10.0/linux-x64/StrideCrash_x64.o" -c "sources/crashreport/Stride.CrashReport/Native/StrideCrash.cpp" -fPIC -target x86_64-linux-gnu" exited with code 127.; CS7065: Error building Win32 resources -- Icon stream is not in the expected format.; CS0246: The type or namespace name 'EffectKeysAttribute' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'EffectKeys' could not be found (are you missing a using directive or an assembly reference?); MSB3073: The command ""clang" -std=c++11 -fno-rtti -fno-exceptions -Wno-ignored-attributes -Wno-delete-non-virtual-dtor -Wno-macro-redefined -I"sources/native/../../deps/NativePath" -I"sources/native/../../deps/NativePath/standard" -O0 -g -DPLATFORM_LINUX -o "sources/engine/Stride.VirtualReality/obj/Debug/net10.0/Vulkan/linux-x64/OculusOVR_x64.o" -c "sources/engine/Stride.VirtualReality/OculusOVR/OculusOVR.cpp" -fPIC -target x86_64-linux-gnu" exited with code 127.; MSB4019: The imported project "/tmp/nuget-packages/microsoft.vssdk.buildtools/18.6.38345/tools/vssdk/Microsoft.VSSDK.targets" was not found. Confirm that the expression in the Import declaration "$(VSToolsPath)/vssdk/Microsoft.VSSDK.targets", which evaluated to "/tmp/nuget-packages/microsoft.vssdk.buildtools/18.6.38345/build/../tools/vssdk/Microsoft.VSSDK.targets", is correct, and that the file exists on disk.

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 ▸

67of 67 dimensions measured by tools.
5657of 5674 findings point to an exact file and line, so you can open each one in the code. The other 17 concern the repository as a whole, such as missing documentation.
67dimensions across 6 lenses, read from 672,501 lines of product code in 247 projects.
Chapters

Executive summary

stride3d/stride has a provisional result, because the code didn't build. Its score is held back in part because it has pipeline tools referenced by a changeable name. It scores 53 out of 100, and the ratings may change once the code builds. 465 of its 795 critical findings are security problems in the build pipeline and in its code.

Security and Compliance, at 48, is the weakest lens and counts most in the score. The best first step is removing the unread values, worth about 4 points. Fixing the seven projects with almost no code comes next, worth about 3 points. Raising Security and Compliance to 70 would lift the score to about 58.

334 pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. 103 pipeline steps put outside input straight into a shell command, so an attacker can run commands in the build pipeline, and 202 errors are caught and ignored, so failures can go unnoticed. Pinning each tool to an exact version, passing outside input through environment variables and handling or logging the ignored errors would close these risks. Fixing the weaknesses the scanner points to would fix the 11 security weaknesses in the code, and limiting each secret to its own step would deal with the ten secrets exposed to more of the pipeline than needed. The 40 data fields that are written but never read need removing.

The product code is 672,501 lines, about €2,300,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 48 · counts for 46%Code Health 51 · counts for 25%Performance 60 · counts for 14%Architecture 66 · counts for 8%Production Readiness 73 · counts for 4%Maturity 73 · counts for 2%

If Security and Compliance rose from 48 to 70, the lowest score rated Strong, the score would rise from 53 to about 58.

Code composition: what the lines of code are
Business logic 26%Supporting code 41%Tests 18%Generated by tools 14%Code analyzers 1%
New since the last survey: 1297 findings

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

  • Cyclomatic Complexity · AssetPropertyPasteProcessor.Paste (cyclomatic 69) sources/editor/Stride.Core.Assets.Editor/Components/CopyPasteProcessors/AssetPropertyPasteProcessor.cs
  • Cyclomatic Complexity · top-level statements (cyclomatic 65) build/tools/ParallelBuildAuditor/Program.cs
  • Cyclomatic Complexity · CodeUpgrades.MoveLocalCallbacks (cyclomatic 60) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs
  • Cyclomatic Complexity · SessionViewModel.DeleteItems (cyclomatic 50) sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs
  • Cyclomatic Complexity · HeightmapConvertCommand.DoCommandOverride (cyclomatic 48) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs
  • Cyclomatic Complexity · EditorGameEntityCameraService.UpdateCameraBase (cyclomatic 45) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameEntityCameraService.cs
  • Cyclomatic Complexity · SpriteStudioAnimationAssetCommand.DoCommandOverride (cyclomatic 42) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioAnimationAssetCompiler.cs
  • Cyclomatic Complexity · UnifiedGenerator.Initialize (cyclomatic 41) sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.cs
  • Cyclomatic Complexity · SpirvBuilder.SelectBinaryOp (cyclomatic 39) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs
  • Cyclomatic Complexity · ColorConverter.DoConvert (cyclomatic 39) sources/presentation/Stride.Core.Presentation.Avalonia/Converters/ColorConverter.cs
  • Cyclomatic Complexity · AssetCollectionViewModel.InvokeAddAssetTemplateAsync (cyclomatic 38) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.AddAssets.cs
  • Cyclomatic Complexity · HeightfieldShape.MarchRay (cyclomatic 37) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldShape.cs
  • Cyclomatic Complexity · Grid.MeasureOverride (cyclomatic 37) sources/plugins/UI/Stride.UI/Panels/Grid.cs
  • Cyclomatic Complexity · NavigationMeshBuilder.Build (cyclomatic 36) sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuilder.cs
  • Cyclomatic Complexity · UILayoutHelper.UpdateElementLayout (cyclomatic 36) sources/plugins/UI/Stride.UI.Editor/Game/UILayoutHelper.cs
  • Cyclomatic Complexity · CodeUpgrades.CollectCaptures (cyclomatic 35) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs
  • Cyclomatic Complexity · PrepareEffectPermutationJob.Process (cyclomatic 34) sources/engine/Stride.Rendering/Rendering/Materials/MaterialRenderFeature.cs
  • Cyclomatic Complexity · BuildInputJob.BuildColliderInput (cyclomatic 34) sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuilder.cs
  • Cyclomatic Complexity · BoxTriangleCollider.Intersecting (cyclomatic 33) sources/plugins/BepuPhysics/Stride.BepuPhysics.Soft/Definitions/BepuThings.cs
  • Cyclomatic Complexity · HeightfieldTexture.BuildRuntimeRepresentation (cyclomatic 32) sources/plugins/BepuPhysics/Stride.Heightfield.Assets/HeightfieldTexture.cs
  • Cyclomatic Complexity · RunevisionTerrainCompileCommand.DoCommandOverride (cyclomatic 32) sources/plugins/BepuPhysics/Stride.Heightfield.Assets/RunevisionTerrainAssetCompiler.cs
  • Cyclomatic Complexity · PanelViewModel.ChangeLayoutType (cyclomatic 32) sources/plugins/UI/Stride.UI.Editor/ViewModels/PanelViewModel.cs
  • Cyclomatic Complexity · EditText.InterpretKey (cyclomatic 32) sources/plugins/UI/Stride.UI/Controls/EditText.Direct.cs
  • Cyclomatic Complexity · MeshConverter.ProcessMorphTargets (cyclomatic 32) sources/tools/Stride.Importer.3D/MeshConverter.cs
  • Cyclomatic Complexity · PhysicsGizmo.Update (cyclomatic 31) sources/plugins/BulletPhysics/Stride.Physics.Editor/PhysicsGizmo.cs
  • Cyclomatic Complexity · DynamicSoundSource.Worker (cyclomatic 30) sources/plugins/Audio/Stride.Audio/DynamicSoundSource.cs
  • Cyclomatic Complexity · EncodeVideoFileCommand.DoCommandOverride (cyclomatic 30) REDACTED
  • Cyclomatic Complexity · UpdateAnimationJob.ProcessEntity (cyclomatic 29) sources/engine/Stride.Engine/Animations/AnimationProcessor.cs
  • Cyclomatic Complexity · EntityHierarchyItemViewModel.CanAddOrInsertChildren (cyclomatic 28) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs
  • Cyclomatic Complexity · PanelViewModel.ChangeChildElementLayoutProperties (cyclomatic 28) sources/plugins/UI/Stride.UI.Editor/ViewModels/PanelViewModel.cs
  • Cyclomatic Complexity · ModelDeformationRenderer.Schedule (cyclomatic 27) sources/engine/Stride.Engine/Rendering/ModelDeformationRenderer.cs
  • Cyclomatic Complexity · ScrollViewer.Update (cyclomatic 27) sources/plugins/UI/Stride.UI/Controls/ScrollViewer.cs
  • Cyclomatic Complexity · SharedMesh.SharedMesh.ctor (cyclomatic 26) sources/engine/Stride.Engine/Rendering/ModelDeformationRenderer.cs
  • Cyclomatic Complexity · Vector4Editor.UpdateValueFromComponent (cyclomatic 26) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector4Editor.cs
  • Cyclomatic Complexity · EditorContentLoader.RefreshChangedAssetsAsync (cyclomatic 26) sources/editor/Stride.Assets.Editor/EditorGame/ContentLoader/EditorContentLoader.cs
  • Cyclomatic Complexity · DockPanelService.Apply (cyclomatic 26) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs
  • Cyclomatic Complexity · SpriteStudioRenderFeature.Draw (cyclomatic 26) sources/plugins/SpriteStudio/Stride.SpriteStudio.Runtime/SpriteStudioRenderFeature.cs
  • Cyclomatic Complexity · UIEditorView.OpenElementMenu (cyclomatic 26) sources/plugins/UI/Stride.UI.Editor.Avalonia/Views/UIEditorView.axaml.cs
  • Cyclomatic Complexity · HorizontalAndVerticalAxisRenderer.RenderMajorItems (cyclomatic 25) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/HorizontalAndVerticalAxisRenderer.cs
  • Cyclomatic Complexity · UIRenderFeature.DrawInternal (cyclomatic 25) sources/plugins/UI/Stride.UI/Rendering/UI/UIRenderFeature.cs
  • Cyclomatic Complexity · ToolBarPanel.MeasureGeneratedItems (cyclomatic 24) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarPanel.cs
  • Cyclomatic Complexity · VisualScriptMethodViewModel.UpdateSlots (cyclomatic 24) sources/editor/Stride.Assets.Presentation/ViewModels/VisualScriptMethodViewModel.cs
  • Cyclomatic Complexity · CodeUpgrades.AddAttributeToStaticFieldHolders (cyclomatic 24) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Attributes.cs
  • Cyclomatic Complexity · CharacterControllers.AnalyzeContactsForCharacterRegion (cyclomatic 24) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs
  • Cyclomatic Complexity · PhysicsShapesRenderingService.CreateChildEntity (cyclomatic 24) sources/plugins/BulletPhysics/Stride.Physics/Engine/PhysicsShapesRenderingService.cs
  • Cyclomatic Complexity · SpriteStudioModelAssetCommand.DoCommandOverride (cyclomatic 24) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioModelAssetCompiler.cs
  • Cyclomatic Complexity · ViewportGridGizmo.UpdateGrids (cyclomatic 23) sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/ViewportGridGizmo.cs
  • Cyclomatic Complexity · CharacterControllers.TryReportContacts (cyclomatic 23) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs
  • Cyclomatic Complexity · ConstraintGizmo.Update (cyclomatic 23) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/ConstraintGizmo.cs
  • Cyclomatic Complexity · top-level statements (cyclomatic 23) sources/tools/Stride.Shaders.CorpusCapture/Program.cs
  • Cyclomatic Complexity · PackageSession.FindDependencyVersionChanges (cyclomatic 22) sources/assets/Stride.Core.Assets/PackageSession.DependencyVersions.cs
  • Cyclomatic Complexity · DirectoryBaseViewModel.CanAddChildren (cyclomatic 22) sources/editor/Stride.Core.Assets.Presentation/ViewModels/DirectoryBaseViewModel.cs
  • Cyclomatic Complexity · SymbolSearchHelper.GenerateSymbolSearchValues (cyclomatic 22) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.cs
  • Cyclomatic Complexity · DebugRenderProcessor.Draw (cyclomatic 22) sources/plugins/BepuPhysics/Stride.BepuPhysics.Debug/DebugRenderProcessor.cs
  • Cyclomatic Complexity · ContactEventsManager.RunManifoldEvent (cyclomatic 22) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Contacts/ContactEventsManager.cs
  • Cyclomatic Complexity · UIRenderFeature.UpdateTouchEvents (cyclomatic 22) sources/plugins/UI/Stride.UI/Rendering/UI/UIRenderFeature.Picking.cs
  • Cyclomatic Complexity · ScreenshotComparator.Compare (cyclomatic 22) tests/infra/Stride.ScreenshotComparator/ScreenshotComparator.cs
  • Cyclomatic Complexity · MeshConverter.ProcessMorphAnimation (cyclomatic 22) sources/tools/Stride.Importer.3D/MeshConverter.cs
  • Cyclomatic Complexity · MeshConverter.ProcessMorphTarget (cyclomatic 22) sources/tools/Stride.Importer.3D/MeshConverter.cs
  • Cyclomatic Complexity · Vector3Editor.UpdateValueFromComponent (cyclomatic 21) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector3Editor.cs
  • Cyclomatic Complexity · AudioEmitterProcessor.Draw (cyclomatic 21) sources/plugins/Audio/Stride.Audio/Engine/AudioEmitterProcessor.cs
  • Cyclomatic Complexity · HeightfieldShape.EnumerateChildrenInAabb (cyclomatic 21) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldShape.cs
  • Cyclomatic Complexity · NavigationBuilder.BuildNavmesh (cyclomatic 21) sources/plugins/BulletPhysics/Stride.Navigation/NavigationBuilder.cs
  • Cyclomatic Complexity · ColliderShapeCombineCommand.DoCommandOverride (cyclomatic 21) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/ColliderShapeAssetCompiler.cs
  • Cyclomatic Complexity · Simulation.SendEvents (cyclomatic 21) sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs
  • Cyclomatic Complexity · GraphicsOutput.SelectDisplayMode (cyclomatic 20) sources/engine/Stride.Graphics/GraphicsOutput.cs
  • Cyclomatic Complexity · MeshMorphData.Validate (cyclomatic 20) sources/engine/Stride.Rendering/Rendering/MeshMorphData.cs
  • Cyclomatic Complexity · PrepareJob.Process (cyclomatic 20) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs
  • Cyclomatic Complexity · TransformationGizmo.TransformSceneEntityBase (cyclomatic 20) sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/TransformationGizmo.cs
  • Cyclomatic Complexity · EditorContentLoader.CheckAssetsToReload (cyclomatic 20) sources/editor/Stride.Assets.Editor/EditorGame/ContentLoader/EditorContentLoader.cs
  • Cyclomatic Complexity · DockPanelService.BuildNode (cyclomatic 20) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs
  • Cyclomatic Complexity · CodeUpgrades.MoveCallback (cyclomatic 20) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs
  • Cyclomatic Complexity · ParticleSystemNodeUpdater.FinalizeTree (cyclomatic 20) sources/plugins/Particles/Stride.Particles.Editor/ParticleSystemNodeUpdater.cs
  • Cyclomatic Complexity · InitialDefaultFields.Initialize (cyclomatic 20) sources/plugins/Particles/Stride.Particles/Initializers/InitialDefaultFields.cs
  • Cyclomatic Complexity · ImageSizeHelper.CalculateImageSizeFromAvailable (cyclomatic 20) sources/plugins/UI/Stride.UI/ImageSizeHelper.cs
  • Cyclomatic Complexity · DefaultSliderRenderer.RenderColor (cyclomatic 20) sources/plugins/UI/Stride.UI/Renderers/DefaultSliderRenderer.cs
  • Cyclomatic Complexity · ShaderMixer.Explain (cyclomatic 19) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Explain.cs
  • Cyclomatic Complexity · DateTimeEditor.UpdateValueFromComponent (cyclomatic 19) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/DateTimeEditor.cs
  • Cyclomatic Complexity · EntityHierarchyItemViewModel.MoveChildren (cyclomatic 19) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs
  • Cyclomatic Complexity · MaterialViewModel.OnAssetPropertyChanged (cyclomatic 19) sources/editor/Stride.Assets.Presentation/ViewModels/MaterialViewModel.cs
  • Cyclomatic Complexity · CodeUpgrades.DispatcherCallbacksToStaticLambdas (cyclomatic 19) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs
  • Cyclomatic Complexity · HullDecomposition.DoCommandOverride (cyclomatic 19) sources/plugins/BepuPhysics/Stride.BepuPhysics.Assets/HullAssetCompiler.cs
  • Cyclomatic Complexity · Simulation.CreateConstraintInternal (cyclomatic 19) sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs
  • Cyclomatic Complexity · ParticleEmitter.SimulationSpaceChanged (cyclomatic 19) sources/plugins/Particles/Stride.Particles/ParticleEmitter.cs
  • Cyclomatic Complexity · ThicknessEditor.UpdateValueFromComponent (cyclomatic 19) sources/plugins/UI/Stride.UI.Editor.Wpf/Views/ThicknessEditor.cs
  • Cyclomatic Complexity · FFmpegVideoBackend.Update (cyclomatic 19) sources/plugins/Video/Stride.Video/Backends/FFmpegVideoBackend.cs
  • Cyclomatic Complexity · TypeNameBuilder.Build (cyclomatic 18) sources/core/Stride.Core.CompilerServices/Common/TypeNameBuilder.cs
  • Cyclomatic Complexity · GamePlatform.FindBestDevices (cyclomatic 18) sources/engine/Stride.Games/GamePlatform.cs
  • Cyclomatic Complexity · CompileEffectJob.Process (cyclomatic 18) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs
  • Cyclomatic Complexity · SymbolType.Of (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Core/SymbolTypes.cs
  • Cyclomatic Complexity · TextLogViewer.AppendText (cyclomatic 18) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/TextLogViewer.cs
  • Cyclomatic Complexity · ToolBarTray.GenerateBands (cyclomatic 18) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarTray.cs
  • Cyclomatic Complexity · TemplateProviderBase.CompareTo (cyclomatic 18) sources/presentation/Stride.Core.Presentation.Avalonia/Views/TemplateProviderBase.cs
  • Cyclomatic Complexity · EditorGameEntityCameraService.UpdateCamera (cyclomatic 18) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameEntityCameraService.cs
  • Cyclomatic Complexity · EditorGameMaterialHighlightService.Update (cyclomatic 18) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameMaterialHighlightService.cs
  • Cyclomatic Complexity · DockPanelService.SnapshotNode (cyclomatic 18) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs
  • Cyclomatic Complexity · DotNetNewTemplateParametersWindow.Humanize (cyclomatic 18) sources/editor/Stride.Assets.Editor.Wpf/Templates/DotNetNewTemplateParametersWindow.xaml.cs
  • Cyclomatic Complexity · CompressedSoundSource.ExtractAndFillData (cyclomatic 18) sources/plugins/Audio/Stride.Audio/CompressedSoundSource.cs
  • Cyclomatic Complexity · NavmeshBuildCommand.EnsureClonedSceneAndHash (cyclomatic 18) sources/plugins/BulletPhysics/Stride.Physics.Assets/Navigation/NavigationMeshAssetCompiler.cs
  • Cyclomatic Complexity · EntityManager.RemoveStaleTypes (cyclomatic 17) sources/engine/Stride.Engine/Engine/EntityManager.cs

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: 2720 findings

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

  • Cyclomatic Complexity · AssetPropertyPasteProcessor.Paste (cyclomatic 69) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/CopyPasteProcessors/AssetPropertyPasteProcessor.cs
  • Cyclomatic Complexity · HeightmapConvertCommand.DoCommandOverride (cyclomatic 48) sources/engine/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs
  • Cyclomatic Complexity · SessionViewModel.DeleteItems (cyclomatic 48) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/SessionViewModel.cs
  • Cyclomatic Complexity · EditorGameEntityCameraService.UpdateCameraBase (cyclomatic 45) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/EntityHierarchyEditor/Game/EditorGameEntityCameraService.cs
  • Cyclomatic Complexity · InteropProcessor.PatchMethod (cyclomatic 43) sources/core/Stride.Core.AssemblyProcessor/InteropProcessor.cs
  • Cyclomatic Complexity · SpriteStudioAnimationAssetCommand.DoCommandOverride (cyclomatic 42) sources/engine/Stride.SpriteStudio.Assets/SpriteStudioAnimationAssetCompiler.cs
  • Cyclomatic Complexity · NavigationMeshBuilder.BuildInput (cyclomatic 38) sources/engine/Stride.Navigation/NavigationMeshBuilder.cs
  • Cyclomatic Complexity · NavigationMeshBuilder.Build (cyclomatic 37) sources/engine/Stride.Navigation/NavigationMeshBuilder.cs
  • Cyclomatic Complexity · Grid.MeasureOverride (cyclomatic 37) sources/engine/Stride.UI/Panels/Grid.cs
  • Cyclomatic Complexity · UILayoutHelper.UpdateElementLayout (cyclomatic 36) sources/engine/Stride.UI.Editor/Game/UILayoutHelper.cs
  • Cyclomatic Complexity · MaterialRenderFeature.PrepareEffectPermutations (cyclomatic 33) sources/engine/Stride.Rendering/Rendering/Materials/MaterialRenderFeature.cs
  • Cyclomatic Complexity · AssetCollectionViewModel.InvokeAddAssetTemplate (cyclomatic 33) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/AssetCollectionViewModel.cs
  • Cyclomatic Complexity · BoxTriangleCollider.Intersecting (cyclomatic 33) sources/engine/Stride.BepuPhysics/Stride.BepuPhysics.Soft/Definitions/BepuThings.cs
  • Cyclomatic Complexity · PanelViewModel.ChangeLayoutType (cyclomatic 32) sources/engine/Stride.UI.Editor/ViewModels/PanelViewModel.cs
  • Cyclomatic Complexity · EditText.InterpretKey (cyclomatic 32) sources/engine/Stride.UI/Controls/EditText.Direct.cs
  • Cyclomatic Complexity · PhysicsGizmo.Update (cyclomatic 31) sources/engine/Stride.Physics.Editor/PhysicsGizmo.cs
  • Cyclomatic Complexity · ParameterKeyProcessor.Process (cyclomatic 31) sources/core/Stride.Core.AssemblyProcessor/ParameterKeyProcessor.cs
  • Cyclomatic Complexity · DynamicSoundSource.Worker (cyclomatic 30) sources/engine/Stride.Audio/DynamicSoundSource.cs
  • Cyclomatic Complexity · EncodeVideoFileCommand.DoCommandOverride (cyclomatic 30) sources/engine/Stride.Video.Assets/VideoAssetCompiler.cs
  • Cyclomatic Complexity · AnimationProcessor.Draw (cyclomatic 29) sources/engine/Stride.Engine/Animations/AnimationProcessor.cs
  • Cyclomatic Complexity · PanelViewModel.ChangeChildElementLayoutProperties (cyclomatic 28) sources/engine/Stride.UI.Editor/ViewModels/PanelViewModel.cs
  • Cyclomatic Complexity · ScrollViewer.Update (cyclomatic 27) sources/engine/Stride.UI/Controls/ScrollViewer.cs
  • Cyclomatic Complexity · EntityHierarchyItemViewModel.CanAddOrInsertChildren (cyclomatic 27) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/EntityHierarchyEditor/ViewModels/EntityHierarchyItemViewModel.cs
  • Cyclomatic Complexity · SpriteStudioRenderFeature.Draw (cyclomatic 26) sources/engine/Stride.SpriteStudio.Runtime/SpriteStudioRenderFeature.cs
  • Cyclomatic Complexity · UIRenderFeature.DrawInternal (cyclomatic 25) sources/engine/Stride.UI/Rendering/UI/UIRenderFeature.cs
  • Cyclomatic Complexity · HorizontalAndVerticalAxisRenderer.RenderMajorItems (cyclomatic 25) sources/editor/Stride.Assets.Presentation.Wpf/CurveEditor/Axes/HorizontalAndVerticalAxisRenderer.cs
  • Cyclomatic Complexity · GoldStats.Run (cyclomatic 25) build/tools/Stride.CompareGold/Stats.cs
  • Cyclomatic Complexity · PhysicsShapesRenderingService.CreateChildEntity (cyclomatic 24) sources/engine/Stride.Physics/Engine/PhysicsShapesRenderingService.cs
  • Cyclomatic Complexity · SpriteStudioModelAssetCommand.DoCommandOverride (cyclomatic 24) sources/engine/Stride.SpriteStudio.Assets/SpriteStudioModelAssetCompiler.cs
  • Cyclomatic Complexity · CharacterControllers.AnalyzeContactsForCharacterRegion (cyclomatic 24) sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs
  • Cyclomatic Complexity · VisualScriptMethodViewModel.UpdateSlots (cyclomatic 24) sources/editor/Stride.Assets.Presentation.Wpf/ViewModel/VisualScriptMethodViewModel.cs
  • Cyclomatic Complexity · Examples.ComputeIntersection (cyclomatic 24) sources/shaders/Stride.Shaders.Experiments/Examples.cs
  • Cyclomatic Complexity · CharacterControllers.TryReportContacts (cyclomatic 23) sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs
  • Cyclomatic Complexity · ConstraintGizmo.Update (cyclomatic 23) sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/Systems/ConstraintGizmo.cs
  • Cyclomatic Complexity · ViewportGridGizmo.UpdateGrids (cyclomatic 23) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/Gizmos/ViewportGridGizmo.cs
  • Cyclomatic Complexity · EditorContentLoader.AssetPropertiesChanged (cyclomatic 23) sources/editor/Stride.Editor.Wpf/EditorGame/ContentLoader/EditorContentLoader.cs
  • Cyclomatic Complexity · UIRenderFeature.UpdateTouchEvents (cyclomatic 22) sources/engine/Stride.UI/Rendering/UI/UIRenderFeature.Picking.cs
  • Cyclomatic Complexity · DebugRenderProcessor.Draw (cyclomatic 22) sources/engine/Stride.BepuPhysics/Stride.BepuPhysics.Debug/DebugRenderProcessor.cs
  • Cyclomatic Complexity · ContactEventsManager.RunManifoldEvent (cyclomatic 22) sources/engine/Stride.BepuPhysics/Stride.BepuPhysics/Definitions/Contacts/ContactEventsManager.cs
  • Cyclomatic Complexity · EditorGameMaterialHighlightService.Update (cyclomatic 22) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/EntityHierarchyEditor/Game/EditorGameMaterialHighlightService.cs
  • Cyclomatic Complexity · SymbolSearchHelper.GenerateSymbolSearchValues (cyclomatic 22) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.cs
  • Cyclomatic Complexity · DirectoryBaseViewModel.CanAddChildren (cyclomatic 22) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/DirectoryBaseViewModel.cs
  • Cyclomatic Complexity · ScreenshotComparator.Compare (cyclomatic 22) sources/tests/Stride.ScreenshotComparator/ScreenshotComparator.cs
  • Cyclomatic Complexity · HeadlessPromote.RunPromote (cyclomatic 22) build/tools/Stride.CompareGold/Promote.cs
  • Cyclomatic Complexity · AudioEmitterProcessor.Draw (cyclomatic 21) sources/engine/Stride.Audio/Engine/AudioEmitterProcessor.cs
  • Cyclomatic Complexity · NavigationBuilder.BuildNavmesh (cyclomatic 21) sources/engine/Stride.Navigation/NavigationBuilder.cs
  • Cyclomatic Complexity · ColliderShapeCombineCommand.DoCommandOverride (cyclomatic 21) sources/engine/Stride.Physics.Assets/Physics/ColliderShapeAssetCompiler.cs
  • Cyclomatic Complexity · Simulation.SendEvents (cyclomatic 21) sources/engine/Stride.Physics/Simulation.cs
  • Cyclomatic Complexity · RootEffectRenderFeature.Prepare (cyclomatic 21) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs
  • Cyclomatic Complexity · ParticleSystemNodeUpdater.FinalizeTree (cyclomatic 20) sources/engine/Stride.Particles.Editor/ParticleSystemNodeUpdater.cs
  • Cyclomatic Complexity · InitialDefaultFields.Initialize (cyclomatic 20) sources/engine/Stride.Particles/Initializers/InitialDefaultFields.cs
  • Cyclomatic Complexity · ImageSizeHelper.CalculateImageSizeFromAvailable (cyclomatic 20) sources/engine/Stride.UI/ImageSizeHelper.cs
  • Cyclomatic Complexity · DefaultSliderRenderer.RenderColor (cyclomatic 20) sources/engine/Stride.UI/Renderers/DefaultSliderRenderer.cs
  • Cyclomatic Complexity · EntityHierarchyItemViewModel.MoveChildren (cyclomatic 20) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/EntityHierarchyEditor/ViewModels/EntityHierarchyItemViewModel.cs
  • Cyclomatic Complexity · TransformationGizmo.TransformSceneEntityBase (cyclomatic 20) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/Gizmos/TransformationGizmo.cs
  • Cyclomatic Complexity · EditorContentLoader.CheckAssetsToReload (cyclomatic 20) sources/editor/Stride.Editor.Wpf/EditorGame/ContentLoader/EditorContentLoader.cs
  • Cyclomatic Complexity · XamlExtractor.ParseLocalizeExtension (cyclomatic 20) sources/tools/Stride.Core.Translation.Extractor/Extractors/XamlExtractor.cs
  • Cyclomatic Complexity · GoldStats.ReadSample (cyclomatic 20) build/tools/Stride.CompareGold/Stats.cs
  • Cyclomatic Complexity · CompressedSoundSource.ExtractAndFillData (cyclomatic 19) sources/engine/Stride.Audio/CompressedSoundSource.cs
  • Cyclomatic Complexity · ParticleEmitter.SimulationSpaceChanged (cyclomatic 19) sources/engine/Stride.Particles/ParticleEmitter.cs
  • Cyclomatic Complexity · Simulation.CreateConstraintInternal (cyclomatic 19) sources/engine/Stride.Physics/Simulation.cs
  • Cyclomatic Complexity · ThicknessEditor.UpdateValueFromComponent (cyclomatic 19) sources/engine/Stride.UI.Editor.Wpf/Views/ThicknessEditor.cs
  • Cyclomatic Complexity · FFmpegVideoBackend.Update (cyclomatic 19) sources/engine/Stride.Video/Backends/FFmpegVideoBackend.cs
  • Cyclomatic Complexity · HullDecomposition.DoCommandOverride (cyclomatic 19) sources/engine/Stride.BepuPhysics/Stride.BepuPhysics.Assets/HullAssetCompiler.cs
  • Cyclomatic Complexity · EditorGameEntityCameraService.UpdateCamera (cyclomatic 19) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/EntityHierarchyEditor/Game/EditorGameEntityCameraService.cs
  • Cyclomatic Complexity · MaterialViewModel.OnAssetPropertyChanged (cyclomatic 19) sources/editor/Stride.Assets.Presentation.Wpf/ViewModel/MaterialViewModel.cs
  • Cyclomatic Complexity · AssetCollectionViewModel.AddChildren (cyclomatic 19) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/AssetCollectionViewModel.cs
  • Cyclomatic Complexity · HeadlessPromote.Run (cyclomatic 19) build/tools/Stride.CompareGold/Promote.cs
  • Cyclomatic Complexity · EditorGameEntitySelectionService.Execute (cyclomatic 18) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/EntityHierarchyEditor/Game/EditorGameEntitySelectionService.cs
  • Cyclomatic Complexity · DotNetNewTemplateParametersWindow.Humanize (cyclomatic 18) sources/editor/Stride.Assets.Presentation.Wpf/Templates/DotNetNewTemplateParametersWindow.xaml.cs
  • Cyclomatic Complexity · DispatcherProcessor.ProcessDelegateAllocation (cyclomatic 18) sources/core/Stride.Core.AssemblyProcessor/DispatcherProcessor.cs
  • Cyclomatic Complexity · NavmeshBuildCommand.EnsureClonedSceneAndHash (cyclomatic 17) sources/engine/Stride.Physics.Assets/Navigation/NavigationMeshAssetCompiler.cs
  • Cyclomatic Complexity · ForwardLightingRenderFeature.Prepare (cyclomatic 17) sources/engine/Stride.Rendering/Rendering/Lights/ForwardLightingRenderFeature.cs
  • Cyclomatic Complexity · Grid.RebuildMeasureCacheData (cyclomatic 17) sources/engine/Stride.UI/Panels/Grid.cs
  • Cyclomatic Complexity · GameStudioAssemblyReloader.PostAssemblyReloading (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/AssemblyReloading/GameStudioAssemblyReloader.cs
  • Cyclomatic Complexity · VisualScriptEditorViewModel.TriggerBackgroundCompilation (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.Diagnostics.cs
  • Cyclomatic Complexity · Color4CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/CurveEditor/ViewModels/ColorCurveViewModel.cs
  • Cyclomatic Complexity · KeyFrameCurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/CurveEditor/ViewModels/KeyFrameCurveViewModel.cs
  • Cyclomatic Complexity · RotationCurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/CurveEditor/ViewModels/RotationCurveViewModel.cs
  • Cyclomatic Complexity · Vector2CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs
  • Cyclomatic Complexity · Vector3CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs
  • Cyclomatic Complexity · Vector4CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs
  • Cyclomatic Complexity · DotNetNewTemplateParametersWindow.BuildOneRow (cyclomatic 17) sources/editor/Stride.Assets.Presentation.Wpf/Templates/DotNetNewTemplateParametersWindow.xaml.cs
  • Cyclomatic Complexity · EntityExtensions.CalculateBoundSphere (cyclomatic 17) sources/editor/Stride.Editor.Wpf/Engine/EntityExtensions.cs
  • Cyclomatic Complexity · ClaudeVisionFallback.Compare (cyclomatic 17) sources/tests/Stride.ScreenshotComparator/ClaudeVisionFallback.cs
  • Cyclomatic Complexity · ScreenshotComparator.LoadPerFrameMetadata (cyclomatic 17) sources/tests/Stride.ScreenshotComparator/ScreenshotComparator.cs
  • Cyclomatic Complexity · ParticleSystem.Update (cyclomatic 16) sources/engine/Stride.Particles/ParticleSystem.cs
  • Cyclomatic Complexity · StaticMeshColliderShape.BuildAndShareMeshes (cyclomatic 16) sources/engine/Stride.Physics/Shapes/StaticMeshColliderShape.cs
  • Cyclomatic Complexity · MarginAdorner.Update (cyclomatic 16) sources/engine/Stride.UI.Editor/Adorners/MarginAdorner.cs
  • Cyclomatic Complexity · UIEditorGameCameraService.UpdateCamera (cyclomatic 16) sources/engine/Stride.UI.Editor/Game/UIEditorGameCameraService.cs
  • Cyclomatic Complexity · UIElement.Measure (cyclomatic 16) sources/engine/Stride.UI/UIElement.cs
  • Cyclomatic Complexity · SessionViewModel.Explore (cyclomatic 16) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/SessionViewModel.cs
  • Cyclomatic Complexity · SessionViewModel.DoUpdateSessionState (cyclomatic 16) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/SessionViewModel.cs
  • Cyclomatic Complexity · GoldStats.Print (cyclomatic 16) build/tools/Stride.CompareGold/Stats.cs
  • Cognitive Complexity · AssetPropertyPasteProcessor.Paste (cognitive 238) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/CopyPasteProcessors/AssetPropertyPasteProcessor.cs
  • Cognitive Complexity · InteropProcessor.PatchMethod (cognitive 121) sources/core/Stride.Core.AssemblyProcessor/InteropProcessor.cs
  • Cognitive Complexity · Grid.MeasureOverride (cognitive 106) sources/engine/Stride.UI/Panels/Grid.cs
  • Cognitive Complexity · SpriteStudioAnimationAssetCommand.DoCommandOverride (cognitive 102) sources/engine/Stride.SpriteStudio.Assets/SpriteStudioAnimationAssetCompiler.cs
  • Cognitive Complexity · AssetCollectionViewModel.InvokeAddAssetTemplate (cognitive 87) sources/editor/Stride.Core.Assets.Editor.Wpf/ViewModel/AssetCollectionViewModel.cs
  • Cognitive Complexity · NavigationMeshBuilder.Build (cognitive 85) sources/engine/Stride.Navigation/NavigationMeshBuilder.cs
Rebuild cost: about €2,300,000 · Estimate
Cost to rebuild€740,000 to €3,800,000, for 12,277 to 39,891 hours of work, about 15.5 person-years for 9 to 30 engineers
Difficulty of the problemHigh, 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 53. 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.
SizeVery large: 672,501 lines of product code
Comment linesThe estimate prices 637,057 lines. Comment lines count towards the size of 672,501 lines but aren't priced as work.
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.

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 40 WriteOnlyPrivateField finding(s) in Explicit Debt — start with PlayerScript.cs (2), UIBatch.cs (2), BasicTest.cs (2).
Raises the score by about 4 points · Medium effort · Explicit Debt
2
Resolve the 7 Shell project finding(s) in Solution Shape — start with MaterialShader.Game.csproj, VFXPackage.csproj, PrototypingBlocks.csproj.
Raises the score by about 3 points · Low effort · Solution Shape
3
Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with Stride.PackageInstall.csproj.
Raises the score by about 3 points · Low effort · Platform End-of-Life

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.

If you do one thing first · First action
Fix the build. The code didn't build, so the dimensions that need a working build were measured on an incomplete picture of the code, and every grade in this report is provisional. Once the build works, the next survey gives a final score. The compiler's first errors: MSB4062: The "AssemblyProcessorTask" task could not be loaded from the assembly /tmp/codehealth-child-tmp-efdb690d6c0a4f69824a8197697850d3/stride/AssemblyProcessor/netstandard2.0/6F3D9E60A4862DF47347520EA20E06A0E6C70C8E7CE549C684CE0B8F1060E59B/Stride.Core.AssemblyProcessor.dll. Unknown file format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.; MSB3073: The command ""clang" -std=c++11 -fno-rtti -fno-exceptions -Wno-ignored-attributes -Wno-delete-non-virtual-dtor -Wno-macro-redefined -I"sources/native/../../deps/NativePath" -I"sources/native/../../deps/NativePath/standard" -O0 -g -DPLATFORM_LINUX -o "sources/crashreport/Stride.CrashReport/obj/Debug/net10.0/linux-x64/StrideCrash_x64.o" -c "sources/crashreport/Stride.CrashReport/Native/StrideCrash.cpp" -fPIC -target x86_64-linux-gnu" exited with code 127.; CS7065: Error building Win32 resources -- Icon stream is not in the expected format.; CS0246: The type or namespace name 'EffectKeysAttribute' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'EffectKeys' could not be found (are you missing a using directive or an assembly reference?); MSB3073: The command ""clang" -std=c++11 -fno-rtti -fno-exceptions -Wno-ignored-attributes -Wno-delete-non-virtual-dtor -Wno-macro-redefined -I"sources/native/../../deps/NativePath" -I"sources/native/../../deps/NativePath/standard" -O0 -g -DPLATFORM_LINUX -o "sources/engine/Stride.VirtualReality/obj/Debug/net10.0/Vulkan/linux-x64/OculusOVR_x64.o" -c "sources/engine/Stride.VirtualReality/OculusOVR/OculusOVR.cpp" -fPIC -target x86_64-linux-gnu" exited with code 127.; MSB4019: The imported project "/tmp/nuget-packages/microsoft.vssdk.buildtools/18.6.38345/tools/vssdk/Microsoft.VSSDK.targets" was not found. Confirm that the expression in the Import declaration "$(VSToolsPath)/vssdk/Microsoft.VSSDK.targets", which evaluated to "/tmp/nuget-packages/microsoft.vssdk.buildtools/18.6.38345/build/../tools/vssdk/Microsoft.VSSDK.targets", is correct, and that the file exists on disk.
Based on: Solution Shape
Where the investment is most exposed · Value at risk
This code would cost about €2,300,000 to build again, about 15.5 person-years of work. Its weakest lens is Security and Compliance, at 48 (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.
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 6.9 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 3% to 6% on every change. The history of the code shows how much it changes: about 385,396 lines over the last 90 days, which is about 1,562,995 lines a year. At that pace, the extra work comes to an estimated 109.2 to 655.5 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 — bounded-context dependency graph

Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.

arch Windows Windows BepuSample.Windows BepuSample.Windows Linux Linux CSharpBeginner.Windows CSharpBeginner.Windows macOS macOS CSharpIntermediate.Windows CSharpIntermediate.Windows CustomEffect.Windows CustomEffect.Windows FirstPersonShooter.Windows FirstPersonShooter.Windows GameMenu.Windows GameMenu.Windows GravitySensor.Windows GravitySensor.Windows JumpyJet.Windows JumpyJet.Windows MaterialShader.Windows MaterialShader.Windows MorphTargets.Windows MorphTargets.Windows Android Android MyTemplate.Linux MyTemplate.Linux MyTemplate.Windows MyTemplate.Windows iOS iOS MyTemplate.macOS MyTemplate.macOS ParallelBuildAuditor ParallelBuildAuditor ParticlesSample.Windows ParticlesSample.Windows PhysicsSample.Windows PhysicsSample.Windows Platformer2D.Windows Platformer2D.Windows SimpleAudio.Windows SimpleAudio.Windows SpaceEscape.Windows SpaceEscape.Windows SpriteFonts.Windows SpriteFonts.Windows SpriteStudioDemo.Windows SpriteStudioDemo.Windows AssetCompiler AssetCompiler ctx:Assets.Models Assets.Models Models AssetCompiler->ctx:Assets.Models ctx:Core.MicroThreading Core.MicroThreading MicroThreading AssetCompiler->ctx:Core.MicroThreading ctx:CrashReport CrashReport CrashReport AssetCompiler->ctx:CrashReport Cli Cli ctx:Core.Design Core.Design Design Cli->ctx:Core.Design Cli->ctx:CrashReport ConnectionRouter ConnectionRouter ctx:Core.Assets Core.Assets Assets ConnectionRouter->ctx:Core.Assets ctx:Engine Engine Engine ConnectionRouter->ctx:Engine Core.Tasks Core.Tasks Core.Tasks->ctx:Core.Assets Core.Translation.Extractor Core.Translation.Extractor ctx:Core Core Core Core.Translation.Extractor->ctx:Core Core.Translation.Extractor->ctx:Core.Design CrashReport.TestProbe CrashReport.TestProbe CrashReport.TestProbe->ctx:CrashReport CrashReporter CrashReporter CrashReporter->ctx:CrashReport Debugger Debugger ctx:Stride.Assets Stride.Assets Assets Debugger->ctx:Stride.Assets Debugger->ctx:Core.MicroThreading EffectCompilerServer EffectCompilerServer EffectCompilerServer->ctx:Stride.Assets GameStudio GameStudio ctx:Assets.Editor.Wpf Assets.Editor.Wpf Wpf GameStudio->ctx:Assets.Editor.Wpf ctx:Audio Audio Audio GameStudio->ctx:Audio ctx:BepuPhysics BepuPhysics BepuPhysics GameStudio->ctx:BepuPhysics GameStudio->ctx:CrashReport GameStudio.AutoTesting GameStudio.AutoTesting GameStudio.Avalonia.Desktop GameStudio.Avalonia.Desktop GameStudio.Avalonia.Desktop->ctx:CrashReport Launcher Launcher Launcher->ctx:CrashReport PackageInstall PackageInstall PublicApiCheck PublicApiCheck Shaders.CorpusCapture Shaders.CorpusCapture StorageTool StorageTool TemplateGenerator TemplateGenerator TemplateGenerator->ctx:Core TestRunner TestRunner VisualStudio.Commands VisualStudio.Commands VisualStudio.Commands->ctx:Core.Assets VisualStudio.Commands->ctx:Engine VisualStudio.PackageInstall VisualStudio.PackageInstall ThirdPersonPlatformer.Windows ThirdPersonPlatformer.Windows TopDownRPG.Windows TopDownRPG.Windows TouchInputs.Windows TouchInputs.Windows UIElementLink.Windows UIElementLink.Windows UIParticles.Windows UIParticles.Windows VRSandbox.Windows VRSandbox.Windows ctx:Stride.Assets->ctx:Core.Assets ctx:Stride.Assets->ctx:Engine ctx:Assets.Editor Assets.Editor Editor ctx:Assets.Editor->ctx:Assets.Models ctx:Assets.Editor.Wpf->ctx:Assets.Editor ctx:Core.Assets.Editor.Wpf Core.Assets.Editor.Wpf Wpf ctx:Assets.Editor.Wpf->ctx:Core.Assets.Editor.Wpf ctx:Assets.Editor.Wpf->ctx:Core.MicroThreading ctx:Editor.Wpf Editor.Wpf Wpf ctx:Assets.Editor.Wpf->ctx:Editor.Wpf ctx:Assets.Models->ctx:Stride.Assets ctx:Audio->ctx:Engine ctx:BepuPhysics->ctx:Core.MicroThreading ctx:BepuPhysics->ctx:Engine ctx:Core.Assets.Editor.Wpf->ctx:Core.Assets ctx:Core.Design->ctx:Core.MicroThreading ctx:Core.MicroThreading->ctx:Core ctx:Editor.Wpf->ctx:Stride.Assets ctx:Editor.Wpf->ctx:Assets.Models ctx:Editor.Wpf->ctx:Core.Assets.Editor.Wpf ctx:Editor.Wpf->ctx:Core.MicroThreading ctx:Engine->ctx:Core.MicroThreading __more__ +125 more contexts

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.

513 modules, with 2651 dependencies between them. 25 loops run through 161 of the modules, marked above the diagonal.

The table shows the 40 modules with the most connections; 473 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.Collections2 Core.Mathematics3 Core.Presentation.Collections4 Core.Diagnostics5 Core.Storage6 Core.Reflection7 Core.Serialization.Contents8 Core.Quantum9 Core.Serialization10 Core.IO11 Graphics12 Core.BuildEngine13 Core.Presentation.Services14 Core.Settings15 Core.Assets.Compiler16 Core.Assets.Analysis17 Core.Assets18 Core19 Core.Assets.Quantum20 Core.Presentation.ViewModels21 Games22 Shaders.Compiler23 Core.Presentation.Commands24 Shaders25 Core.Assets.Presentation.ViewModels26 Rendering.Compositing27 Assets.Editor.AssetEditors.GameEditor.Services28 Core.Assets.Editor.Services29 Rendering30 Core.Assets.Editor.ViewModels31 Engine32 Assets.Presentation.ViewModels33 BepuPhysics34 Editor.EditorGame.Game35 Editor.Thumbnails36 Assets.Presentation.AssetEditors.EntityHierarchyEditor.ViewModels37 Editor.Preview38 Assets.Editor.ViewModels39 Physics.Editor40 Assets.Editor.EditorGame
1 Core.Collections
2 Core.Mathematics
3 Core.Presentation.Collections
4 Core.Diagnostics1
5 Core.Storage54131
6 Core.Reflection319
7 Core.Serialization.Contents2217514
8 Core.Quantum119
9 Core.Serialization55144
10 Core.IO6172
11 Graphics422
12 Core.BuildEngine22222157
13 Core.Presentation.Services2
14 Core.Settings21236
15 Core.Assets.Compiler31312176171
16 Core.Assets.Analysis13118552413
17 Core.Assets12142572040133242
18 Core311
19 Core.Assets.Quantum51349133
20 Core.Presentation.ViewModels21
21 Games28831514
22 Shaders.Compiler1561141243
23 Core.Presentation.Commands4
24 Shaders442310
25 Core.Assets.Presentation.ViewModels1152108222034147
26 Rendering.Compositing1863449445
27 Assets.Editor.AssetEditors.GameEditor.Services51131
28 Core.Assets.Editor.Services21213411561551166512012
29 Rendering13472023133222312715
30 Core.Assets.Editor.ViewModels271223911731194433125716
31 Engine233010179112213226
32 Assets.Presentation.ViewModels27130111881265354
33 BepuPhysics141123
34 Editor.EditorGame.Game311113
35 Editor.Thumbnails281222369181412642157318
36 Assets.Presentation.AssetEditors.EntityHierarchyEditor.ViewModels33211837731113
37 Editor.Preview2411226311434141
38 Assets.Editor.ViewModels9821511331186121211123212
39 Physics.Editor18131161161113119251
40 Assets.Editor.EditorGame911224145231611422362110236
Uses a module listed above itPart of a loopThe module itself
1 Core.Collections2 Core.Mathematics3 Core.Presentation.Collections4 Core.Diagnostics5 Core.Storage6 Core.Reflection7 Core.Serialization.Contents8 Core.Quantum9 Core.Serialization10 Core.IO11 Graphics12 Core.BuildEngine13 Core.Presentation.Services14 Core.Settings15 Core.Assets.Compiler16 Core.Assets.Analysis17 Core.Assets18 Core19 Core.Assets.Quantum20 Core.Presentation.ViewModels21 Games22 Shaders.Compiler23 Core.Presentation.Commands24 Shaders25 Core.Assets.Presentation.ViewModels26 Rendering.Compositing27 Assets.Editor.AssetEditors.GameEditor.Services28 Core.Assets.Editor.Services29 Rendering30 Core.Assets.Editor.ViewModels31 Engine32 Assets.Presentation.ViewModels33 BepuPhysics34 Editor.EditorGame.Game35 Editor.Thumbnails36 Assets.Presentation.AssetEditors.EntityHierarchyEditor.ViewModels37 Editor.Preview38 Assets.Editor.ViewModels39 Physics.Editor40 Assets.Editor.EditorGameCore.Collections1Core.Mathematics2Core.Presentation.Collections3Core.Diagnostics4Core.Storage5Core.Reflection6Core.Serialization.Contents7Core.Quantum8Core.Serialization9Core.IO10Graphics11Core.BuildEngine12Core.Presentation.Services13Core.Settings14Core.Assets.Compiler15Core.Assets.Analysis16Core.Assets17Core18Core.Assets.Quantum19Core.Presentation.ViewModels20Games21Shaders.Compiler22Core.Presentation.Commands23Shaders24Core.Assets.Presentation.ViewModels25Rendering.Compositing26Assets.Editor.AssetEditors.GameEditor.Services27Core.Assets.Editor.Services28Rendering29Core.Assets.Editor.ViewModels30Engine31Assets.Presentation.ViewModels32BepuPhysics33Editor.EditorGame.Game34Editor.Thumbnails35Assets.Presentation.AssetEditors.EntityHierarchyEditor.ViewModels36Editor.Preview37Assets.Editor.ViewModels38Physics.Editor39Assets.Editor.EditorGame40154131319221751411955144617242222222157221236313121761711311855241312142572040133242311513491332128831514156114124344423101152108222034147186344944551131212134115615511665120121347202313322231271527122391173119443312571623301017911221322627130111881265354141123311113281222369181412642157318332118377311132411226311434141982151133118612121112321218131161161113119251911224145231611422362110236+473 more modules (most-connected shown)

At a glance — Code Health · 51% · Adequate · gated by D18 ·

At a glance — Architecture · 66% · Adequate · gated by AX2 ·

At a glance — Maturity · 73% · Adequate · gated by D16 ·

At a glance — Readiness · 73% · Strong ·

At a glance — Security · 48% · Weak · gated by D29, D36, C1 ·

At a glance — Performance · 60% · Adequate ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A05:2025 — Injection489High / Critical
A03:2025 — Software Supply Chain Failures50Medium

Roadmap

Top priorities: Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps; Resolve the 103 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (9), REDACTED (8), REDACTED (6); Resolve the 35 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED.

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

Do thisHelpsEffortDimension
Resolve the 40 WriteOnlyPrivateField finding(s) in Explicit Debt — start with PlayerScript.cs (2), UIBatch.cs (2), BasicTest.cs (2).+3.6 ptsMediumExplicit Debt
Resolve the 7 Shell project finding(s) in Solution Shape — start with MaterialShader.Game.csproj, VFXPackage.csproj, PrototypingBlocks.csproj.+3.0 ptsLowSolution Shape
Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with Stride.PackageInstall.csproj.+2.9 ptsLowPlatform End-of-Life
Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED (2), REDACTED.+1.7 ptsLowStatic Analysis (SAST)
Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.+4.1 ptsMediumData Protection
Resolve the 35 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED.+3.6 ptsMediumSupply-chain Provenance & Signing
Resolve the 16 FileScopedPragmaDisable finding(s) in Explicit Debt — start with SphericalHarmonics.cs, DataSerializer.BinaryFormatVersion.cs, DataSerializer.cs.+3.6 ptsMediumExplicit Debt
Resolve the 2 REDACTED finding(s) charged to Static Analysis (SAST) — the other 332 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once.+1.7 ptsLowStatic Analysis (SAST)

File quality

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

FileScoreBandWorst signal
sources/editor/Stride.Core.Assets.Editor/Components/CopyPasteProcessors/AssetPropertyPasteProcessor.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/engine/Stride.Games/GraphicsDeviceManager.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/editor/Stride.GameStudio/Program.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/engine/Stride.Graphics.Regression/GameTestBase.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/assets/Stride.Core.Assets/Package.cs1.0SlopExplicit Debt: EmptyCatchBlock
REDACTED1.0SlopExplicit Debt: EmptyCatchBlock
sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/core/Stride.Core.Serialization/Serialization/Contents/ContentManager.cs1.0SlopExplicit Debt: EmptyCatchBlock
sources/assets/Stride.AssetCompiler/PackageBuilder.cs1.1SlopExplicit Debt: EmptyCatchBlock
sources/editor/Stride.Assets.Editor/StrideEditorPlugin.cs1.3SlopExplicit Debt: EmptyCatchBlock
sources/editor/Stride.GameStudio/Plugin/StrideEditorPlugin.cs1.3SlopExplicit Debt: EmptyCatchBlock
sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs1.3SlopExplicit Debt: EmptyCatchBlock
sources/editor/Stride.Assets.Editor.Wpf/AssemblyReloading/GameStudioAssemblyReloader.cs1.4SlopExplicit Debt: EmptyCatchBlock
samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs1.5SlopExplicit Debt: WriteOnlyPrivateField
sources/launcher/Stride.Launcher/Services/SelfUpdater.cs1.5SlopExplicit Debt: EmptyCatchBlock
sources/launcher/Stride.Launcher/ViewModels/MainViewModel.cs1.5SlopExplicit Debt: EmptyCatchBlock
sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs1.6SlopExplicit Debt: EmptyCatchBlock
sources/core/Stride.Core.Design.Tests/TestUPath.cs1.8SlopTest Quality: No assertions (empty test): TestUPathHasDrive

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

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

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

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

Could not be resolved — 13

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

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

What we checked — 67 dimensions across the health lenses
D1D2D3D5D6D10D11D13D14D15D16D17D18D19D20D24D26D27D29D30D34D35D36D43D44AX10AX2AX3AX5AX6AX8C1C4GD1IC1M1M2M3M4P1P3P4P6PF3S1X1X12X13X15X16X18X19X2X20X21X22X23X24X25X26X27X28X29X3X30X4X5

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, 5657 of 5674 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 01a1cd9a-e04d-7c7a-b8b7-30d480dbd521.

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

Run transparency — what happened this run

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

  • D4 Code Duplication — not measured this run — 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. Code Duplication couldn't be assessed within its 6-minute budget on a solution this large — not included in this run.
  • 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 analyzer environment could not build/run the test suite (a target framework / SDK band or targeting pack the analyzer image doesn't carry). This is OUR limitation, not a defect in the repo — coverage is excluded from the score rather than counted as a near-zero. We track the analyzer-image gap so it can be closed; in the meantime, your test projects already reference a coverage collector, but no CI step we found runs the tests with it, so there is no report to hand us — run them with `--collect:"XPlat Code Coverage"` and commit (or publish into the working tree) the coverage.cobertura.xml it writes, and real coverage will be read. You can widen what we reach: optional: your test projects already reference a coverage collector, but no CI step we found runs the tests with it, so there is no report to hand us — run them with `--collect:"XPlat Code Coverage"` and commit (or publish into the working tree) the coverage.cobertura.xml it writes, and the real number is read on the next scan.
  • D11 Test Reliability — 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. Test reliability is scored on the 1 tier(s) that produced comparable repeat runs; 1 tier(s) did not, and are excluded from the measurement rather than counted (unit: measured (0 flaky); other: not included — too large to re-run within its budget). This is OUR limitation, not a defect in the repository.
  • D12 Dependency Hygiene — 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. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: error: The imported file "$(MSBuildExtensionsPath32)/Microsoft/VisualStudio/v$(VisualStudioVersion)/CodeSharing/Microsoft.CodeSharing.Common.Default.props" does not exist and appears to be part of a Visual Studio component. This file may require MSBuild.exe in order to be imported successfully, and ….
  • D17 Explicit Debt — 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 C# workspace loaded this repository's projects but reported a load failure, and the dead-code reference search is unreliable over a graph that did not load cleanly, so it was skipped. The other debt markers on this row were read; dead symbols were not, and their absence from the score is not a finding that the code has none. First load diagnostic: Failure: Msbuild failed when processing the file 'sources/core/Stride.Core.CompilerServices/Stride.Core.CompilerServices.csproj' with message: The URL of repository remote 'origin' is invalid: ''.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D23 Boundary Type-Coupling — 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. Large codebase (667,283 production LoC in the .NET projects) with no declared bounded contexts — cross-boundary type coupling is unassessed Bounded contexts cannot be inferred from a codebase that is not physically organised by them (D-321), so with none declared there are no boundaries for the coupling pass to measure across. You can widen what we reach: name this codebase's bounded contexts (≥2 module groups, e.g. per subsystem) so cross-boundary type coupling can be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
  • D28 Secrets (history) — 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. `gitleaks` TIMED OUT after 113.9s against a 113.9s budget, so we killed its process tree. The budget is ours; the work may simply be larger than it allows. Nothing about this repository is asserted by the absence of a result; the budget is ours to raise, and raising it is our backlog item, not an action for this repository's owner.
  • 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 solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan. 1 of 2 declared ecosystem(s) (nuget packages.config) WERE scanned and every vulnerability they reported is included in this result; nuget was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that nuget is free of known-vulnerable dependencies.
  • D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `REDACTED`, `sources/assets/Stride.Core.Assets/Compiler/AssetCompilationContext.cs`, `sources/assets/Stride.Core.Assets/Compiler/ICompilationContext.cs`, `sources/assets/Stride.Core.Assets/IProjectAsset.cs`, `sources/assets/Stride.Core.Assets/PackageSession.cs`, … (+282 more) 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.
  • AX2 Stateful singletons — 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. 91 further occurrence(s) are not listed individually; the score already reflects all 131.
  • AXB1 Runtime evidence locked — no reproducible boot — 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. Subject: 1 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
  • ED5 Idempotency — 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 a handler's ENTRY METHODS to decide whether its mutation is safe to re-run. On these types it walked none of them, yet the same write oracle finds a persistent write in the type — so the mutation is there and the limit is in our entry-point recognition, not in the repository. Known shapes: a handler contract method implemented as an EXPLICIT INTERFACE IMPLEMENTATION, and a STATIC handler method (the Wolverine default).
  • GD1 Unfinished & placeholder code — 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. 181 further occurrence(s) are not listed individually; the score already reflects all 221.
  • 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. 1082 further occurrence(s) are not listed individually; the score already reflects all 1122.
  • 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.
  • P10 Library API & versioning — 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. Library API & versioning could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository. Engine failure: ArgumentException: SyntaxTree is not part of the compilation (Parameter 'syntaxTree').
  • P11 BDD / executable specs — 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. BDD / executable specs could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository. Engine failure: ArgumentException: SyntaxTree is not part of the compilation (Parameter 'syntaxTree').
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • P7 Outbound HTTP resilience — 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. Outbound HTTP resilience could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository. Engine failure: ArgumentException: SyntaxTree is not part of the compilation (Parameter 'syntaxTree').
  • P8 Schema migrations — 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. Schema migrations could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository. Engine failure: ArgumentException: SyntaxTree is not part of the compilation (Parameter 'syntaxTree').
  • 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.
  • X1 Async correctness — 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. 108 further occurrence(s) are not listed individually; the score already reflects all 148.
  • X18 Disposal-pattern correctness — 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. 75 further occurrence(s) are not listed individually; the score already reflects all 115.
  • X2 Cancellation propagation — 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. 519 further occurrence(s) are not listed individually; the score already reflects all 559.
  • X3 Exception handling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 192 further occurrence(s) are not listed individually; the score already reflects all 232.
  • X5 Nullable reference types — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 10 further occurrence(s) are not listed individually; the score already reflects all 50.
  • X7 Silent fallback defaults — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 34 further occurrence(s) are not listed individually; the score already reflects all 74.

Repo exclusion declarations: 1 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.
  • D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • 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.
  • 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.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • 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 Complexity5.7 / 10Adequate✓ 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 5.7 / 10 · rule-coverage 100% · ceiling Prevented

450 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition at 133. A further 47 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 SDLKeys.MapKey at 159 — they are counted neither in the figure above nor in this dimension's score. 17 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: sources/engine/Stride.Input/SDL/KeyboardSDL.cs (SDLKeys.MapKey at 159), sources/engine/Stride.Graphics/Vulkan/VulkanConvertExtensions.cs (VulkanConvertExtensions.TryConvertPixelFormat at 107), sources/shaders/Stride.Shaders.Parsers/Core/IntrinsicsParameters.cs (ParameterType.ParameterType.ctor at 44), sources/engine/Stride.Rendering/Rendering/Materials/ComputeColors/ComputeBinaryBase.cs (ComputeBinaryBase.GetCorrespondingShaderSourceName at 33), sources/engine/Stride.Graphics/SDL/Window.cs (Window.ProcessEvent at 29), and 12 more not listed here. 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.

Vector4Editor.UpdateValueFromComponent (cyclomatic 26) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector4Editor.cs:92
Vector3Editor.UpdateValueFromComponent (cyclomatic 21) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector3Editor.cs:79
DateTimeEditor.UpdateValueFromComponent (cyclomatic 19) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/DateTimeEditor.cs:129
Vector2Editor.UpdateValueFromComponent (cyclomatic 16) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector2Editor.cs:68
IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition (cyclomatic 133)sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicTemplateExpander.cs:50

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

What to do

  1. Bring the 14 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition (cyclomatic 133), ShaderCompiler.Compile (cyclomatic 121), AccessorChainExpression.CompileHelper (cyclomatic 119). — 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 14 together lifts Cyclomatic Complexity from 5.7 to about 6.5/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 Complexity5.1 / 10Adequate✓ 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 5.1 / 10 · rule-coverage 100% · ceiling Prevented

898 method(s) exceeded the cognitive complexity threshold of 15; the worst was AccessorChainExpression.CompileHelper at 246.

Vector4Editor.UpdateValueFromComponent (cognitive 50) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector4Editor.cs:92
Vector3Editor.UpdateValueFromComponent (cognitive 39) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector3Editor.cs:79
Vector2Editor.UpdateValueFromComponent (cognitive 28) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector2Editor.cs:68
DateTimeEditor.UpdateValueFromComponent (cognitive 24) · ×2sources/presentation/Stride.Core.Presentation.Avalonia/Controls/DateTimeEditor.cs:129
StrideEditorPlugin.CollectBuildCache (cognitive 23) · ×2sources/editor/Stride.Assets.Editor/StrideEditorPlugin.cs:222

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

What to do

  1. Bring the 9 bodies over 120 down to 120 or less in Cognitive Complexity — start with AccessorChainExpression.CompileHelper (cognitive 246), AssetPropertyPasteProcessor.Paste (cognitive 238), EffectCompiler.Compile (cognitive 205). — 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 9 together lifts Cognitive Complexity from 5.1 to about 5.8/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 Classes8.9 / 10Strong✓ Tool-verified

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

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

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

198 god class(es) detected.

TooManyMethods: IntrinsicImplementations · ×90sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicImplementations.cs
MethodTooLong: AccessorChainExpression.CompileHelper · ×56sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:1102
FileTooLong: Stride.Core.Mathematics/Matrix.cs · ×39sources/core/Stride.Core.Mathematics/Matrix.cs
ClassTooLong: Predicates · ×13sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs

What to do

  1. Resolve the 90 TooManyMethods finding(s) in God Classes — start with MainViewModel.cs (2), IntrinsicImplementations.cs, Matrix.cs. — One of this dimension's main actionable groups (90 warning-level).
  2. Resolve the 56 MethodTooLong finding(s) in God Classes — start with Predicates.cs (3), Shader.cs (2), DebuggingViewModel.cs (2). — One of this dimension's main actionable groups (56 warning-level).
  3. Resolve the 39 FileTooLong finding(s) in God Classes — start with Matrix.cs, MeshConverter.cs, Expression.cs. — One of this dimension's main actionable groups (39 warning-level).

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

D5 · Coupling9.3 / 10Adequategated by 2 critical findings✓ 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 9.3 / 10 · rule-coverage 100% · ceiling Prevented

247 projects, 0 dependency cycle(s), 12 unstable depended-on project(s).

Layer violation: Domain → Web · ×2sources/editor/Stride.Core.Assets.Editor/Stride.Core.Assets.Editor.csproj:27
Off the main sequence: Stride.Assets.Templates · ×7sources/editor/Stride.Assets.Templates/Stride.Assets.Templates.csproj:1
Unstable project Stride.Shaders.Generatorssources/shaders/Stride.Shaders.Generators/Stride.Shaders.Generators.csproj:1
Unstable project Stride.Editor.Wpfsources/editor/Stride.Editor.Wpf/Stride.Editor.Wpf.csproj:1
Unstable project Stride.Audio.Editor.Avaloniasources/plugins/Audio/Stride.Audio.Editor.Avalonia/Stride.Audio.Editor.Avalonia.csproj:1

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

What to do

  1. Resolve the 2 Layer violation finding(s) in Coupling — start with Stride.Core.Assets.Editor.csproj, Stride.Core.Assets.Editor.Avalonia.csproj. — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 7 Off the main sequence finding(s) in Coupling — start with Stride.Assets.Templates.csproj, Stride.Core.MicroThreading.csproj, Stride.Core.csproj. — One of this dimension's main actionable groups (7 warning-level).
  3. Resolve the 1 Unstable project Stride.Shaders.Generators finding(s) in Coupling — start with Stride.Shaders.Generators.csproj. — One of this dimension's main actionable groups (1 warning-level).

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

D6 · Cohesion (LCOM4)9.9 / 10Stronggated by 17 serious findings✓ 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

17 of 1634 classes have LCOM4 above 3.

Low cohesion: EditorDialogService (LCOM4 12) · ×17sources/editor/Stride.Core.Assets.Editor.Wpf/View/EditorDialogService.cs:38

What to do

  1. Resolve the 17 Low cohesion finding(s) in Cohesion (LCOM4) — start with EditorDialogService.cs, Command.cs, SessionObjectPropertiesViewModel.cs. — One of this dimension's main actionable groups (17 warning-level).

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

D10 · Test Quality9.5 / 10Adequategated by 27 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.5 / 10 · rule-coverage 100% · ceiling Prevented

153 skipped (70 with a documented reason), 46 zero-assertion, 12 excluded from compilation in 5 file(s), 2 synchronised by a fixed sleep, 3 whose failure is swallowed by a catch-all, no mocking-framework packages referenced (hand-written doubles or no mocking) across 5825 tests.

No assertions (empty test): Finalizer_DeletesFile · ×20sources/core/Stride.Core.Tests/IO/TemporaryFileTests.cs:60
Tests excluded from compilation: sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDeferred.cs · ×5sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDeferred.cs:151
Assertions commented out: TestUPathMakeRelative · ×2sources/core/Stride.Core.Design.Tests/TestUPath.cs:362
Skipped test: TestDirectory · ×83sources/core/Stride.Core.Tests/TestWatcher.cs:17
No assertions: EveryPathReturnsCompiles · ×24sources/shaders/Stride.Shaders.Tests/CompileMessageTests.cs:74

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

What to do

  1. Resolve the 20 No assertions (empty test) finding(s) in Test Quality — start with TestUPath.cs (19), TemporaryFileTests.cs. — One of this dimension's main actionable groups (20 issue-level).
  2. Resolve the 5 Tests excluded from compilation finding(s) in Test Quality — start with TestCubemapDeferred.cs, TestCubemapDisplay.cs, TestCubemapRendering.cs. — One of this dimension's main actionable groups (5 issue-level).
  3. Resolve the 2 Assertions commented out finding(s) in Test Quality — start with TestUPath.cs, TestAssetReferenceCollection.cs. — One of this dimension's main actionable groups (2 issue-level).

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

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

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

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

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

Only 1 of 2 test tiers measured — the score covers those alone. 0 flaky across 1 measured tier(s). unit: measured (0 flaky); other: not included — too large to re-run within its budget.

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

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

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

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

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

0 of 171 packages use a banned license. ★ DEPTH: every package graded here is one this repository's MSBuild projects declare as a direct `PackageReference` (131 declared), and nothing beyond them was reached — this is the DECLARATION-SITE set, NOT the transitive closure. .NET has no lockfile a checkout is guaranteed to carry and this pass grades an unrestored tree, so a banned licence that only a direct dependency's OWN dependencies pull in is outside this verdict, exactly as the JVM arm's declaration-site verdict is.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots9.8 / 10Stronggated by 96 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.8 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs (28×119=3332); sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs (25×81=2025); sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs (22×50=1100) Repeated repair below the complexity floor: sources/engine/Stride.Games/SDL/GameWindowSDL.cs (4 of 4 changes were fixes); sources/engine/Stride.Input/InputManager.cs (3 of 4 changes were fixes); sources/editor/Stride.Editor.Avalonia/Engine/AvaloniaInputBridge.cs (3 of 3 changes were fixes)

Hotspot: sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs · ×91sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:1102
Repeated repair: sources/engine/Stride.Games/SDL/GameWindowSDL.cs · ×5sources/engine/Stride.Games/SDL/GameWindowSDL.cs:59

What to do

  1. Resolve the 91 Hotspot finding(s) in Churn × Complexity Hotspots — start with Program.cs (3), Expression.cs, ShaderMixer.cs. — One of this dimension's main actionable groups (91 warning-level).
  2. Resolve the 5 Repeated repair finding(s) in Churn × Complexity Hotspots — start with GameWindowSDL.cs, InputManager.cs, AvaloniaInputBridge.cs. — One of this dimension's main actionable groups (5 warning-level).

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

D16 · Bus Factor3.3 / 10Weak✓ 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 3.3 / 10 · rule-coverage 100% · ceiling Documented

61 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs. Counted over 91 of the 142 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

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

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 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 Debt8.1 / 10Adequategated by 264 critical findings✓ 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 8.1 / 10 · rule-coverage 100% · ceiling Prevented

2389 deducted debt markers + unmeasured dead symbols across 667283 LoC in the .NET projects (1.0/KLoC) → score 8.1. Dead code not measured: the solution did not load cleanly, so the reference search was skipped.

EmptyCatchBlock · ×202sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:265
WriteOnlyPrivateField · ×40samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs:44
FileScopedPragmaDisable · ×16sources/core/Stride.Core.Mathematics/SphericalHarmonics.cs:7
NoWarnInCsproj · ×2sources/assets/Stride.Core.Assets.Tests/Stride.Core.Assets.Tests.csproj:12
FileScopedPragmaDisable repeated across 34 filessources/core/Stride.Core.IO/FileEvent.cs:3

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

What to do

  1. Resolve the 202 EmptyCatchBlock finding(s) in Explicit Debt — start with AssetPropertyPasteProcessor.cs (32), TypeConverterHelper.cs (10), StrideEditorPlugin.cs (10). — One of this dimension's main actionable groups (202 issue-level).
  2. Resolve the 40 WriteOnlyPrivateField finding(s) in Explicit Debt — start with PlayerScript.cs (2), UIBatch.cs (2), BasicTest.cs (2). — One of this dimension's main actionable groups (40 issue-level).
  3. Resolve the 16 FileScopedPragmaDisable finding(s) in Explicit Debt — start with SphericalHarmonics.cs, DataSerializer.BinaryFormatVersion.cs, DataSerializer.cs. — One of this dimension's main actionable groups (16 issue-level).

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

D18 · Solution Shape3.0 / 10Weak✓ Tool-verified

What it measures: Whether the solution is laid out in a sensible, conventional structure.

Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.

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

247 projects, 7568 source files, 827253 hand-written lines of code (667283 production / 159970 test — the split is derived per file: test is what its project, its own path, or a compile-guarded region marks as test, and a file carrying no test signal counts as production), plus 131963 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 459 inter-project edges (build failed). Measured across 5 solutions loaded as one workspace: `Stride.slnx`, `sources/launcher/Stride.Launcher.slnx`, `samples/StrideSamples.slnx`, `sources/core/Stride.AssemblyProcessor.slnx`, `sources/tools/Stride.VisualStudio.slnx`.

Build failed
Shell project: MaterialShader.Game · ×7samples/Graphics/MaterialShader/MaterialShader.Game/MaterialShader.Game.csproj
Thin analysable surface across projects: Stride.FontCompilersources/engine/Stride.FontCompiler/Stride.FontCompiler.csproj

What to do

  1. Resolve the 7 Shell project finding(s) in Solution Shape — start with MaterialShader.Game.csproj, VFXPackage.csproj, PrototypingBlocks.csproj. — One of this dimension's main actionable groups (7 recommendation-level).
  2. Resolve the 1 Build failed finding(s) in Solution Shape. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 Thin analysable surface across projects finding(s) in Solution Shape — start with Stride.FontCompiler.csproj. — One of this dimension's main actionable groups (1 recommendation-level).

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

D19 · Documentation Quality6.7 / 10Adequate✓ Tool-verified

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

1 of 2 documentation facets pass in full; short on: F2 example. 70 document(s) read across 119 unit(s).

Documentation: no build, run or usage example · ×2sources/editor/Stride.GameStudio.Avalonia.Desktop/README.md:1

What to do

  1. Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md (2). — One of this dimension's main actionable groups (2 recommendation-level).

Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.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 found

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality. — 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.

D24 · Comment Value6.9 6.8 / 10Adequate✓ 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 6.8 / 10 · rule-coverage 98% · ceiling Documented

576 of 18737 judged comments only repeat the code they sit on (3.1 %). 418 comment(s) in another language or script were not judged.

redundant comment · ×508sources/assets/Stride.AssetCompiler/BundlePacker.cs:433
doc comments repeat the names · ×89sources/assets/Stride.AssetCompiler/BundlePacker.cs:28

What to do

  1. Resolve the 508 redundant comment finding(s) in Comment Value — start with AssemblyInfo.cs (91), Package.cs (4), PropertyContainer.cs (4). — One of this dimension's main actionable groups (508 recommendation-level).

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

D26 · Project Cohesion8.7 / 10Strong✓ 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 8.7 / 10 · rule-coverage 100% · ceiling Documented

16 of 245 projects flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion · ×16sources/engine/Stride.Graphics/Stride.Graphics.csproj:1
Split Stride.Coresources/core/Stride.Core/Stride.Core.csproj:1
Split Stride.Graphicssources/engine/Stride.Graphics/Stride.Graphics.csproj:1
Split Stride.Renderingsources/engine/Stride.Rendering/Stride.Rendering.csproj:1
Split Stride.Core.Designsources/core/Stride.Core.Design/Stride.Core.Design.csproj:1

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

What to do

  1. Resolve the 16 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with Stride.Graphics.csproj, Stride.Rendering.csproj, Stride.Shaders.Parsers.csproj. — One of this dimension's main actionable groups (16 recommendation-level).
  2. Resolve the 1 Split Stride.Core finding(s) in Project Cohesion — start with Stride.Core.csproj. — One of this dimension's main actionable groups (1 recommendation-level).
  3. Resolve the 1 Split Stride.Graphics finding(s) in Project Cohesion — start with Stride.Graphics.csproj. — 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.

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

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

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

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

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

69 % of calls cross a namespace and 5 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality expected.

Pass-through layer · ×7sources/core/Stride.Core/Collections/ReadOnlySet.cs:10

✓ On the Gold path — maintain.

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

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

489 finding(s): 0 critical, 465 high, 24 medium, 0 low. 332 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 398 file(s) — `REDACTED` (lines 3–4, line 114), `deps/Celt/include/opus.h`, `deps/Celt/include/opus_custom.h` (line 121, line 127, line 138, …), `deps/Celt/include/opus_defines.h` (line 736, line 746), `deps/Celt/include/opus_multistream.h` (line 203, line 208, line 257, …), … (+393 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. In 154 of those file(s) — `REDACTED`, `sources/assets/Stride.Core.Assets.Tests/TestEditorToolkitInference.cs`, `sources/core/Stride.Core.CompilerServices/Common/EquatableArray.cs`, `sources/core/Stride.Core.MicroThreading/Scheduler.cs`, `sources/core/Stride.Core/Serialization/ContentRefOutOfSyncException.cs`, … (+149 more) — the break is a C# primary constructor, which semgrep's grammar cannot parse and which hides the type from every rule scoped to it; those files were re-scanned from a shadow copy with the constructor's parameter list blanked (line and column preserving), which restores the type to the rules, and 0 additional row(s) came from that pass. Only the header's own parameter list is unread in them. In 36 of those file(s) — `sources/core/Stride.Core.CompilerServices.Tests/CompilerUtils.cs`, `sources/core/Stride.Core.Design/TypeConverters/Half2Converter.cs`, `sources/core/Stride.Core.Design/TypeConverters/Half3Converter.cs`, `sources/core/Stride.Core.Design/TypeConverters/Half4Converter.cs`, `sources/core/Stride.Core.Tests/TestProfiler.cs`, … (+31 more) — the break is at a TYPE DECLARATION (a C# primary constructor semgrep's grammar cannot parse), so the loss is wider than the named lines: rules scoped to that type see no type to scope to and are blind over its whole body, while rules matching statements keep working there. Absence of a type-scoped finding in those types is not evidence of anything. Separately, one or more rules could not re-parse an embedded snippet in 60 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 103 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (9), REDACTED (8), REDACTED (6). — One of this dimension's main actionable groups (103 issue-level).
  2. Resolve the 2 REDACTED finding(s) charged to Static Analysis (SAST) — the other 332 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 (334 issue-level, 2 of them charged here).
  3. Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (8 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 (nuget packages.config). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (nuget packages.config), and the findings above are real and complete for them. nuget was not scanned (nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan), 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 Freshness9.6 / 10Exemplary✓ Tool-verified

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

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

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

4 of 91 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is sources/shared/ConsoleProgram.cs. Counted over 91 of the 142 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×4sources/shared/ConsoleProgram.cs:1
Orphaned files with no living knowledge

✓ On the Gold path — maintain.

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

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

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

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

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

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

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D36 · Supply-chain Provenance & Signing2.5 / 10Weak✓ Tool-verified

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

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

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

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

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

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

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life6.0 / 10Adequate✓ 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 6.0 / 10 · rule-coverage 100% · ceiling Documented

1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 196 platform declaration(s) and 0 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.

End-of-life runtime: .NET Framework net461sources/tools/Stride.PackageInstall/Stride.PackageInstall.csproj:4

What to do

  1. Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with Stride.PackageInstall.csproj. — One of this dimension's main actionable groups (1 warning-level).

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

Frontend & cross-cutting dimensions

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

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

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

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

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

What to do

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

Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.

Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.

  • `FileSystemProvider` is not registered, but `VirtualFileSystem` creates it and keeps it in the static `ApplicationTemporary`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (localBasePath; e.g. `localBasePath` at line 42). — sources/core/Stride.Core.IO/FileSystemProvider.cs:9
  • `CloneContext` is not registered, but `EntityCloner` creates it and keeps it in the static `cloneContext`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (MappedObjects, SerializedObjects, ClonedObjects, SharedObjects, EntitySerializerSelector; e.g. `MappedObjects` at line 183). — sources/engine/Stride.Engine/Engine/Design/EntityCloner.cs:178
  • `SerializerSelector` is not registered, but `EntityCloner` creates it and keeps it in the static `cloneSerializerSelector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (invalidated; e.g. `invalidated` at line 217). — sources/core/Stride.Core/Serialization/SerializerSelector.cs:13
  • `GraphicsAdapter` is not registered, but `GraphicsAdapterFactory` creates it and keeps it in the static `staticCollector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (unsupportedReason, unsupportedReasonChecked, debugPhysicalDevice; e.g. `unsupportedReason` at line 32). — sources/engine/Stride.Graphics/GraphicsAdapter.cs:16
  • `AnonymousDisposable` is not registered, but `GraphicsAdapterFactory` creates it and keeps it in the static `staticCollector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (onDispose; e.g. `onDispose` at line 35). — sources/core/Stride.Core/AnonymousDisposable.cs:10
  • `DataContentSerializerHelper` is not registered, but `ProceduralModelDescriptorContentSerializer` creates it and keeps it in the static `DataSerializerHelper`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (dataSerializer; e.g. `dataSerializer` at line 37). — sources/core/Stride.Core.Serialization/Serialization/Contents/DataContentSerializer.cs:23
  • `COpenVRContext` is not registered, but `OpenVR` creates it and keeps it in the static `_OpenVRInternal_ModuleContext`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_pVRSystem, m_pVRChaperone, m_pVRChaperoneSetup, m_pVRCompositor, m_pVRHeadsetView, m_pVROverlay; e.g. `m_pVRSystem` at line 7817). — sources/engine/Stride.VirtualReality/OpenVR/openvr_api.cs:7811
  • `Token` is not registered, but `FixedTokenSource` creates it and keeps it in the static `EOF`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (line, column; e.g. `line` at line 83). — sources/shaders/Stride.Shaders.Parsers/CppNet/Token.cs:30
  • `Macro` is not registered, but `Preprocessor` creates it and keeps it in the static `__LINE__`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (source, args, variadic, tokens; e.g. `source` at line 64). — sources/shaders/Stride.Shaders.Parsers/CppNet/Macro.cs:33
  • `InstructionInfo` keeps one instance of itself in the static `Instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (Info, OrderGroup; e.g. `Info` at line 35). — sources/shaders/Stride.Shaders.Spirv/Generated/InstructionInfo.gen.cs:4
  • `YamlSerializer` keeps one instance of itself in the static `Default`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (globalSerializer; e.g. `globalSerializer` at line 62). — sources/core/Stride.Core.Design/Yaml/YamlSerializer.cs:14
  • `TranslationManagerImpl` is not registered, but `TranslationManager` creates it and keeps it in the static `Lazy`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (translationProviders; e.g. `translationProviders` at line 110). — sources/core/Stride.Core.Translation/TranslationManager.cs:22
  • `Node` is not registered, but `Enumerator` creates it and keeps it in the static `dummyNode`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (item, left, right, isRed; e.g. `item` at line 1567). — sources/core/Stride.Core.Yaml/SortedDictionary.cs:1546
  • `SerializerSelector` is not registered, but `AssetCloner` creates it and keeps it in the static `ClonerSelector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (invalidated; e.g. `invalidated` at line 217). — sources/core/Stride.Core/Serialization/SerializerSelector.cs:13
  • `FileVersionManager` keeps one instance of itself in the static `instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (requestsToProcess, isDisposing, isDisposed; e.g. `requestsToProcess` at line 166). — sources/assets/Stride.Core.Assets/FileVersionManager.cs:12
  • `SettingsContainer` is not registered, but `PackageUserSettings` creates it and keeps it in the static `SettingsContainer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (currentProfile; e.g. `currentProfile` at line 395). — sources/core/Stride.Core.Design/Settings/SettingsContainer.cs:18
  • `AssetCompilerRegistry` is not registered, but `BuildDependencyManager` creates it and keeps it in the static `AssetCompilerRegistry`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (typeToCompiler, attributeCompilers, declaredCompilers, registeredAssemblies, assembliesChanged; e.g. `typeToCompiler` at line 89). — sources/assets/Stride.Core.Assets/Compiler/AssetCompilerRegistry.cs:15
  • `SerializerSettings` is not registered, but `DynamicYaml` creates it and keeps it in the static `DefaultSettings`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (preferredIndent, _namingConvention, specialCollectionMember, attributeRegistry, objectSerializerBackend, objectFactory; e.g. `preferredIndent` at line 127). — sources/core/Stride.Core.Yaml/Serialization/SerializerSettings.cs:58
  • `LinkPreviewAdorner` is not registered, but `LinkPreviewBehavior` creates it and keeps it in the static `LinkPreview`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (start_, end_; e.g. `start_` at line 50). — sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/LinkPreviewBehavior.cs:22
  • `WindowInfo` is not registered, but `WindowManager` creates it and keeps it in the static `MainWindow`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (hwnd; e.g. `hwnd` at line 164). — sources/presentation/Stride.Core.Presentation.Wpf/Windows/WindowInfo.cs:14
  • `EffectInstance` is not registered, but `FontPreview` creates it and keeps it in the static `sdfFontEffect`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (RootSignature, permutationCounter, DescriptorReflection, parameterUpdater, descriptorSets; e.g. `RootSignature` at line 65). — sources/engine/Stride.Graphics/Rendering/EffectInstance.cs:21
  • `DebugAssetNodeCollectionViewModel` is not registered, but `EditorDebugService` creates it and keeps it in the static `debugPages`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (selectedNode; e.g. `selectedNode` at line 48). — sources/editor/Stride.Core.Assets.Editor/ViewModels/DebugAssetNodeCollectionViewModel.cs:17
  • `SettingsContainer` is not registered, but `InternalSettings` creates it and keeps it in the static `SettingsContainer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (currentProfile; e.g. `currentProfile` at line 395). — sources/core/Stride.Core.Design/Settings/SettingsContainer.cs:18
  • `SpriteBatch` is not registered, but `ThumbnailBuildHelper` creates it and keeps it in the static `staticSpriteBatch`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (userViewMatrix, userProjectionMatrix; e.g. `userViewMatrix` at line 159). — sources/engine/Stride.Graphics/Shaders.Bytecodes/SpriteBatch.bytecode.Vulkan.Level_9_1.cs:16
  • `EditorProcessService` is not registered, but `App` creates it and keeps it in the static `processService`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (HasLoadedSession; e.g. `HasLoadedSession` at line 44). — sources/editor/Stride.GameStudio.Avalonia/Services/EditorProcessService.cs:21
  • `DependencyPropertyWatcher` is not registered, but `ScaleFromSliderBehavior` creates it and keeps it in the static `watcher`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (frameworkElement, handlers, handlerRegistered, descriptors; e.g. `frameworkElement` at line 40). — sources/presentation/Stride.Core.Presentation.Wpf/Core/DependencyPropertyWatcher.cs:13
  • `TemplateProviderSelector` is not registered, but `PropertyViewHelper` creates it and keeps it in the static `HeaderProviders`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (templateProviderNames, templateProviders; e.g. `templateProviderNames` at line 51). — sources/presentation/Stride.Core.Presentation.Wpf/View/TemplateProviderSelector.cs:17
  • `TimeoutDispatcherTimer` is not registered, but `DragDropAdornerManager` creates it and keeps it in the static `DragLeaveTimer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (timer; e.g. `timer` at line 44). — sources/presentation/Stride.Core.Presentation.Wpf/Core/TimeoutDispatcherTimer.cs:12
  • `RenderDocManager` is not registered, but `Program` creates it and keeps it in the static `renderDocManager`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (isCaptureStarted; e.g. `isCaptureStarted` at line 96). — sources/tools/Stride.Graphics.RenderDocPlugin/RenderDocManager.cs:13
  • `App` is not registered, but `Program` creates it and keeps it in the static `app`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (exceptionRethrower; e.g. `exceptionRethrower` at line 19). — sources/editor/Stride.GameStudio/App.xaml.cs:13
  • `Package` is not registered, but `DotNetNewTemplateBridge` creates it and keeps it in the static `SyntheticPackage`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (Kind, Toolkit, isDirty, packagePath; e.g. `Kind` at line 247). — sources/assets/Stride.Core.Assets/Package.Constants.cs:6
  • `SettingsContainer` is not registered, but `GameStudioSettings` creates it and keeps it in the static `InternalSettingsContainer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (currentProfile; e.g. `currentProfile` at line 395). — sources/core/Stride.Core.Design/Settings/SettingsContainer.cs:18
  • `FastCollection` is not registered, but the singleton `AppSettings` creates it and keeps it in `Settings`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (items, size; e.g. `items` at line 71). — sources/core/Stride.Core/Collections/FastCollection.cs:17
  • `NugetStore` is not registered, but the singleton `PackageStore` creates it and keeps it in `store`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (PackageSources, logger, currentProgressReport; e.g. `PackageSources` at line 191). — REDACTED:35
  • `DataBindingExceptionRethrower` is not registered, but the singleton `App` creates it and keeps it in `exceptionRethrower`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (lastException; e.g. `lastException` at line 93). — sources/editor/Stride.GameStudio/Helpers/DataBindingExceptionRethrower.cs:16
  • `TestsViewModel` is not registered, but the singleton `MainViewModel` creates it and keeps it in `Tests`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (currentlyRunningCase, renderDocMode; e.g. `currentlyRunningCase` at line 228). — sources/tests/xunit.runner.stride/ViewModels/TestsViewModel.cs:38
  • `NativeLockFile` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (useOfdLocks; e.g. `useOfdLocks` at line 190). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — sources/core/Stride.Core.IO/NativeLockFile.cs:8
  • `VirtualFileSystem` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (providers; e.g. `providers` at line 119). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — sources/core/Stride.Core.IO/VirtualFileSystem.cs:12
  • `NativeLibraryHelper` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (loadedLibraries; e.g. `loadedLibraries` at line 290). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — sources/core/Stride.Core/Native/NativeLibraryHelper.cs:31
  • `PlatformFolders` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (applicationDataSubDirectory; e.g. `applicationDataSubDirectory` at line 60). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — sources/core/Stride.Core/PlatformFolders.cs:12

What to do

  • Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
  • A `static` field is one slot for the whole process, however its type is created: back it with a thread-safe type (ConcurrentDictionary, Interlocked), take a lock around every write, or move it into a registered singleton that does.
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.

  • The namespaces Stride.Core ↔ Stride.Core.Annotations ↔ Stride.Core.Assets ↔ Stride.Core.Assets.Analysis ↔ Stride.Core.Assets.Compiler ↔ Stride.Core.Assets.Serializers ↔ Stride.Core.Assets.Templates ↔ Stride.Core.Assets.Tracking ↔ Stride.Core.Assets.Visitors ↔ Stride.Core.Assets.Yaml ↔ Stride.Core.BuildEngine ↔ Stride.Core.IO ↔ Stride.Core.MicroThreading ↔ Stride.Core.Packages ↔ Stride.Core.Reflection ↔ Stride.Core.Serialization ↔ Stride.Core.Serialization.Contents ↔ Stride.Core.Settings ↔ Stride.Core.Storage ↔ Stride.Core.Yaml ↔ Stride.Core.Yaml.Events ↔ Stride.Core.Yaml.Schemas ↔ Stride.Core.Yaml.Serialization ↔ Stride.Core.Yaml.Serialization.Serializers ↔ Stride.Core.Yaml.Tokens depend on each other. The lightest dependency in the cycle is Stride.Core → Stride.Core.Assets (Stride.Core.AbsoluteId → Stride.Core.Assets.AssetId, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/core/Stride.Core.Design/AbsoluteId.cs:5
  • The namespaces Stride.Shaders.Spirv.Core ↔ Stride.Shaders.Spirv.Core.Buffers ↔ Stride.Shaders.Spirv.Core.Parsing depend on each other. The lightest dependency in the cycle is Stride.Shaders.Spirv.Core → Stride.Shaders.Spirv.Core.Parsing (Stride.Shaders.Spirv.Core.Instruction → Stride.Shaders.Spirv.Core.Parsing.OperandEnumerator, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/shaders/Stride.Shaders.Spirv/MemoryInstruction.cs:3
  • The namespaces Stride.Animations ↔ Stride.Audio ↔ Stride.Engine ↔ Stride.Engine.Design ↔ Stride.Engine.FlexibleProcessing ↔ Stride.Engine.Processors ↔ Stride.Physics ↔ Stride.Physics.Engine ↔ Stride.Rendering ↔ Stride.Rendering.Compositing ↔ Stride.Rendering.ComputeEffect ↔ Stride.Rendering.Images ↔ Stride.Rendering.Lights ↔ Stride.Rendering.Materials ↔ Stride.Rendering.Materials.ComputeColors ↔ Stride.Rendering.Shadows ↔ Stride.Rendering.Skyboxes ↔ Stride.Rendering.Sprites ↔ Stride.Rendering.SubsurfaceScattering ↔ Stride.Rendering.UI ↔ Stride.Rendering.Voxels ↔ Stride.Rendering.Voxels.Debug ↔ Stride.Shaders ↔ Stride.Shaders.Compiler ↔ Stride.Shaders.Compilers ↔ Stride.Shaders.Compilers.SDSL ↔ Stride.Shaders.Core ↔ Stride.Shaders.Parsing ↔ Stride.Shaders.Parsing.Analysis ↔ Stride.Shaders.Parsing.SDFX.AST ↔ Stride.Shaders.Parsing.SDSL ↔ Stride.Shaders.Parsing.SDSL.AST ↔ Stride.Shaders.Spirv.Building ↔ Stride.Shaders.Spirv.Processing ↔ Stride.Shaders.Spirv.Processing.Interfaces ↔ Stride.Shaders.Spirv.Processing.Interfaces.Models ↔ Stride.Streaming ↔ Stride.UI ↔ Stride.UI.Controls ↔ Stride.UI.Events ↔ Stride.UI.Renderers depend on each other. The lightest dependency in the cycle is Stride.Animations → Stride.Rendering (Stride.Animations.AnimationProcessor → Stride.Rendering.RenderContext, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/engine/Stride.Engine/Animations/AnimationProcessor.cs:12
  • The namespaces Stride.BepuPhysics ↔ Stride.BepuPhysics.Components ↔ Stride.BepuPhysics.Constraints ↔ Stride.BepuPhysics.Definitions ↔ Stride.BepuPhysics.Definitions.Colliders ↔ Stride.BepuPhysics.Definitions.Contacts ↔ Stride.BepuPhysics.Systems depend on each other. The lightest dependency in the cycle is Stride.BepuPhysics → Stride.BepuPhysics.Constraints (Stride.BepuPhysics.BodyComponent → Stride.BepuPhysics.Constraints.ConstraintComponentBase, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/plugins/BepuPhysics/Stride.BepuPhysics/BodyComponent.cs:7
  • The namespaces Stride.Core.Quantum ↔ Stride.Core.Quantum.References depend on each other. The lightest dependency in the cycle is Stride.Core.Quantum → Stride.Core.Quantum.References (Stride.Core.Quantum.DefaultNodeBuilder → Stride.Core.Quantum.References.IReference, 11 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/presentation/Stride.Core.Quantum/DefaultNodeBuilder.cs:5
  • The namespaces Stride.Core.Presentation.Commands ↔ Stride.Core.Presentation.Controls ↔ Stride.Core.Presentation.Services ↔ Stride.Core.Presentation.ViewModels ↔ Stride.Core.Presentation.Windows depend on each other. The lightest dependency in the cycle is Stride.Core.Presentation.Controls → Stride.Core.Presentation.Commands (Stride.Core.Presentation.Controls.TagControl → Stride.Core.Presentation.Commands.ICommandBase, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/presentation/Stride.Core.Presentation.Wpf/Controls/TagControl.cs:5
  • The namespaces Stride.Core.Presentation.Quantum ↔ Stride.Core.Presentation.Quantum.Presenters ↔ Stride.Core.Presentation.Quantum.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Core.Presentation.Quantum → Stride.Core.Presentation.Quantum.ViewModels (Stride.Core.Presentation.Quantum.GraphViewModelService → Stride.Core.Presentation.Quantum.ViewModels.INodeViewModelFactory, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/presentation/Stride.Core.Presentation.Quantum/GraphViewModelService.cs:5
  • The namespaces Stride.Core.Assets.Quantum ↔ Stride.Core.Assets.Quantum.Internal ↔ Stride.Core.Assets.Quantum.Visitors depend on each other. The lightest dependency in the cycle is Stride.Core.Assets.Quantum → Stride.Core.Assets.Quantum.Internal (Stride.Core.Assets.Quantum.AssetPropertyGraph → Stride.Core.Assets.Quantum.Internal.AssetMemberNode, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/assets/Stride.Core.Assets.Quantum/AssetPropertyGraph.cs:5
  • The namespaces Stride.Core.Assets.Presentation.Components.Properties ↔ Stride.Core.Assets.Presentation.Services ↔ Stride.Core.Assets.Presentation.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Core.Assets.Presentation.Services → Stride.Core.Assets.Presentation.Components.Properties (Stride.Core.Assets.Presentation.Services.IPresentationPluginService → Stride.Core.Assets.Presentation.Components.Properties.PackageSettingsEntry, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.Core.Assets.Presentation/Services/IPresentationPluginService.cs:5
  • The namespaces Stride.Core.Assets.Editor.Components.AddAssets ↔ Stride.Core.Assets.Editor.Components.Build ↔ Stride.Core.Assets.Editor.Components.Properties ↔ Stride.Core.Assets.Editor.Components.TemplateDescriptions ↔ Stride.Core.Assets.Editor.Panels ↔ Stride.Core.Assets.Editor.Services ↔ Stride.Core.Assets.Editor.View.DebugTools ↔ Stride.Core.Assets.Editor.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Core.Assets.Editor.Components.Build → Stride.Core.Assets.Editor.Services (Stride.Core.Assets.Editor.Components.Build.GameCodeReloadViewModel → Stride.Core.Assets.Editor.Services.IEditorDialogService, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.Core.Assets.Editor/Components/Build/GameCodeReloadViewModel.cs:6
  • The namespaces Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.Game ↔ Stride.Assets.Editor.SceneEditor depend on each other. The lightest dependency in the cycle is Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.Game → Stride.Assets.Editor.SceneEditor (Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.Game.IEditorGameEntitySelectionService → Stride.Assets.Editor.SceneEditor.EntityPickingResult, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.Assets.Editor/AssetEditors/EntityHierarchyEditor/Game/IEditorGameEntitySelectionService.cs:9
  • The namespaces Stride.TextureConverter ↔ Stride.TextureConverter.Requests depend on each other. The lightest dependency in the cycle is Stride.TextureConverter → Stride.TextureConverter.Requests (Stride.TextureConverter.TextureTool → Stride.TextureConverter.Requests.LoadingRequest, 2 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:11
  • The namespaces Stride.Assets.Sprite ↔ Stride.Assets.Textures depend on each other. The lightest dependency in the cycle is Stride.Assets.Textures → Stride.Assets.Sprite (Stride.Assets.Textures.ImportParameters → Stride.Assets.Sprite.SpriteSheetParameters, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/engine/Stride.Assets/Textures/TextureHelper.cs:15
  • The namespaces Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.ViewModels ↔ Stride.Assets.Editor.AssetEditors.GameEditor.ViewModels ↔ Stride.Assets.Editor.EditorGame ↔ Stride.Assets.Editor.EntityFactories ↔ Stride.Assets.Editor.ViewModels ↔ Stride.Assets.Editor.ViewModels.GraphicsCompositorEditor ↔ Stride.Assets.Editor.ViewModels.SpriteEditor ↔ Stride.Assets.Presentation.AssetEditors ↔ Stride.Assets.Presentation.AssetEditors.EntityHierarchyEditor ↔ Stride.Assets.Presentation.AssetEditors.EntityHierarchyEditor.Services ↔ Stride.Assets.Presentation.AssetEditors.EntityHierarchyEditor.ViewModels ↔ Stride.Assets.Presentation.AssetEditors.GameEditor.ViewModels ↔ Stride.Assets.Presentation.AssetEditors.ScriptEditor ↔ Stride.Assets.Presentation.SceneEditor.Services ↔ Stride.Assets.Presentation.View ↔ Stride.Assets.Presentation.ViewModel ↔ Stride.Assets.Presentation.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Assets.Editor.ViewModels → Stride.Assets.Editor.EntityFactories (Stride.Assets.Editor.ViewModels.EntityHierarchyEditorViewModel → Stride.Assets.Editor.EntityFactories.IEntityFactory, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.Assets.Editor/ViewModels/EntityHierarchyEditorViewModel.cs:12
  • The namespaces Stride.Editor ↔ Stride.Editor.Preview ↔ Stride.Editor.Preview.View ↔ Stride.Editor.Preview.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Editor.Preview → Stride.Editor (Stride.Editor.Preview.GameStudioPreviewService → Stride.Editor.AssetPreviewFactory, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.Editor.Wpf/Preview/GameStudioPreviewService.cs:33
  • The namespaces Stride.Assets.Presentation.CurveEditor ↔ Stride.Assets.Presentation.CurveEditor.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Assets.Presentation.CurveEditor → Stride.Assets.Presentation.CurveEditor.ViewModels (Stride.Assets.Presentation.CurveEditor.HorizontalAndVerticalAxisRenderer → Stride.Assets.Presentation.CurveEditor.ViewModels.CurveEditorViewModel, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/HorizontalAndVerticalAxisRenderer.cs:37
  • The namespaces Stride.Navigation ↔ Stride.Navigation.Processors depend on each other. The lightest dependency in the cycle is Stride.Navigation → Stride.Navigation.Processors (Stride.Navigation.DynamicNavigationMeshSystem → Stride.Navigation.Processors.StaticColliderProcessor, 2 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/plugins/BulletPhysics/Stride.Navigation/DynamicNavigationMeshSystem.cs:16
  • The namespaces Stride.BepuPhysics.Navigation.Components ↔ Stride.BepuPhysics.Navigation.Processors depend on each other. The lightest dependency in the cycle is Stride.BepuPhysics.Navigation.Components → Stride.BepuPhysics.Navigation.Processors (Stride.BepuPhysics.Navigation.Components.RecastNavigationComponent → Stride.BepuPhysics.Navigation.Processors.RecastNavigationProcessor, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/plugins/BepuPhysics/Stride.BepuPhysics.Navigation/Components/RecastNavigationComponent.cs:1
  • The namespaces Stride.Core.AssemblyProcessor ↔ Stride.Core.AssemblyProcessor.Serializers depend on each other. The lightest dependency in the cycle is Stride.Core.AssemblyProcessor.Serializers → Stride.Core.AssemblyProcessor (Stride.Core.AssemblyProcessor.Serializers.SerializerDescriptor → Stride.Core.AssemblyProcessor.SerializableItem, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/core/Stride.Core.AssemblyProcessor/Serializers/SerializerDescriptor.cs:12
  • The namespaces Stride.Core.Presentation.Graph.Behaviors ↔ Stride.Core.Presentation.Graph.Controls depend on each other. The lightest dependency in the cycle is Stride.Core.Presentation.Graph.Behaviors → Stride.Core.Presentation.Graph.Controls (Stride.Core.Presentation.Graph.Behaviors.NodeGraphSelectionBehavior → Stride.Core.Presentation.Graph.Controls.NodeEdgeControl, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/NodeGraphSelectionBehavior.cs:23
  • The namespaces Stride.GameStudio.AssetsEditors ↔ Stride.GameStudio.Layout ↔ Stride.GameStudio.View depend on each other. The lightest dependency in the cycle is Stride.GameStudio.AssetsEditors → Stride.GameStudio.Layout (Stride.GameStudio.AssetsEditors.AssetEditorsManager → Stride.GameStudio.Layout.DockingLayoutManager, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs:27
  • The namespaces Stride.GameStudio.Avalonia ↔ Stride.GameStudio.Avalonia.Docking ↔ Stride.GameStudio.Avalonia.Services ↔ Stride.GameStudio.Avalonia.ViewModels ↔ Stride.GameStudio.Avalonia.Views depend on each other. The lightest dependency in the cycle is Stride.GameStudio.Avalonia → Stride.GameStudio.Avalonia.ViewModels (Stride.GameStudio.Avalonia.App → Stride.GameStudio.Avalonia.ViewModels.MainViewModel, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/editor/Stride.GameStudio.Avalonia/App.axaml.cs:37
  • The namespaces Stride.Launcher ↔ Stride.Launcher.Services ↔ Stride.Launcher.ViewModels ↔ Stride.Launcher.Views depend on each other. The lightest dependency in the cycle is Stride.Launcher → Stride.Launcher.ViewModels (Stride.Launcher.App → Stride.Launcher.ViewModels.MainViewModel, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/launcher/Stride.Launcher/App.axaml.cs:14
  • The namespaces Stride.Particles ↔ Stride.Particles.Initializers ↔ Stride.Particles.Materials ↔ Stride.Particles.Modules ↔ Stride.Particles.ShapeBuilders ↔ Stride.Particles.Sorters ↔ Stride.Particles.Spawners ↔ Stride.Particles.Updaters depend on each other. The lightest dependency in the cycle is Stride.Particles → Stride.Particles.Materials (Stride.Particles.ParticleEmitter → Stride.Particles.Materials.ParticleMaterial, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/plugins/Particles/Stride.Particles/ParticleEmitter.cs:16
  • The namespaces Stride.UI.Editor.Adorners ↔ Stride.UI.Editor.Game ↔ Stride.UI.Editor.Services ↔ Stride.UI.Editor.ViewModels depend on each other. The lightest dependency in the cycle is Stride.UI.Editor.Game → Stride.UI.Editor.Services (Stride.UI.Editor.Game.UIEditorGameAdornerService → Stride.UI.Editor.Services.UIEditorController, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — sources/plugins/UI/Stride.UI.Editor/Game/UIEditorGameAdornerService.cs:12

What to do

  • Break namespace cycles inside a project by moving the shared type to a namespace both sides can use, or by inverting the back edge behind an interface.
AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX6 · Interface segregation9.9 / 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.

  • `IGame` declares 22 members: `Activated`, `Deactivated`, `Exiting`, `WindowCreated`, `UpdateTime`, `DrawTime`, `DrawInterpolationFactor`, `Content`, `GameSystems`, `Context`, `GraphicsDevice`, `GraphicsContext`, `InactiveSleepTime`, `IsActive`, `IsFixedTimeStep`, `IsDrawDesynchronized`, `IsMouseVisible`, `LaunchParameters`, `IsRunning`, `Services`, `TargetElapsedTime`, `Window`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/engine/Stride.Games/IGame.cs:12
  • `IScanner` declares 16 members under just 14 distinct name(s): `Span`, `Memory`, `Position`, `Line`, `Column`, `this[]`, `this[]`, `End`, `IsEof`, `ReadChar`, `Peek`, `Peek`, `Advance`, `ReadString`, `Slice`, `LineAtIndex`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — sources/shaders/Stride.Shaders.Parsers/Parsing/Scanners/IScanner.cs:11
  • `ITransactionStack` declares 19 members: `TransactionInProgress`, `RollInProgress`, `Capacity`, `IsEmpty`, `IsFull`, `CanRollback`, `CanRollforward`, `TransactionCompleted`, `TransactionRollbacked`, `TransactionRollforwarded`, `TransactionDiscarded`, `Cleared`, `CreateTransaction`, `Clear`, `RetrieveAllTransactions`, `PushOperation`, `Rollback`, `Rollforward`, `Resize`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/core/Stride.Core.Design/Transactions/ITransactionStack.cs:22
  • `IMemberDescriptor` declares 22 members: `Name`, `OriginalName`, `DefaultNameComparer`, `Type`, `DeclaringType`, `TypeDescriptor`, `Order`, `Mode`, `IsPublic`, `HasSet`, `GetCustomAttributes`, `ShouldSerialize`, `HasDefaultValue`, `DefaultValue`, `AlternativeNames`, `Tag`, `Mask`, `Style`, `ScalarStyle`, `MemberInfo`, `Get`, `Set`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/core/Stride.Core.Reflection/MemberDescriptors/IMemberDescriptor.cs:13
  • `IAssetObjectNode` declares 22 members: `this[]`, `IndexedTarget`, `OverrideItem`, `OverrideKey`, `OverrideDeletedItem`, `IsItemDeleted`, `Restore`, `Restore`, `RemoveAndDiscard`, `IsItemInherited`, `IsKeyInherited`, `IsItemOverridden`, `IsItemOverriddenDeleted`, `IsKeyOverridden`, `IndexToId`, `TryIndexToId`, `HasId`, `IdToIndex`, `TryIdToIndex`, `ResetOverrideRecursively`, `GetOverriddenItemIndices`, `GetOverriddenKeyIndices`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 22 declarations carry 21 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 21 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/assets/Stride.Core.Assets.Quantum/IAssetObjectNode.cs:9
  • `INodePresenter` declares 30 members: `this[]`, `DisplayName`, `Name`, `Root`, `Parent`, `Children`, `Commands`, `AttachedProperties`, `Type`, `IsEnumerable`, `IsReadOnly`, `IsVisible`, `Index`, `Descriptor`, `Order`, `Value`, `CombineKey`, `PropertyProvider`, `Factory`, `ValueChanging`, `ValueChanged`, `UpdateValue`, `AddItem`, `AddItem`, `RemoveItem`, `GetNodeAccessor`, `AddDependency`, `ChangeParent`, `Rename`, `TryGetChild`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 30 declarations carry 29 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 29 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/presentation/Stride.Core.Presentation.Quantum/Presenters/INodePresenter.cs:9
  • `IDialogService` declares 16 members under just 13 distinct name(s): `HasMainWindow`, `Exit`, `ButtonCancel`, `ButtonOK`, `ButtonNo`, `ButtonYes`, `GetButtons`, `CheckedMessageBoxAsync`, `CheckedMessageBoxAsync`, `CheckedMessageBoxAsync`, `MessageBoxAsync`, `MessageBoxAsync`, `OpenFilePickerAsync`, `OpenMultipleFilesPickerAsync`, `OpenFolderPickerAsync`, `SaveFilePickerAsync`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 13 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — sources/presentation/Stride.Core.Presentation/Services/IDialogService.cs:13
  • `IUndoRedoService` declares 25 members: `Capacity`, `CanUndo`, `CanRedo`, `TransactionInProgress`, `UndoRedoInProgress`, `TransactionCompletion`, `UndoRedoCompletion`, `Done`, `Undone`, `Redone`, `TransactionDiscarded`, `Cleared`, `CreateTransaction`, `RetrieveAllTransactions`, `SetName`, `SetName`, `GetName`, `GetName`, `GetName`, `PushOperation`, `Undo`, `Redo`, `NotifySave`, `NotifySave`, `Resize`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 25 declarations carry 21 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 21 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/presentation/Stride.Core.Presentation/Services/IUndoRedoService.cs:11
  • `IEditorPluginContext` declares 18 members: `Plugin`, `Session`, `Logger`, `AssetViewModelTypes`, `AssetEditorViewModelTypes`, `AssetEditorViewTypes`, `AssetPreviewViewModelTypes`, `AssetPreviewViewTypes`, `PrimitiveTypes`, `EnumImages`, `TypeImages`, `TemplateProviders`, `CopyProcessors`, `PasteProcessors`, `PostPasteProcessors`, `EditorViewToolTypes`, `SettingsKeys`, `ProfileSettings`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/editor/Stride.Core.Assets.Editor/Services/IEditorPluginContext.cs:20
  • `ISessionViewModel` declares 29 members: `Dirtiables`, `ServiceProvider`, `Dispatcher`, `SolutionPath`, `CurrentProject`, `PackageCategories`, `StorePackages`, `LocalPackages`, `AllPackages`, `AllAssets`, `DependencyManager`, `GraphContainer`, `AssetNodeContainer`, `ActiveAssetView`, `AssetViewProperties`, `SourceTracker`, `AssetLog`, `HasAssetReplacements`, `AssetPropertiesChanged`, `DeletedAssetsChanged`, `SessionStateChanged`, `GetAssetById`, `GetAssetViewModelType`, `FindTemplates`, `NotifyAssetPropertiesChanged`, `NotifyAssetPropertiesChangedAsync`, `TrackBackgroundWork`, `GetDefaultRootAssetTarget`, `ToggleRootAsset`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/editor/Stride.Core.Assets.Presentation/ViewModels/ISessionViewModel.cs:26
  • `IUITestContext` declares 26 members: `OpenProject`, `WaitForAssetBuild`, `WaitForShaders`, `WaitDispatcherIdle`, `WaitFrames`, `WaitIdle`, `WaitForRendering`, `Screenshot`, `SetWindowSize`, `CapturePanel`, `WaitForWindow`, `WaitForAnyWindow`, `SelectTemplate`, `CloseModalWithOk`, `RunProject`, `WaitForGameWindow`, `WaitForGameFrames`, `ScreenshotHwnd`, `CloseGameWindow`, `AddAssetFromTemplate`, `OpenAssetEditor`, `WaitForSyntaxHighlighting`, `QueueAssetPickerResponse`, `AddEntityToScene`, `CountUnloadable`, `Exit`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — sources/editor/Stride.GameStudio.AutoTesting/IUITestContext.cs:9

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
  • Where the width is an overload set rather than separate responsibilities, collapse the overloads instead — segregating those relieves no caller.
AX8 · Test isolation7.5 / 10Strong✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

  • `Stride.Editor.Tests` (production) references the test project `Stride.Core.Assets.Editor.Tests`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference. — sources/editor/Stride.Editor.Tests/Stride.Editor.Tests.csproj:18

What to do

  • Remove every production → test project reference: extract any shared test helper into a production support library (which the tests reference), or invert the dependency so the test project depends on production — not the reverse.
C1 · Data Protection3.5 / 10Weak✓ Tool-verified

Other · Security — Whether sensitive data is encrypted at rest and in transit and keys are vaulted.

Method: Roslyn plus filesystem scan: encryption presence (EF ColumnEncryption, key-vault references, HTTPS enforcement) and key-derivation KDF detection. Deterministic.

What to do

  • Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
  • Enforce HTTPS (UseHttpsRedirection / RequireHttpsMetadata) so data in transit is always encrypted.
C4 · Data Retention7.5 / 10Strong✓ Tool-verified

Other · Security — Whether data has a defined lifetime — retention periods, TTLs, cleanup jobs (storage limitation).

Method: Roslyn scan: retention/TTL configuration presence in schema; CascadeDelete detected but not scored as retention control. Deterministic, gated by PII presence.

  • A retention mechanism is present, but the data-lifecycle is not yet complete — missing: a scheduled purge / cleanup job (PurgeOlderThan / CleanupJob).

What to do

  • Complete the data-lifecycle story: an expiry limit (a declared maximum age for the stored data — a retention-age setting, or a store-level TTL where your storage offers one), a scheduled purge/cleanup job that enforces it, and a documented retention period covering the personal data.
GD1 · Unfinished & placeholder code9.9 / 10Exemplary✓ Tool-verified

Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in 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 member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. (×40) — sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:30, sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:57, sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:63, …

What to do

  • Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs4.7 / 10Weak✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.

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.

  • `OutputObjectIds` is a shipped member whose body only throws — and it is REACHED: sources/buildengine/Stride.Core.BuildEngine.Common/CommandBuildStep.cs:308 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/buildengine/Stride.Core.BuildEngine.Common/BuildStep.cs:110
  • `Entity` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:133 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:151
  • `ComponentIndex` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:133 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:153
  • `Cubic` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Animations/AnimationCurveEvaluatorDirectQuaternionGroup.cs:32 references it (2 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/engine/Stride.Engine/Animations/Interpolator.cs:93
  • `GetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:551 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/engine/Stride.Engine/Updater/UpdatableField.cs:38
  • `SetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:619 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/engine/Stride.Engine/Updater/UpdatableField.cs:55
  • `GetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:526 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/engine/Stride.Engine/Updater/UpdatableProperty.cs:32
  • `SetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:594 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/engine/Stride.Engine/Updater/UpdatableProperty.cs:58
  • `ExtractSomeAudioData` is a shipped member whose body only throws — and it is REACHED: sources/plugins/Audio/Stride.Audio/StreamedBufferSoundSource.cs:216 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — sources/plugins/Audio/Stride.Audio/StreamedBufferSoundSource.ffmpeg.cs:13
  • A test is skipped with reason "Either non-deterministic or broken (failing 50%)" — the behavior it asserts is UNVERIFIED and this skip is likely the only marker of a real bug. It ages invisibly: fix the flakiness or track the bug somewhere that can't be forgotten. — sources/assets/Stride.Core.Assets.Tests/Compilers/TestBuildDependencyManager.cs:189
  • `Serialize` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core.Design/Settings/SettingsProfile.cs:333
  • The first 2 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently. — sources/core/Stride.Core.Mathematics/HalfUtils.cs:160
  • `Migrate` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core.MicroThreading/MicroThread.cs:146
  • `Remove` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core.MicroThreading/MicroThread.cs:151
  • The first 1 statement of the `if` and of the `else` are identical, so it runs on both paths regardless of the condition. Lift it above the `if` — leaving it duplicated inside makes the branches read as though they handled this differently. (×2) — sources/core/Stride.Core.Yaml/Serialization/Serializers/DictionarySerializer.cs:111, sources/core/Stride.Core/PropertyContainer.cs:170
  • `ExceptWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core/Collections/TrackingHashSet.cs:51
  • `IntersectWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core/Collections/TrackingHashSet.cs:57
  • `SymmetricExceptWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core/Collections/TrackingHashSet.cs:99
  • `UnionWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core/Collections/TrackingHashSet.cs:105
  • `Length` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:255
  • `New` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — sources/core/Stride.Core/Reflection/ObjectFactoryRegistry.cs:113
  • `AddDocument` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/RoslynHost.cs:131
  • `CreateMetadataReference` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/RoslynHost.cs:146
  • The `if` and its `else` contain the same 1 statement, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body. — sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/AxisBase.cs:1014
  • `LinkTo` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/editor/Stride.Assets.Editor/ViewModels/GraphicsCompositorEditor/SharedRendererInputSlotViewModel.cs:29
  • `ClearLink` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — sources/editor/Stride.Assets.Editor/ViewModels/GraphicsCompositorEditor/SharedRendererInputSlotViewModel.cs:35
  • `UpdateIsDeletedStatus` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×3) — sources/editor/Stride.Core.Assets.Presentation/ViewModels/DirectoryViewModel.cs:208, sources/editor/Stride.Core.Assets.Presentation/ViewModels/MountPointViewModel.cs:47, sources/editor/Stride.Core.Assets.Presentation/ViewModels/ProjectViewModel.cs:37
  • Control only reaches here when `cancellationToken.HasValue && cancellationToken.Value.IsCancellationRequested` is false, because the guard on line 225 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. — sources/editor/Stride.Core.Assets.Presentation/ViewModels/PackageViewModel.cs:235
  • `RefreshPackageReferences` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — sources/editor/Stride.Core.Assets.Presentation/ViewModels/PackageViewModel.cs:632
  • `OnAssetChanged` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — sources/editor/Stride.Editor/Build/GameStudioDatabase.cs:59
  • Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 360 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. (×4) — sources/engine/Stride.Assets/Textures/TextureHelper.cs:391, sources/engine/Stride.Assets/Textures/TextureHelper.cs:398, sources/engine/Stride.Assets/Textures/TextureHelper.cs:405, …
  • Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 391 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. (×2) — sources/engine/Stride.Assets/Textures/TextureHelper.cs:398, sources/engine/Stride.Assets/Textures/TextureHelper.cs:405
  • Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 398 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. — sources/engine/Stride.Assets/Textures/TextureHelper.cs:405

What to do

  • Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
  • Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)8.5 / 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

  • Describe the projects a newcomer cannot place from the root README: 153 of 201 have no README of their own, in their folder or in their family's project (`sources/engine/Stride.Assets.Generators`, `sources/engine/Stride.Engine`, `sources/engine/Stride.Foundation`, `sources/engine/Stride.Games`, `sources/engine/Stride.Input` and 148 more).
M2 · Architecture documentation5.0 / 10Adequate✓ 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.8 / 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.

  • docs/debugging/crash-reporting.md names .NET 12, but the projects target .NET 8, 10. 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. — docs/debugging/crash-reporting.md:73
  • docs/launcher/README.md links to `../../sources/launcher/Prerequisites/`, but `sources/launcher/Prerequisites` 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. — docs/launcher/README.md:41

What to do

  • Reconcile the README with reality: docs/debugging/crash-reporting.md names .NET 12, but the projects target .NET 8, 10; docs/launcher/README.md links to `../../sources/launcher/Prerequisites/`, but `sources/launcher/Prerequisites` 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.

P3 · Security & performance tooling5.0 / 10Adequate✓ 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.

  • `sources/Directory.Packages.props` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — sources/Directory.Packages.props:11

What to do

  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ Tool-verified

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

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

P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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

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

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

What to do

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

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

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from 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.

  • 50 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×17) — sources/core/Stride.Core.Serialization/Storage/ObjectDatabase.cs:75, REDACTED:32, REDACTED:54, …
  • `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×7) — sources/core/Stride.Core/Diagnostics/ChromeTracingProfileWriter.cs:91, sources/assets/Stride.Core.Assets/PackageSession.cs:1103, sources/assets/Stride.Core.Assets/PackageSession.cs:1146, …
  • `stringBuilderTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/engine/Stride.Engine/Profiling/GameProfilingSystem.cs:329
  • `PendingEffect.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:487
  • `streamingTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/engine/Stride.Rendering/Streaming/StreamableResource.cs:184
  • `task.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/engine/Stride.Rendering/Streaming/StreamingManager.cs:424
  • `coreTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:116
  • `glslTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:118
  • `Task.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×3) — sources/core/Stride.Core.Design/Threading/Internal/TaskCompletionSourceExtensions.cs:52, sources/core/Stride.Core.Design/Threading/Internal/TaskCompletionSourceExtensions.cs:68, sources/editor/Stride.Assets.Editor/EditorGame/DispatcherLock.cs:71
  • `buildUnit.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×2) — sources/editor/Stride.Assets.Editor/Preview/BuildAssetPreview.cs:114, sources/editor/Stride.Editor/Build/GameStudioDatabase.cs:156
  • `stdout.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — REDACTED:49
  • `templatesTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/engine/Stride.Assets/Templates/DotNetNewTemplateBridge.cs:232
  • `lastChangeTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/engine/Stride.Assets/Templates/DotNetNewTemplateBridge.cs:548
  • `installTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — sources/engine/Stride.Assets/Templates/DotNetNewTemplateBridge.cs:558

What to do

  • Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().
S1 · Cryptographic Hygiene8.0 / 10Strong✓ Tool-verified

Other · Security — Cryptographic hygiene (weak hash/cipher, password key-derivation). This codebase has no web surface, so transport/header/cookie/CSRF controls are N/A and only crypto is scored.

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.

  • MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses. (×2) — sources/core/Stride.Core.CompilerServices/Generators/EffectKeysGenerator.cs:144, sources/engine/Stride.Assets/Templates/DotNetNewTemplateBridge.cs:675

What to do

  • Review each MD5/SHA1 use by what it protects: replace it with SHA-256+ (or a KDF for passwords) where the digest is security-relevant, and switch it to a non-cryptographic hash (`System.IO.Hashing.XxHash64`/`Crc32`) where it only derives an identifier such as a cache key or a mutex name. This repository constructs a collision-broken hash (MD5/SHA1) at 2 sites, not one: `sources/core/Stride.Core.CompilerServices/Generators/EffectKeysGenerator.cs:144` (SHA1), `sources/engine/Stride.Assets/Templates/DotNetNewTemplateBridge.cs:675` (MD5). Each is a separate decision — fixing only the line this row cites leaves the others in place.
X1 · Async correctness4.9 / 10Weak✓ 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.

  • Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout. (×14) — sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:474, sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:953, sources/engine/Stride.Engine/Shaders.Compiler/Internals/NetworkVirtualFileProvider.cs:93, …
  • Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process. (×16) — sources/core/Stride.Core.Serialization/Storage/ObjectDatabase.cs:75, sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:487, sources/engine/Stride.Rendering/Streaming/StreamingManager.cs:424, …
  • `File.WriteAllBytes` blocks the thread on I/O while `File.WriteAllBytesAsync` exists to wait without one — inside a method that is already `async`, await the twin. — sources/shaders/Stride.Shaders.Spirv.Generators/Program.cs:99
  • `File.ReadAllText` blocks the thread on I/O while `File.ReadAllTextAsync` exists to wait without one — inside a method that is already `async`, await the twin. — sources/shaders/Stride.Shaders.Spirv.Generators/Program.cs:101
  • `WaitHandle.WaitOne` parks the thread until another thread signals it — inside a method that is already `async`, the wait should be awaitable (a `TaskCompletionSource`, `SemaphoreSlim.WaitAsync`, or `WaitHandle` bridged with `Task.Factory.FromAsync`). — sources/buildengine/Stride.Core.BuildEngine.Common/DynamicBuildStep.cs:86
  • `WaitHandle.WaitAny` parks the thread until another thread signals it — inside a method that is already `async`, the wait should be awaitable (a `TaskCompletionSource`, `SemaphoreSlim.WaitAsync`, or `WaitHandle` bridged with `Task.Factory.FromAsync`). — sources/buildengine/Stride.Core.BuildEngine.Common/DynamicBuildStep.cs:117
  • `Process.WaitForExit` blocks the thread on I/O while `Process.WaitForExitAsync` exists to wait without one — inside a method that is already `async`, await the twin. — sources/assets/Stride.AssetCompiler/PackageBuilder.cs:610
  • `Task.WaitAll` blocks this thread until the tasks complete — sync-over-async: it can deadlock under a synchronization context and it parks a thread for as long as the work runs. `await Task.WhenAll(…)` instead. — sources/assets/Stride.Core.Assets/Package.cs:1008
  • This blocks on a Task **while holding a `lock`**, which is worse than an ordinary sync-over-async in two ways. `await` is illegal inside a `lock` body, so the usual fix — make the caller `async` and await it — cannot be applied where this block stands. And the thread parks while still holding the lock, so it occupies the critical section doing no work: every other caller serialises behind an operation that is only waiting, and if the awaited task itself needs a thread the pool has run out of, they wait forever. Do the async work OUTSIDE the critical section: take the lock only to read the shared state, release it, await the call, then re-take the lock to publish the result — re-checking on re-entry whether another caller won the race and, if so, discarding your result rather than overwriting theirs. Where the critical section genuinely has to span the async call, `lock` is the wrong primitive: use an async-aware one (`SemaphoreSlim` with `await WaitAsync()`) so waiters yield their thread instead of parking it. (×2) — REDACTED:494, REDACTED:503
  • `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained. (×2) — sources/presentation/Stride.Core.Presentation/ViewModel/LoggerViewModel.cs:281, sources/crashreport/Stride.CrashReporter/Mvvm.cs:49

What to do

  • Sync-over-async (deadlock risk) through `.Result`
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.

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

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

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

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

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

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

X18 · Disposal-pattern correctness5.9 / 10Adequate✓ Tool-verified

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

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

  • `TemporaryFile` declares a finalizer (line 19), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization. — sources/core/Stride.Core.IO/TemporaryFile.cs:19
  • `stream` is never created by `Store` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 78). Its declared type `Stream` is an abstract class, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — sources/core/Stride.Core.Serialization/IO/Store.cs:78
  • `reader` is a `StreamReader`, which implements `IDisposable`, and it is created here (line 104). Every use of it in `ReadEntries` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var reader = …;`), which releases it at the end of the scope on every path including a throw. — sources/core/Stride.Core.Serialization/Serialization/Contents/ContentIndexMap.cs:104
  • `BundleOdbBackend` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `contentIndexMap` itself (line 34), which makes that instance its own. But `contentIndexMap` is named in none of the methods the disposal search covered: `Dispose` (line 64) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`contentIndexMap?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:34
  • `enumerator` is never created by `Enumerator` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 183). Its declared type `IEnumerator` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — sources/core/Stride.Core/Collections/IndexingDictionary.cs:183
  • `Enumerator` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_Enumerator` itself (line 714), which makes that instance its own. But `_Enumerator` is named in none of the methods the disposal search covered: `Dispose` (line 734) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_Enumerator?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/core/Stride.Core/Collections/MultiValueSortedDictionary.cs:714
  • `EventKeyBase` declares a finalizer (line 32), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization. — sources/engine/Stride.Engine/Engine/Events/EventKeyBase.cs:32
  • `EventReceiverBase` declares a finalizer (line 124), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization. — sources/engine/Stride.Engine/Engine/Events/EventReceiverBase.cs:124
  • `socketContext` is a `SimpleSocket`, which implements `IDisposable`, and it is created here (line 76). Every use of it in `InitiateConnectionToRouter` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var socketContext = …;`), which releases it at the end of the scope on every path including a throw. — sources/engine/Stride.Engine/Engine/Network/RouterClient.cs:76
  • `listener` is a `TcpSocketListener`, which implements `IDisposable`, and it is created here (line 61). Every use of it in `StartServer` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var listener = …;`), which releases it at the end of the scope on every path including a throw. — sources/engine/Stride.Engine/Engine/Network/SimpleSocket.cs:61
  • `TcpSocketClient` declares a finalizer (line 161), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization. — sources/engine/Stride.Engine/Engine/Network/Sockets.Implementation.NET/TcpSocketClient.cs:161
  • `TcpSocketListener` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_listenCanceller` itself (line 26), which makes that instance its own. But `_listenCanceller` is named in none of the methods the disposal search covered: `Dispose` (line 119), `Dispose` (line 133), `Dispose` (line 119), `Dispose` (line 133) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_listenCanceller?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.Engine/Engine/Network/Sockets.Implementation.NET/TcpSocketListener.cs:26
  • `lambertFiltering` is a `LambertianPrefilteringSHNoCompute`, which implements `IDisposable`, and it is created here (line 37). Every use of it in `GenerateCoefficients` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var lambertFiltering = …;`), which releases it at the end of the scope on every path including a throw. — sources/engine/Stride.Engine/Rendering/LightProbes/LightProbeGenerator.cs:37
  • `initialImage` is a `Image`, which implements `IDisposable`, and it is created here (line 114). Every use of it in `Write` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var initialImage = …;`), which releases it at the end of the scope on every path including a throw. — sources/engine/Stride.Graphics/Data/TextureSerializationData.cs:114
  • `InputSourceSDL` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `mouse` itself (line 24), which makes that instance its own. But `mouse` is named in none of the methods the disposal search covered: `Dispose` (line 56) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`mouse?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.Input/SDL/InputSourceSDL.cs:24
  • `InputSourceSDL` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `keyboard` itself (line 25), which makes that instance its own. But `keyboard` is named in none of the methods the disposal search covered: `Dispose` (line 56) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`keyboard?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.Input/SDL/InputSourceSDL.cs:25
  • `InputSourceSDL` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `pointer` itself (line 26), which makes that instance its own. But `pointer` is named in none of the methods the disposal search covered: `Dispose` (line 56) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`pointer?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.Input/SDL/InputSourceSDL.cs:26
  • `data` is a `GeometricMeshData`, which implements `IDisposable`, and it is created here (line 99). Every use of it in `Generate` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var data = …;`), which releases it at the end of the scope on every path including a throw. — sources/engine/Stride.Rendering/Rendering/ProceduralModels/PrimitiveProceduralModelBase.cs:99
  • `ThreadContext` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `pickingEffect` itself (line 261), which makes that instance its own. But `pickingEffect` is named in none of the methods the disposal search covered: `Dispose` (line 288) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`pickingEffect?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.Rendering/Rendering/Sprites/SpriteRenderFeature.cs:261
  • `ThreadContext` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `alphaCutoffEffect` itself (line 262), which makes that instance its own. But `alphaCutoffEffect` is named in none of the methods the disposal search covered: `Dispose` (line 288) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`alphaCutoffEffect?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.Rendering/Rendering/Sprites/SpriteRenderFeature.cs:262
  • `VisibilityGroup` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `collectorCache` itself (line 23), which makes that instance its own. But `collectorCache` is named in none of the methods the disposal search covered: `Dispose` (line 72) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`collectorCache?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.Rendering/Rendering/VisibilityGroup.cs:23
  • `OpenXRHmd` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `leftHand` itself (line 113), which makes that instance its own. But `leftHand` is named in none of the methods the disposal search covered: `Dispose` (line 899) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`leftHand?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.VirtualReality/OpenXR/OpenXRHmd.cs:113
  • `OpenXRHmd` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `rightHand` itself (line 116), which makes that instance its own. But `rightHand` is named in none of the methods the disposal search covered: `Dispose` (line 899) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`rightHand?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/engine/Stride.VirtualReality/OpenXR/OpenXRHmd.cs:116
  • `EffectPriorityScheduler` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `notifyQueuedTaskEvent` itself (line 23), which makes that instance its own. But `notifyQueuedTaskEvent` is named in none of the methods the disposal search covered: `Dispose` (line 161) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`notifyQueuedTaskEvent?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/shaders/Stride.Shaders.Effects/Compiler/EffectPriorityScheduler.cs:23
  • `EffectPriorityScheduler` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `notifyHighPriorityQueuedTaskEvent` itself (line 24), which makes that instance its own. But `notifyHighPriorityQueuedTaskEvent` is named in none of the methods the disposal search covered: `Dispose` (line 161) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`notifyHighPriorityQueuedTaskEvent?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/shaders/Stride.Shaders.Effects/Compiler/EffectPriorityScheduler.cs:24
  • `frame` is a `CodeFrame`, which implements `IDisposable`, and it is created here (line 9). Every use of it in `Apply` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var frame = …;`), which releases it at the end of the scope on every path including a throw. — sources/shaders/Stride.Shaders.Parsers/Parsing/PreProcessing/CMacros/CommentPhase.cs:9
  • `cpp` is a `Preprocessor`, which implements `IDisposable`, and it is created here (line 23). Every use of it in `Run` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cpp = …;`), which releases it at the end of the scope on every path including a throw. — sources/shaders/Stride.Shaders.Parsers/Parsing/PreProcessing/MacroPreProcessor.cs:23
  • `coreTask` is a `Task`, which implements `IDisposable`, and it is created here (line 115). Every use of it in `PreProcessInstructions` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var coreTask = …;`), which releases it at the end of the scope on every path including a throw. — sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:115
  • `glslTask` is a `Task`, which implements `IDisposable`, and it is created here (line 117). Every use of it in `PreProcessInstructions` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var glslTask = …;`), which releases it at the end of the scope on every path including a throw. — sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:117
  • `lit` is a `LiteralString`, which implements `IDisposable`, and it is created here (line 62). Every use of it in `Parse` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var lit = …;`), which releases it at the end of the scope on every path including a throw. — sources/shaders/Stride.Shaders.Spirv/Literals/LiteralString.cs:62
  • `lz4Stream` is a `LZ4Stream`, which implements `IDisposable`, and it is created here (line 68). Every use of it in `Write` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var lz4Stream = …;`), which releases it at the end of the scope on every path including a throw. — sources/engine/Stride.Graphics.Regression/TestResultImage.cs:68
  • `Builder` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `cancellationTokenSource` itself (line 133), which makes that instance its own. But `cancellationTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 197), `CloseObjectDatabase` (line 170) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`cancellationTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:133
  • `commandResultEntries` is a `ListStore`, which implements `IDisposable`, and it is created here (line 65). Every use of it in `Clean` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var commandResultEntries = …;`), which releases it at the end of the scope on every path including a throw. — sources/buildengine/Stride.Core.BuildEngine.Common/CommandBuildStep.cs:65
  • `reader` is a `StreamReader`, which implements `IDisposable`, and it is created here (line 121). Every use of it in `ReadEntries` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var reader = …;`), which releases it at the end of the scope on every path including a throw. — sources/buildengine/Stride.Core.BuildEngine.Common/FileVersionStorage.cs:121
  • `dependenciesReader` is a `DependencyContextJsonReader`, which implements `IDisposable`, and it is created here (line 311). Every use of it in `LoadAssemblyFromPathInternal` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var dependenciesReader = …;`), which releases it at the end of the scope on every path including a throw. — sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:311
  • `searcher` is a `ManagementObjectSearcher`, which implements `IDisposable`, and it is created here (line 175). Every use of it in `QueryVideoControllers` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var searcher = …;`), which releases it at the end of the scope on every path including a throw. — sources/core/Stride.Core.Design/Windows/AppHelper.cs:175
  • `host` is a `NpHost`, which implements `IDisposable`, and it is created here (line 588). Every use of it in `TryExecuteRemote` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var host = …;`), which releases it at the end of the scope on every path including a throw. — sources/assets/Stride.AssetCompiler/PackageBuilder.cs:588
  • `reader` is a `StreamReader`, which implements `IDisposable`, and it is created here (line 33). Every use of it in `Load` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var reader = …;`), which releases it at the end of the scope on every path including a throw. — sources/assets/Stride.Core.Assets/Serializers/SourceCodeAssetSerializer.cs:33
  • `AssetSourceTracker` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `threadWatcherEvent` itself (line 25), which makes that instance its own. But `threadWatcherEvent` is named in none of the methods the disposal search covered: `Dispose` (line 173) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`threadWatcherEvent?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — sources/assets/Stride.Core.Assets/Tracking/AssetSourceTracker.cs:25
  • `streamGeometryContext` is a `StreamGeometryContext`, which implements `IDisposable`, and it is created here (line 441). Every use of it in `DrawLineSegmentsByStreamGeometry` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var streamGeometryContext = …;`), which releases it at the end of the scope on every path including a throw. — sources/presentation/Stride.Core.Presentation.Wpf/Drawing/CanvasRenderer.cs:441

What to do

  • Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

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

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

X2 · Cancellation propagation4.5 / 10Weak✓ Tool-verified

Other · Code Health — Whether async methods accept a CancellationToken so work can be cancelled (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 56/612 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
  • No CancellationToken parameter — this work can't be stopped early once started. (×35) — sources/core/Stride.Core.IO/VirtualFileSystem.cs:232, sources/core/Stride.Core.IO/VirtualFileSystem.cs:277, sources/core/Stride.Core.IO/VirtualFileSystem.cs:320, …
  • Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`). (×3) — sources/core/Stride.Core/Diagnostics/ChromeTracingProfileWriter.cs:16, sources/core/Stride.Core/Diagnostics/Profiler.cs:132, sources/engine/Stride.Engine/Engine/Network/Sockets.Implementation.NET/TcpSocketListener.cs:99
  • No CancellationToken parameter — the body observes an ambient token instead (a field or a context object), so the work does stop on cancellation, but a caller cannot cancel this call independently of the owner that created that token. — sources/engine/Stride.Engine/Engine/Network/Sockets.Implementation.NET/TcpSocketListener.cs:52

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X20 · Mistyped argument guard7.5 / 10Strong✓ Tool-verified

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `ArgumentNullException` tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.

  • The guard on line 31 rejects `url` and line 33 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(url)` is true of a value that is NOT null: it is satisfied by an EMPTY `url`, and on that path `url` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/core/Stride.Core.Serialization/Serialization/UrlReferenceBase.cs:33
  • The guard on line 45 rejects `url` and line 47 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(url)` is true of a value that is NOT null: it is satisfied by an EMPTY `url`, and on that path `url` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/core/Stride.Core.Serialization/Serialization/UrlReferenceBase.cs:47
  • The guard on line 23 rejects `category` and line 25 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(category)` is true of a value that is NOT null: it is satisfied by an EMPTY `category`, and on that path `category` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/engine/Stride.Engine/Engine/ComponentCategoryAttribute.cs:25
  • The guard on line 58 rejects `character` and line 59 reports that rejection as `ArgumentNullException` — but the condition's own test `character.Bitmap == null` is true of a value that is NOT null: it reads a member of `character`, so it can only be evaluated on a non-null `character` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `character` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/engine/Stride.Graphics/Font/FontCacheManager.cs:59
  • The guard on line 154 rejects `instance` and line 155 reports that rejection as `ArgumentNullException` — but the condition's own test `instance.Handle == 0` is true of a value that is NOT null: it reads a member of `instance`, so it can only be evaluated on a non-null `instance` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `instance` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/engine/Stride.VirtualReality/OpenXR/OpenXRUtils.cs:155
  • The guard on line 178 rejects `version` and line 180 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(version)` is true of a value that is NOT null: it is satisfied by an EMPTY `version`, and on that path `version` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/core/Stride.Core.Design/PackageVersion.cs:180
  • The guard on line 94 rejects `handle` and line 96 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(handle)` is true of a value that is NOT null: it is satisfied by an EMPTY `handle`, and on that path `handle` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/core/Stride.Core.Yaml/Tokens/TagDirective.cs:96
  • The guard on line 106 rejects `prefix` and line 108 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(prefix)` is true of a value that is NOT null: it is satisfied by an EMPTY `prefix`, and on that path `prefix` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/core/Stride.Core.Yaml/Tokens/TagDirective.cs:108
  • The guard on line 21 rejects `part` and line 21 reports that rejection as `ArgumentNullException` — but the condition's own test `part.Value == null` is true of a value that is NOT null: it reads a member of `part`, so it can only be evaluated on a non-null `part` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `part` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/assets/Stride.Core.Assets/AssetPartCollection.cs:21
  • The guard on line 192 rejects `packageName` and line 192 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(packageName)` is true of a value that is NOT null: it is satisfied by an EMPTY `packageName`, and on that path `packageName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/assets/Stride.Core.Assets/PackageMeta.cs:192
  • The guard on line 22 rejects `groupName` and line 24 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(groupName)` is true of a value that is NOT null: it is satisfied by an EMPTY `groupName`, and on that path `groupName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/AbstractNodeTypeGroup.cs:24
  • The guard on line 27 rejects `types` and line 29 reports that rejection as `ArgumentNullException` — but the condition's own test `types.IsNullOrEmpty()` is true of a value that is NOT null: it reads a member of `types`, so it can only be evaluated on a non-null `types` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `types` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/AbstractNodeTypeGroup.cs:29

What to do

  • Each finding names the throw and the test in its own condition that is true of a NON-null value. Confirm from the two, then throw the exception that describes what was actually wrong: `ArgumentException` for a value that arrived empty, or the .NET 8 helpers that spell the whole guard in one line and pick the type for you — `ArgumentException.ThrowIfNullOrEmpty(s)` / `ThrowIfNullOrWhiteSpace(s)` for strings, `ArgumentNullException.ThrowIfNull(x)` followed by `ArgumentOutOfRangeException.ThrowIfZero(x.Count)` for a collection. Splitting the two conditions is usually clearer than picking one exception for both: they are different failures and the caller may want to handle them differently.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

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

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

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

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back. Also whether a `finally` that gives the primitive back unconditionally can run in a state where the method does not hold it: after a timed wait whose result was discarded, after an acquire inside the `try` that can fail, after the body already released it, or never, because a `return` left between the acquire and the `try`.

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

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

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

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

X24 · Document value interpolated into markup unescaped3.2 / 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.

  • `item["Platform"]+" "+item["Device"]` 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. — sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:172
  • `item["TestName"]+" - frame "+item["FrameIndex"]` 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. — sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:176
  • `item["BuildNumber"]` 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. — sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:180
  • `error` 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. — sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:197
  • `testName` 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. — sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:229

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.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

X27 · Collection changed while being enumerated8.0 / 10Strong✓ Tool-verified

Other · Code Health — Whether a `foreach` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is enumerating invalidates the enumerator it is holding, so the next `MoveNext` throws `InvalidOperationException` and the remaining items are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

  • `other.Indices` is enumerated directly, and line 35 calls `other.Indices.Add(…)` inside the loop body — a structural change to a `List`. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshInputBuilder.cs:34
  • The loop walks `liveAnalysis.ReferencedMethods`, and line 563 calls `MethodDuplicator.DuplicateMethodIfNecessary(…)`, which reaches `liveAnalysis.GetOrCreateMethodInfo(functionId)` in `MethodDuplicator.DuplicateMethodIfNecessary` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:560
  • The loop walks `liveAnalysis.ReferencedMethods`, and line 570 calls `StreamAccessPatcher.PatchStreamsAccesses(…)`, which reaches `liveAnalysis.GetOrCreateMethodInfo(functionId)` in `StreamAccessPatcher.PatchStreamsAccesses` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:567
  • The loop walks `selectedEntities`, and line 155 calls `UpdateGizmoEntitiesSelection(…)`, which reaches `selectedEntities.Add(entity)` in `EditorGameComponentGizmoService.UpdateGizmoEntitiesSelection` — a structural change to that same `HashSet` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/editor/Stride.Assets.Editor/EditorGame/EditorGameComponentGizmoService.cs:153
  • The loop walks `session.Projects.Where(x => !packageMap.ContainsValue(x))`, and line 654 calls `CreateProjectViewModel(…)`, which reaches `session.Projects.Add(project)` in `SessionViewModel.CreateProjectViewModel` — a structural change to that same `ProjectCollection` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:652
  • The loop walks `initialQueue`, and line 114 calls `StartInitialBuild(…)`, which reaches `initialQueue.Add(package)` in `ThumbnailsViewModel.StartInitialBuild` — a structural change to that same `HashSet` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/editor/Stride.Core.Assets.Editor/ViewModels/ThumbnailsViewModel.cs:112
  • The loop walks `scrollingRequets`, and line 299 calls `ScrolllToElement(…)`, which reaches `scrollingRequets.Clear()` in `StackPanel.ScrolllToElement` — a structural change to that same `List` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/plugins/UI/Stride.UI/Panels/StackPanel.cs:294
  • The loop walks `context.SerializableTypesProfiles`, and line 25 calls `context.ResolveSerializer(…)`, which reaches `GetSerializableTypes(profile)` in `CecilSerializerContext.ResolveSerializer` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — sources/core/Stride.Core.AssemblyProcessor/ProfileSerializerProcessor.cs:14

What to do

  • Each finding names the two spans that cannot both stand — the `foreach` source, and the call inside the body that structurally changes that same collection. Confirm from those two, then pick one: enumerate a snapshot (`foreach (var x in c.ToList())`), collect what needs changing and apply it after the loop, or — where the loop was only ever meant to act on the first match — `break` immediately after the mutation, which is the one shape that is already safe.
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 element8.0 / 10Strong✓ Tool-verified

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.

  • This loop runs once per element of `renderTargets`, and the statement it guards acts on the element it is on — `renderTargets[index]`. The test deciding whether that statement runs does not: `!renderTarget.IsInitialized` reads `renderTargets[0]`, a subscript that does not move, so whatever it answers for that one element it answers for ALL of them. One `if` names the same collection at two different subscripts — the fixed one at line 2095, which is the contradiction: either the test was meant to be per-element, in which case every element that differs from the fixed one is handled wrongly and all in the same direction, or it really is one answer for the whole collection, in which case it is being re-asked on every pass and belongs above the loop. The `if` is in the wrong place under both readings. Give the test the loop variable, or hoist it out. — sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:2114

What to do

  • Each finding names the test and the statement it guards, which index the same collection at two different subscripts — one fixed, one the loop variable. Confirm from the two, then decide which subscript the test meant. If it was meant to be per-element, give it the loop variable so each element is judged on itself. If it really is one answer for the whole collection, hoist the test OUT of the loop, where a reader can see it is asked once and where it is not re-evaluated on every pass — leaving it inside, reading a fixed element, is the one arrangement that cannot be right under either reading.
X3 · Exception handling4.8 / 10Weak✓ Tool-verified

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

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

  • 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. (×35) — sources/core/Stride.Core.IO/DirectoryWatcher.Desktop.cs:348, sources/core/Stride.Core.IO/TemporaryFile.cs:47, sources/core/Stride.Core.IO/TemporaryFile.cs:50, …
  • `catch (UnauthorizedAccessException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. — sources/core/Stride.Core.Serialization/Serialization/Contents/ContentIndexMap.cs:61
  • `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. (×2) — sources/core/Stride.Core.Serialization/Storage/FileOdbBackend.cs:45, sources/engine/Stride.Engine/Engine/Network/RouterClient.cs:101
  • `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. — sources/engine/Stride.Engine/Updater/BlittableHelper.cs:44
  • `catch (COMException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. — sources/core/Stride.Core.Design/CodeEditorSupport/VisualStudio/VisualStudioVersions.cs:82

What to do

  • Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects5.6 / 10Adequate✓ Tool-verified

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.

  • `!(format.IsRgbaOrder || format.IsBgraOrder || pixelSize != 4)` does not say what its shape suggests. By De Morgan a negated `||` distributes as `!format.IsRgbaOrder && !format.IsBgraOrder && pixelSize == 4`, so this guard fires only where `format.IsRgbaOrder` and `format.IsBgraOrder` are ABSENT — and where `pixelSize` is EXACTLY `4`, which is the one value the term `pixelSize != 4` was written to refuse. The two halves disagree about what they are for: `format.IsRgbaOrder` and `format.IsBgraOrder` name things the code needs, and `pixelSize != 4` names a value it cannot handle, and one `!(…)` cannot mean both. Everything with a `pixelSize` other than `4` now passes this guard untested, including the values `format.IsRgbaOrder` and `format.IsBgraOrder` were there to admit. — sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:769
  • `!(format.IsRgbaOrder || format.IsBgraOrder || format.SizeInBytes != 4)` does not say what its shape suggests. By De Morgan a negated `||` distributes as `!format.IsRgbaOrder && !format.IsBgraOrder && format.SizeInBytes == 4`, so this guard fires only where `format.IsRgbaOrder` and `format.IsBgraOrder` are ABSENT — and where `format.SizeInBytes` is EXACTLY `4`, which is the one value the term `format.SizeInBytes != 4` was written to refuse. The two halves disagree about what they are for: `format.IsRgbaOrder` and `format.IsBgraOrder` name things the code needs, and `format.SizeInBytes != 4` names a value it cannot handle, and one `!(…)` cannot mean both. Everything with a `format.SizeInBytes` other than `4` now passes this guard untested, including the values `format.IsRgbaOrder` and `format.IsBgraOrder` were there to admit. (×2) — sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:844, sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:875

What to do

  • Each finding expands the condition by De Morgan and names the two terms that disagree — a capability the body needs, and a value the guard refuses. Confirm from the expansion, then decide where the parentheses belong. Almost always the fault term was meant to be conjoined with the capabilities rather than listed beside them: `!((a || b) && x == k)` rejects anything that is neither a nor b, AND anything whose x is not k, which is what a support guard is for. Leaving it as written is the one arrangement that admits exactly the values the guard names.
X4 · Structured logging10.0 / 10Exemplary○ Nothing flagged

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

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

X5 · Nullable reference types4.5 / 10Weak✓ Tool-verified

Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.

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

  • This method contradicts itself about `contentReference`: line 40 writes `contentReference?.Value`, which says `contentReference` can be null, but line 44 then dereferences it directly as `contentReference.Location` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `contentReference` truly cannot be null here, the `?.` is misleading. Settle it one way — test `contentReference` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/core/Stride.Core.Serialization/Serialization/Contents/ReferenceSerializer.cs:44
  • This method contradicts itself about `texture`: line 401 assigns it with `as Texture`, which hands back null rather than throwing when the value is not a `Texture`, but line 410 then dereferences it directly as `texture.GetViewSubResourceRange` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `texture` once before the first use and handle the null case, or cast with `(Texture)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:410
  • This method contradicts itself about `control`: line 612 assigns it with `as SDL.Window`, which hands back null rather than throwing when the value is not a `SDL.Window`, but line 614 then dereferences it directly as `control.SdlHandle` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `control` once before the first use and handle the null case, or cast with `(SDL.Window)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Graphics/Vulkan/SwapChainGraphicsPresenter.Vulkan.cs:614
  • This method contradicts itself about `evt`: line 88 assigns it with `as GestureEventComposite`, which hands back null rather than throwing when the value is not a `GestureEventComposite`, but line 89 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventComposite)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Input/Gestures/GestureRecognizerComposite.cs:89
  • This method contradicts itself about `evt`: line 67 assigns it with `as GestureEventDrag`, which hands back null rather than throwing when the value is not a `GestureEventDrag`, but line 68 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventDrag)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Input/Gestures/GestureRecognizerDrag.cs:68
  • This method contradicts itself about `evt`: line 60 assigns it with `as GestureEventFlick`, which hands back null rather than throwing when the value is not a `GestureEventFlick`, but line 61 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventFlick)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Input/Gestures/GestureRecognizerFlick.cs:61
  • This method contradicts itself about `evt`: line 36 assigns it with `as GestureEventLongPress`, which hands back null rather than throwing when the value is not a `GestureEventLongPress`, but line 37 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventLongPress)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Input/Gestures/GestureRecognizerLongPress.cs:37
  • This method contradicts itself about `evt`: line 140 assigns it with `as GestureEventTap`, which hands back null rather than throwing when the value is not a `GestureEventTap`, but line 141 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventTap)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Input/Gestures/GestureRecognizerTap.cs:141
  • This method contradicts itself about `current`: line 169 writes `current?.GetHashCode`, which says `current` can be null, but line 171 then dereferences it directly as `current.GetHashCode` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `current` truly cannot be null here, the `?.` is misleading. Settle it one way — test `current` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/shaders/Stride.Shaders/ShaderMixinSource.cs:171
  • This method contradicts itself about `setupConfiguration`: line 28 assigns it with `as ISetupConfiguration2`, which hands back null rather than throwing when the value is not a `ISetupConfiguration2`, but line 33 then dereferences it directly as `setupConfiguration.GetInstanceForPath` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `setupConfiguration` once before the first use and handle the null case, or cast with `(ISetupConfiguration2)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/core/Stride.Core.Tasks/LocateDevenv.cs:33
  • This method contradicts itself about `logger`: line 36 tests it for null before doing anything with it — the author's own statement that null is an input this code expects — but that `if` scopes only the block beneath it, and line 62 then dereferences `logger` as `logger.Warning` AFTER the block has closed, where the guard no longer applies. A null `logger` skips the guarded body and reaches that line anyway, throwing NullReferenceException on exactly the input the guard was written for. If the dereference belongs to the guarded work, move it inside the block; if `logger` truly cannot be null by then, the guard above is misleading and should go. — sources/assets/Stride.Core.Assets/Analysis/IdentifiableObjectAnalysis.cs:62
  • This method contradicts itself about `item`: line 154 assigns it with `as Tuple<NodeVertex, object>`, which hands back null rather than throwing when the value is not a `Tuple<NodeVertex, object>`, but line 156 then dereferences it directly as `item.Item1` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `item` once before the first use and handle the null case, or cast with `(Tuple<NodeVertex, object>)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/presentation/Stride.Core.Presentation.Wpf.Graph/Controls/NodeVertexControl.cs:156
  • This method contradicts itself about `child`: line 242 assigns it with `as TreeViewItem`, which hands back null rather than throwing when the value is not a `TreeViewItem`, but line 243 then dereferences it directly as `child.DataContext` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `child` once before the first use and handle the null case, or cast with `(TreeViewItem)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:243
  • This method contradicts itself about `child`: line 324 assigns it with `as TreeViewItem`, which hands back null rather than throwing when the value is not a `TreeViewItem`, but line 329 then dereferences it directly as `child.ParentTreeView` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `child` once before the first use and handle the null case, or cast with `(TreeViewItem)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:329
  • This method contradicts itself about `virtualizingTreePanel`: line 360 assigns it with `as UIElement`, which hands back null rather than throwing when the value is not a `UIElement`, but line 361 then dereferences it directly as `virtualizingTreePanel.InvalidateMeasure` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `virtualizingTreePanel` once before the first use and handle the null case, or cast with `(UIElement)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:361
  • This method contradicts itself about `treeViewItem`: line 379 assigns it with `as TreeViewItem`, which hands back null rather than throwing when the value is not a `TreeViewItem`, but line 380 then dereferences it directly as `treeViewItem.ParentTreeView` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `treeViewItem` once before the first use and handle the null case, or cast with `(TreeViewItem)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:380
  • This method contradicts itself about `currentRoot`: line 40 assigns it with `as SceneRootViewModel`, which hands back null rather than throwing when the value is not a `SceneRootViewModel`, but line 46 then dereferences it directly as `currentRoot.EntityCount` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `currentRoot` once before the first use and handle the null case, or cast with `(SceneRootViewModel)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/editor/Stride.Assets.Editor/AssetEditors/SceneEditor/ViewModels/AddAssetPolicies/AddSceneAssetPolicy.cs:46
  • This method contradicts itself about `parent`: line 28 writes `parent?.Value`, which says `parent` can be null, but line 28 then dereferences it directly as `parent.AttachedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `parent` truly cannot be null here, the `?.` is misleading. Settle it one way — test `parent` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/editor/Stride.Assets.Editor/Quantum/NodePresenters/Updaters/ModelNodeLinkNodeUpdater.cs:28
  • This method contradicts itself about `parentModelAsset`: line 44 writes `parentModelAsset?.Asset`, which says `parentModelAsset` can be null, but line 47 then dereferences it directly as `parentModelAsset.Package` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `parentModelAsset` truly cannot be null here, the `?.` is misleading. Settle it one way — test `parentModelAsset` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/editor/Stride.Assets.Editor/Quantum/NodePresenters/Updaters/ModelNodeLinkNodeUpdater.cs:47
  • This method contradicts itself about `dictionaryDescriptor`: line 107 assigns it with `as DictionaryDescriptor`, which hands back null rather than throwing when the value is not a `DictionaryDescriptor`, but line 108 then dereferences it directly as `dictionaryDescriptor.KeyType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `dictionaryDescriptor` once before the first use and handle the null case, or cast with `(DictionaryDescriptor)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/AddPrimitiveKeyCommand.cs:108
  • This method contradicts itself about `collectionNode`: line 26 writes `collectionNode?.Descriptor`, which says `collectionNode` can be null, but line 33 then dereferences it directly as `collectionNode.Descriptor` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `collectionNode` truly cannot be null here, the `?.` is misleading. Settle it one way — test `collectionNode` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/RemoveItemCommand.cs:33
  • This method contradicts itself about `DictionaryDescriptor`: line 59 assigns it with `as DictionaryDescriptor`, which hands back null rather than throwing when the value is not a `DictionaryDescriptor`, but line 60 then dereferences it directly as `DictionaryDescriptor.KeyType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `DictionaryDescriptor` once before the first use and handle the null case, or cast with `(DictionaryDescriptor)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/RenameStringKeyCommand.cs:60
  • This method contradicts itself about `memberNode`: line 139 assigns it with `as IMemberNode`, which hands back null rather than throwing when the value is not a `IMemberNode`, but line 144 then dereferences it directly as `memberNode.Update` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `memberNode` once before the first use and handle the null case, or cast with `(IMemberNode)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/editor/Stride.Core.Assets.Presentation/Quantum/ContentValueChangeOperation.cs:144
  • This method contradicts itself about `objectNode`: line 140 assigns it with `as IObjectNode`, which hands back null rather than throwing when the value is not a `IObjectNode`, but line 147 then dereferences it directly as `objectNode.Update` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `objectNode` once before the first use and handle the null case, or cast with `(IObjectNode)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/editor/Stride.Core.Assets.Presentation/Quantum/ContentValueChangeOperation.cs:147
  • This method contradicts itself about `newControl`: line 38 tests it for null before doing anything with it — the author's own statement that null is an input this code expects — but that `if` scopes only the block beneath it, and line 49 then dereferences `newControl` as `newControl.DetachedFromLogicalTree` AFTER the block has closed, where the guard no longer applies. A null `newControl` skips the guarded body and reaches that line anyway, throwing NullReferenceException on exactly the input the guard was written for. If the dereference belongs to the guarded work, move it inside the block; if `newControl` truly cannot be null by then, the guard above is misleading and should go. — sources/editor/Stride.Core.Assets.Editor.Avalonia/Views/PropertyTemplateProviderSelector.cs:49
  • This method contradicts itself about `picker`: line 31 writes `picker?.ShowModal`, which says `picker` can be null, but line 36 then dereferences it directly as `picker.SelectedEntity` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `picker` truly cannot be null here, the `?.` is misleading. Settle it one way — test `picker` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/editor/Stride.Assets.Editor.Wpf/NodePresenters/Commands/PickupSceneObjectCommandBase.cs:36
  • This method contradicts itself about `undoRedoService`: line 243 writes `undoRedoService?.CreateTransaction`, which says `undoRedoService` can be null, but line 251 then dereferences it directly as `undoRedoService.SetName` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `undoRedoService` truly cannot be null here, the `?.` is misleading. Settle it one way — test `undoRedoService` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/editor/Stride.Assets.Editor.Wpf/ViewModel/ModelComponentViewModel.cs:251
  • This method contradicts itself about `semanticModel`: line 48 writes `semanticModel?.`, which says `semanticModel` can be null, but line 57 then dereferences it directly as `semanticModel.GetDeclaredSymbol` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `semanticModel` truly cannot be null here, the `?.` is misleading. Settle it one way — test `semanticModel` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Attributes.cs:57
  • This method contradicts itself about `semanticModel`: line 45 writes `semanticModel?.`, which says `semanticModel` can be null, but line 52 then dereferences it directly as `semanticModel.GetSymbolInfo` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `semanticModel` truly cannot be null here, the `?.` is misleading. Settle it one way — test `semanticModel` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:52
  • This method contradicts itself about `modelComponent`: line 23 assigns it with `as ModelComponent`, which hands back null rather than throwing when the value is not a `ModelComponent`, but line 24 then dereferences it directly as `modelComponent.Model` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `modelComponent` once before the first use and handle the null case, or cast with `(ModelComponent)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Assets/Entities/ComponentChecks/ModelComponentCheck.cs:24
  • This method contradicts itself about `nodeLinkComponent`: line 22 assigns it with `as ModelNodeLinkComponent`, which hands back null rather than throwing when the value is not a `ModelNodeLinkComponent`, but line 23 then dereferences it directly as `nodeLinkComponent.ValidityCheck` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `nodeLinkComponent` once before the first use and handle the null case, or cast with `(ModelNodeLinkComponent)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Assets/Entities/ComponentChecks/ModelNodeLinkComponentCheck.cs:23
  • This method contradicts itself about `oldGravity`: line 43 assigns it with `as DynamicYamlScalar`, which hands back null rather than throwing when the value is not a `DynamicYamlScalar`, but line 51 then dereferences it directly as `oldGravity.Node` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `oldGravity` once before the first use and handle the null case, or cast with `(DynamicYamlScalar)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/engine/Stride.Assets/Entities/EntityHierarchyAssetBase.Upgraders.cs:51
  • This method contradicts itself about `groups`: line 135 writes `groups?.ComputeHash`, which says `groups` can be null, but line 124 then dereferences it directly as `groups.Count` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `groups` truly cannot be null here, the `?.` is misleading. Settle it one way — test `groups` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuilder.cs:124
  • This method contradicts itself about `floats`: line 323 assigns it with `as float[]`, which hands back null rather than throwing when the value is not a `float[]`, but line 324 then dereferences it directly as `floats.Length` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `floats` once before the first use and handle the null case, or cast with `(float[])` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs:324
  • This method contradicts itself about `shorts`: line 331 assigns it with `as short[]`, which hands back null rather than throwing when the value is not a `short[]`, but line 332 then dereferences it directly as `shorts.Length` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `shorts` once before the first use and handle the null case, or cast with `(short[])` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs:332
  • This method contradicts itself about `bytes`: line 339 assigns it with `as byte[]`, which hands back null rather than throwing when the value is not a `byte[]`, but line 340 then dereferences it directly as `bytes.Length` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `bytes` once before the first use and handle the null case, or cast with `(byte[])` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs:340
  • This method contradicts itself about `coneTwist`: line 65 assigns it with `as ConeTwistConstraint`, which hands back null rather than throwing when the value is not a `ConeTwistConstraint`, but line 71 then dereferences it directly as `coneTwist.SetLimit` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `coneTwist` once before the first use and handle the null case, or cast with `(ConeTwistConstraint)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/plugins/BulletPhysics/Stride.Physics/Constraints/ConeTwistConstraintDesc.cs:71
  • This method contradicts itself about `gear`: line 67 assigns it with `as GearConstraint`, which hands back null rather than throwing when the value is not a `GearConstraint`, but line 69 then dereferences it directly as `gear.Ratio` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `gear` once before the first use and handle the null case, or cast with `(GearConstraint)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/plugins/BulletPhysics/Stride.Physics/Constraints/GearConstraintDesc.cs:69
  • This method contradicts itself about `slider`: line 68 assigns it with `as SliderConstraint`, which hands back null rather than throwing when the value is not a `SliderConstraint`, but line 73 then dereferences it directly as `slider.LowerLinearLimit` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `slider` once before the first use and handle the null case, or cast with `(SliderConstraint)` so the failure is reported where it happens — rather than leaving the two readings side by side. — sources/plugins/BulletPhysics/Stride.Physics/Constraints/SliderConstraintDesc.cs:73
  • This method contradicts itself about `parentPool`: line 67 writes `parentPool?.LivingParticles`, which says `parentPool` can be null, but line 106 then dereferences it directly as `parentPool.FromIndex` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `parentPool` truly cannot be null here, the `?.` is misleading. Settle it one way — test `parentPool` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — sources/plugins/Particles/Stride.Particles/Initializers/InitialColorParent.cs:106

What to do

  • Where a method uses `?.` on a symbol and then dereferences it directly, settle the question once: test it before the first use and handle null, or drop the `?.`.
  • Where a method null-tests a symbol and then uses it after the guarded block closes, move the trailing work inside the block — the guard skips its body on null, it does not stop the method.
  • Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.

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 Health51%Adequate — gated by D18Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture66%Adequate — gated by AX2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity73%Adequate — gated by D16Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness73%StrongStrongest area.
Security48%Weak — gated by D29, D36, C1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance60%AdequateAcceptable, with room to improve.
Unscored — 5 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.

  • P12 CI test-gate honesty — 5 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X6 Hand-rolled structured-format parsing — 5 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 3 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.

  • C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
  • C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. A delete/anonymise identifier was seen but did not co-occur with GDPR vocabulary or a subject-id shape, so it was not credited (e.g. a save-slot DeleteAccount()). Implement erasure, data export/portability and consent tracking over the subject's records.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 44 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC2 Forms & labels — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC3 Page structure — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC4 Keyboard semantics — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC5 ARIA correctness — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC6 Visual & motion safety — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AX1 Captive dependencies — no DI registrations detected
  • AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • D12 Dependency Hygiene — Dependency hygiene not measured
  • D21 Naming Consistency — Naming consistency is measured on C# and TypeScript only; JavaScript, Python not measured.
  • D22 Internal API Consistency — N/A — too few peer members to establish a convention across 22 exposed C# types.
  • D23 Boundary Type-Coupling — Cross-context type coupling could not be assessed — this codebase's bounded contexts are neither declared nor inferable.
  • D25 ADR Conformance — no ADRs to check
  • D28 Secrets (history) — gitleaks killed before it finished — this repository's working tree not scanned
  • 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) — 287 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 — Code Duplication not included (time budget)
  • 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 dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — analyzer environment
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 7 strongly-typed id(s); 41 value object(s)
  • ED1 Event-Driven — not scored — this repository shows only 1 of the 3 signals this lens looks for (2 CQRS handler(s))
  • ED5 Idempotency — Not assessed, and this one is on us: 1 of the 4 handler(s) found here write to persistent state through an entry point this check does not yet recognise (an explicitly-implemented interface method, or a static handler method). Idempotency was neither confirmed nor ruled out for them — this is a limit of the analyzer, not a finding about your code.
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P10 Library API & versioning — Library API & versioning could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository.
  • P11 BDD / executable specs — BDD / executable specs could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository.
  • P2 Observability — This repo is a library, not a deployed service — it has no process to operate, so production observability (structured logging, tracing/metrics, health checks) is N/A. A library may log via an injected ILogger, but the absence of operational telemetry is not a defect here. If it grows a host (web API, worker), the dimension reactivates.
  • P7 Outbound HTTP resilience — Outbound HTTP resilience could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository.
  • P8 Schema migrations — Schema migrations could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository.
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found by the two searches this check runs — a BenchmarkDotNet package reference in any project file (loaded, or on disk), and a script whose name contains `benchmark` that this repository's CI runs. Neither can see a suite in another ecosystem's idiom, so this is not a verdict that the repository has none. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted, and nothing is asked of a repository that has none.
  • 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.
  • 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
  • X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X32 Type resolved by simple name across every loaded assembly — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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 — 795 finding(s)
D29 · Static Analysis (SAST) · 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
  • REDACTED
  • + 309 more in this group — see findings.md.
D17 · Explicit Debt · EmptyCatchBlock · ×202
  • EmptyCatchBlock sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:265 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:298 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:327 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:445 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/assets/Stride.AssetCompiler/PackageBuilder.cs:443 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:696 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/assets/Stride.Core.Assets/Package.cs:1527 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:614 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock REDACTED:496 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock REDACTED:562 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock REDACTED:906 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock REDACTED:1327 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock REDACTED:1330 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:548 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.AssemblyProcessor/Serializers/CecilSerializerContext.cs:37 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs:543 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/CodeEditorSupport/VisualStudio/VisualStudioVersions.cs:72 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/CodeEditorSupport/VisualStudio/VisualStudioVersions.cs:111 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:233 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:561 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock REDACTED:123 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/Threading/Internal/TaskCompletionSourceExtensions.cs:70 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/TypeConverters/TypeConverterHelper.cs:88 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/TypeConverters/TypeConverterHelper.cs:89 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • EmptyCatchBlock sources/core/Stride.Core.Design/TypeConverters/TypeConverterHelper.cs:90 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
  • + 177 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
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 78 more in this group — see findings.md.
D17 · Explicit Debt · WriteOnlyPrivateField · ×40
  • WriteOnlyPrivateField samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs:44 — private Dictionary<AgentAnimation, int> AnimationFps — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs:46 — private SpriteComponent agentSpriteComponent — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField samples/Tutorials/CSharpBeginner/CSharpBeginner/CSharpBeginner.Game/Code/ChildEntitiesDemo.cs:14 — private Entity child0 — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/assets/Stride.Core.Assets/Compiler/RootPackageAssetEnumerator.cs:15 — private BuildDependencyManager buildDependencyManager — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/core/Stride.Core.Design/Transactions/Transaction.cs:15 — private SynchronizationContext? synchronizationContext — assigned 3 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/core/Stride.Core.MicroThreading/SwitchToAwaiter.cs:45 — private MicroThread? microThread — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/core/Stride.Core.Reflection/TypeDescriptors/ListDescriptor.cs:15 — private object[] EmptyObjects — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/core/Stride.Core.Yaml/SortedDictionary.cs:1582 — private TreeSet<T>.Node dummyNode — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/core/Stride.Core/Diagnostics/Profiler.cs:122 — private Task collectorTask — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/EntityHierarchyEditor/ViewModels/EditorOverlaysViewModel.cs:27 — private IEditorGameController controller — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptSlotViewModel.cs:18 — private IObjectNode slotNode — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/editor/Stride.Assets.Editor/SceneEditor/WireframeRenderFeature.cs:19 — private StaticObjectPropertyKey<RenderEffect> renderEffectKey — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/editor/Stride.Assets.Editor/ViewModels/GraphicsCompositorEditor/SharedRendererBlockViewModel.cs:16 — private Dictionary<SharedRendererReferenceKey, IGraphicsCompositorSlotViewModel> outputSlotMap — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/editor/Stride.Core.Assets.Presentation/ViewModels/PackageViewModel.cs:774 — private ISessionViewModel session — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/editor/Stride.GameStudio.Tests/TestThumbnails.cs:27 — private int assetCount — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs:57 — private bool trackAssemblyChanges — assigned 5 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Engine.Tests/TesselationTest.cs:38 — private RasterizerStateDescription wireframeState — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Graphics.Regression/RegressionTestAttribute.cs:8 — private int frameIndex — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Graphics.Tests.10_0/NextGen/NextGenTest1.cs:33 — private Material material2 — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Graphics/Effects/Effect.cs:22 — private GraphicsDevice graphicsDeviceDefault — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Graphics/UIBatch.cs:39 — private Vector4[] shiftVectorX — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Graphics/UIBatch.cs:40 — private Vector4[] shiftVectorY — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Rendering/Rendering/GraphicsRendererCollectionBase.cs:23 — private HashSet<T> tempRenderers — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Rendering/Rendering/Images/ColorTransforms/ColorTransformContext.cs:19 — private ParameterCollection transformParameters — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • WriteOnlyPrivateField sources/engine/Stride.Rendering/Rendering/LightProbes/LightProbeRenderer.cs:76 — private LightProbeRenderer lightProbeRenderer — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
  • + 15 more in this group — see findings.md.
AX3 · Project dependency cycles · Namespace dependency cycle · ×25
  • Namespace dependency cycle sources/core/Stride.Core.Design/AbsoluteId.cs:5 — The namespaces Stride.Core ↔ Stride.Core.Annotations ↔ Stride.Core.Assets ↔ Stride.Core.Assets.Analysis ↔ Stride.Core.Assets.Compiler ↔ Stride.Core.Assets.Serializers ↔ Stride.Core.Assets.Templates ↔ Stride.Core.Assets.Tracking ↔ Stride.Core.Assets.Visitors ↔ Stride.Core.Assets.Yaml ↔ Stride.Core.BuildEngine ↔ Stride.Core.IO ↔ Stride.Core.MicroThreading ↔ Stride.Core.Packages ↔ Stride.Core.Reflection ↔ Stride.Core.Serialization ↔ Stride.Core.Serialization.Contents ↔ Stride.Core.Settings ↔ Stride.Core.Storage ↔ Stride.Core.Yaml ↔ Stride.Core.Yaml.Events ↔ Stride.Core.Yaml.Schemas ↔ Stride.Core.Yaml.Serialization ↔ Stride.Core.Yaml.Serialization.Serializers ↔ Stride.Core.Yaml.Tokens depend on each other. The lightest dependency in the cycle is Stride.Core → Stride.Core.Assets (Stride.Core.AbsoluteId → Stride.Core.Assets.AssetId, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/shaders/Stride.Shaders.Spirv/MemoryInstruction.cs:3 — The namespaces Stride.Shaders.Spirv.Core ↔ Stride.Shaders.Spirv.Core.Buffers ↔ Stride.Shaders.Spirv.Core.Parsing depend on each other. The lightest dependency in the cycle is Stride.Shaders.Spirv.Core → Stride.Shaders.Spirv.Core.Parsing (Stride.Shaders.Spirv.Core.Instruction → Stride.Shaders.Spirv.Core.Parsing.OperandEnumerator, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/engine/Stride.Engine/Animations/AnimationProcessor.cs:12 — The namespaces Stride.Animations ↔ Stride.Audio ↔ Stride.Engine ↔ Stride.Engine.Design ↔ Stride.Engine.FlexibleProcessing ↔ Stride.Engine.Processors ↔ Stride.Physics ↔ Stride.Physics.Engine ↔ Stride.Rendering ↔ Stride.Rendering.Compositing ↔ Stride.Rendering.ComputeEffect ↔ Stride.Rendering.Images ↔ Stride.Rendering.Lights ↔ Stride.Rendering.Materials ↔ Stride.Rendering.Materials.ComputeColors ↔ Stride.Rendering.Shadows ↔ Stride.Rendering.Skyboxes ↔ Stride.Rendering.Sprites ↔ Stride.Rendering.SubsurfaceScattering ↔ Stride.Rendering.UI ↔ Stride.Rendering.Voxels ↔ Stride.Rendering.Voxels.Debug ↔ Stride.Shaders ↔ Stride.Shaders.Compiler ↔ Stride.Shaders.Compilers ↔ Stride.Shaders.Compilers.SDSL ↔ Stride.Shaders.Core ↔ Stride.Shaders.Parsing ↔ Stride.Shaders.Parsing.Analysis ↔ Stride.Shaders.Parsing.SDFX.AST ↔ Stride.Shaders.Parsing.SDSL ↔ Stride.Shaders.Parsing.SDSL.AST ↔ Stride.Shaders.Spirv.Building ↔ Stride.Shaders.Spirv.Processing ↔ Stride.Shaders.Spirv.Processing.Interfaces ↔ Stride.Shaders.Spirv.Processing.Interfaces.Models ↔ Stride.Streaming ↔ Stride.UI ↔ Stride.UI.Controls ↔ Stride.UI.Events ↔ Stride.UI.Renderers depend on each other. The lightest dependency in the cycle is Stride.Animations → Stride.Rendering (Stride.Animations.AnimationProcessor → Stride.Rendering.RenderContext, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/plugins/BepuPhysics/Stride.BepuPhysics/BodyComponent.cs:7 — The namespaces Stride.BepuPhysics ↔ Stride.BepuPhysics.Components ↔ Stride.BepuPhysics.Constraints ↔ Stride.BepuPhysics.Definitions ↔ Stride.BepuPhysics.Definitions.Colliders ↔ Stride.BepuPhysics.Definitions.Contacts ↔ Stride.BepuPhysics.Systems depend on each other. The lightest dependency in the cycle is Stride.BepuPhysics → Stride.BepuPhysics.Constraints (Stride.BepuPhysics.BodyComponent → Stride.BepuPhysics.Constraints.ConstraintComponentBase, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/presentation/Stride.Core.Quantum/DefaultNodeBuilder.cs:5 — The namespaces Stride.Core.Quantum ↔ Stride.Core.Quantum.References depend on each other. The lightest dependency in the cycle is Stride.Core.Quantum → Stride.Core.Quantum.References (Stride.Core.Quantum.DefaultNodeBuilder → Stride.Core.Quantum.References.IReference, 11 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/presentation/Stride.Core.Presentation.Wpf/Controls/TagControl.cs:5 — The namespaces Stride.Core.Presentation.Commands ↔ Stride.Core.Presentation.Controls ↔ Stride.Core.Presentation.Services ↔ Stride.Core.Presentation.ViewModels ↔ Stride.Core.Presentation.Windows depend on each other. The lightest dependency in the cycle is Stride.Core.Presentation.Controls → Stride.Core.Presentation.Commands (Stride.Core.Presentation.Controls.TagControl → Stride.Core.Presentation.Commands.ICommandBase, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/presentation/Stride.Core.Presentation.Quantum/GraphViewModelService.cs:5 — The namespaces Stride.Core.Presentation.Quantum ↔ Stride.Core.Presentation.Quantum.Presenters ↔ Stride.Core.Presentation.Quantum.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Core.Presentation.Quantum → Stride.Core.Presentation.Quantum.ViewModels (Stride.Core.Presentation.Quantum.GraphViewModelService → Stride.Core.Presentation.Quantum.ViewModels.INodeViewModelFactory, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/assets/Stride.Core.Assets.Quantum/AssetPropertyGraph.cs:5 — The namespaces Stride.Core.Assets.Quantum ↔ Stride.Core.Assets.Quantum.Internal ↔ Stride.Core.Assets.Quantum.Visitors depend on each other. The lightest dependency in the cycle is Stride.Core.Assets.Quantum → Stride.Core.Assets.Quantum.Internal (Stride.Core.Assets.Quantum.AssetPropertyGraph → Stride.Core.Assets.Quantum.Internal.AssetMemberNode, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.Core.Assets.Presentation/Services/IPresentationPluginService.cs:5 — The namespaces Stride.Core.Assets.Presentation.Components.Properties ↔ Stride.Core.Assets.Presentation.Services ↔ Stride.Core.Assets.Presentation.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Core.Assets.Presentation.Services → Stride.Core.Assets.Presentation.Components.Properties (Stride.Core.Assets.Presentation.Services.IPresentationPluginService → Stride.Core.Assets.Presentation.Components.Properties.PackageSettingsEntry, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.Core.Assets.Editor/Components/Build/GameCodeReloadViewModel.cs:6 — The namespaces Stride.Core.Assets.Editor.Components.AddAssets ↔ Stride.Core.Assets.Editor.Components.Build ↔ Stride.Core.Assets.Editor.Components.Properties ↔ Stride.Core.Assets.Editor.Components.TemplateDescriptions ↔ Stride.Core.Assets.Editor.Panels ↔ Stride.Core.Assets.Editor.Services ↔ Stride.Core.Assets.Editor.View.DebugTools ↔ Stride.Core.Assets.Editor.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Core.Assets.Editor.Components.Build → Stride.Core.Assets.Editor.Services (Stride.Core.Assets.Editor.Components.Build.GameCodeReloadViewModel → Stride.Core.Assets.Editor.Services.IEditorDialogService, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.Assets.Editor/AssetEditors/EntityHierarchyEditor/Game/IEditorGameEntitySelectionService.cs:9 — The namespaces Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.Game ↔ Stride.Assets.Editor.SceneEditor depend on each other. The lightest dependency in the cycle is Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.Game → Stride.Assets.Editor.SceneEditor (Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.Game.IEditorGameEntitySelectionService → Stride.Assets.Editor.SceneEditor.EntityPickingResult, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:11 — The namespaces Stride.TextureConverter ↔ Stride.TextureConverter.Requests depend on each other. The lightest dependency in the cycle is Stride.TextureConverter → Stride.TextureConverter.Requests (Stride.TextureConverter.TextureTool → Stride.TextureConverter.Requests.LoadingRequest, 2 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/engine/Stride.Assets/Textures/TextureHelper.cs:15 — The namespaces Stride.Assets.Sprite ↔ Stride.Assets.Textures depend on each other. The lightest dependency in the cycle is Stride.Assets.Textures → Stride.Assets.Sprite (Stride.Assets.Textures.ImportParameters → Stride.Assets.Sprite.SpriteSheetParameters, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.Assets.Editor/ViewModels/EntityHierarchyEditorViewModel.cs:12 — The namespaces Stride.Assets.Editor.AssetEditors.EntityHierarchyEditor.ViewModels ↔ Stride.Assets.Editor.AssetEditors.GameEditor.ViewModels ↔ Stride.Assets.Editor.EditorGame ↔ Stride.Assets.Editor.EntityFactories ↔ Stride.Assets.Editor.ViewModels ↔ Stride.Assets.Editor.ViewModels.GraphicsCompositorEditor ↔ Stride.Assets.Editor.ViewModels.SpriteEditor ↔ Stride.Assets.Presentation.AssetEditors ↔ Stride.Assets.Presentation.AssetEditors.EntityHierarchyEditor ↔ Stride.Assets.Presentation.AssetEditors.EntityHierarchyEditor.Services ↔ Stride.Assets.Presentation.AssetEditors.EntityHierarchyEditor.ViewModels ↔ Stride.Assets.Presentation.AssetEditors.GameEditor.ViewModels ↔ Stride.Assets.Presentation.AssetEditors.ScriptEditor ↔ Stride.Assets.Presentation.SceneEditor.Services ↔ Stride.Assets.Presentation.View ↔ Stride.Assets.Presentation.ViewModel ↔ Stride.Assets.Presentation.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Assets.Editor.ViewModels → Stride.Assets.Editor.EntityFactories (Stride.Assets.Editor.ViewModels.EntityHierarchyEditorViewModel → Stride.Assets.Editor.EntityFactories.IEntityFactory, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.Editor.Wpf/Preview/GameStudioPreviewService.cs:33 — The namespaces Stride.Editor ↔ Stride.Editor.Preview ↔ Stride.Editor.Preview.View ↔ Stride.Editor.Preview.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Editor.Preview → Stride.Editor (Stride.Editor.Preview.GameStudioPreviewService → Stride.Editor.AssetPreviewFactory, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/HorizontalAndVerticalAxisRenderer.cs:37 — The namespaces Stride.Assets.Presentation.CurveEditor ↔ Stride.Assets.Presentation.CurveEditor.ViewModels depend on each other. The lightest dependency in the cycle is Stride.Assets.Presentation.CurveEditor → Stride.Assets.Presentation.CurveEditor.ViewModels (Stride.Assets.Presentation.CurveEditor.HorizontalAndVerticalAxisRenderer → Stride.Assets.Presentation.CurveEditor.ViewModels.CurveEditorViewModel, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/plugins/BulletPhysics/Stride.Navigation/DynamicNavigationMeshSystem.cs:16 — The namespaces Stride.Navigation ↔ Stride.Navigation.Processors depend on each other. The lightest dependency in the cycle is Stride.Navigation → Stride.Navigation.Processors (Stride.Navigation.DynamicNavigationMeshSystem → Stride.Navigation.Processors.StaticColliderProcessor, 2 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/plugins/BepuPhysics/Stride.BepuPhysics.Navigation/Components/RecastNavigationComponent.cs:1 — The namespaces Stride.BepuPhysics.Navigation.Components ↔ Stride.BepuPhysics.Navigation.Processors depend on each other. The lightest dependency in the cycle is Stride.BepuPhysics.Navigation.Components → Stride.BepuPhysics.Navigation.Processors (Stride.BepuPhysics.Navigation.Components.RecastNavigationComponent → Stride.BepuPhysics.Navigation.Processors.RecastNavigationProcessor, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/core/Stride.Core.AssemblyProcessor/Serializers/SerializerDescriptor.cs:12 — The namespaces Stride.Core.AssemblyProcessor ↔ Stride.Core.AssemblyProcessor.Serializers depend on each other. The lightest dependency in the cycle is Stride.Core.AssemblyProcessor.Serializers → Stride.Core.AssemblyProcessor (Stride.Core.AssemblyProcessor.Serializers.SerializerDescriptor → Stride.Core.AssemblyProcessor.SerializableItem, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/NodeGraphSelectionBehavior.cs:23 — The namespaces Stride.Core.Presentation.Graph.Behaviors ↔ Stride.Core.Presentation.Graph.Controls depend on each other. The lightest dependency in the cycle is Stride.Core.Presentation.Graph.Behaviors → Stride.Core.Presentation.Graph.Controls (Stride.Core.Presentation.Graph.Behaviors.NodeGraphSelectionBehavior → Stride.Core.Presentation.Graph.Controls.NodeEdgeControl, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs:27 — The namespaces Stride.GameStudio.AssetsEditors ↔ Stride.GameStudio.Layout ↔ Stride.GameStudio.View depend on each other. The lightest dependency in the cycle is Stride.GameStudio.AssetsEditors → Stride.GameStudio.Layout (Stride.GameStudio.AssetsEditors.AssetEditorsManager → Stride.GameStudio.Layout.DockingLayoutManager, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/editor/Stride.GameStudio.Avalonia/App.axaml.cs:37 — The namespaces Stride.GameStudio.Avalonia ↔ Stride.GameStudio.Avalonia.Docking ↔ Stride.GameStudio.Avalonia.Services ↔ Stride.GameStudio.Avalonia.ViewModels ↔ Stride.GameStudio.Avalonia.Views depend on each other. The lightest dependency in the cycle is Stride.GameStudio.Avalonia → Stride.GameStudio.Avalonia.ViewModels (Stride.GameStudio.Avalonia.App → Stride.GameStudio.Avalonia.ViewModels.MainViewModel, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/launcher/Stride.Launcher/App.axaml.cs:14 — The namespaces Stride.Launcher ↔ Stride.Launcher.Services ↔ Stride.Launcher.ViewModels ↔ Stride.Launcher.Views depend on each other. The lightest dependency in the cycle is Stride.Launcher → Stride.Launcher.ViewModels (Stride.Launcher.App → Stride.Launcher.ViewModels.MainViewModel, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/plugins/Particles/Stride.Particles/ParticleEmitter.cs:16 — The namespaces Stride.Particles ↔ Stride.Particles.Initializers ↔ Stride.Particles.Materials ↔ Stride.Particles.Modules ↔ Stride.Particles.ShapeBuilders ↔ Stride.Particles.Sorters ↔ Stride.Particles.Spawners ↔ Stride.Particles.Updaters depend on each other. The lightest dependency in the cycle is Stride.Particles → Stride.Particles.Materials (Stride.Particles.ParticleEmitter → Stride.Particles.Materials.ParticleMaterial, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle sources/plugins/UI/Stride.UI.Editor/Game/UIEditorGameAdornerService.cs:12 — The namespaces Stride.UI.Editor.Adorners ↔ Stride.UI.Editor.Game ↔ Stride.UI.Editor.Services ↔ Stride.UI.Editor.ViewModels depend on each other. The lightest dependency in the cycle is Stride.UI.Editor.Game → Stride.UI.Editor.Services (Stride.UI.Editor.Game.UIEditorGameAdornerService → Stride.UI.Editor.Services.UIEditorController, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
D10 · Test Quality · No assertions (empty test) · ×20
  • No assertions (empty test): Finalizer_DeletesFile sources/core/Stride.Core.Tests/IO/TemporaryFileTests.cs:60 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathHasDrive sources/core/Stride.Core.Design.Tests/TestUPath.cs:99 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathIsFile sources/core/Stride.Core.Design.Tests/TestUPath.cs:144 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathPathType sources/core/Stride.Core.Design.Tests/TestUPath.cs:150 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathGetDrive sources/core/Stride.Core.Design.Tests/TestUPath.cs:172 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathEquals sources/core/Stride.Core.Design.Tests/TestUPath.cs:312 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathGetHashCode sources/core/Stride.Core.Design.Tests/TestUPath.cs:318 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathCompare sources/core/Stride.Core.Design.Tests/TestUPath.cs:324 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathToString sources/core/Stride.Core.Design.Tests/TestUPath.cs:330 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathToOSPath sources/core/Stride.Core.Design.Tests/TestUPath.cs:336 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathHasDirectoryChars sources/core/Stride.Core.Design.Tests/TestUPath.cs:369 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUPathIsValid sources/core/Stride.Core.Design.Tests/TestUPath.cs:375 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUFileGetDirectoryAndFileName sources/core/Stride.Core.Design.Tests/TestUPath.cs:439 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUFileGetFileName sources/core/Stride.Core.Design.Tests/TestUPath.cs:445 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUFileGetFileExtension sources/core/Stride.Core.Design.Tests/TestUPath.cs:451 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUFileGetFileNameWithExtension sources/core/Stride.Core.Design.Tests/TestUPath.cs:457 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUFileGetFullPathWithoutExtension sources/core/Stride.Core.Design.Tests/TestUPath.cs:463 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUFileIsValid sources/core/Stride.Core.Design.Tests/TestUPath.cs:469 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUDirectoryContains sources/core/Stride.Core.Design.Tests/TestUPath.cs:475 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): TestUDirectoryGetDirectoryName sources/core/Stride.Core.Design.Tests/TestUPath.cs:481 — Test method has an empty body — it asserts nothing and exercises no code.
D17 · Explicit Debt · FileScopedPragmaDisable · ×16
  • FileScopedPragmaDisable sources/core/Stride.Core.Mathematics/SphericalHarmonics.cs:7 — #pragma warning disable SA1025 // Code must not contain multiple whitespace in a row — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/core/Stride.Core/Serialization/DataSerializer.BinaryFormatVersion.cs:4 — #pragma warning disable SA1025 // Code must not contain multiple whitespace in a row — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/core/Stride.Core/Serialization/DataSerializer.cs:4 — #pragma warning disable SA1025 // Code must not contain multiple whitespace in a row — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/core/Stride.Core.MicroThreading/MicroThread.cs:3 — #pragma warning disable SA1405 // Debug.Assert must provide message text — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/core/Stride.Core.Serialization/Streaming/ContentStreamingService.cs:3 — #pragma warning disable SA1405 // Debug.Assert must provide message text — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/engine/Stride.Graphics/Data/TextureSerializationData.cs:3 — #pragma warning disable SA1405 // Debug.Assert must provide message text — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/core/Stride.Core.Tests/Collections/IndexingDictionaryTests.cs:9 — #pragma warning disable xUnit2013, xUnit2017 — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/core/Stride.Core.Tests/TestSerialization.cs:91 — #pragma warning disable SYSLIB0011 — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/engine/Stride.Engine/Engine/Events/EventKey.cs:4 — #pragma warning disable SA1649 // File name should match first type name — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/engine/Stride.Engine/Engine/Events/EventReceiver.cs:4 — #pragma warning disable SA1649 // File name should match first type name — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/engine/Stride.Foundation/Effects/ParameterKeySerializer.cs:4 — #pragma warning disable SA1649 // File name should match first type name — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/engine/Stride.Rendering/Rendering/Images/DepthOfField/BokehTechnique/BokehTechnique.cs:3 — #pragma warning disable SA1649 // File name should match first type name — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/engine/Stride.Games/Desktop/Win32Native.cs:25 — #pragma warning disable SA1310 // Field names should not contain underscore — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/launcher/Stride.Cli/Legacy/LegacyServiceWire.cs:7 — #pragma warning disable SYSLIB5005 — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/plugins/Audio/Stride.Audio/Native/Celt.AVFoundation.cs:4 — #pragma warning disable SA1300 — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable sources/plugins/Audio/Stride.Audio/Native/Celt.cs:4 — #pragma warning disable SA1300 // Element must begin with upper-case letter — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
IC1 · Incompleteness & stubs · Unfinished stub · ×9
  • Unfinished stub — throws NotImplementedException sources/buildengine/Stride.Core.BuildEngine.Common/BuildStep.cs:110 — `OutputObjectIds` is a shipped member whose body only throws — and it is REACHED: sources/buildengine/Stride.Core.BuildEngine.Common/CommandBuildStep.cs:308 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:151 — `Entity` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:133 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:153 — `ComponentIndex` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Debugger/Debugger/LiveAssemblyReloader.cs:133 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Animations/Interpolator.cs:93 — `Cubic` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Animations/AnimationCurveEvaluatorDirectQuaternionGroup.cs:32 references it (2 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Updater/UpdatableField.cs:38 — `GetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:551 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Updater/UpdatableField.cs:55 — `SetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:619 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Updater/UpdatableProperty.cs:32 — `GetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:526 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Updater/UpdatableProperty.cs:58 — `SetObject` is a shipped member whose body only throws — and it is REACHED: sources/engine/Stride.Engine/Updater/UpdateEngine.cs:594 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException sources/plugins/Audio/Stride.Audio/StreamedBufferSoundSource.ffmpeg.cs:13 — `ExtractSomeAudioData` is a shipped member whose body only throws — and it is REACHED: sources/plugins/Audio/Stride.Audio/StreamedBufferSoundSource.cs:216 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D10 · Test Quality · Tests excluded from compilation · ×5
  • Tests excluded from compilation: sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDeferred.cs sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDeferred.cs:151 — 1 test method(s) in this file, but `Stride.Graphics.Tests.11_0.csproj` drops it from the build with `<Compile Remove="TestCubemapDeferred.cs" />`. It never compiles, never runs, and never reports as skipped — unlike a `Skip = "..."` attribute, nothing in a green test run says these tests are gone. Restore it to the compilation, or delete the file so the tree stops implying coverage that isn't there.
  • Tests excluded from compilation: sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDisplay.cs sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDisplay.cs:104 — 1 test method(s) in this file, but `Stride.Graphics.Tests.11_0.csproj` drops it from the build with `<Compile Remove="TestCubemapDisplay.cs" />`. It never compiles, never runs, and never reports as skipped — unlike a `Skip = "..."` attribute, nothing in a green test run says these tests are gone. Restore it to the compilation, or delete the file so the tree stops implying coverage that isn't there.
  • Tests excluded from compilation: sources/engine/Stride.Graphics.Tests.11_0/TestCubemapRendering.cs sources/engine/Stride.Graphics.Tests.11_0/TestCubemapRendering.cs:181 — 1 test method(s) in this file, but `Stride.Graphics.Tests.11_0.csproj` drops it from the build with `<Compile Remove="TestCubemapRendering.cs" />`. It never compiles, never runs, and never reports as skipped — unlike a `Skip = "..."` attribute, nothing in a green test run says these tests are gone. Restore it to the compilation, or delete the file so the tree stops implying coverage that isn't there.
  • Tests excluded from compilation: sources/presentation/Stride.Core.Quantum.Tests/Obsolete/ObsoleteTestDictionaries.cs sources/presentation/Stride.Core.Quantum.Tests/Obsolete/ObsoleteTestDictionaries.cs:72 — 2 test method(s) in this file, but `Stride.Core.Quantum.Tests.csproj` drops it from the build with `<Compile Remove="obsolete\**\*.cs" />`. It never compiles, never runs, and never reports as skipped — unlike a `Skip = "..."` attribute, nothing in a green test run says these tests are gone. Restore it to the compilation, or delete the file so the tree stops implying coverage that isn't there.
  • Tests excluded from compilation: sources/presentation/Stride.Core.Quantum.Tests/Obsolete/ObsoleteTestLists.cs sources/presentation/Stride.Core.Quantum.Tests/Obsolete/ObsoleteTestLists.cs:92 — 7 test method(s) in this file, but `Stride.Core.Quantum.Tests.csproj` drops it from the build with `<Compile Remove="obsolete\**\*.cs" />`. It never compiles, never runs, and never reports as skipped — unlike a `Skip = "..."` attribute, nothing in a green test run says these tests are gone. Restore it to the compilation, or delete the file so the tree stops implying coverage that isn't there.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D10 · Test Quality · Assertions commented out · ×2
  • Assertions commented out: TestUPathMakeRelative sources/core/Stride.Core.Design.Tests/TestUPath.cs:362 — The test body contains commented-out assertion calls and no live one — it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one.
  • Assertions commented out: TestCollectionAddRemove sources/assets/Stride.Core.Assets.Tests/TestAssetReferenceCollection.cs:8 — The test body contains commented-out assertion calls and no live one — it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one.
D17 · Explicit Debt · NoWarnInCsproj · ×2
  • NoWarnInCsproj sources/assets/Stride.Core.Assets.Tests/Stride.Core.Assets.Tests.csproj:12 — STRDIAG014 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj sources/tools/Stride.VisualStudio.Package/Stride.VisualStudio.Package.csproj:19 — VSEXTPREVIEW_OUTPUTWINDOW — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D5 · Coupling · Layer violation · ×2
  • Layer violation: Domain → Web sources/editor/Stride.Core.Assets.Editor/Stride.Core.Assets.Editor.csproj:27 — Stride.Core.Assets.Editor (Domain) references Stride.Core.Assets.Presentation (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Domain → Web sources/editor/Stride.Core.Assets.Editor.Avalonia/Stride.Core.Assets.Editor.Avalonia.csproj:37 — Stride.Core.Assets.Editor.Avalonia (Domain) references Stride.Core.Presentation.Avalonia (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
X1 · Async correctness · Blocking wait while holding a `lock` · ×2
  • Blocking wait while holding a `lock` REDACTED:494 — This blocks on a Task **while holding a `lock`**, which is worse than an ordinary sync-over-async in two ways. `await` is illegal inside a `lock` body, so the usual fix — make the caller `async` and await it — cannot be applied where this block stands. And the thread parks while still holding the lock, so it occupies the critical section doing no work: every other caller serialises behind an operation that is only waiting, and if the awaited task itself needs a thread the pool has run out of, they wait forever. Do the async work OUTSIDE the critical section: take the lock only to read the shared state, release it, await the call, then re-take the lock to publish the result — re-checking on re-entry whether another caller won the race and, if so, discarding your result rather than overwriting theirs. Where the critical section genuinely has to span the async call, `lock` is the wrong primitive: use an async-aware one (`SemaphoreSlim` with `await WaitAsync()`) so waiters yield their thread instead of parking it.
  • Blocking wait while holding a `lock` REDACTED:503 — This blocks on a Task **while holding a `lock`**, which is worse than an ordinary sync-over-async in two ways. `await` is illegal inside a `lock` body, so the usual fix — make the caller `async` and await it — cannot be applied where this block stands. And the thread parks while still holding the lock, so it occupies the critical section doing no work: every other caller serialises behind an operation that is only waiting, and if the awaited task itself needs a thread the pool has run out of, they wait forever. Do the async work OUTSIDE the critical section: take the lock only to read the shared state, release it, await the call, then re-take the lock to publish the result — re-checking on re-entry whether another caller won the race and, if so, discarding your result rather than overwriting theirs. Where the critical section genuinely has to span the async call, `lock` is the wrong primitive: use an async-aware one (`SemaphoreSlim` with `await WaitAsync()`) so waiters yield their thread instead of parking it.
AX8 · Test isolation · Production project references a test project · ×1
  • Production project references a test project: Stride.Editor.Tests → Stride.Core.Assets.Editor.Tests sources/editor/Stride.Editor.Tests/Stride.Editor.Tests.csproj:18 — `Stride.Editor.Tests` (production) references the test project `Stride.Core.Assets.Editor.Tests`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.
D17 · Explicit Debt · FileScopedPragmaDisable repeated across 34 files · ×1
  • FileScopedPragmaDisable repeated across 34 files sources/core/Stride.Core.IO/FileEvent.cs:3 — The identical FileScopedPragmaDisable (`#pragma warning disable SA1402 // File may only contain a single class`) appears in 34 files (34 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 34 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · FileScopedPragmaDisable repeated across 25 files · ×1
  • FileScopedPragmaDisable repeated across 25 files sources/core/Stride.Core.IO/Properties/AssemblyInfo.cs:5 — The identical FileScopedPragmaDisable (`#pragma warning disable 436 // Stride.PublicKeys is defined in multiple assemblies`) appears in 25 files (25 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 25 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · FileScopedPragmaDisable repeated across 13 files · ×1
  • FileScopedPragmaDisable repeated across 13 files sources/core/Stride.Core/Serialization/DataSerializerFactory.cs:4 — The identical FileScopedPragmaDisable (`#pragma warning disable SA1649 // File name must match first type name`) appears in 13 files (13 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 13 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · FileScopedPragmaDisable repeated across 18 files · ×1
  • FileScopedPragmaDisable repeated across 18 files sources/engine/Stride.Engine/Animations/AnimationData.cs:3 — The identical FileScopedPragmaDisable (`#pragma warning disable SA1402 // File may only contain a single type`) appears in 18 files (18 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 18 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
Serious — 4040 finding(s)
D17 · Explicit Debt · TodoComment · ×1226
  • TodoComment samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs:36 — // TODO centralize — 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.
  • TodoComment samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs:76 — // Calculate offset of the bullet from the Agent if he is facing left and right side // TODO improve this — 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.
  • TodoComment samples/Particles/ParticlesSample/ParticlesSample.Game/Materials/ParticleCustomMaterial.cs:132 — // TODO: Is this necessary? — 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.
  • TodoComment samples/Templates/ThirdPersonPlatformer/ThirdPersonPlatformer/ThirdPersonPlatformer.Game/Player/PlayerInput.cs:18 — // TODO Should not be static, but allow binding between player and controller — 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.
  • TodoComment samples/Templates/VRSandbox/VRSandbox/VRSandbox.Game/Player/HandController.cs:221 — // TODO Hand orientation should match the controller orientation — 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.
  • TodoComment sources/assets/Stride.AssetCompiler/PackageBuilder.cs:328 — // TODO: optimization: for nuget packages, directly use sha512 file rather than individual assets for faster checking — 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.
  • TodoComment sources/assets/Stride.AssetCompiler/PackageBuilder.cs:405 — // TODO: Big review of the log infrastructure of CompilerApp & BuildEngine! — 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.
  • TodoComment sources/assets/Stride.Core.Assets/Compiler/ItemListCompiler.cs:109 — // TODO: Big review of the log infrastructure of CompilerApp & BuildEngine! — 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.
  • TodoComment sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:589 — // TODO: Big review of the log infrastructure of CompilerApp & BuildEngine! — 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.
  • TodoComment sources/assets/Stride.AssetCompiler/PackageBuilder.cs:464 — // TODO: Review how costly it is to do so, and possibily find a way to restrict what needs to be loaded (i.e. only app plugins?) — 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.
  • TodoComment sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:57 — // TODO this is hardcoded. Check how to make this dynamic instead. — 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.
  • TodoComment sources/assets/Stride.Core.Assets.Quantum.Tests/Helpers/Types.cs:231 — // TODO: we don't want to have to do this to detect children! — 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.
  • TodoComment sources/assets/Stride.Core.Assets.Quantum.Tests/TestObjectReferenceGraph.cs:49 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:102 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:147 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:153 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:175 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:197 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:315 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:321 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:327 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:333 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:339 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:365 — // TODO — 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.
  • TodoComment sources/core/Stride.Core.Design.Tests/TestUPath.cs:372 — // TODO — 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.
  • + 1201 more in this group — see findings.md.
D17 · Explicit Debt · DeadPreprocessorBranch · ×268
  • DeadPreprocessorBranch sources/core/Stride.Core.AssemblyProcessor/CecilExtensions.cs:596 — #if STRIDE_PLATFORM_MONO_MOBILE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core/Reflection/CustomAttributeExtensions.cs:12 — #if STRIDE_PLATFORM_MONO_MOBILE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core/Reflection/CustomAttributeExtensions.cs:21 — #if STRIDE_PLATFORM_MONO_MOBILE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core/Reflection/CustomAttributeExtensions.cs:30 — #if STRIDE_PLATFORM_MONO_MOBILE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core/Reflection/CustomAttributeExtensions.cs:39 — #if STRIDE_PLATFORM_MONO_MOBILE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core.CompilerServices/DebugAttacher.cs:12 — #if LAUNCH_DEBUGGER — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core.IO/AndroidAssetProvider.cs:3 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core.IO/VirtualFileSystem.cs:82 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch REDACTED:3 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:5 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:61 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/core/Stride.Core/PlatformAndroid.cs:3 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Foundation/Graphics/StandardImageHelper.Android.cs:3 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Games/Android/GamePlatformAndroid.cs:3 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Games/GameContextAndroid.cs:3 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Games/GameContextFactory.cs:87 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Games/Starter/StrideActivity.cs:4 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Graphics.Regression/AndroidGameTestActivity.cs:4 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Graphics.Regression/GameTester.cs:202 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Graphics/Vulkan/GraphicsDevice.Vulkan.cs:205 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Graphics/Vulkan/GraphicsDevice.Vulkan.cs:528 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Graphics/Vulkan/GraphicsDevice.Vulkan.cs:565 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Graphics/Vulkan/PipelineBarriers.Vulkan.cs:112 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Input/Android/AndroidSensorListener.cs:4 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • DeadPreprocessorBranch sources/engine/Stride.Input/Android/InputSourceAndroid.cs:4 — #if STRIDE_PLATFORM_ANDROID — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
  • + 243 more in this group — see findings.md.
D17 · Explicit Debt · CommentedOutCode · ×168
  • CommentedOutCode samples/Physics/BepuSample/BepuSample.Game/Components/Camera/BasicCameraControllerComponent.cs:67 — 4 consecutive commented-code lines
  • CommentedOutCode sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:65 — 4 consecutive commented-code lines
  • CommentedOutCode sources/assets/Stride.Core.Assets/Analysis/PackageAnalysis.cs:130 — 4 consecutive commented-code lines
  • CommentedOutCode sources/assets/Stride.Core.Assets/AssetCloner.cs:149 — 4 consecutive commented-code lines
  • CommentedOutCode sources/assets/Stride.Core.Assets/AssetCloner.cs:178 — 4 consecutive commented-code lines
  • CommentedOutCode sources/assets/Stride.Core.Packages/ProgressReport.cs:19 — 4 consecutive commented-code lines
  • CommentedOutCode sources/assets/Stride.Core.Packages/ProgressReport.cs:49 — 4 consecutive commented-code lines
  • CommentedOutCode sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:669 — 4 consecutive commented-code lines
  • CommentedOutCode sources/buildengine/Stride.Core.BuildEngine.Common/CommandBuildStep.cs:195 — 4 consecutive commented-code lines
  • CommentedOutCode sources/buildengine/Stride.Core.BuildEngine.Common/StrideServiceWireSerializer.cs:66 — 4 consecutive commented-code lines
  • CommentedOutCode sources/core/Stride.Core.Design/Windows/GlobalMutex.cs:84 — 4 consecutive commented-code lines
  • CommentedOutCode sources/core/Stride.Core.Mathematics/CollisionHelper.cs:1148 — 4 consecutive commented-code lines
  • CommentedOutCode sources/core/Stride.Core.Mathematics/CollisionHelper.cs:1260 — 4 consecutive commented-code lines
  • CommentedOutCode sources/core/Stride.Core.Yaml/Emitter.cs:1272 — 4 consecutive commented-code lines
  • CommentedOutCode sources/core/Stride.Core.Yaml/Emitter.cs:1505 — 4 consecutive commented-code lines
  • CommentedOutCode sources/core/Stride.Core/Collections/KeyedSortedList.cs:184 — 4 consecutive commented-code lines
  • CommentedOutCode sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.Diagnostics.cs:200 — 4 consecutive commented-code lines
  • CommentedOutCode sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptFunctionParameterViewModel.cs:7 — 4 consecutive commented-code lines
  • CommentedOutCode sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs:452 — 4 consecutive commented-code lines
  • CommentedOutCode sources/engine/Stride.Assets.Tests/AssetImportTests.cs:158 — 4 consecutive commented-code lines
  • CommentedOutCode sources/engine/Stride.Assets.Tests/AssetImportTests.cs:163 — 4 consecutive commented-code lines
  • CommentedOutCode sources/engine/Stride.Assets.Tests/AssetImportTests.cs:197 — 4 consecutive commented-code lines
  • CommentedOutCode sources/engine/Stride.Assets/Materials/MaterialAssetCompiler.cs:157 — 4 consecutive commented-code lines
  • CommentedOutCode sources/engine/Stride.Engine/Engine/Design/CloneSerializer.cs:57 — 4 consecutive commented-code lines
  • CommentedOutCode sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.LightProbes.cs:122 — 4 consecutive commented-code lines
  • + 143 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×91
  • Hotspot: sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:1102 — sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 119 in AccessorChainExpression.CompileHelper at line 1102. 1 of those changes was a fix/bug commit, and the other 27 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs`: 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: sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:473 — sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in ShaderMixer.MergeClassInBuffers at line 473. 2 of those changes were fix/bug commits, and the other 23 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs`: 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: sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:1154 — sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in SessionViewModel.DeleteItems at line 1154. 5 of those changes were fix/bug commits, and the other 17 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs`: 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: sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:145 — sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in InterfaceProcessor.Process at line 145. 2 of those changes were fix/bug commits, and the other 11 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs`: 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: sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.cs sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.cs:19 — sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.cs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in UnifiedGenerator.Initialize at line 19. 2 of those changes were fix/bug commits, and the other 18 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.cs`: 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: sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:2077 — sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in CommandList.EnsureRenderPass at line 2077. 12 of those changes were fix/bug commits, and the other 19 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs`: 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: sources/editor/Stride.GameStudio/Program.cs sources/editor/Stride.GameStudio/Program.cs:130 — sources/editor/Stride.GameStudio/Program.cs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Program.Run at line 130. 2 of those changes were fix/bug commits, and the other 23 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/editor/Stride.GameStudio/Program.cs`: 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: sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:53 — sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in PackageBuilderApp.Run at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs`: 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: sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs:156 — sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in EffectCompiler.Compile at line 156. 1 of those changes was a fix/bug commit, 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs`: 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: sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:162 — sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in PackageSession.PreLoadPackageDependencies at line 162. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs`: 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: sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:604 — sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ShaderMethod.Compile at line 604. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs`: 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: sources/assets/Stride.Core.Assets/PackageSession.cs sources/assets/Stride.Core.Assets/PackageSession.cs:1223 — sources/assets/Stride.Core.Assets/PackageSession.cs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in PackageSession.Save at line 1223. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/assets/Stride.Core.Assets/PackageSession.cs`: 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: sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:487 — sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in SpirvBuilder.Convert at line 487. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs`: 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:470 — REDACTED changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in NugetStore.SyncLocalFolderSources at line 470. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09: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: sources/shaders/Stride.Shaders.Parsers/Spirv/Building/SpirvContext.Types.cs sources/shaders/Stride.Shaders.Parsers/Spirv/Building/SpirvContext.Types.cs:139 — sources/shaders/Stride.Shaders.Parsers/Spirv/Building/SpirvContext.Types.cs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in SpirvContext.RegisterType at line 139. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Parsers/Spirv/Building/SpirvContext.Types.cs`: 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: sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs:671 — sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in DebuggingViewModel.BuildProjectCore at line 671. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs`: 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: sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/ReadWriteAnalyzer.cs sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/ReadWriteAnalyzer.cs:17 — sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/ReadWriteAnalyzer.cs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in ReadWriteAnalyzer.AnalyzeStreamReadWrites at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/ReadWriteAnalyzer.cs`: 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: sources/assets/Stride.Core.Assets/Package.cs sources/assets/Stride.Core.Assets/Package.cs:1234 — sources/assets/Stride.Core.Assets/Package.cs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Package.LoadAssemblyReferenceInternal at line 1234. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/assets/Stride.Core.Assets/Package.cs`: 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: sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs:264 — sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in ShaderMixer.ProcessReflection at line 264. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs`: 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: sources/crashreport/Stride.CrashReport/CrashReportSender.cs sources/crashreport/Stride.CrashReport/CrashReportSender.cs:81 — sources/crashreport/Stride.CrashReport/CrashReportSender.cs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in CrashReportSender.SendCoreAsync at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/crashreport/Stride.CrashReport/CrashReportSender.cs`: 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: sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:246 — sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in AssemblyContainer.LoadAssemblyFromPathInternal at line 246. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs`: 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: sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs:137 — sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Texture.InitializeFromImpl at line 137. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs`: 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: sources/tools/Stride.Importer.3D/MeshConverter.cs sources/tools/Stride.Importer.3D/MeshConverter.cs:1062 — sources/tools/Stride.Importer.3D/MeshConverter.cs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in MeshConverter.ProcessMesh at line 1062. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/tools/Stride.Importer.3D/MeshConverter.cs`: 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: sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:153 — sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CompilerCrashCapture.AdoptDumps at line 153. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs`: 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: sources/editor/Stride.GameStudio/Helpers/CrashReportHelper.cs sources/editor/Stride.GameStudio/Helpers/CrashReportHelper.cs:27 — sources/editor/Stride.GameStudio/Helpers/CrashReportHelper.cs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in CrashReportHelper.SendReport at line 27. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/editor/Stride.GameStudio/Helpers/CrashReportHelper.cs`: 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.
  • + 66 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×90
  • TooManyMethods: IntrinsicImplementations sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicImplementations.cs — TooManyMethods — 535 significant lines (blank, comment-only and punctuation-only lines excluded), 217 methods. The bar is 30 methods; this is 187 over it, 7.23× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: Matrix sources/core/Stride.Core.Mathematics/Matrix.cs — TooManyMethods — 1307 significant lines (blank, comment-only and punctuation-only lines excluded), 144 methods. The bar is 30 methods; this is 114 over it, 4.80× 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: CommandList sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs — TooManyMethods — 1128 significant lines (blank, comment-only and punctuation-only lines excluded), 107 methods, declared across 3 files: Vulkan/CommandList.Vulkan.cs (80), Stride.Graphics/CommandList.cs (24), Stride.Graphics/CommandList.DebugScope.cs (3). The bar is 30 methods; this is 77 over it, 3.57× 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: Texture sources/engine/Stride.Graphics/Texture.cs — TooManyMethods — 1028 significant lines (blank, comment-only and punctuation-only lines excluded), 107 methods, declared across 7 files: Stride.Graphics/Texture.cs (66), Vulkan/Texture.Vulkan.cs (23), Stride.Graphics/Texture.Extensions1D.cs (4), Stride.Graphics/Texture.Extensions2D.cs (4), +3 more file(s). The bar is 30 methods; this is 77 over it, 3.57× 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: Vector3 sources/core/Stride.Core.Mathematics/Vector3.cs — TooManyMethods — 522 significant lines (blank, comment-only and punctuation-only lines excluded), 107 methods. The bar is 30 methods; this is 77 over it, 3.57× 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: Double3 sources/core/Stride.Core.Mathematics/Double3.cs — TooManyMethods — 489 significant lines (blank, comment-only and punctuation-only lines excluded), 104 methods. The bar is 30 methods; this is 74 over it, 3.47× 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: Vector2 sources/core/Stride.Core.Mathematics/Vector2.cs — TooManyMethods — 402 significant lines (blank, comment-only and punctuation-only lines excluded), 89 methods. The bar is 30 methods; this is 59 over it, 2.97× 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: Double2 sources/core/Stride.Core.Mathematics/Double2.cs — TooManyMethods — 382 significant lines (blank, comment-only and punctuation-only lines excluded), 89 methods. The bar is 30 methods; this is 59 over it, 2.97× 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: Vector4 sources/core/Stride.Core.Mathematics/Vector4.cs — TooManyMethods — 442 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 30 methods; this is 54 over it, 2.80× 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: Double4 sources/core/Stride.Core.Mathematics/Double4.cs — TooManyMethods — 435 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 30 methods; this is 54 over it, 2.80× 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: SessionViewModel sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs — TooManyMethods — 1207 significant lines (blank, comment-only and punctuation-only lines excluded), 81 methods, declared across 3 files: ViewModels/SessionViewModel.cs (66), ViewModels/SessionViewModel.Explore.cs (10), ViewModels/SessionViewModel.static.cs (5). The bar is 30 methods; this is 51 over it, 2.70× 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 sources/core/Stride.Core.Mathematics/Quaternion.cs — TooManyMethods — 512 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods. The bar is 30 methods; this is 50 over it, 2.67× 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 sources/core/Stride.Core.Mathematics/Color.cs — TooManyMethods — 496 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 30 methods; this is 49 over it, 2.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: ColorBGRA sources/core/Stride.Core.Mathematics/ColorBGRA.cs — TooManyMethods — 350 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 30 methods; this is 46 over it, 2.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: PackageSession sources/assets/Stride.Core.Assets/PackageSession.cs — TooManyMethods — 1388 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods, declared across 4 files: Stride.Core.Assets/PackageSession.cs (37), Stride.Core.Assets/PackageSession.Dependencies.cs (14), Stride.Core.Assets/PackageSession.CompanionPackages.cs (13), Stride.Core.Assets/PackageSession.BuildManifest.cs (7). The bar is 30 methods; this is 41 over it, 2.37× 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: UIElement sources/plugins/UI/Stride.UI/UIElement.Events.cs — TooManyMethods — 839 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods, declared across 2 files: Stride.UI/UIElement.Events.cs (38), Stride.UI/UIElement.cs (32). The bar is 30 methods; this is 40 over it, 2.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: Color4 sources/core/Stride.Core.Mathematics/Color4.cs — TooManyMethods — 304 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 30 methods; this is 40 over it, 2.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: SpirvBuilder sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs — TooManyMethods — 1061 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods, declared across 6 files: Building/Builder.Class.cs (20), Building/Builder.CBuffer.cs (12), Building/Builder.Expressions.cs (12), Building/Builder.cs (11), +2 more file(s). The bar is 30 methods; this is 39 over it, 2.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.
  • TooManyMethods: GraphicsDevice sources/engine/Stride.Graphics/Vulkan/GraphicsDevice.Vulkan.cs — TooManyMethods — 804 significant lines (blank, comment-only and punctuation-only lines excluded), 68 methods, declared across 3 files: Vulkan/GraphicsDevice.Vulkan.cs (35), Stride.Graphics/GraphicsDevice.cs (22), Stride.Graphics/GraphicsDevice.DebugScope.cs (11). The bar is 30 methods; this is 38 over it, 2.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: SpirvContext sources/shaders/Stride.Shaders.Parsers/Spirv/Building/SpirvContext.Types.cs — TooManyMethods — 598 significant lines (blank, comment-only and punctuation-only lines excluded), 68 methods, declared across 4 files: Building/Context.cs (24), Building/SpirvContext.Types.cs (24), Building/Context.Constants.cs (15), Building/Context.ExtractBuffers.cs (5). The bar is 30 methods; this is 38 over it, 2.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: EntityHierarchyEditorViewModel sources/editor/Stride.Assets.Editor/ViewModels/EntityHierarchyEditorViewModel.cs — TooManyMethods — 509 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 30 methods; this is 34 over it, 2.13× 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: MathUtil sources/core/Stride.Core.Mathematics/MathUtil.cs — TooManyMethods — 314 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 30 methods; this is 31 over it, 2.03× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: AssetCollectionViewModel sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.cs — TooManyMethods — 846 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods, declared across 2 files: ViewModels/AssetCollectionViewModel.cs (43), ViewModels/AssetCollectionViewModel.AddAssets.cs (16). The bar is 30 methods; this is 29 over it, 1.97× 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: InputManager sources/engine/Stride.Input/InputManager.cs — TooManyMethods — 462 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods, declared across 2 files: Stride.Input/InputManager.cs (48), Stride.Input/InputManager.State.cs (10). The bar is 30 methods; this is 28 over it, 1.93× 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: MeshConverter sources/tools/Stride.Importer.3D/MeshConverter.cs — TooManyMethods — 1103 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 30 methods; this is 27 over it, 1.90× 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.
  • + 65 more in this group — see findings.md.
D10 · Test Quality · Skipped test · ×83
  • Skipped test: TestDirectory sources/core/Stride.Core.Tests/TestWatcher.cs:17 — Skipped — Need check
  • Skipped test: DifferentThreadBroadcast sources/engine/Stride.Engine.Tests/EventSystemTests.cs:147 — Skipped — Hanging
  • Skipped test: DifferentSyntax sources/engine/Stride.Engine.Tests/EventSystemTests.cs:295 — Skipped — Hanging
  • Skipped test: TestFitting sources/engine/Stride.Engine.Tests/AnimationChannelTest.cs:12 — Skipped — Need check
  • Skipped test: TestPerfLoadSave sources/engine/Stride.Graphics.Tests/TestImage.cs:156 — Skipped — Ignored
  • Skipped test: TestRemoteSingleOutput sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:56 — Skipped — Need check
  • Skipped test: TestPackageLoadingWithAssets sources/assets/Stride.Core.Assets.Tests/TestPackage.cs:380 — Skipped — Need check
  • Skipped test: TestMovingAssets sources/assets/Stride.Core.Assets.Tests/TestPackage.cs:418 — Skipped — Need check
  • Skipped test: TestTemplateDescriptions sources/assets/Stride.Core.Assets.Tests/TestTemplateManager.cs:16 — Skipped — Need check
  • Skipped test: CanHandleRequestTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:37 — Skipped — Need check
  • Skipped test: CreateArrayTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:51 — Skipped — Need check
  • Skipped test: ExtractTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:83 — Skipped — Need check
  • Skipped test: ExtractAllTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:104 — Skipped — Need check
  • Skipped test: UpdateTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:149 — Skipped — Need check
  • Skipped test: RemoveTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:169 — Skipped — Need check
  • Skipped test: InsertTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:192 — Skipped — Need check
  • Skipped test: CreateCubeTest sources/tools/Stride.TextureConverter.Tests/ArrayTexLibraryTest.cs:216 — Skipped — Need check
  • Skipped test: CanHandleRequestTest sources/tools/Stride.TextureConverter.Tests/AtlasTexLibraryTest.cs:34 — Skipped — Need check
  • Skipped test: CreateAtlasTest sources/tools/Stride.TextureConverter.Tests/AtlasTexLibraryTest.cs:46 — Skipped — Need check
  • Skipped test: ExtractTest sources/tools/Stride.TextureConverter.Tests/AtlasTexLibraryTest.cs:87 — Skipped — Need check
  • Skipped test: ExtractAllTest sources/tools/Stride.TextureConverter.Tests/AtlasTexLibraryTest.cs:110 — Skipped — Need check
  • Skipped test: UpdateTest sources/tools/Stride.TextureConverter.Tests/AtlasTexLibraryTest.cs:150 — Skipped — Need check
  • Skipped test: StartLibraryTest sources/tools/Stride.TextureConverter.Tests/DxtTexLibTest.cs:28 — Skipped — Need check
  • Skipped test: EndLibraryTest sources/tools/Stride.TextureConverter.Tests/DxtTexLibTest.cs:51 — Skipped — Need check
  • Skipped test: CanHandleRequestTest sources/tools/Stride.TextureConverter.Tests/DxtTexLibTest.cs:65 — Skipped — Need check
  • + 58 more in this group — see findings.md.
D17 · Explicit Debt · FixmeComment · ×78
  • FixmeComment samples/UI/GameMenu/GameMenu.Game/MainScript.cs:299 — // FIXME: UI asset should support multiline text — 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.
  • FixmeComment samples/UI/GameMenu/GameMenu.Game/MainScript.cs:364 — // FIXME: UI asset should support multiline text — 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.
  • FixmeComment sources/assets/Stride.Core.Assets.Quantum/AssetCompositeHierarchyPropertyGraph.cs:563 — // FIXME: instancesCommonAncestors should be synchronized with existing instances, i.e. if the instance has been compltely removed then the common ancestor should have been cleared. — 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.
  • FixmeComment sources/assets/Stride.Core.Assets/AssetRegistry.cs:38 — // FIXME values are always null — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/ControlPoints/ControlPointViewModelBase.cs:57 — // FIXME (performance) cache the value and invalidate it when the point or the axis transform changed (not that easy) — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveEditorViewModel.DrawingModel.cs:45 — // FIXME: should we move this into a dedicated class? — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveEditorViewModel.cs:186 — // FIXME: do this atomically in the curve — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveEditorViewModel.cs:293 — // FIXME: do this atomically in the curve — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveEditorViewModel.cs:367 — // FIXME: do this atomically in the curve — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveEditorViewModel.cs:376 — // FIXME: do this atomically in the curve — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveViewModelBase.cs:162 — // FIXME: calculate (optimistic) clipped line beforehand so that points that are eventually outside of the clipped area are not given to the rendering context. — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveViewModelBase.cs:163 — // FIXME: note that in the end the curve is still clipped by the canvas Clip property. — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveViewModelBase.cs:209 — // FIXME: refactor isCurrentCurve and use the IsSelected property — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/EditableCurveViewModel.cs:25 — // FIXME: might remove this later when hit testing is done on the curve — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/RotationComponentCurveViewModel.cs:108 — // FIXME: instead of evaluating for each quaternion component, optimize by querying the parent curve (that should be a rotation curve that knows all components of a quaternion) — 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.
  • FixmeComment sources/editor/Stride.Assets.Editor/AssetEditors/EntityHierarchyEditor/Game/EntityHierarchyEditorGame.cs:62 — // FIXME: turn internal or private/protected — 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.
  • FixmeComment sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:97 — // FIXME: find a better name — 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.
  • FixmeComment sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:323 — // FIXME: when we allow loading/unloading single entities, this should be implemented in OnLoadingRequested. — 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.
  • FixmeComment sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:348 — // FIXME: when we allow loading/unloading single entities, this should be implemented in OnLoadingRequested. — 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.
  • FixmeComment sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:523 — // FIXME: consider using the cut/paste mechanism for moving entities — 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.
  • FixmeComment sources/plugins/UI/Stride.UI.Editor/ViewModels/UIHierarchyItemViewModel.cs:68 — // FIXME: consider using the cut/paste mechanism for moving entities — 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.
  • FixmeComment sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:637 — // FIXME: the following lines are identical in AssetCompositeHierarchyPasteProcessor.ProcessDeserializedData(). Consider factorization. — 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.
  • FixmeComment sources/editor/Stride.Assets.Presentation/ViewModels/ModelViewModel.cs:43 — // FIXME: tooltip, icons, etc. should not be created on the view model side (see PDX-2952)
  • FixmeComment sources/editor/Stride.Assets.Presentation/ViewModels/SpriteFontViewModel.cs:96 — // FIXME: do we need to delete the generated file upon undo? — 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.
  • FixmeComment sources/editor/Stride.Core.Assets.Editor/Components/CopyPasteProcessors/AssetItemPasteProcessor.cs:72 — // FIXME: rework this — 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.
  • + 53 more in this group — see findings.md.
D3 · God Classes · MethodTooLong · ×56
  • MethodTooLong: AccessorChainExpression.CompileHelper sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:1102 — MethodTooLong — CompileHelper runs 388 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 288 over it, 3.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: ShaderCompiler.Compile sources/shaders/Stride.Shaders.Compilers/Direct3D/ShaderCompiler.cs:69 — MethodTooLong — Compile runs 386 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 286 over it, 3.86× 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: VulkanConvertExtensions.TryConvertPixelFormat sources/engine/Stride.Graphics/Vulkan/VulkanConvertExtensions.cs:294 — MethodTooLong — TryConvertPixelFormat runs 362 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 262 over it, 3.62× 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: Predicates.Orient3dAdapt sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs:123 — MethodTooLong — Orient3dAdapt runs 320 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 220 over it, 3.20× 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: PixelFormatExtensions.PixelFormatExtensions(…) sources/engine/Stride.Foundation/Graphics/PixelFormatExtensions.cs:414 — MethodTooLong — PixelFormatExtensions(…) runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.55× 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: PackageBuilderApp.Run sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:53 — MethodTooLong — Run runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.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.
  • MethodTooLong: EffectCompiler.Compile sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs:156 — MethodTooLong — Compile runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.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: Predicates.InSphereExact sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs:1009 — MethodTooLong — InSphereExact runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: Predicates.InSphereAdapt sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs:605 — MethodTooLong — InSphereAdapt 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: AssetPropertyPasteProcessor.Paste sources/editor/Stride.Core.Assets.Editor/Components/CopyPasteProcessors/AssetPropertyPasteProcessor.cs:155 — MethodTooLong — Paste runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75× 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: ForwardRenderer.BakeLightProbes sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.LightProbes.cs:60 — MethodTooLong — BakeLightProbes runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75× 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: ShaderMixer.MergeClassInBuffers sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:473 — MethodTooLong — MergeClassInBuffers runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69× 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: ConstraintGizmo.Update sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/ConstraintGizmo.cs:195 — MethodTooLong — Update runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62× 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: ImportModelCommand.ExportModel sources/engine/Stride.Assets.Models/ImportModelCommand.Model.cs:74 — MethodTooLong — ExportModel runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: MeshConverter.ProcessMesh sources/tools/Stride.Importer.3D/MeshConverter.cs:1062 — MethodTooLong — ProcessMesh runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.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.
  • MethodTooLong: AssetCollectionViewModel.InvokeAddAssetTemplateAsync sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.AddAssets.cs:327 — MethodTooLong — InvokeAddAssetTemplateAsync runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ShaderClass.ProcessNameAndTypes sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs:96 — MethodTooLong — ProcessNameAndTypes runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41× 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: BundleOdbBackend.CreateBundle sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:420 — MethodTooLong — CreateBundle runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: VisitorGenerator.GenerateVisitorsBase sources/shaders/Stride.Shaders.Generators.Internal/VisitorGenerator.cs:44 — MethodTooLong — GenerateVisitorsBase runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: HeightmapConvertCommand.DoCommandOverride sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs:54 — MethodTooLong — DoCommandOverride runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SessionViewModel.DeleteItems sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:1154 — MethodTooLong — DeleteItems runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AssemblyRecompiler.Recompile sources/editor/Stride.GameStudio/Debugging/AssemblyRecompiler.cs:37 — MethodTooLong — Recompile runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SpirvBuilder.Convert sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:487 — MethodTooLong — Convert runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: InterfaceProcessor.Process sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:145 — MethodTooLong — Process runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: GraphicsDevice.InitializePlatformDevice sources/engine/Stride.Graphics/Vulkan/GraphicsDevice.Vulkan.cs:450 — MethodTooLong — InitializePlatformDevice runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 31 more in this group — see findings.md.
GD1 · Unfinished & placeholder code · Unfinished stub · ×40
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:30 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:57 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:63 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:69 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:75 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:81 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:87 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:93 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:99 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.IO/VirtualFileProviderBase.cs:105 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.MicroThreading/MicroThread.cs:146 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.MicroThreading/MicroThread.cs:151 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:51 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:57 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:99 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:105 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:228 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:233 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:238 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:255 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Animations/Interpolator.cs:93 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Engine/Network/RouterClient.cs:30 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Engine/Network/RouterClient.cs:129 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Updater/UpdatableField.cs:38 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/engine/Stride.Engine/Updater/UpdatableField.cs:55 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • + 15 more in this group — see findings.md.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×40
  • Sync-over-async blocking — 50 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/core/Stride.Core.Serialization/Storage/ObjectDatabase.cs:75 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/core/Stride.Core/Diagnostics/ChromeTracingProfileWriter.cs:91 — `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/engine/Stride.Engine/Profiling/GameProfilingSystem.cs:329 — `stringBuilderTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:487 — `PendingEffect.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/engine/Stride.Rendering/Streaming/StreamableResource.cs:184 — `streamingTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/engine/Stride.Rendering/Streaming/StreamingManager.cs:424 — `task.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:116 — `coreTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:118 — `glslTask.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking REDACTED:32 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking REDACTED:54 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking REDACTED:77 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/core/Stride.Core.Design/Threading/AsyncLock.cs:142 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/core/Stride.Core.Design/Threading/Internal/TaskCompletionSourceExtensions.cs:52 — `Task.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/core/Stride.Core.Design/Threading/Internal/TaskCompletionSourceExtensions.cs:68 — `Task.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/assets/Stride.AssetCompiler/BundlePacker.cs:192 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:253 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/assets/Stride.Core.Assets/PackageSession.cs:1103 — `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/assets/Stride.Core.Assets/PackageSession.cs:1146 — `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/assets/Stride.Core.Assets/SourceCodeAsset.cs:55 — `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking REDACTED:494 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking REDACTED:569 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/editor/Stride.Assets.Editor/EditorGame/DispatcherLock.cs:71 — `Task.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/editor/Stride.Assets.Editor/Preview/BuildAssetPreview.cs:114 — `buildUnit.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking sources/editor/Stride.Editor/Build/GameStudioBuilderService.cs:73 — `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • + 15 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×39
  • FileTooLong: Stride.Core.Mathematics/Matrix.cs sources/core/Stride.Core.Mathematics/Matrix.cs — FileTooLong — 1312 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 812 over it, 2.62× 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: Stride.Importer.3D/MeshConverter.cs sources/tools/Stride.Importer.3D/MeshConverter.cs — FileTooLong — 1150 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 650 over it, 2.30× 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: AST/Expression.cs sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs — FileTooLong — 1119 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 619 over it, 2.24× 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: LightProbes/Predicates.cs sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs — FileTooLong — 995 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 495 over it, 1.99× 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: Vulkan/CommandList.Vulkan.cs sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs — FileTooLong — 973 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 473 over it, 1.95× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: ViewModels/SessionViewModel.cs sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs — FileTooLong — 946 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 446 over it, 1.89× 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: Stride.Core.Yaml/Emitter.cs sources/core/Stride.Core.Yaml/Emitter.cs — FileTooLong — 911 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 411 over it, 1.82× 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: Stride.Core.Assets/PackageSession.cs sources/assets/Stride.Core.Assets/PackageSession.cs — FileTooLong — 832 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 332 over it, 1.66× 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: Vulkan/GraphicsDevice.Vulkan.cs sources/engine/Stride.Graphics/Vulkan/GraphicsDevice.Vulkan.cs — FileTooLong — 806 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 306 over it, 1.61× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Stride.Core.Yaml/Scanner.cs sources/core/Stride.Core.Yaml/Scanner.cs — FileTooLong — 776 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 276 over it, 1.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: SDSL/ShaderMixer.cs sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs — FileTooLong — 768 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 268 over it, 1.54× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Stride.Core.Yaml/SortedDictionary.cs sources/core/Stride.Core.Yaml/SortedDictionary.cs — FileTooLong — 752 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 252 over it, 1.50× 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: Vulkan/VulkanConvertExtensions.cs sources/engine/Stride.Graphics/Vulkan/VulkanConvertExtensions.cs — FileTooLong — 715 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 215 over it, 1.43× 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: Stride.GameStudio.AutoTesting/UITestHost.cs sources/editor/Stride.GameStudio.AutoTesting/UITestHost.cs — FileTooLong — 709 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 209 over it, 1.42× 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: Stride.TemplateGenerator/TemplatePreprocessor.cs sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs — FileTooLong — 689 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 189 over it, 1.38× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Stride.Core.Assets/Package.cs sources/assets/Stride.Core.Assets/Package.cs — FileTooLong — 684 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 184 over it, 1.37× 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: Stride.Physics/Simulation.cs sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs — FileTooLong — 651 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 151 over it, 1.30× 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: Stride.UI/UIElement.cs sources/plugins/UI/Stride.UI/UIElement.cs — FileTooLong — 616 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 116 over it, 1.23× 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: Controls/ScaleBar.cs sources/presentation/Stride.Core.Presentation.Wpf/Controls/ScaleBar.cs — FileTooLong — 610 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 110 over it, 1.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: AST/Literals.cs sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs — FileTooLong — 606 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 106 over it, 1.21× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 605 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 105 over it, 1.21× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Frontend/TextureTool.cs sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs — FileTooLong — 584 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 84 over it, 1.17× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Rendering/ModelDeformationRenderer.cs sources/engine/Stride.Engine/Rendering/ModelDeformationRenderer.cs — FileTooLong — 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.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: Rendering/RootEffectRenderFeature.cs sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs — FileTooLong — 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.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: Stride.Core.Mathematics/CollisionHelper.cs sources/core/Stride.Core.Mathematics/CollisionHelper.cs — FileTooLong — 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13× 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.
  • + 14 more in this group — see findings.md.
X5 · Nullable reference types · Symbol treated as nullable, then dereferenced unguarded · ×38
  • Symbol treated as nullable, then dereferenced unguarded sources/core/Stride.Core.Serialization/Serialization/Contents/ReferenceSerializer.cs:44 — This method contradicts itself about `contentReference`: line 40 writes `contentReference?.Value`, which says `contentReference` can be null, but line 44 then dereferences it directly as `contentReference.Location` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `contentReference` truly cannot be null here, the `?.` is misleading. Settle it one way — test `contentReference` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:410 — This method contradicts itself about `texture`: line 401 assigns it with `as Texture`, which hands back null rather than throwing when the value is not a `Texture`, but line 410 then dereferences it directly as `texture.GetViewSubResourceRange` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `texture` once before the first use and handle the null case, or cast with `(Texture)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/engine/Stride.Graphics/Vulkan/SwapChainGraphicsPresenter.Vulkan.cs:614 — This method contradicts itself about `control`: line 612 assigns it with `as SDL.Window`, which hands back null rather than throwing when the value is not a `SDL.Window`, but line 614 then dereferences it directly as `control.SdlHandle` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `control` once before the first use and handle the null case, or cast with `(SDL.Window)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/engine/Stride.Input/Gestures/GestureRecognizerComposite.cs:89 — This method contradicts itself about `evt`: line 88 assigns it with `as GestureEventComposite`, which hands back null rather than throwing when the value is not a `GestureEventComposite`, but line 89 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventComposite)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/engine/Stride.Input/Gestures/GestureRecognizerDrag.cs:68 — This method contradicts itself about `evt`: line 67 assigns it with `as GestureEventDrag`, which hands back null rather than throwing when the value is not a `GestureEventDrag`, but line 68 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventDrag)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/engine/Stride.Input/Gestures/GestureRecognizerFlick.cs:61 — This method contradicts itself about `evt`: line 60 assigns it with `as GestureEventFlick`, which hands back null rather than throwing when the value is not a `GestureEventFlick`, but line 61 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventFlick)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/engine/Stride.Input/Gestures/GestureRecognizerLongPress.cs:37 — This method contradicts itself about `evt`: line 36 assigns it with `as GestureEventLongPress`, which hands back null rather than throwing when the value is not a `GestureEventLongPress`, but line 37 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventLongPress)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/engine/Stride.Input/Gestures/GestureRecognizerTap.cs:141 — This method contradicts itself about `evt`: line 140 assigns it with `as GestureEventTap`, which hands back null rather than throwing when the value is not a `GestureEventTap`, but line 141 then dereferences it directly as `evt.Set` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `evt` once before the first use and handle the null case, or cast with `(GestureEventTap)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/shaders/Stride.Shaders/ShaderMixinSource.cs:171 — This method contradicts itself about `current`: line 169 writes `current?.GetHashCode`, which says `current` can be null, but line 171 then dereferences it directly as `current.GetHashCode` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `current` truly cannot be null here, the `?.` is misleading. Settle it one way — test `current` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/core/Stride.Core.Tasks/LocateDevenv.cs:33 — This method contradicts itself about `setupConfiguration`: line 28 assigns it with `as ISetupConfiguration2`, which hands back null rather than throwing when the value is not a `ISetupConfiguration2`, but line 33 then dereferences it directly as `setupConfiguration.GetInstanceForPath` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `setupConfiguration` once before the first use and handle the null case, or cast with `(ISetupConfiguration2)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/presentation/Stride.Core.Presentation.Wpf.Graph/Controls/NodeVertexControl.cs:156 — This method contradicts itself about `item`: line 154 assigns it with `as Tuple<NodeVertex, object>`, which hands back null rather than throwing when the value is not a `Tuple<NodeVertex, object>`, but line 156 then dereferences it directly as `item.Item1` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `item` once before the first use and handle the null case, or cast with `(Tuple<NodeVertex, object>)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:243 — This method contradicts itself about `child`: line 242 assigns it with `as TreeViewItem`, which hands back null rather than throwing when the value is not a `TreeViewItem`, but line 243 then dereferences it directly as `child.DataContext` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `child` once before the first use and handle the null case, or cast with `(TreeViewItem)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:329 — This method contradicts itself about `child`: line 324 assigns it with `as TreeViewItem`, which hands back null rather than throwing when the value is not a `TreeViewItem`, but line 329 then dereferences it directly as `child.ParentTreeView` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `child` once before the first use and handle the null case, or cast with `(TreeViewItem)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:361 — This method contradicts itself about `virtualizingTreePanel`: line 360 assigns it with `as UIElement`, which hands back null rather than throwing when the value is not a `UIElement`, but line 361 then dereferences it directly as `virtualizingTreePanel.InvalidateMeasure` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `virtualizingTreePanel` once before the first use and handle the null case, or cast with `(UIElement)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:380 — This method contradicts itself about `treeViewItem`: line 379 assigns it with `as TreeViewItem`, which hands back null rather than throwing when the value is not a `TreeViewItem`, but line 380 then dereferences it directly as `treeViewItem.ParentTreeView` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `treeViewItem` once before the first use and handle the null case, or cast with `(TreeViewItem)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Assets.Editor/AssetEditors/SceneEditor/ViewModels/AddAssetPolicies/AddSceneAssetPolicy.cs:46 — This method contradicts itself about `currentRoot`: line 40 assigns it with `as SceneRootViewModel`, which hands back null rather than throwing when the value is not a `SceneRootViewModel`, but line 46 then dereferences it directly as `currentRoot.EntityCount` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `currentRoot` once before the first use and handle the null case, or cast with `(SceneRootViewModel)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Assets.Editor/Quantum/NodePresenters/Updaters/ModelNodeLinkNodeUpdater.cs:28 — This method contradicts itself about `parent`: line 28 writes `parent?.Value`, which says `parent` can be null, but line 28 then dereferences it directly as `parent.AttachedProperties` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `parent` truly cannot be null here, the `?.` is misleading. Settle it one way — test `parent` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Assets.Editor/Quantum/NodePresenters/Updaters/ModelNodeLinkNodeUpdater.cs:47 — This method contradicts itself about `parentModelAsset`: line 44 writes `parentModelAsset?.Asset`, which says `parentModelAsset` can be null, but line 47 then dereferences it directly as `parentModelAsset.Package` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `parentModelAsset` truly cannot be null here, the `?.` is misleading. Settle it one way — test `parentModelAsset` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/AddPrimitiveKeyCommand.cs:108 — This method contradicts itself about `dictionaryDescriptor`: line 107 assigns it with `as DictionaryDescriptor`, which hands back null rather than throwing when the value is not a `DictionaryDescriptor`, but line 108 then dereferences it directly as `dictionaryDescriptor.KeyType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `dictionaryDescriptor` once before the first use and handle the null case, or cast with `(DictionaryDescriptor)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/RemoveItemCommand.cs:33 — This method contradicts itself about `collectionNode`: line 26 writes `collectionNode?.Descriptor`, which says `collectionNode` can be null, but line 33 then dereferences it directly as `collectionNode.Descriptor` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `collectionNode` truly cannot be null here, the `?.` is misleading. Settle it one way — test `collectionNode` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/RenameStringKeyCommand.cs:60 — This method contradicts itself about `DictionaryDescriptor`: line 59 assigns it with `as DictionaryDescriptor`, which hands back null rather than throwing when the value is not a `DictionaryDescriptor`, but line 60 then dereferences it directly as `DictionaryDescriptor.KeyType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `DictionaryDescriptor` once before the first use and handle the null case, or cast with `(DictionaryDescriptor)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Core.Assets.Presentation/Quantum/ContentValueChangeOperation.cs:144 — This method contradicts itself about `memberNode`: line 139 assigns it with `as IMemberNode`, which hands back null rather than throwing when the value is not a `IMemberNode`, but line 144 then dereferences it directly as `memberNode.Update` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `memberNode` once before the first use and handle the null case, or cast with `(IMemberNode)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Core.Assets.Presentation/Quantum/ContentValueChangeOperation.cs:147 — This method contradicts itself about `objectNode`: line 140 assigns it with `as IObjectNode`, which hands back null rather than throwing when the value is not a `IObjectNode`, but line 147 then dereferences it directly as `objectNode.Update` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `objectNode` once before the first use and handle the null case, or cast with `(IObjectNode)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Assets.Editor.Wpf/NodePresenters/Commands/PickupSceneObjectCommandBase.cs:36 — This method contradicts itself about `picker`: line 31 writes `picker?.ShowModal`, which says `picker` can be null, but line 36 then dereferences it directly as `picker.SelectedEntity` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `picker` truly cannot be null here, the `?.` is misleading. Settle it one way — test `picker` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded sources/editor/Stride.Assets.Editor.Wpf/ViewModel/ModelComponentViewModel.cs:251 — This method contradicts itself about `undoRedoService`: line 243 writes `undoRedoService?.CreateTransaction`, which says `undoRedoService` can be null, but line 251 then dereferences it directly as `undoRedoService.SetName` with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `undoRedoService` truly cannot be null here, the `?.` is misleading. Settle it one way — test `undoRedoService` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • + 13 more in this group — see findings.md.
AX2 · Stateful singletons · Stateful shared instance · ×36
  • Stateful shared instance: FileSystemProvider sources/core/Stride.Core.IO/FileSystemProvider.cs:9 — `FileSystemProvider` is not registered, but `VirtualFileSystem` creates it and keeps it in the static `ApplicationTemporary`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (localBasePath; e.g. `localBasePath` at line 42).
  • Stateful shared instance: CloneContext sources/engine/Stride.Engine/Engine/Design/EntityCloner.cs:178 — `CloneContext` is not registered, but `EntityCloner` creates it and keeps it in the static `cloneContext`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (MappedObjects, SerializedObjects, ClonedObjects, SharedObjects, EntitySerializerSelector; e.g. `MappedObjects` at line 183).
  • Stateful shared instance: SerializerSelector sources/core/Stride.Core/Serialization/SerializerSelector.cs:13 — `SerializerSelector` is not registered, but `EntityCloner` creates it and keeps it in the static `cloneSerializerSelector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (invalidated; e.g. `invalidated` at line 217).
  • Stateful shared instance: GraphicsAdapter sources/engine/Stride.Graphics/GraphicsAdapter.cs:16 — `GraphicsAdapter` is not registered, but `GraphicsAdapterFactory` creates it and keeps it in the static `staticCollector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (unsupportedReason, unsupportedReasonChecked, debugPhysicalDevice; e.g. `unsupportedReason` at line 32).
  • Stateful shared instance: AnonymousDisposable sources/core/Stride.Core/AnonymousDisposable.cs:10 — `AnonymousDisposable` is not registered, but `GraphicsAdapterFactory` creates it and keeps it in the static `staticCollector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (onDispose; e.g. `onDispose` at line 35).
  • Stateful shared instance: DataContentSerializerHelper sources/core/Stride.Core.Serialization/Serialization/Contents/DataContentSerializer.cs:23 — `DataContentSerializerHelper` is not registered, but `ProceduralModelDescriptorContentSerializer` creates it and keeps it in the static `DataSerializerHelper`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (dataSerializer; e.g. `dataSerializer` at line 37).
  • Stateful shared instance: COpenVRContext sources/engine/Stride.VirtualReality/OpenVR/openvr_api.cs:7811 — `COpenVRContext` is not registered, but `OpenVR` creates it and keeps it in the static `_OpenVRInternal_ModuleContext`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_pVRSystem, m_pVRChaperone, m_pVRChaperoneSetup, m_pVRCompositor, m_pVRHeadsetView, m_pVROverlay; e.g. `m_pVRSystem` at line 7817).
  • Stateful shared instance: Token sources/shaders/Stride.Shaders.Parsers/CppNet/Token.cs:30 — `Token` is not registered, but `FixedTokenSource` creates it and keeps it in the static `EOF`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (line, column; e.g. `line` at line 83).
  • Stateful shared instance: Macro sources/shaders/Stride.Shaders.Parsers/CppNet/Macro.cs:33 — `Macro` is not registered, but `Preprocessor` creates it and keeps it in the static `__LINE__`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (source, args, variadic, tokens; e.g. `source` at line 64).
  • Stateful shared instance: InstructionInfo sources/shaders/Stride.Shaders.Spirv/Generated/InstructionInfo.gen.cs:4 — `InstructionInfo` keeps one instance of itself in the static `Instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (Info, OrderGroup; e.g. `Info` at line 35).
  • Stateful shared instance: YamlSerializer sources/core/Stride.Core.Design/Yaml/YamlSerializer.cs:14 — `YamlSerializer` keeps one instance of itself in the static `Default`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (globalSerializer; e.g. `globalSerializer` at line 62).
  • Stateful shared instance: TranslationManagerImpl sources/core/Stride.Core.Translation/TranslationManager.cs:22 — `TranslationManagerImpl` is not registered, but `TranslationManager` creates it and keeps it in the static `Lazy`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (translationProviders; e.g. `translationProviders` at line 110).
  • Stateful shared instance: Node sources/core/Stride.Core.Yaml/SortedDictionary.cs:1546 — `Node` is not registered, but `Enumerator` creates it and keeps it in the static `dummyNode`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (item, left, right, isRed; e.g. `item` at line 1567).
  • Stateful shared instance: SerializerSelector sources/core/Stride.Core/Serialization/SerializerSelector.cs:13 — `SerializerSelector` is not registered, but `AssetCloner` creates it and keeps it in the static `ClonerSelector`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (invalidated; e.g. `invalidated` at line 217).
  • Stateful shared instance: FileVersionManager sources/assets/Stride.Core.Assets/FileVersionManager.cs:12 — `FileVersionManager` keeps one instance of itself in the static `instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (requestsToProcess, isDisposing, isDisposed; e.g. `requestsToProcess` at line 166).
  • Stateful shared instance: SettingsContainer sources/core/Stride.Core.Design/Settings/SettingsContainer.cs:18 — `SettingsContainer` is not registered, but `PackageUserSettings` creates it and keeps it in the static `SettingsContainer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (currentProfile; e.g. `currentProfile` at line 395).
  • Stateful shared instance: AssetCompilerRegistry sources/assets/Stride.Core.Assets/Compiler/AssetCompilerRegistry.cs:15 — `AssetCompilerRegistry` is not registered, but `BuildDependencyManager` creates it and keeps it in the static `AssetCompilerRegistry`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (typeToCompiler, attributeCompilers, declaredCompilers, registeredAssemblies, assembliesChanged; e.g. `typeToCompiler` at line 89).
  • Stateful shared instance: SerializerSettings sources/core/Stride.Core.Yaml/Serialization/SerializerSettings.cs:58 — `SerializerSettings` is not registered, but `DynamicYaml` creates it and keeps it in the static `DefaultSettings`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (preferredIndent, _namingConvention, specialCollectionMember, attributeRegistry, objectSerializerBackend, objectFactory; e.g. `preferredIndent` at line 127).
  • Stateful shared instance: LinkPreviewAdorner sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/LinkPreviewBehavior.cs:22 — `LinkPreviewAdorner` is not registered, but `LinkPreviewBehavior` creates it and keeps it in the static `LinkPreview`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (start_, end_; e.g. `start_` at line 50).
  • Stateful shared instance: WindowInfo sources/presentation/Stride.Core.Presentation.Wpf/Windows/WindowInfo.cs:14 — `WindowInfo` is not registered, but `WindowManager` creates it and keeps it in the static `MainWindow`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (hwnd; e.g. `hwnd` at line 164).
  • Stateful shared instance: EffectInstance sources/engine/Stride.Graphics/Rendering/EffectInstance.cs:21 — `EffectInstance` is not registered, but `FontPreview` creates it and keeps it in the static `sdfFontEffect`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (RootSignature, permutationCounter, DescriptorReflection, parameterUpdater, descriptorSets; e.g. `RootSignature` at line 65).
  • Stateful shared instance: DebugAssetNodeCollectionViewModel sources/editor/Stride.Core.Assets.Editor/ViewModels/DebugAssetNodeCollectionViewModel.cs:17 — `DebugAssetNodeCollectionViewModel` is not registered, but `EditorDebugService` creates it and keeps it in the static `debugPages`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (selectedNode; e.g. `selectedNode` at line 48).
  • Stateful shared instance: SettingsContainer sources/core/Stride.Core.Design/Settings/SettingsContainer.cs:18 — `SettingsContainer` is not registered, but `InternalSettings` creates it and keeps it in the static `SettingsContainer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (currentProfile; e.g. `currentProfile` at line 395).
  • Stateful shared instance: SpriteBatch sources/engine/Stride.Graphics/Shaders.Bytecodes/SpriteBatch.bytecode.Vulkan.Level_9_1.cs:16 — `SpriteBatch` is not registered, but `ThumbnailBuildHelper` creates it and keeps it in the static `staticSpriteBatch`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (userViewMatrix, userProjectionMatrix; e.g. `userViewMatrix` at line 159).
  • Stateful shared instance: EditorProcessService sources/editor/Stride.GameStudio.Avalonia/Services/EditorProcessService.cs:21 — `EditorProcessService` is not registered, but `App` creates it and keeps it in the static `processService`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (HasLoadedSession; e.g. `HasLoadedSession` at line 44).
  • + 11 more in this group — see findings.md.
D36 · Supply-chain Provenance & Signing · 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
  • REDACTED
  • + 10 more in this group — see findings.md.
X2 · Cancellation propagation · Async method without CancellationToken · ×35
  • Async method without CancellationToken: FileExistsAsync sources/core/Stride.Core.IO/VirtualFileSystem.cs:232 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: OpenStreamAsync sources/core/Stride.Core.IO/VirtualFileSystem.cs:277 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ListFiles sources/core/Stride.Core.IO/VirtualFileSystem.cs:320 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ResolveBundle sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:86 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: LoadBundle sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:144 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: LoadBundleFromUrl sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:167 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ForBatchedAsync sources/core/Stride.Core/Threading/DispatcherLowPriority.cs:66 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ScheduleAsync sources/engine/Stride.Engine/Engine/ContentManagerAsyncExtensions.cs:81 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ReceiveAsync sources/engine/Stride.Engine/Engine/Events/EventReceiver.cs:106 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ReceiveOne sources/engine/Stride.Engine/Engine/Events/EventReceiver.cs:135 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: InternalReceiveAsync sources/engine/Stride.Engine/Engine/Events/EventReceiverBase.cs:62 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GetPeakTask sources/engine/Stride.Engine/Engine/Events/EventReceiverBase.cs:136 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: InitiateConnectionToRouter sources/engine/Stride.Engine/Engine/Network/RouterClient.cs:72 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: StartServer sources/engine/Stride.Engine/Engine/Network/SimpleSocket.cs:58 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: StartClient sources/engine/Stride.Engine/Engine/Network/SimpleSocket.cs:106 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: SendAndReceiveAck sources/engine/Stride.Engine/Engine/Network/SimpleSocket.cs:134 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ReadAllAsync sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:12 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: WriteInt32Async sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:24 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ReadInt32Async sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:30 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: WriteInt16Async sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:37 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ReadInt16Async sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:43 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: Write7BitEncodedInt sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:50 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: Read7BitEncodedInt sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:66 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: WriteStringAsync sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:93 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ReadStringAsync sources/engine/Stride.Engine/Engine/Network/SocketExtensions.cs:100 — No CancellationToken parameter — this work can't be stopped early once started.
  • + 10 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×35
  • Swallowed exception (empty catch) sources/core/Stride.Core.IO/DirectoryWatcher.Desktop.cs:348 — 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) sources/core/Stride.Core.IO/TemporaryFile.cs:47 — 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) sources/core/Stride.Core.IO/TemporaryFile.cs:50 — 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) sources/core/Stride.Core.IO/VirtualFileSystem.cs:343 — 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) sources/core/Stride.Core.Serialization/Serialization/Contents/ContentManager.cs:717 — 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) sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:541 — 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) sources/core/Stride.Core.Serialization/Storage/FileOdbBackend.cs:245 — 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) sources/core/Stride.Core.Serialization/Storage/FileOdbBackend.cs:246 — 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) sources/core/Stride.Core.Serialization/Storage/ObjectDatabase.cs:77 — 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) sources/core/Stride.Core/Diagnostics/SafeAction.cs:20 — 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) sources/core/Stride.Core/Diagnostics/SafeAction.cs:40 — 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) sources/core/Stride.Core/Diagnostics/VTuneProfiler.cs:26 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) sources/core/Stride.Core/Diagnostics/VTuneProfiler.cs:40 — 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) sources/engine/Stride.Engine/Rendering/LightProbes/LightProbeProcessor.cs:49 — 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) sources/engine/Stride.Games/GraphicsDeviceManager.cs:1195 — 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) sources/shaders/Stride.Shaders.Compilers/FileShaderCache.cs:70 — 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) sources/engine/Stride.Graphics.Regression/GameTestBase.cs:756 — 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) sources/engine/Stride.Graphics.Regression/GameTestBase.cs:776 — 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) sources/engine/Stride.Graphics.Regression/HostEnvironment.cs:76 — 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) sources/engine/Stride.Graphics.Regression/ImageTester.cs:353 — 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) sources/shared/NativeCrashHandler.cs:258 — 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) sources/shared/NativeCrashHandler.cs:265 — 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) sources/shared/NativeCrashHandler.cs:269 — 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) sources/shared/NativeCrashHandler.cs:348 — 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) sources/shared/NativeCrashHandler.cs:375 — 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.
  • + 10 more in this group — see findings.md.
D10 · Test Quality · No assertions · ×24
  • No assertions: EveryPathReturnsCompiles sources/shaders/Stride.Shaders.Tests/CompileMessageTests.cs:74 — 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: FileWithTwoByteOrderMarksCompiles sources/shaders/Stride.Shaders.Tests/LeadingByteOrderMarkTests.cs:32 — 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: ConstantAndStaticInitialValuesCompile sources/shaders/Stride.Shaders.Tests/MemberDeclarationErrorTests.cs:38 — 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: OverloadsByBufferElementType sources/shaders/Stride.Shaders.Tests/OverloadResolutionTests.cs:25 — 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: Forget_WithRunningTask_DoesNotAwait sources/core/Stride.Core.Design.Tests/Extensions/TestTaskExtensions.cs:28 — 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: EmitExample1 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:54 — 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: EmitExample2 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:60 — 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: EmitExample3 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:66 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, 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: EmitExample4 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:72 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, 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: EmitExample5 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:78 — 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: EmitExample6 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:84 — 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: EmitExample7 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:90 — 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: EmitExample8 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:96 — 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: EmitExample9 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:102 — 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: EmitExample10 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:108 — 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: EmitExample11 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:114 — 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: EmitExample12 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:120 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, 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: EmitExample13 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:126 — 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: EmitExample14 sources/core/Stride.Core.Yaml.Tests/EmitterTests.cs:132 — 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: CircularReference sources/core/Stride.Core.Yaml.Tests/Serialization/SerializationTests.cs:115 — 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: TestSimpleCollectionUpdate sources/assets/Stride.Core.Assets.Quantum.Tests/TestCollectionUpdates.cs:11 — 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: AHandlerThatFindsTheDatabaseDisposedStopsQuietly sources/editor/Stride.Assets.Editor.Tests/EditorContentLoaderDisposalTests.cs:15 — 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: TestSoundEffectLoading sources/plugins/Audio/Stride.Audio.Tests/Engine/TestAssetLoading.cs: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: TestSoundMusicLoading sources/plugins/Audio/Stride.Audio.Tests/Engine/TestAssetLoading.cs:37 — 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.
X18 · Disposal-pattern correctness · Disposable created and abandoned in the method that made it · ×19
  • Disposable created and abandoned in the method that made it sources/core/Stride.Core.Serialization/Serialization/Contents/ContentIndexMap.cs:104 — `reader` is a `StreamReader`, which implements `IDisposable`, and it is created here (line 104). Every use of it in `ReadEntries` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var reader = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/engine/Stride.Engine/Engine/Network/RouterClient.cs:76 — `socketContext` is a `SimpleSocket`, which implements `IDisposable`, and it is created here (line 76). Every use of it in `InitiateConnectionToRouter` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var socketContext = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/engine/Stride.Engine/Engine/Network/SimpleSocket.cs:61 — `listener` is a `TcpSocketListener`, which implements `IDisposable`, and it is created here (line 61). Every use of it in `StartServer` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var listener = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/engine/Stride.Engine/Rendering/LightProbes/LightProbeGenerator.cs:37 — `lambertFiltering` is a `LambertianPrefilteringSHNoCompute`, which implements `IDisposable`, and it is created here (line 37). Every use of it in `GenerateCoefficients` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var lambertFiltering = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/engine/Stride.Graphics/Data/TextureSerializationData.cs:114 — `initialImage` is a `Image`, which implements `IDisposable`, and it is created here (line 114). Every use of it in `Write` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var initialImage = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/engine/Stride.Rendering/Rendering/ProceduralModels/PrimitiveProceduralModelBase.cs:99 — `data` is a `GeometricMeshData`, which implements `IDisposable`, and it is created here (line 99). Every use of it in `Generate` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var data = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/shaders/Stride.Shaders.Parsers/Parsing/PreProcessing/CMacros/CommentPhase.cs:9 — `frame` is a `CodeFrame`, which implements `IDisposable`, and it is created here (line 9). Every use of it in `Apply` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var frame = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/shaders/Stride.Shaders.Parsers/Parsing/PreProcessing/MacroPreProcessor.cs:23 — `cpp` is a `Preprocessor`, which implements `IDisposable`, and it is created here (line 23). Every use of it in `Run` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cpp = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:115 — `coreTask` is a `Task`, which implements `IDisposable`, and it is created here (line 115). Every use of it in `PreProcessInstructions` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var coreTask = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:117 — `glslTask` is a `Task`, which implements `IDisposable`, and it is created here (line 117). Every use of it in `PreProcessInstructions` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var glslTask = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/shaders/Stride.Shaders.Spirv/Literals/LiteralString.cs:62 — `lit` is a `LiteralString`, which implements `IDisposable`, and it is created here (line 62). Every use of it in `Parse` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var lit = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/engine/Stride.Graphics.Regression/TestResultImage.cs:68 — `lz4Stream` is a `LZ4Stream`, which implements `IDisposable`, and it is created here (line 68). Every use of it in `Write` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var lz4Stream = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/buildengine/Stride.Core.BuildEngine.Common/CommandBuildStep.cs:65 — `commandResultEntries` is a `ListStore`, which implements `IDisposable`, and it is created here (line 65). Every use of it in `Clean` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var commandResultEntries = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/buildengine/Stride.Core.BuildEngine.Common/FileVersionStorage.cs:121 — `reader` is a `StreamReader`, which implements `IDisposable`, and it is created here (line 121). Every use of it in `ReadEntries` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var reader = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:311 — `dependenciesReader` is a `DependencyContextJsonReader`, which implements `IDisposable`, and it is created here (line 311). Every use of it in `LoadAssemblyFromPathInternal` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var dependenciesReader = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/core/Stride.Core.Design/Windows/AppHelper.cs:175 — `searcher` is a `ManagementObjectSearcher`, which implements `IDisposable`, and it is created here (line 175). Every use of it in `QueryVideoControllers` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var searcher = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/assets/Stride.AssetCompiler/PackageBuilder.cs:588 — `host` is a `NpHost`, which implements `IDisposable`, and it is created here (line 588). Every use of it in `TryExecuteRemote` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var host = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/assets/Stride.Core.Assets/Serializers/SourceCodeAssetSerializer.cs:33 — `reader` is a `StreamReader`, which implements `IDisposable`, and it is created here (line 33). Every use of it in `Load` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var reader = …;`), which releases it at the end of the scope on every path including a throw.
  • Disposable created and abandoned in the method that made it sources/presentation/Stride.Core.Presentation.Wpf/Drawing/CanvasRenderer.cs:441 — `streamGeometryContext` is a `StreamGeometryContext`, which implements `IDisposable`, and it is created here (line 441). Every use of it in `DrawLineSegmentsByStreamGeometry` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var streamGeometryContext = …;`), which releases it at the end of the scope on every path including a throw.
D6 · Cohesion (LCOM4) · Low cohesion · ×17
  • Low cohesion: EditorDialogService (LCOM4 12) sources/editor/Stride.Core.Assets.Editor.Wpf/View/EditorDialogService.cs:38 — EditorDialogService's methods fall into 12 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 12 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.
  • Low cohesion: Command (LCOM4 5) sources/buildengine/Stride.Core.BuildEngine.Common/Command.cs:11 — Command'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.
  • Low cohesion: SessionObjectPropertiesViewModel (LCOM4 5) sources/editor/Stride.Core.Assets.Editor/Components/Properties/SessionObjectPropertiesViewModel.cs:20 — SessionObjectPropertiesViewModel'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.
  • Low cohesion: AssetNodePresenterFactory (LCOM4 5) sources/editor/Stride.Core.Assets.Presentation/Quantum/NodePresenters/AssetNodePresenterFactory.cs:14 — AssetNodePresenterFactory'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.
  • Low cohesion: ThumbnailCompilerBase (LCOM4 5) sources/editor/Stride.Editor/Thumbnails/ThumbnailCompilerBase.cs:29 — ThumbnailCompilerBase'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.
  • Low cohesion: GameSystemBase (LCOM4 5) sources/engine/Stride.Games/GameSystemBase.cs:46 — GameSystemBase'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.
  • Low cohesion: CodeTextEditor (LCOM4 5) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/CodeTextEditor.cs:22 — CodeTextEditor'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.
  • Low cohesion: TextureTool (LCOM4 5) sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:27 — TextureTool'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.
  • Low cohesion: Package (LCOM4 4) sources/assets/Stride.Core.Assets/Package.cs:48 — Package's methods fall into 4 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 4 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.
  • Low cohesion: ProjectLibraryWindow (LCOM4 4) sources/editor/Stride.Assets.Editor.Wpf/Templates/ProjectLibraryWindow.xaml.cs:24 — ProjectLibraryWindow's methods fall into 4 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 4 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.
  • Low cohesion: EntityHierarchyElementViewModel (LCOM4 4) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyElementViewModel.cs:20 — EntityHierarchyElementViewModel's methods fall into 4 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 4 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.
  • Low cohesion: EntityHierarchyRootViewModel (LCOM4 4) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyRootViewModel.cs:21 — EntityHierarchyRootViewModel's methods fall into 4 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 4 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.
  • Low cohesion: SpriteAnimationSystem (LCOM4 4) sources/engine/Stride.Engine/Rendering/Sprites/SpriteAnimationSystem.cs:15 — SpriteAnimationSystem's methods fall into 4 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 4 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.
  • Low cohesion: ParameterKey (LCOM4 4) sources/engine/Stride.Foundation/Effects/ParameterKey.cs:16 — ParameterKey's methods fall into 4 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 4 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.
  • Low cohesion: GameWindow (LCOM4 4) sources/engine/Stride.Games/GameWindow.cs:35 — GameWindow's methods fall into 4 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 4 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.
  • Low cohesion: SpriteFont (LCOM4 4) sources/engine/Stride.Graphics/SpriteFont.cs:26 — SpriteFont's methods fall into 4 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 4 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.
  • Low cohesion: HeightfieldCollider (LCOM4 4) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldCollider.cs:20 — HeightfieldCollider's methods fall into 4 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 4 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.
X1 · Async correctness · Sync-over-async (deadlock risk) · ×16
  • Sync-over-async (deadlock risk) sources/core/Stride.Core.Serialization/Storage/ObjectDatabase.cs:75 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:487 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/engine/Stride.Rendering/Streaming/StreamingManager.cs:424 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:116 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:118 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) REDACTED:32 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) REDACTED:54 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) REDACTED:77 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/core/Stride.Core.Design/Threading/AsyncLock.cs:142 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/core/Stride.Core.Design/Threading/Internal/TaskCompletionSourceExtensions.cs:52 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/core/Stride.Core.Design/Threading/Internal/TaskCompletionSourceExtensions.cs:68 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/assets/Stride.AssetCompiler/BundlePacker.cs:192 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:253 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/assets/Stride.Core.Assets/PackageSession.cs:1103 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/assets/Stride.Core.Assets/PackageSession.cs:1146 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) sources/assets/Stride.Core.Assets/SourceCodeAsset.cs:55 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
D17 · Explicit Debt · BarePragmaDisable · ×15
  • BarePragmaDisable sources/assets/Stride.Core.Assets.Tests/TestAssetRegistry.cs:11 — #pragma warning disable CS8625 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/assets/Stride.Core.Assets.Tests/TestAssetRegistry.cs:39 — #pragma warning disable CS8625 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/assets/Stride.Core.Assets.Tests/TestPackageDependency.cs:96 — #pragma warning disable CS8625 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/assets/Stride.Core.Assets.Tests/TestPackageStore.cs:11 — #pragma warning disable CS8625 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/assets/Stride.Core.Assets.Tests/TestBasePart.cs:117 — #pragma warning disable CS1718 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/assets/Stride.Core.Assets.Tests/TestPackageDependency.cs:107 — #pragma warning disable CS1718 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/core/Stride.Core.Tests/Collections/FastListTests.cs:6 — #pragma warning disable CS0618 // Type or member is obsolete — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/core/Stride.Core.Tests/TestMicroThread.cs:22 — #pragma warning disable 1998 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/core/Stride.Core/Unsafe/UnsafeUtilities.cs:492 — #pragma warning disable CS8500 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/editor/Stride.Assets.Editor.Wpf/Preview/Views/SpriteFontPreviewView.cs:10 — #pragma warning disable CS0618 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/engine/Stride.Graphics/BufferPool.cs:89 — #pragma warning disable 162 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/engine/Stride.Graphics/BufferPool.cs:112 — #pragma warning disable 162 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/engine/Stride.Graphics/BufferPool.cs:145 — #pragma warning disable 162 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/engine/Stride.Graphics/BufferPool.cs:153 — #pragma warning disable 162 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
  • BarePragmaDisable sources/engine/Stride.Rendering/Rendering/Lights/LightDirectionalGroupRenderer.cs:16 — #pragma warning disable 169 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
IC1 · Incompleteness & stubs · Unfinished stub · ×15
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.Design/Settings/SettingsProfile.cs:333 — `Serialize` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.MicroThreading/MicroThread.cs:146 — `Migrate` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core.MicroThreading/MicroThread.cs:151 — `Remove` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:51 — `ExceptWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:57 — `IntersectWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:99 — `SymmetricExceptWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Collections/TrackingHashSet.cs:105 — `UnionWith` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/core/Stride.Core/Diagnostics/ConsoleLogListener.cs:255 — `Length` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/RoslynHost.cs:131 — `AddDocument` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/RoslynHost.cs:146 — `CreateMetadataReference` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/editor/Stride.Assets.Editor/ViewModels/GraphicsCompositorEditor/SharedRendererInputSlotViewModel.cs:29 — `LinkTo` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/editor/Stride.Assets.Editor/ViewModels/GraphicsCompositorEditor/SharedRendererInputSlotViewModel.cs:35 — `ClearLink` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/editor/Stride.Core.Assets.Presentation/ViewModels/DirectoryViewModel.cs:208 — `UpdateIsDeletedStatus` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/editor/Stride.Core.Assets.Presentation/ViewModels/MountPointViewModel.cs:47 — `UpdateIsDeletedStatus` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException sources/editor/Stride.Core.Assets.Presentation/ViewModels/ProjectViewModel.cs:37 — `UpdateIsDeletedStatus` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
X18 · Disposal-pattern correctness · Owned disposable field is never released · ×15
  • Owned disposable field is never released sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:34 — `BundleOdbBackend` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `contentIndexMap` itself (line 34), which makes that instance its own. But `contentIndexMap` is named in none of the methods the disposal search covered: `Dispose` (line 64) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`contentIndexMap?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/core/Stride.Core/Collections/MultiValueSortedDictionary.cs:714 — `Enumerator` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_Enumerator` itself (line 714), which makes that instance its own. But `_Enumerator` is named in none of the methods the disposal search covered: `Dispose` (line 734) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_Enumerator?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.Engine/Engine/Network/Sockets.Implementation.NET/TcpSocketListener.cs:26 — `TcpSocketListener` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_listenCanceller` itself (line 26), which makes that instance its own. But `_listenCanceller` is named in none of the methods the disposal search covered: `Dispose` (line 119), `Dispose` (line 133), `Dispose` (line 119), `Dispose` (line 133) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_listenCanceller?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.Input/SDL/InputSourceSDL.cs:24 — `InputSourceSDL` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `mouse` itself (line 24), which makes that instance its own. But `mouse` is named in none of the methods the disposal search covered: `Dispose` (line 56) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`mouse?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.Input/SDL/InputSourceSDL.cs:25 — `InputSourceSDL` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `keyboard` itself (line 25), which makes that instance its own. But `keyboard` is named in none of the methods the disposal search covered: `Dispose` (line 56) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`keyboard?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.Input/SDL/InputSourceSDL.cs:26 — `InputSourceSDL` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `pointer` itself (line 26), which makes that instance its own. But `pointer` is named in none of the methods the disposal search covered: `Dispose` (line 56) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`pointer?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.Rendering/Rendering/Sprites/SpriteRenderFeature.cs:261 — `ThreadContext` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `pickingEffect` itself (line 261), which makes that instance its own. But `pickingEffect` is named in none of the methods the disposal search covered: `Dispose` (line 288) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`pickingEffect?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.Rendering/Rendering/Sprites/SpriteRenderFeature.cs:262 — `ThreadContext` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `alphaCutoffEffect` itself (line 262), which makes that instance its own. But `alphaCutoffEffect` is named in none of the methods the disposal search covered: `Dispose` (line 288) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`alphaCutoffEffect?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.Rendering/Rendering/VisibilityGroup.cs:23 — `VisibilityGroup` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `collectorCache` itself (line 23), which makes that instance its own. But `collectorCache` is named in none of the methods the disposal search covered: `Dispose` (line 72) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`collectorCache?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.VirtualReality/OpenXR/OpenXRHmd.cs:113 — `OpenXRHmd` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `leftHand` itself (line 113), which makes that instance its own. But `leftHand` is named in none of the methods the disposal search covered: `Dispose` (line 899) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`leftHand?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/engine/Stride.VirtualReality/OpenXR/OpenXRHmd.cs:116 — `OpenXRHmd` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `rightHand` itself (line 116), which makes that instance its own. But `rightHand` is named in none of the methods the disposal search covered: `Dispose` (line 899) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`rightHand?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/shaders/Stride.Shaders.Effects/Compiler/EffectPriorityScheduler.cs:23 — `EffectPriorityScheduler` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `notifyQueuedTaskEvent` itself (line 23), which makes that instance its own. But `notifyQueuedTaskEvent` is named in none of the methods the disposal search covered: `Dispose` (line 161) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`notifyQueuedTaskEvent?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/shaders/Stride.Shaders.Effects/Compiler/EffectPriorityScheduler.cs:24 — `EffectPriorityScheduler` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `notifyHighPriorityQueuedTaskEvent` itself (line 24), which makes that instance its own. But `notifyHighPriorityQueuedTaskEvent` is named in none of the methods the disposal search covered: `Dispose` (line 161) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`notifyHighPriorityQueuedTaskEvent?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:133 — `Builder` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `cancellationTokenSource` itself (line 133), which makes that instance its own. But `cancellationTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 197), `CloseObjectDatabase` (line 170) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`cancellationTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released sources/assets/Stride.Core.Assets/Tracking/AssetSourceTracker.cs:25 — `AssetSourceTracker` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `threadWatcherEvent` itself (line 25), which makes that instance its own. But `threadWatcherEvent` is named in none of the methods the disposal search covered: `Dispose` (line 173) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`threadWatcherEvent?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
D17 · Explicit Debt · ObsoleteWithCallers · ×14
  • ObsoleteWithCallers sources/assets/Stride.Core.Assets/AssetComposite.cs:11 — [Obsolete] CollectParts
  • ObsoleteWithCallers sources/assets/Stride.Core.Assets/AssetPart.cs:10 — [Obsolete] AssetPart
  • ObsoleteWithCallers sources/core/Stride.Core.Design/Threading/AsyncLock.cs:43 — [Obsolete] AsyncLock
  • ObsoleteWithCallers sources/core/Stride.Core.Reflection/TypeDescriptors/OldCollectionDescriptor.cs:14 — [Obsolete] OldCollectionDescriptor
  • ObsoleteWithCallers sources/core/Stride.Core/DisplayAttribute.cs:122 — [Obsolete] GetDisplayName
  • ObsoleteWithCallers sources/core/Stride.Core/DisplayAttribute.cs:131 — [Obsolete] GetOrder
  • ObsoleteWithCallers sources/editor/Stride.Core.Assets.Editor.Avalonia/Views/PropertyViewHelper.cs:80 — [Obsolete] SetIsExpanded
  • ObsoleteWithCallers sources/editor/Stride.Core.Assets.Presentation/ViewModels/AssetViewModel.cs:420 — [Obsolete] OnAssetPropertyChanged
  • ObsoleteWithCallers sources/engine/Stride.Assets/SpriteFont/PrecompiledSpriteFontAsset.cs:24 — [Obsolete] PrecompiledSpriteFontAsset
  • ObsoleteWithCallers sources/engine/Stride.Engine/Updater/UpdateEngineHelper.cs:18 — [Obsolete] ObjectToPointer
  • ObsoleteWithCallers sources/engine/Stride.Engine/Updater/UpdateEngineHelper.cs:27 — [Obsolete] PointerToObject
  • ObsoleteWithCallers sources/engine/Stride.Engine/Updater/UpdateEngineHelper.cs:31 — [Obsolete] PointerToStruct
  • ObsoleteWithCallers sources/presentation/Stride.Core.Presentation.Quantum/ViewModels/NodeViewModel.cs:182 — [Obsolete] MemberInfo
  • ObsoleteWithCallers sources/presentation/Stride.Core.Quantum/References/Reference.cs:13 — [Obsolete] CreateReference
X1 · Async correctness · Sync-over-async (deadlock risk) through `.Result` · ×14
  • Sync-over-async (deadlock risk) through `.Result` sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:474 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:953 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/engine/Stride.Engine/Shaders.Compiler/Internals/NetworkVirtualFileProvider.cs:93 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/engine/Stride.Engine/Shaders.Compiler/Internals/NetworkVirtualFileProvider.cs:102 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:692 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/shaders/Stride.Shaders.Effects/Compiler/TaskOrResult.cs:37 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/core/Stride.Core.Design/Threading/AsyncLock.cs:135 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/core/Stride.Core.Design/Threading/AsyncLock.cs:174 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/assets/Stride.Core.Assets/PackageSession.CompanionPackages.cs:182 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/assets/Stride.Core.Assets/Templates/SessionTemplateGenerator.cs:50 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/assets/Stride.Core.Assets/VSProjectHelper.cs:100 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/assets/Stride.Core.Packages/NugetPackage.cs:212 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` REDACTED:743 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
  • Sync-over-async (deadlock risk) through `.Result` sources/presentation/Stride.Core.Presentation.Wpf/Windows/DialogHelper.cs:89 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
D3 · God Classes · ClassTooLong · ×13
  • ClassTooLong: Predicates sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs — ClassTooLong — 992 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 592 over it, 2.48× 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: VulkanConvertExtensions sources/engine/Stride.Graphics/Vulkan/VulkanConvertExtensions.cs — ClassTooLong — 711 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 311 over it, 1.78× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: ForwardRenderer sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.cs — ClassTooLong — 664 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods, declared across 3 files: Compositing/ForwardRenderer.cs (17), Compositing/ForwardRenderer.LightProbes.cs (2), Compositing/ForwardRenderer.VRUtils.cs (1). The bar is 400 significant lines; this is 264 over it, 1.66× 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: AccessorChainExpression sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs — ClassTooLong — 569 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 169 over it, 1.42× 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: DebuggingViewModel sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs — ClassTooLong — 492 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 92 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.
  • ClassTooLong: GraphicsDeviceManager sources/engine/Stride.Games/GraphicsDeviceManager.cs — ClassTooLong — 491 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 91 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.
  • ClassTooLong: ParticleEmitter sources/plugins/Particles/Stride.Particles/ParticleEmitter.cs — ClassTooLong — 455 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 55 over it, 1.14× 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: Parsers sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/Common/CommonParsers.cs — ClassTooLong — 441 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 41 over it, 1.10× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: OpenXRHmd sources/engine/Stride.VirtualReality/OpenXR/OpenXRHmd.cs — ClassTooLong — 440 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 40 over it, 1.10× 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: EntityHierarchyItemViewModel sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs — ClassTooLong — 437 significant lines (blank, comment-only and punctuation-only lines excluded), 26 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: AssetPropertyPasteProcessor sources/editor/Stride.Core.Assets.Editor/Components/CopyPasteProcessors/AssetPropertyPasteProcessor.cs — ClassTooLong — 435 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 35 over it, 1.09× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: UIBatch sources/engine/Stride.Graphics/UIBatch.cs — ClassTooLong — 411 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 11 over it, 1.03× 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: ShaderClass sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs — ClassTooLong — 410 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 10 over it, 1.03× 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.
D17 · Explicit Debt · Whole file has no live code · ×12
  • Whole file has no live code — 50 debt markers inside it sources/assets/Stride.Core.Assets.Tests/TestDependencyManager.cs:34 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 50 debt markers (50 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 50 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 8 debt markers inside it sources/engine/Stride.Assets.Tests/TestDependencyResolver.cs:3 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 8 debt markers (7 CommentedOutCode, 1 TodoComment) all sit inside that dead text: one decision to leave the whole file switched off, not 8 independent debts. The first note recorded in it is "// TODO: Adapt to new API" (line 3). Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 8 debt markers inside it sources/engine/Stride.Graphics.Tests/TestEffect.cs:7 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 8 debt markers (8 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 8 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 4 debt markers inside it sources/engine/Stride.Graphics.Tests/TestGraphicsApiCheck.cs:25 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 4 debt markers (4 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 4 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 3 debt markers inside it sources/engine/Stride.Graphics.Tests/TestMultiTextures.cs:6 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 3 debt markers (3 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 3 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 6 debt markers inside it sources/plugins/Audio/Stride.Audio.Tests/Engine/TestAudioEmitterComponent.cs:23 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 6 debt markers (6 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 6 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 17 debt markers inside it sources/plugins/Audio/Stride.Audio.Tests/TestAudioEngine.cs:20 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 17 debt markers (17 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 17 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 27 debt markers inside it sources/plugins/Audio/Stride.Audio.Tests/TestDynamicSoundEffectInstance.cs:27 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 27 debt markers (27 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 27 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 5 debt markers inside it sources/plugins/Audio/Stride.Audio.Tests/TestInvalidationAudioContext.cs:24 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 5 debt markers (5 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 5 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 13 debt markers inside it sources/plugins/Audio/Stride.Audio.Tests/TestSoundEffect.cs:25 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 13 debt markers (13 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 13 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 31 debt markers inside it sources/plugins/Audio/Stride.Audio.Tests/TestSoundEffectInstance.cs:33 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 31 debt markers (31 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 31 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 35 debt markers inside it sources/plugins/Audio/Stride.Audio.Tests/TestSoundMusic.cs:35 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 35 debt markers (35 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 35 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
D29 · Static Analysis (SAST) · REDACTED · ×12
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X20 · Mistyped argument guard · Argument guard throws the exception its own condition disproves · ×12
  • Argument guard throws the exception its own condition disproves sources/core/Stride.Core.Serialization/Serialization/UrlReferenceBase.cs:33 — The guard on line 31 rejects `url` and line 33 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(url)` is true of a value that is NOT null: it is satisfied by an EMPTY `url`, and on that path `url` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/core/Stride.Core.Serialization/Serialization/UrlReferenceBase.cs:47 — The guard on line 45 rejects `url` and line 47 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(url)` is true of a value that is NOT null: it is satisfied by an EMPTY `url`, and on that path `url` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/engine/Stride.Engine/Engine/ComponentCategoryAttribute.cs:25 — The guard on line 23 rejects `category` and line 25 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(category)` is true of a value that is NOT null: it is satisfied by an EMPTY `category`, and on that path `category` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/engine/Stride.Graphics/Font/FontCacheManager.cs:59 — The guard on line 58 rejects `character` and line 59 reports that rejection as `ArgumentNullException` — but the condition's own test `character.Bitmap == null` is true of a value that is NOT null: it reads a member of `character`, so it can only be evaluated on a non-null `character` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `character` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/engine/Stride.VirtualReality/OpenXR/OpenXRUtils.cs:155 — The guard on line 154 rejects `instance` and line 155 reports that rejection as `ArgumentNullException` — but the condition's own test `instance.Handle == 0` is true of a value that is NOT null: it reads a member of `instance`, so it can only be evaluated on a non-null `instance` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `instance` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/core/Stride.Core.Design/PackageVersion.cs:180 — The guard on line 178 rejects `version` and line 180 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(version)` is true of a value that is NOT null: it is satisfied by an EMPTY `version`, and on that path `version` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/core/Stride.Core.Yaml/Tokens/TagDirective.cs:96 — The guard on line 94 rejects `handle` and line 96 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(handle)` is true of a value that is NOT null: it is satisfied by an EMPTY `handle`, and on that path `handle` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/core/Stride.Core.Yaml/Tokens/TagDirective.cs:108 — The guard on line 106 rejects `prefix` and line 108 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(prefix)` is true of a value that is NOT null: it is satisfied by an EMPTY `prefix`, and on that path `prefix` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/assets/Stride.Core.Assets/AssetPartCollection.cs:21 — The guard on line 21 rejects `part` and line 21 reports that rejection as `ArgumentNullException` — but the condition's own test `part.Value == null` is true of a value that is NOT null: it reads a member of `part`, so it can only be evaluated on a non-null `part` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `part` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/assets/Stride.Core.Assets/PackageMeta.cs:192 — The guard on line 192 rejects `packageName` and line 192 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(packageName)` is true of a value that is NOT null: it is satisfied by an EMPTY `packageName`, and on that path `packageName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/AbstractNodeTypeGroup.cs:24 — The guard on line 22 rejects `groupName` and line 24 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(groupName)` is true of a value that is NOT null: it is satisfied by an EMPTY `groupName`, and on that path `groupName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Commands/AbstractNodeTypeGroup.cs:29 — The guard on line 27 rejects `types` and line 29 reports that rejection as `ArgumentNullException` — but the condition's own test `types.IsNullOrEmpty()` is true of a value that is NOT null: it reads a member of `types`, so it can only be evaluated on a non-null `types` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `types` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
D17 · Explicit Debt · HackComment · ×9
  • HackComment sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/CurveEditorViewModel.DrawingModel.cs:112 — // HACK: for some unknown reason, returning the x-axis first causes some issues on the view part — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/editor/Stride.Core.Assets.Editor.Wpf/Module.cs:22 — // HACK — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/editor/Stride.GameStudio/Layout/DockingLayoutManager.cs:256 — // Hack: need to get AssetPreview and register handlers again — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/editor/Stride.GameStudio/View/GameStudioWindow.xaml.cs:348 — // HACK: temporary open and await asset editor sequentially — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/plugins/BepuPhysics/Stride.BepuPhysics.Navigation/Processors/RecastMeshSystem.cs:465 — // // Hack to make the dotted path not visible during off-mesh connection. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/presentation/Stride.Core.Translation.Presentation.Wpf/MarkupExtensions/MarkupExtensionHelper.cs:46 — // Hack: get the real service provider (not the wrapper) — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/presentation/Stride.Core.Presentation.Wpf/Themes/ThemeSelector.xaml:3962 — <!-- HACK: In the cvt:Chained converter, Parameter1 should be ctrl:VectorEditingMode.Length, but for some reason it doesn't compile. So we convert it first to an int. --> — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/presentation/Stride.Core.Presentation.Wpf/Themes/ThemeSelector.xaml:4021 — <!-- HACK: In the cvt:Chained converter, Parameter1 should be ctrl:VectorEditingMode.Length, but for some reason it doesn't compile. So we convert it first to an int. --> — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment sources/presentation/Stride.Core.Presentation.Wpf/Themes/ThemeSelector.xaml:4093 — <!-- HACK: In the cvt:Chained converter, Parameter1 should be ctrl:VectorEditingMode.Length, but for some reason it doesn't compile. So we convert it first to an int. --> — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
IC1 · Incompleteness & stubs · Condition was already decided · ×8
  • Condition was already decided — an earlier guard makes this test constant sources/editor/Stride.Core.Assets.Presentation/ViewModels/PackageViewModel.cs:235 — Control only reaches here when `cancellationToken.HasValue && cancellationToken.Value.IsCancellationRequested` is false, because the guard on line 225 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant sources/engine/Stride.Assets/Textures/TextureHelper.cs:391 — Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 360 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant sources/engine/Stride.Assets/Textures/TextureHelper.cs:398 — Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 360 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant sources/engine/Stride.Assets/Textures/TextureHelper.cs:398 — Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 391 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant sources/engine/Stride.Assets/Textures/TextureHelper.cs:405 — Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 360 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant sources/engine/Stride.Assets/Textures/TextureHelper.cs:405 — Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 391 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant sources/engine/Stride.Assets/Textures/TextureHelper.cs:405 — Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 398 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
  • Condition was already decided — an earlier guard makes this test constant sources/engine/Stride.Assets/Textures/TextureHelper.cs:416 — Control only reaches here when `cancellationToken.IsCancellationRequested` is false, because the guard on line 360 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
X27 · Collection changed while being enumerated · Collection is structurally changed while it is being enumerated · ×8
  • Collection is structurally changed while it is being enumerated sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshInputBuilder.cs:34 — `other.Indices` is enumerated directly, and line 35 calls `other.Indices.Add(…)` inside the loop body — a structural change to a `List`. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:560 — The loop walks `liveAnalysis.ReferencedMethods`, and line 563 calls `MethodDuplicator.DuplicateMethodIfNecessary(…)`, which reaches `liveAnalysis.GetOrCreateMethodInfo(functionId)` in `MethodDuplicator.DuplicateMethodIfNecessary` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:567 — The loop walks `liveAnalysis.ReferencedMethods`, and line 570 calls `StreamAccessPatcher.PatchStreamsAccesses(…)`, which reaches `liveAnalysis.GetOrCreateMethodInfo(functionId)` in `StreamAccessPatcher.PatchStreamsAccesses` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated sources/editor/Stride.Assets.Editor/EditorGame/EditorGameComponentGizmoService.cs:153 — The loop walks `selectedEntities`, and line 155 calls `UpdateGizmoEntitiesSelection(…)`, which reaches `selectedEntities.Add(entity)` in `EditorGameComponentGizmoService.UpdateGizmoEntitiesSelection` — a structural change to that same `HashSet` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:652 — The loop walks `session.Projects.Where(x => !packageMap.ContainsValue(x))`, and line 654 calls `CreateProjectViewModel(…)`, which reaches `session.Projects.Add(project)` in `SessionViewModel.CreateProjectViewModel` — a structural change to that same `ProjectCollection` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated sources/editor/Stride.Core.Assets.Editor/ViewModels/ThumbnailsViewModel.cs:112 — The loop walks `initialQueue`, and line 114 calls `StartInitialBuild(…)`, which reaches `initialQueue.Add(package)` in `ThumbnailsViewModel.StartInitialBuild` — a structural change to that same `HashSet` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated sources/plugins/UI/Stride.UI/Panels/StackPanel.cs:294 — The loop walks `scrollingRequets`, and line 299 calls `ScrolllToElement(…)`, which reaches `scrollingRequets.Clear()` in `StackPanel.ScrolllToElement` — a structural change to that same `List` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated sources/core/Stride.Core.AssemblyProcessor/ProfileSerializerProcessor.cs:14 — The loop walks `context.SerializableTypesProfiles`, and line 25 calls `context.ResolveSerializer(…)`, which reaches `GetSerializableTypes(profile)` in `CecilSerializerContext.ResolveSerializer` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D5 · Coupling · Off the main sequence · ×7
  • Off the main sequence: Stride.Assets.Templates sources/editor/Stride.Assets.Templates/Stride.Assets.Templates.csproj:1 — Stride.Assets.Templates: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
  • Off the main sequence: Stride.Core.MicroThreading sources/core/Stride.Core.MicroThreading/Stride.Core.MicroThreading.csproj:1 — Stride.Core.MicroThreading: abstractness 0.05, instability 0.08, distance 0.87 — zone of pain — concrete and depended on by 9 project(s), so it's rigid to change.
  • Off the main sequence: Stride.Core sources/core/Stride.Core/Stride.Core.csproj:1 — Stride.Core: abstractness 0.16, instability 0.00, distance 0.84 — zone of pain — concrete and depended on by 10 project(s), so it's rigid to change.
  • Off the main sequence: Stride.Assets.FFmpeg sources/engine/Stride.Assets.FFmpeg/Stride.Assets.FFmpeg.csproj:1 — Stride.Assets.FFmpeg: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: Stride.Assets.VHACD sources/engine/Stride.Assets.VHACD/Stride.Assets.VHACD.csproj:1 — Stride.Assets.VHACD: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: Stride.Navigation sources/plugins/BulletPhysics/Stride.Navigation/Stride.Navigation.csproj:1 — Stride.Navigation: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: Stride.TextureConverter sources/tools/Stride.TextureConverter/Stride.TextureConverter.csproj:1 — Stride.TextureConverter: abstractness 0.08, instability 0.20, distance 0.72 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
D15 · Churn × Complexity Hotspots · Repeated repair · ×5
  • Repeated repair: sources/engine/Stride.Games/SDL/GameWindowSDL.cs sources/engine/Stride.Games/SDL/GameWindowSDL.cs:59 — sources/engine/Stride.Games/SDL/GameWindowSDL.cs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is GameWindowSDL.EndScreenDeviceChange at line 59), 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: “revert(engine): a borderless SDL window that allows resizing is not kept resizable”; “revert(engine): the SDL resize guard is no longer needed for embedded windows”; “fix(engine): a borderless SDL window that allows resizing stays resizable”; “fix(engine): skip the SDL resize of a window that already has the size”. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/engine/Stride.Games/SDL/GameWindowSDL.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: sources/engine/Stride.Input/InputManager.cs sources/engine/Stride.Input/InputManager.cs:667 — sources/engine/Stride.Input/InputManager.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is InputManager.GetFreeGamePadIndex at line 667), 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: “Merge pull request #3803 from LazyWorksZA/fix/directinput-cooperative-level”; “Fix XML documentation warnings (#3786)”; “fix: remove per-event allocations from input routing and text input (#3496)”. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/engine/Stride.Input/InputManager.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: sources/editor/Stride.Editor.Avalonia/Engine/AvaloniaInputBridge.cs sources/editor/Stride.Editor.Avalonia/Engine/AvaloniaInputBridge.cs:136 — sources/editor/Stride.Editor.Avalonia/Engine/AvaloniaInputBridge.cs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is AvaloniaInputBridge.SyncModifier at line 136), 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(editor): a click shorter than a game frame reaches the Avalonia editor games”; “fix(editor): mouse buttons held when the scene view loses the pointer are released”; “fix(editor): modifiers held before the press reach the scene view”. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/editor/Stride.Editor.Avalonia/Engine/AvaloniaInputBridge.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: sources/engine/Stride.Graphics/CommandList.cs sources/engine/Stride.Graphics/CommandList.cs:662 — sources/engine/Stride.Graphics/CommandList.cs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 12 (its worst body is CommandList.ResourceBarrierTransition at line 662), 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(graphics): CommandList.ResetTargets also resets the render target count”; “fix(graphics): the GraphicsResourceState overload of ResourceBarrierTransition exists on Direct3D 12 too”; “Fix XML documentation warnings (#3786)”. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/engine/Stride.Graphics/CommandList.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: sources/engine/Stride.Graphics/GraphicsResourceAllocator.cs sources/engine/Stride.Graphics/GraphicsResourceAllocator.cs:152 — sources/engine/Stride.Graphics/GraphicsResourceAllocator.cs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is GraphicsResourceAllocator.Recycle at line 152), 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 XML documentation warnings (#3786)”; “Graphics: recycle query pools, drop empty cache entries and fix temporary resource names”; “Graphics: fix temporary resource reuse and simplify reference tracking”. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 09:33:30 +09:00' --until='2026-11-12 09:33:30 +09:00' --full-history --no-merges -- sources/engine/Stride.Graphics/GraphicsResourceAllocator.cs`: 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.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×5
  • Untrusted text written into markup unescaped sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:172 — `item["Platform"]+" "+item["Device"]` 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 sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:176 — `item["TestName"]+" - frame "+item["FrameIndex"]` 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 sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:180 — `item["BuildNumber"]` 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 sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:197 — `error` 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 sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:229 — `testName` 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.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×5
  • Swallowed exception (caught, then discarded) sources/core/Stride.Core.Serialization/Serialization/Contents/ContentIndexMap.cs:61 — `catch (UnauthorizedAccessException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) sources/core/Stride.Core.Serialization/Storage/FileOdbBackend.cs:45 — `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) sources/engine/Stride.Engine/Engine/Network/RouterClient.cs:101 — `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) sources/engine/Stride.Engine/Updater/BlittableHelper.cs:44 — `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) sources/core/Stride.Core.Design/CodeEditorSupport/VisualStudio/VisualStudioVersions.cs:82 — `catch (COMException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
AX2 · Stateful singletons · Process-global static state · ×4
  • Process-global static state: NativeLockFile sources/core/Stride.Core.IO/NativeLockFile.cs:8 — `NativeLockFile` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (useOfdLocks; e.g. `useOfdLocks` at line 190). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: VirtualFileSystem sources/core/Stride.Core.IO/VirtualFileSystem.cs:12 — `VirtualFileSystem` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (providers; e.g. `providers` at line 119). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: NativeLibraryHelper sources/core/Stride.Core/Native/NativeLibraryHelper.cs:31 — `NativeLibraryHelper` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (loadedLibraries; e.g. `loadedLibraries` at line 290). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: PlatformFolders sources/core/Stride.Core/PlatformFolders.cs:12 — `PlatformFolders` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (applicationDataSubDirectory; e.g. `applicationDataSubDirectory` at line 60). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
D29 · Static Analysis (SAST) · REDACTED · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X18 · Disposal-pattern correctness · Finalizer on a type that owns no unmanaged resource · ×4
  • Finalizer on a type that owns no unmanaged resource sources/core/Stride.Core.IO/TemporaryFile.cs:19 — `TemporaryFile` declares a finalizer (line 19), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization.
  • Finalizer on a type that owns no unmanaged resource sources/engine/Stride.Engine/Engine/Events/EventKeyBase.cs:32 — `EventKeyBase` declares a finalizer (line 32), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization.
  • Finalizer on a type that owns no unmanaged resource sources/engine/Stride.Engine/Engine/Events/EventReceiverBase.cs:124 — `EventReceiverBase` declares a finalizer (line 124), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization.
  • Finalizer on a type that owns no unmanaged resource sources/engine/Stride.Engine/Engine/Network/Sockets.Implementation.NET/TcpSocketClient.cs:161 — `TcpSocketClient` declares a finalizer (line 161), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization.
D10 · Test Quality · Test cannot fail · ×3
  • Test cannot fail: TestResourceOfTheElementWins sources/editor/Stride.Core.Assets.Editor.Wpf.Tests/TestDropFeedbackResources.cs:23 — This test's act runs inside `RunSta` at line 65 of this file, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: TestResourceOfAnotherTypeGivesTheDefault sources/editor/Stride.Core.Assets.Editor.Wpf.Tests/TestDropFeedbackResources.cs:36 — This test's act runs inside `RunSta` at line 65 of this file, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: DragCommitsOnlyOnSuccessfulCompletion sources/editor/Stride.GameStudio.Tests/TestMorphSliderBehavior.cs:17 — This test's act runs inside `catch (Exception)` at line 75 of this file, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 10 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
D17 · Explicit Debt · BareSuppressMessage · ×3
  • BareSuppressMessage sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/CollidableGizmo.cs:28 — SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
  • BareSuppressMessage sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/ConstraintGizmo.cs:34 — SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
  • BareSuppressMessage sources/presentation/Stride.Core.Presentation.Wpf/Behaviors/MouseMoveCaptureBehaviorBase.cs:36 — SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
IC1 · Incompleteness & stubs · Both branches open with the same statements · ×3
  • Both branches open with the same statements — the condition does not decide them sources/core/Stride.Core.Mathematics/HalfUtils.cs:160 — The first 2 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently.
  • Both branches open with the same statements — the condition does not decide them sources/core/Stride.Core.Yaml/Serialization/Serializers/DictionarySerializer.cs:111 — The first 1 statement of the `if` and of the `else` are identical, so it runs on both paths regardless of the condition. Lift it above the `if` — leaving it duplicated inside makes the branches read as though they handled this differently.
  • Both branches open with the same statements — the condition does not decide them sources/core/Stride.Core/PropertyContainer.cs:170 — The first 1 statement of the `if` and of the `else` are identical, so it runs on both paths regardless of the condition. Lift it above the `if` — leaving it duplicated inside makes the branches read as though they handled this differently.
P12 · CI test-gate honesty · Test sources removed from compilation · ×3
  • Test sources removed from compilation sources/engine/Stride.Graphics.Tests.11_0/Stride.Graphics.Tests.11_0.csproj:16 — `<Compile Remove="TestCubemapDeferred.cs" />` in a test project removes 1 file(s) that declare tests (`sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDeferred.cs`) — they are never built, so no gate runs them. Delete the tests or bring them back into the build.
  • Test sources removed from compilation sources/engine/Stride.Graphics.Tests.11_0/Stride.Graphics.Tests.11_0.csproj:17 — `<Compile Remove="TestCubemapDisplay.cs" />` in a test project removes 1 file(s) that declare tests (`sources/engine/Stride.Graphics.Tests.11_0/TestCubemapDisplay.cs`) — they are never built, so no gate runs them. Delete the tests or bring them back into the build.
  • Test sources removed from compilation sources/engine/Stride.Graphics.Tests.11_0/Stride.Graphics.Tests.11_0.csproj:18 — `<Compile Remove="TestCubemapRendering.cs" />` in a test project removes 1 file(s) that declare tests (`sources/engine/Stride.Graphics.Tests.11_0/TestCubemapRendering.cs`) — they are never built, so no gate runs them. Delete the tests or bring them back into the build.
X2 · Cancellation propagation · Async delegate without CancellationToken · ×3
  • Async delegate without CancellationToken: Start sources/core/Stride.Core/Diagnostics/ChromeTracingProfileWriter.cs:16 — Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`).
  • Async delegate without CancellationToken: Profiler sources/core/Stride.Core/Diagnostics/Profiler.cs:132 — Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`).
  • Async delegate without CancellationToken: WaitForConnections sources/engine/Stride.Engine/Engine/Network/Sockets.Implementation.NET/TcpSocketListener.cs:99 — Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`).
X30 · Support guard that admits what it rejects · Support guard that admits what it rejects · ×3
  • Support guard that admits what it rejects sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:769 — `!(format.IsRgbaOrder || format.IsBgraOrder || pixelSize != 4)` does not say what its shape suggests. By De Morgan a negated `||` distributes as `!format.IsRgbaOrder && !format.IsBgraOrder && pixelSize == 4`, so this guard fires only where `format.IsRgbaOrder` and `format.IsBgraOrder` are ABSENT — and where `pixelSize` is EXACTLY `4`, which is the one value the term `pixelSize != 4` was written to refuse. The two halves disagree about what they are for: `format.IsRgbaOrder` and `format.IsBgraOrder` name things the code needs, and `pixelSize != 4` names a value it cannot handle, and one `!(…)` cannot mean both. Everything with a `pixelSize` other than `4` now passes this guard untested, including the values `format.IsRgbaOrder` and `format.IsBgraOrder` were there to admit.
  • Support guard that admits what it rejects sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:844 — `!(format.IsRgbaOrder || format.IsBgraOrder || format.SizeInBytes != 4)` does not say what its shape suggests. By De Morgan a negated `||` distributes as `!format.IsRgbaOrder && !format.IsBgraOrder && format.SizeInBytes == 4`, so this guard fires only where `format.IsRgbaOrder` and `format.IsBgraOrder` are ABSENT — and where `format.SizeInBytes` is EXACTLY `4`, which is the one value the term `format.SizeInBytes != 4` was written to refuse. The two halves disagree about what they are for: `format.IsRgbaOrder` and `format.IsBgraOrder` name things the code needs, and `format.SizeInBytes != 4` names a value it cannot handle, and one `!(…)` cannot mean both. Everything with a `format.SizeInBytes` other than `4` now passes this guard untested, including the values `format.IsRgbaOrder` and `format.IsBgraOrder` were there to admit.
  • Support guard that admits what it rejects sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:875 — `!(format.IsRgbaOrder || format.IsBgraOrder || format.SizeInBytes != 4)` does not say what its shape suggests. By De Morgan a negated `||` distributes as `!format.IsRgbaOrder && !format.IsBgraOrder && format.SizeInBytes == 4`, so this guard fires only where `format.IsRgbaOrder` and `format.IsBgraOrder` are ABSENT — and where `format.SizeInBytes` is EXACTLY `4`, which is the one value the term `format.SizeInBytes != 4` was written to refuse. The two halves disagree about what they are for: `format.IsRgbaOrder` and `format.IsBgraOrder` name things the code needs, and `format.SizeInBytes != 4` names a value it cannot handle, and one `!(…)` cannot mean both. Everything with a `format.SizeInBytes` other than `4` now passes this guard untested, including the values `format.IsRgbaOrder` and `format.IsBgraOrder` were there to admit.
D1 · Cyclomatic Complexity · Vector4Editor.UpdateValueFromComponent (cyclomatic 26) · ×2
  • Vector4Editor.UpdateValueFromComponent (cyclomatic 26) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector4Editor.cs:92 — Vector4Editor.UpdateValueFromComponent 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.
  • Vector4Editor.UpdateValueFromComponent (cyclomatic 26) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Vector4Editor.cs:81 — Vector4Editor.UpdateValueFromComponent 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 · Vector3Editor.UpdateValueFromComponent (cyclomatic 21) · ×2
  • Vector3Editor.UpdateValueFromComponent (cyclomatic 21) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector3Editor.cs:79 — Vector3Editor.UpdateValueFromComponent 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.
  • Vector3Editor.UpdateValueFromComponent (cyclomatic 21) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Vector3Editor.cs:70 — Vector3Editor.UpdateValueFromComponent 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 · DateTimeEditor.UpdateValueFromComponent (cyclomatic 19) · ×2
  • DateTimeEditor.UpdateValueFromComponent (cyclomatic 19) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/DateTimeEditor.cs:129 — DateTimeEditor.UpdateValueFromComponent 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.
  • DateTimeEditor.UpdateValueFromComponent (cyclomatic 19) sources/presentation/Stride.Core.Presentation.Wpf/Controls/DateTimeEditor.cs:156 — DateTimeEditor.UpdateValueFromComponent 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 · Vector2Editor.UpdateValueFromComponent (cyclomatic 16) · ×2
  • Vector2Editor.UpdateValueFromComponent (cyclomatic 16) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector2Editor.cs:68 — Vector2Editor.UpdateValueFromComponent 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.
  • Vector2Editor.UpdateValueFromComponent (cyclomatic 16) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Vector2Editor.cs:59 — Vector2Editor.UpdateValueFromComponent 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.
D10 · Test Quality · Fixed-sleep synchronisation · ×2
  • Fixed-sleep synchronisation: Throttle_ReturnsElapsedTime sources/core/Stride.Core.Tests/Threading/ThreadThrottlerTests.cs:73 — This test starts a thread it started and then orders itself against it with `Thread.Sleep(20)` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: DisposingAWaitingBuilderStopsIt sources/buildengine/Stride.Core.BuildEngine.Tests/TestDynamicBuilder.cs:30 — This test starts a background task and then orders itself against it with `Thread.Sleep(100)` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
D2 · Cognitive Complexity · Vector4Editor.UpdateValueFromComponent (cognitive 50) · ×2
  • Vector4Editor.UpdateValueFromComponent (cognitive 50) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector4Editor.cs:92 — Vector4Editor.UpdateValueFromComponent has cognitive complexity 50 (threshold 15). 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.
  • Vector4Editor.UpdateValueFromComponent (cognitive 50) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Vector4Editor.cs:81 — Vector4Editor.UpdateValueFromComponent has cognitive complexity 50 (threshold 15). 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 · Vector3Editor.UpdateValueFromComponent (cognitive 39) · ×2
  • Vector3Editor.UpdateValueFromComponent (cognitive 39) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector3Editor.cs:79 — Vector3Editor.UpdateValueFromComponent has cognitive complexity 39 (threshold 15). 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.
  • Vector3Editor.UpdateValueFromComponent (cognitive 39) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Vector3Editor.cs:70 — Vector3Editor.UpdateValueFromComponent has cognitive complexity 39 (threshold 15). 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 · Vector2Editor.UpdateValueFromComponent (cognitive 28) · ×2
  • Vector2Editor.UpdateValueFromComponent (cognitive 28) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Vector2Editor.cs:68 — Vector2Editor.UpdateValueFromComponent has cognitive complexity 28 (threshold 15). 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.
  • Vector2Editor.UpdateValueFromComponent (cognitive 28) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Vector2Editor.cs:59 — Vector2Editor.UpdateValueFromComponent has cognitive complexity 28 (threshold 15). 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 · DateTimeEditor.UpdateValueFromComponent (cognitive 24) · ×2
  • DateTimeEditor.UpdateValueFromComponent (cognitive 24) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/DateTimeEditor.cs:129 — DateTimeEditor.UpdateValueFromComponent has cognitive complexity 24 (threshold 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.
  • DateTimeEditor.UpdateValueFromComponent (cognitive 24) sources/presentation/Stride.Core.Presentation.Wpf/Controls/DateTimeEditor.cs:156 — DateTimeEditor.UpdateValueFromComponent has cognitive complexity 24 (threshold 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 · StrideEditorPlugin.CollectBuildCache (cognitive 23) · ×2
  • StrideEditorPlugin.CollectBuildCache (cognitive 23) sources/editor/Stride.Assets.Editor/StrideEditorPlugin.cs:222 — StrideEditorPlugin.CollectBuildCache has cognitive complexity 23 (threshold 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.
  • StrideEditorPlugin.CollectBuildCache (cognitive 23) sources/editor/Stride.GameStudio/Plugin/StrideEditorPlugin.cs:103 — StrideEditorPlugin.CollectBuildCache has cognitive complexity 23 (threshold 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 · Scanner.ReadString (cognitive 18) · ×2
  • Scanner.ReadString (cognitive 18) sources/shaders/Stride.Shaders.Parsers/Parsing/Scanners/Scanner.cs:59 — Scanner.ReadString has cognitive complexity 18 (threshold 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.
  • Scanner.ReadString (cognitive 18) sources/shaders/Stride.Shaders.Parsers/Parsing/Scanners/ScannerGeneric.cs:58 — Scanner.ReadString has cognitive complexity 18 (threshold 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 · StrideEditorPlugin.CollectReferencedBlobs (cognitive 17) · ×2
  • StrideEditorPlugin.CollectReferencedBlobs (cognitive 17) sources/editor/Stride.Assets.Editor/StrideEditorPlugin.cs:281 — StrideEditorPlugin.CollectReferencedBlobs has cognitive complexity 17 (threshold 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.
  • StrideEditorPlugin.CollectReferencedBlobs (cognitive 17) sources/editor/Stride.GameStudio/Plugin/StrideEditorPlugin.cs:162 — StrideEditorPlugin.CollectReferencedBlobs has cognitive complexity 17 (threshold 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 · AssetLogViewModel.UpdateFilteredMessages (cognitive 17) · ×2
  • AssetLogViewModel.UpdateFilteredMessages (cognitive 17) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetLogViewModel.cs:293 — AssetLogViewModel.UpdateFilteredMessages has cognitive complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • AssetLogViewModel.UpdateFilteredMessages (cognitive 17) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetLogViewModel.cs:323 — AssetLogViewModel.UpdateFilteredMessages has cognitive complexity 17 (threshold 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 · Int4Editor.UpdateValueFromComponent (cognitive 16) · ×2
  • Int4Editor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/Int4Editor.cs:70 — Int4Editor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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.
  • Int4Editor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Int4Editor.cs:65 — Int4Editor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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 · RectangleEditor.UpdateValueFromComponent (cognitive 16) · ×2
  • RectangleEditor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/RectangleEditor.cs:70 — RectangleEditor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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.
  • RectangleEditor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Controls/RectangleEditor.cs:65 — RectangleEditor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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 · RectangleFEditor.UpdateValueFromComponent (cognitive 16) · ×2
  • RectangleFEditor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/RectangleFEditor.cs:70 — RectangleFEditor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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.
  • RectangleFEditor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Controls/RectangleFEditor.cs:65 — RectangleFEditor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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 · TimeSpanEditor.UpdateValueFromComponent (cognitive 16) · ×2
  • TimeSpanEditor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/TimeSpanEditor.cs:107 — TimeSpanEditor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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.
  • TimeSpanEditor.UpdateValueFromComponent (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TimeSpanEditor.cs:113 — TimeSpanEditor.UpdateValueFromComponent has cognitive complexity 16 (threshold 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 · PlayerInput.Update (cognitive 16) · ×2
  • PlayerInput.Update (cognitive 16) samples/Templates/FirstPersonShooter/FirstPersonShooter/FirstPersonShooter.Game/Player/PlayerInput.cs:51 — PlayerInput.Update has cognitive complexity 16 (threshold 15). 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.
  • PlayerInput.Update (cognitive 16) samples/Templates/ThirdPersonPlatformer/ThirdPersonPlatformer/ThirdPersonPlatformer.Game/Player/PlayerInput.cs:45 — PlayerInput.Update has cognitive complexity 16 (threshold 15). 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
IC1 · Incompleteness & stubs · Hollow method · ×2
  • Hollow method — returns a constant without doing the work sources/core/Stride.Core/Reflection/ObjectFactoryRegistry.cs:113 — `New` 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 sources/editor/Stride.Core.Assets.Presentation/ViewModels/PackageViewModel.cs:632 — `RefreshPackageReferences` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
S1 · Cryptographic Hygiene · Weak hash algorithm · ×2
  • Weak hash algorithm sources/core/Stride.Core.CompilerServices/Generators/EffectKeysGenerator.cs:144 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
  • Weak hash algorithm sources/engine/Stride.Assets/Templates/DotNetNewTemplateBridge.cs:675 — MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses.
X1 · Async correctness · async void method · ×2
  • async void method: UpdateMessages sources/presentation/Stride.Core.Presentation/ViewModel/LoggerViewModel.cs:281 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: Execute sources/crashreport/Stride.CrashReporter/Mvvm.cs:49 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
X18 · Disposal-pattern correctness · Disposes a dependency it does not own · ×2
  • Disposes a dependency it does not own sources/core/Stride.Core.Serialization/IO/Store.cs:78 — `stream` is never created by `Store` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 78). Its declared type `Stream` is an abstract class, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed.
  • Disposes a dependency it does not own sources/core/Stride.Core/Collections/IndexingDictionary.cs:183 — `enumerator` is never created by `Enumerator` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 183). Its declared type `IEnumerator` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed.
X5 · Nullable reference types · Null guard scopes only part of the work it protects · ×2
  • Null guard scopes only part of the work it protects sources/assets/Stride.Core.Assets/Analysis/IdentifiableObjectAnalysis.cs:62 — This method contradicts itself about `logger`: line 36 tests it for null before doing anything with it — the author's own statement that null is an input this code expects — but that `if` scopes only the block beneath it, and line 62 then dereferences `logger` as `logger.Warning` AFTER the block has closed, where the guard no longer applies. A null `logger` skips the guarded body and reaches that line anyway, throwing NullReferenceException on exactly the input the guard was written for. If the dereference belongs to the guarded work, move it inside the block; if `logger` truly cannot be null by then, the guard above is misleading and should go.
  • Null guard scopes only part of the work it protects sources/editor/Stride.Core.Assets.Editor.Avalonia/Views/PropertyTemplateProviderSelector.cs:49 — This method contradicts itself about `newControl`: line 38 tests it for null before doing anything with it — the author's own statement that null is an input this code expects — but that `if` scopes only the block beneath it, and line 49 then dereferences `newControl` as `newControl.DetachedFromLogicalTree` AFTER the block has closed, where the guard no longer applies. A null `newControl` skips the guarded body and reaches that line anyway, throwing NullReferenceException on exactly the input the guard was written for. If the dereference belongs to the guarded work, move it inside the block; if `newControl` truly cannot be null by then, the guard above is misleading and should go.
D1 · Cyclomatic Complexity · IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition (cyclomatic 133) · ×1
  • IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition (cyclomatic 133) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicTemplateExpander.cs:50 — IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition has cyclomatic complexity 133 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShaderCompiler.Compile (cyclomatic 121) · ×1
  • ShaderCompiler.Compile (cyclomatic 121) sources/shaders/Stride.Shaders.Compilers/Direct3D/ShaderCompiler.cs:69 — ShaderCompiler.Compile has cyclomatic complexity 121 (threshold 15). Of this number, 77 points are the body's own statements and 44 belong to 9 function items inside it that branch. 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 · AccessorChainExpression.CompileHelper (cyclomatic 119) · ×1
  • AccessorChainExpression.CompileHelper (cyclomatic 119) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:1102 — AccessorChainExpression.CompileHelper has cyclomatic complexity 119 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EffectCompiler.Compile (cyclomatic 88) · ×1
  • EffectCompiler.Compile (cyclomatic 88) sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs:156 — EffectCompiler.Compile has cyclomatic complexity 88 (threshold 15). Of this number, 81 points are the body's own statements and 7 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 · ShaderClass.ProcessNameAndTypes (cyclomatic 87) · ×1
  • ShaderClass.ProcessNameAndTypes (cyclomatic 87) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs:96 — ShaderClass.ProcessNameAndTypes has cyclomatic complexity 87 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShaderMixer.MergeClassInBuffers (cyclomatic 81) · ×1
  • ShaderMixer.MergeClassInBuffers (cyclomatic 81) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:473 — ShaderMixer.MergeClassInBuffers has cyclomatic complexity 81 (threshold 15). Of this number, 80 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ReadWriteAnalyzer.AnalyzeStreamReadWrites (cyclomatic 79) · ×1
  • ReadWriteAnalyzer.AnalyzeStreamReadWrites (cyclomatic 79) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/ReadWriteAnalyzer.cs:17 — ReadWriteAnalyzer.AnalyzeStreamReadWrites has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · InterfaceProcessor.Process (cyclomatic 76) · ×1
  • InterfaceProcessor.Process (cyclomatic 76) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:145 — InterfaceProcessor.Process has cyclomatic complexity 76 (threshold 15). Of this number, 70 points are the body's own statements and 6 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 · EntryPointWrapperGenerator.GenerateWrapper (cyclomatic 74) · ×1
  • EntryPointWrapperGenerator.GenerateWrapper (cyclomatic 74) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Generation/EntryPointWrapperGenerator.cs:15 — EntryPointWrapperGenerator.GenerateWrapper has cyclomatic complexity 74 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · SpirvBuilder.Convert (cyclomatic 72) · ×1
  • SpirvBuilder.Convert (cyclomatic 72) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:487 — SpirvBuilder.Convert has cyclomatic complexity 72 (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 · AssetPropertyPasteProcessor.Paste (cyclomatic 69) · ×1
  • AssetPropertyPasteProcessor.Paste (cyclomatic 69) sources/editor/Stride.Core.Assets.Editor/Components/CopyPasteProcessors/AssetPropertyPasteProcessor.cs:155 — AssetPropertyPasteProcessor.Paste 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 · PackageBuilderApp.Run (cyclomatic 65) · ×1
  • PackageBuilderApp.Run (cyclomatic 65) sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:53 — PackageBuilderApp.Run has cyclomatic complexity 65 (threshold 15). Of this number, 55 points are the body's own statements and 10 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 · top-level statements (cyclomatic 65) · ×1
  • top-level statements (cyclomatic 65) build/tools/ParallelBuildAuditor/Program.cs:8 — top-level statements has cyclomatic complexity 65 (threshold 15). Of this number, 16 points are the body's own statements and 49 belong to 5 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 · ShaderMixer.CleanupUnnecessaryInstructions (cyclomatic 62) · ×1
  • ShaderMixer.CleanupUnnecessaryInstructions (cyclomatic 62) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:1299 — ShaderMixer.CleanupUnnecessaryInstructions has cyclomatic complexity 62 (threshold 15). Most of this is not in the body itself: 15 of the 62 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1340, 1422). 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 · CodeUpgrades.MoveLocalCallbacks (cyclomatic 60) · ×1
  • CodeUpgrades.MoveLocalCallbacks (cyclomatic 60) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:214 — CodeUpgrades.MoveLocalCallbacks has cyclomatic complexity 60 (threshold 15). Of this number, 56 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ImportModelCommand.ExportAnimation (cyclomatic 56) · ×1
  • ImportModelCommand.ExportAnimation (cyclomatic 56) sources/engine/Stride.Assets.Models/ImportModelCommand.Animation.cs:30 — ImportModelCommand.ExportAnimation 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 · DeadCodeRemover.RemoveUnreferencedCode (cyclomatic 54) · ×1
  • DeadCodeRemover.RemoveUnreferencedCode (cyclomatic 54) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Cleanup/DeadCodeRemover.cs:40 — DeadCodeRemover.RemoveUnreferencedCode has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShaderMixer.AddRequiredCapabilities (cyclomatic 53) · ×1
  • ShaderMixer.AddRequiredCapabilities (cyclomatic 53) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:192 — ShaderMixer.AddRequiredCapabilities has cyclomatic complexity 53 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · ImportModelCommand.ExportModel (cyclomatic 53) · ×1
  • ImportModelCommand.ExportModel (cyclomatic 53) sources/engine/Stride.Assets.Models/ImportModelCommand.Model.cs:74 — ImportModelCommand.ExportModel has cyclomatic complexity 53 (threshold 15). Of this number, 47 points are the body's own statements and 6 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 · StreamAccessPatcher.PatchStreamsAccesses (cyclomatic 52) · ×1
  • StreamAccessPatcher.PatchStreamsAccesses (cyclomatic 52) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Transformation/StreamAccessPatcher.cs:43 — StreamAccessPatcher.PatchStreamsAccesses has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SpirvBuilder.CanConvertScore (cyclomatic 51) · ×1
  • SpirvBuilder.CanConvertScore (cyclomatic 51) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:387 — SpirvBuilder.CanConvertScore 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 · AssetRegistry.RegisterAssetAssembly (cyclomatic 51) · ×1
  • AssetRegistry.RegisterAssetAssembly (cyclomatic 51) sources/assets/Stride.Core.Assets/AssetRegistry.cs:567 — AssetRegistry.RegisterAssetAssembly 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 · PackageSession.PreLoadPackageDependencies (cyclomatic 50) · ×1
  • PackageSession.PreLoadPackageDependencies (cyclomatic 50) sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:162 — PackageSession.PreLoadPackageDependencies 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 · SessionViewModel.DeleteItems (cyclomatic 50) · ×1
  • SessionViewModel.DeleteItems (cyclomatic 50) sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:1154 — SessionViewModel.DeleteItems 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 · ShaderMixer.ProcessReflection (cyclomatic 48) · ×1
  • ShaderMixer.ProcessReflection (cyclomatic 48) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs:264 — ShaderMixer.ProcessReflection 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 · PackAssetsHelper.Run (cyclomatic 48) · ×1
  • PackAssetsHelper.Run (cyclomatic 48) sources/assets/Stride.AssetCompiler/Tasks/PackAssets.cs:29 — PackAssetsHelper.Run has cyclomatic complexity 48 (threshold 15). Of this number, 44 points are the body's own statements and 4 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 · HeightmapConvertCommand.DoCommandOverride (cyclomatic 48) · ×1
  • HeightmapConvertCommand.DoCommandOverride (cyclomatic 48) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs:54 — HeightmapConvertCommand.DoCommandOverride has cyclomatic complexity 48 (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 · PostProcessingEffects.DrawCore (cyclomatic 46) · ×1
  • PostProcessingEffects.DrawCore (cyclomatic 46) sources/engine/Stride.Rendering/Rendering/Images/PostProcessingEffects.cs:278 — PostProcessingEffects.DrawCore has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SpirvContext.RegisterType (cyclomatic 46) · ×1
  • SpirvContext.RegisterType (cyclomatic 46) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/SpirvContext.Types.cs:139 — SpirvContext.RegisterType has cyclomatic complexity 46 (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 · VisitorGenerator.GenerateVisitorsBase (cyclomatic 45) · ×1
  • VisitorGenerator.GenerateVisitorsBase (cyclomatic 45) sources/shaders/Stride.Shaders.Generators.Internal/VisitorGenerator.cs:44 — VisitorGenerator.GenerateVisitorsBase has cyclomatic complexity 45 (threshold 15). Of this number, 41 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EditorGameEntityCameraService.UpdateCameraBase (cyclomatic 45) · ×1
  • EditorGameEntityCameraService.UpdateCameraBase (cyclomatic 45) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameEntityCameraService.cs:220 — EditorGameEntityCameraService.UpdateCameraBase 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 · Predicates.Orient3dAdapt (cyclomatic 44) · ×1
  • Predicates.Orient3dAdapt (cyclomatic 44) sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs:123 — Predicates.Orient3dAdapt 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 · ShaderMixer.ProcessMemberAccessAndForeach (cyclomatic 44) · ×1
  • ShaderMixer.ProcessMemberAccessAndForeach (cyclomatic 44) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:1004 — ShaderMixer.ProcessMemberAccessAndForeach 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 · Scanner.FetchNextToken (cyclomatic 44) · ×1
  • Scanner.FetchNextToken (cyclomatic 44) sources/core/Stride.Core.Yaml/Scanner.cs:281 — Scanner.FetchNextToken has cyclomatic complexity 44 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Emitter.AnalyzeScalar (cyclomatic 43) · ×1
  • Emitter.AnalyzeScalar (cyclomatic 43) sources/core/Stride.Core.Yaml/Emitter.cs:322 — Emitter.AnalyzeScalar has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShaderMethod.Compile (cyclomatic 42) · ×1
  • ShaderMethod.Compile (cyclomatic 42) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:604 — ShaderMethod.Compile has cyclomatic complexity 42 (threshold 15). Of this number, 41 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 · SpriteStudioAnimationAssetCommand.DoCommandOverride (cyclomatic 42) · ×1
  • SpriteStudioAnimationAssetCommand.DoCommandOverride (cyclomatic 42) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioAnimationAssetCompiler.cs:53 — SpriteStudioAnimationAssetCommand.DoCommandOverride has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · UnifiedGenerator.Initialize (cyclomatic 41) · ×1
  • UnifiedGenerator.Initialize (cyclomatic 41) sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.cs:19 — UnifiedGenerator.Initialize has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 1 of the 41 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 21, 141, 117, …). 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 · BundlePacker.Build (cyclomatic 41) · ×1
  • BundlePacker.Build (cyclomatic 41) sources/assets/Stride.AssetCompiler/BundlePacker.cs:35 — BundlePacker.Build has cyclomatic complexity 41 (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 · AssetPropertyGraph.ReconcileWithBaseNode (cyclomatic 41) · ×1
  • AssetPropertyGraph.ReconcileWithBaseNode (cyclomatic 41) sources/assets/Stride.Core.Assets.Quantum/AssetPropertyGraph.cs:728 — AssetPropertyGraph.ReconcileWithBaseNode has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShaderMixer.MergeCBuffers (cyclomatic 40) · ×1
  • ShaderMixer.MergeCBuffers (cyclomatic 40) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.CBuffers.cs:161 — ShaderMixer.MergeCBuffers has cyclomatic complexity 40 (threshold 15). Of this number, 39 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShaderClass.Compile (cyclomatic 40) · ×1
  • ShaderClass.Compile (cyclomatic 40) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs:499 — ShaderClass.Compile 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 · AssemblyRecompiler.Recompile (cyclomatic 40) · ×1
  • AssemblyRecompiler.Recompile (cyclomatic 40) sources/editor/Stride.GameStudio/Debugging/AssemblyRecompiler.cs:37 — AssemblyRecompiler.Recompile 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 · MeshConverter.ProcessMesh (cyclomatic 40) · ×1
  • MeshConverter.ProcessMesh (cyclomatic 40) sources/tools/Stride.Importer.3D/MeshConverter.cs:1062 — MeshConverter.ProcessMesh 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 · SerializationHelpers.GetSerializableItems (cyclomatic 40) · ×1
  • SerializationHelpers.GetSerializableItems (cyclomatic 40) sources/core/Stride.Core.AssemblyProcessor/SerializationHelpers.cs:96 — SerializationHelpers.GetSerializableItems has cyclomatic complexity 40 (threshold 15). Of this number, 39 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · UpdateEngine.RunOperations (cyclomatic 39) · ×1
  • UpdateEngine.RunOperations (cyclomatic 39) sources/engine/Stride.Engine/Updater/UpdateEngine.cs:509 — UpdateEngine.RunOperations 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 · SpirvBuilder.SelectBinaryOp (cyclomatic 39) · ×1
  • SpirvBuilder.SelectBinaryOp (cyclomatic 39) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:329 — SpirvBuilder.SelectBinaryOp has cyclomatic complexity 39 (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 · SpirvContext.TryGetConstantValue (cyclomatic 39) · ×1
  • SpirvContext.TryGetConstantValue (cyclomatic 39) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Context.Constants.cs:46 — SpirvContext.TryGetConstantValue has cyclomatic complexity 39 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · ColorConverter.DoConvert (cyclomatic 39) · ×1
  • ColorConverter.DoConvert (cyclomatic 39) sources/presentation/Stride.Core.Presentation.Avalonia/Converters/ColorConverter.cs:32 — ColorConverter.DoConvert 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 · ColorConverter.Convert (cyclomatic 39) · ×1
  • ColorConverter.Convert (cyclomatic 39) sources/presentation/Stride.Core.Presentation.Wpf/ValueConverters/ColorConverter.cs:21 — ColorConverter.Convert 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 · ForwardRenderer.BakeLightProbes (cyclomatic 38) · ×1
  • ForwardRenderer.BakeLightProbes (cyclomatic 38) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.LightProbes.cs:60 — ForwardRenderer.BakeLightProbes 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 · ShaderMixer.GenerateDefaultCBuffer (cyclomatic 38) · ×1
  • ShaderMixer.GenerateDefaultCBuffer (cyclomatic 38) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.CBuffers.cs:20 — ShaderMixer.GenerateDefaultCBuffer 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 · TypeName.TryResolveType (cyclomatic 38) · ×1
  • TypeName.TryResolveType (cyclomatic 38) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:912 — TypeName.TryResolveType 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 · StreamAnalyzer.Analyze (cyclomatic 38) · ×1
  • StreamAnalyzer.Analyze (cyclomatic 38) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/StreamAnalyzer.cs:12 — StreamAnalyzer.Analyze 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 · AssetCollectionViewModel.InvokeAddAssetTemplateAsync (cyclomatic 38) · ×1
  • AssetCollectionViewModel.InvokeAddAssetTemplateAsync (cyclomatic 38) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.AddAssets.cs:327 — AssetCollectionViewModel.InvokeAddAssetTemplateAsync 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 · BundleOdbBackend.CreateBundle (cyclomatic 37) · ×1
  • BundleOdbBackend.CreateBundle (cyclomatic 37) sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:420 — BundleOdbBackend.CreateBundle has cyclomatic complexity 37 (threshold 15). Of this number, 36 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 · SwapChainGraphicsPresenter.CreateSwapChain (cyclomatic 37) · ×1
  • SwapChainGraphicsPresenter.CreateSwapChain (cyclomatic 37) sources/engine/Stride.Graphics/Vulkan/SwapChainGraphicsPresenter.Vulkan.cs:416 — SwapChainGraphicsPresenter.CreateSwapChain has cyclomatic complexity 37 (threshold 15). Of this number, 35 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 · Scanner.ScanFlowScalar (cyclomatic 37) · ×1
  • Scanner.ScanFlowScalar (cyclomatic 37) sources/core/Stride.Core.Yaml/Scanner.cs:1566 — Scanner.ScanFlowScalar 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 · HeightfieldShape.MarchRay (cyclomatic 37) · ×1
  • HeightfieldShape.MarchRay (cyclomatic 37) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldShape.cs:456 — HeightfieldShape.MarchRay 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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller, and it works in raw pointers or stack-allocated memory, whose lifetime is this stack frame. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. Anything extracted from it has to take that memory as a parameter rather than reach for it. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D1 · Cyclomatic Complexity · Grid.MeasureOverride (cyclomatic 37) · ×1
  • Grid.MeasureOverride (cyclomatic 37) sources/plugins/UI/Stride.UI/Panels/Grid.cs:142 — Grid.MeasureOverride 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 · NavigationMeshBuilder.Build (cyclomatic 36) · ×1
  • NavigationMeshBuilder.Build (cyclomatic 36) sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuilder.cs:118 — NavigationMeshBuilder.Build 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 · UILayoutHelper.UpdateElementLayout (cyclomatic 36) · ×1
  • UILayoutHelper.UpdateElementLayout (cyclomatic 36) sources/plugins/UI/Stride.UI.Editor/Game/UILayoutHelper.cs:371 — UILayoutHelper.UpdateElementLayout 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 · ShaderMixer.ProcessLinks (cyclomatic 35) · ×1
  • ShaderMixer.ProcessLinks (cyclomatic 35) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs:25 — ShaderMixer.ProcessLinks 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 · IntrinsicCallHelper.TryResolveIntrinsic (cyclomatic 35) · ×1
  • IntrinsicCallHelper.TryResolveIntrinsic (cyclomatic 35) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicCall.cs:31 — IntrinsicCallHelper.TryResolveIntrinsic has cyclomatic complexity 35 (threshold 15). Of this number, 34 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, 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 · DebuggingViewModel.BuildProjectCore (cyclomatic 35) · ×1
  • DebuggingViewModel.BuildProjectCore (cyclomatic 35) sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs:671 — DebuggingViewModel.BuildProjectCore 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 · CodeUpgrades.CollectCaptures (cyclomatic 35) · ×1
  • CodeUpgrades.CollectCaptures (cyclomatic 35) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:419 — CodeUpgrades.CollectCaptures has cyclomatic complexity 35 (threshold 15). Of this number, 34 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 · TextureHelper.DetermineOutputFormat (cyclomatic 35) · ×1
  • TextureHelper.DetermineOutputFormat (cyclomatic 35) sources/engine/Stride.Assets/Textures/TextureHelper.cs:212 — TextureHelper.DetermineOutputFormat 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 · PrepareEffectPermutationJob.Process (cyclomatic 34) · ×1
  • PrepareEffectPermutationJob.Process (cyclomatic 34) sources/engine/Stride.Rendering/Rendering/Materials/MaterialRenderFeature.cs:199 — PrepareEffectPermutationJob.Process 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 · ShaderMixer.ValidateDerivativeUsage (cyclomatic 34) · ×1
  • ShaderMixer.ValidateDerivativeUsage (cyclomatic 34) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Validation.cs:20 — ShaderMixer.ValidateDerivativeUsage 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 · OperationComparer.Compare (cyclomatic 34) · ×1
  • OperationComparer.Compare (cyclomatic 34) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:65 — OperationComparer.Compare 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 · BuildInputJob.BuildColliderInput (cyclomatic 34) · ×1
  • BuildInputJob.BuildColliderInput (cyclomatic 34) sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuilder.cs:469 — BuildInputJob.BuildColliderInput 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 · Effect.UpdateValueBindingKey (cyclomatic 33) · ×1
  • Effect.UpdateValueBindingKey (cyclomatic 33) sources/engine/Stride.Graphics/Effects/Effect.cs:251 — Effect.UpdateValueBindingKey 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 · ConstantExpression.ParseInstruction (cyclomatic 33) · ×1
  • ConstantExpression.ParseInstruction (cyclomatic 33) sources/shaders/Stride.Shaders.Parsers/Core/ConstantExpression.cs:85 — ConstantExpression.ParseInstruction has cyclomatic complexity 33 (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 · FpsTestCamera.UpdateCamera (cyclomatic 33) · ×1
  • FpsTestCamera.UpdateCamera (cyclomatic 33) sources/engine/Stride.Graphics.Regression/FpsTestCamera.cs:108 — FpsTestCamera.UpdateCamera 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 · ObjectDescriptor.PrepareMember (cyclomatic 33) · ×1
  • ObjectDescriptor.PrepareMember (cyclomatic 33) sources/core/Stride.Core.Reflection/TypeDescriptors/ObjectDescriptor.cs:260 — ObjectDescriptor.PrepareMember has cyclomatic complexity 33 (threshold 15). Of this number, 31 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PackageSession.Save (cyclomatic 33) · ×1
  • PackageSession.Save (cyclomatic 33) sources/assets/Stride.Core.Assets/PackageSession.cs:1223 — PackageSession.Save has cyclomatic complexity 33 (threshold 15). Of this number, 27 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BoxTriangleCollider.Intersecting (cyclomatic 33) · ×1
  • BoxTriangleCollider.Intersecting (cyclomatic 33) sources/plugins/BepuPhysics/Stride.BepuPhysics.Soft/Definitions/BepuThings.cs:76 — BoxTriangleCollider.Intersecting has cyclomatic complexity 33 (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 · ShaderMixer.SpecializeBufferParameters (cyclomatic 32) · ×1
  • ShaderMixer.SpecializeBufferParameters (cyclomatic 32) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.BufferParameters.cs:26 — ShaderMixer.SpecializeBufferParameters 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 · HeightfieldTexture.BuildRuntimeRepresentation (cyclomatic 32) · ×1
  • HeightfieldTexture.BuildRuntimeRepresentation (cyclomatic 32) sources/plugins/BepuPhysics/Stride.Heightfield.Assets/HeightfieldTexture.cs:38 — HeightfieldTexture.BuildRuntimeRepresentation has cyclomatic complexity 32 (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 · RunevisionTerrainCompileCommand.DoCommandOverride (cyclomatic 32) · ×1
  • RunevisionTerrainCompileCommand.DoCommandOverride (cyclomatic 32) sources/plugins/BepuPhysics/Stride.Heightfield.Assets/RunevisionTerrainAssetCompiler.cs:53 — RunevisionTerrainCompileCommand.DoCommandOverride has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 15 of the 32 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 176, 84, 120, …). 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 · PanelViewModel.ChangeLayoutType (cyclomatic 32) · ×1
  • PanelViewModel.ChangeLayoutType (cyclomatic 32) sources/plugins/UI/Stride.UI.Editor/ViewModels/PanelViewModel.cs:237 — PanelViewModel.ChangeLayoutType 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 · EditText.InterpretKey (cyclomatic 32) · ×1
  • EditText.InterpretKey (cyclomatic 32) sources/plugins/UI/Stride.UI/Controls/EditText.Direct.cs:105 — EditText.InterpretKey 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 · MeshConverter.GenerateBoneToNodeMap (cyclomatic 32) · ×1
  • MeshConverter.GenerateBoneToNodeMap (cyclomatic 32) sources/tools/Stride.Importer.3D/MeshConverter.cs:387 — MeshConverter.GenerateBoneToNodeMap has cyclomatic complexity 32 (threshold 15). Of this number, 30 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 · MeshConverter.ProcessMorphTargets (cyclomatic 32) · ×1
  • MeshConverter.ProcessMorphTargets (cyclomatic 32) sources/tools/Stride.Importer.3D/MeshConverter.cs:1337 — MeshConverter.ProcessMorphTargets 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 · UpdateEngine.Compile (cyclomatic 31) · ×1
  • UpdateEngine.Compile (cyclomatic 31) sources/engine/Stride.Engine/Updater/UpdateEngine.cs:133 — UpdateEngine.Compile 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 · SpirvBuilder.InstantiateGenericShader (cyclomatic 31) · ×1
  • SpirvBuilder.InstantiateGenericShader (cyclomatic 31) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:387 — SpirvBuilder.InstantiateGenericShader 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 · InterfaceProcessor.GenerateStreamVariables (cyclomatic 31) · ×1
  • InterfaceProcessor.GenerateStreamVariables (cyclomatic 31) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:651 — InterfaceProcessor.GenerateStreamVariables 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 · Emitter.SelectScalarStyle (cyclomatic 31) · ×1
  • Emitter.SelectScalarStyle (cyclomatic 31) sources/core/Stride.Core.Yaml/Emitter.cs:1442 — Emitter.SelectScalarStyle 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 · PhysicsGizmo.Update (cyclomatic 31) · ×1
  • PhysicsGizmo.Update (cyclomatic 31) sources/plugins/BulletPhysics/Stride.Physics.Editor/PhysicsGizmo.cs:141 — PhysicsGizmo.Update 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 · StrideTexLibrary.Export (cyclomatic 31) · ×1
  • StrideTexLibrary.Export (cyclomatic 31) sources/tools/Stride.TextureConverter/Backend/TexLibraries/StrideTexLibrary.cs:216 — StrideTexLibrary.Export 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 · BasicCameraController.ProcessInput (cyclomatic 31) · ×1
  • BasicCameraController.ProcessInput (cyclomatic 31) samples/NewGame/NewGame/MyTemplate.Game/BasicCameraController.cs:59 — BasicCameraController.ProcessInput 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 · GraphicsDeviceManager.RankDevices (cyclomatic 30) · ×1
  • GraphicsDeviceManager.RankDevices (cyclomatic 30) sources/engine/Stride.Games/GraphicsDeviceManager.cs:728 — GraphicsDeviceManager.RankDevices 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 · NamespaceParsers.Match (cyclomatic 30) · ×1
  • NamespaceParsers.Match (cyclomatic 30) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderFileParsers.cs:144 — NamespaceParsers.Match 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 · LiteralValue.UpdateMemory (cyclomatic 30) · ×1
  • LiteralValue.UpdateMemory (cyclomatic 30) sources/shaders/Stride.Shaders.Spirv/Literals/LiteralValue.cs:118 — LiteralValue.UpdateMemory has cyclomatic complexity 30 (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 · Emitter.WriteDoubleQuotedScalar (cyclomatic 30) · ×1
  • Emitter.WriteDoubleQuotedScalar (cyclomatic 30) sources/core/Stride.Core.Yaml/Emitter.cs:1183 — Emitter.WriteDoubleQuotedScalar has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Scanner.ScanPlainScalar (cyclomatic 30) · ×1
  • Scanner.ScanPlainScalar (cyclomatic 30) sources/core/Stride.Core.Yaml/Scanner.cs:1808 — Scanner.ScanPlainScalar 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 · DebuggingViewModel.ReloadAssemblies (cyclomatic 30) · ×1
  • DebuggingViewModel.ReloadAssemblies (cyclomatic 30) sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs:382 — DebuggingViewModel.ReloadAssemblies has cyclomatic complexity 30 (threshold 15). Of this number, 23 points are the body's own statements and 7 belong to 5 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 · DynamicSoundSource.Worker (cyclomatic 30) · ×1
  • DynamicSoundSource.Worker (cyclomatic 30) sources/plugins/Audio/Stride.Audio/DynamicSoundSource.cs:349 — DynamicSoundSource.Worker 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 · EncodeVideoFileCommand.DoCommandOverride (cyclomatic 30) · ×1
  • EncodeVideoFileCommand.DoCommandOverride (cyclomatic 30) REDACTED:73 — EncodeVideoFileCommand.DoCommandOverride 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 · TestsViewModel.RunTestCases (cyclomatic 30) · ×1
  • TestsViewModel.RunTestCases (cyclomatic 30) sources/tests/xunit.runner.stride/ViewModels/TestsViewModel.cs:156 — TestsViewModel.RunTestCases has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 2 of the 30 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 263, 177, 199, …). 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 · UpdateEngineProcessor.ProcessSerializers (cyclomatic 30) · ×1
  • UpdateEngineProcessor.ProcessSerializers (cyclomatic 30) sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs:103 — UpdateEngineProcessor.ProcessSerializers has cyclomatic complexity 30 (threshold 15). Of this number, 21 points are the body's own statements and 9 belong to 7 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 · UpdateAnimationJob.ProcessEntity (cyclomatic 29) · ×1
  • UpdateAnimationJob.ProcessEntity (cyclomatic 29) sources/engine/Stride.Engine/Animations/AnimationProcessor.cs:94 — UpdateAnimationJob.ProcessEntity 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 · OpDataEnumerator.MoveNext (cyclomatic 29) · ×1
  • OpDataEnumerator.MoveNext (cyclomatic 29) sources/shaders/Stride.Shaders.Spirv/Parsing/OpDataEnumerator.cs:81 — OpDataEnumerator.MoveNext has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · UPath.Normalize (cyclomatic 29) · ×1
  • UPath.Normalize (cyclomatic 29) sources/core/Stride.Core.Design/IO/UPath.cs:510 — UPath.Normalize has cyclomatic complexity 29 (threshold 15). Of this number, 27 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CrashReportHelper.SendReport (cyclomatic 29) · ×1
  • CrashReportHelper.SendReport (cyclomatic 29) sources/editor/Stride.GameStudio/Helpers/CrashReportHelper.cs:27 — CrashReportHelper.SendReport has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · TouchInputsScript.Update (cyclomatic 29) · ×1
  • TouchInputsScript.Update (cyclomatic 29) samples/Input/TouchInputs/TouchInputs.Game/TouchInputsScript.cs:82 — TouchInputsScript.Update has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · GraphicsAdapterFactoryInstance.GraphicsAdapterFactoryInstance.ctor (cyclomatic 28) · ×1
  • GraphicsAdapterFactoryInstance.GraphicsAdapterFactoryInstance.ctor (cyclomatic 28) sources/engine/Stride.Graphics/Vulkan/GraphicsAdapterFactory.Vulkan.cs:222 — GraphicsAdapterFactoryInstance.GraphicsAdapterFactoryInstance.ctor 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 · LiteralsParser.Vector (cyclomatic 28) · ×1
  • LiteralsParser.Vector (cyclomatic 28) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/LiteralParsers.cs:180 — LiteralsParser.Vector 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 · SpirvBuilder.RemapIds (cyclomatic 28) · ×1
  • SpirvBuilder.RemapIds (cyclomatic 28) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:687 — SpirvBuilder.RemapIds 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 · Scanner.ScanBlockScalar (cyclomatic 28) · ×1
  • Scanner.ScanBlockScalar (cyclomatic 28) sources/core/Stride.Core.Yaml/Scanner.cs:1307 — Scanner.ScanBlockScalar 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 · AssetCompositeHierarchyPropertyGraph.FindBestInsertIndex (cyclomatic 28) · ×1
  • AssetCompositeHierarchyPropertyGraph.FindBestInsertIndex (cyclomatic 28) sources/assets/Stride.Core.Assets.Quantum/AssetCompositeHierarchyPropertyGraph.cs:474 — AssetCompositeHierarchyPropertyGraph.FindBestInsertIndex has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body's own statements and 5 belong to 5 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 · PackageSession.LoadPackageDependenciesFromLockFile (cyclomatic 28) · ×1
  • PackageSession.LoadPackageDependenciesFromLockFile (cyclomatic 28) sources/assets/Stride.Core.Assets/PackageSession.BuildManifest.cs:319 — PackageSession.LoadPackageDependenciesFromLockFile has cyclomatic complexity 28 (threshold 15). Of this number, 27 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityHierarchyItemViewModel.CanAddOrInsertChildren (cyclomatic 28) · ×1
  • EntityHierarchyItemViewModel.CanAddOrInsertChildren (cyclomatic 28) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:393 — EntityHierarchyItemViewModel.CanAddOrInsertChildren 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 · PanelViewModel.ChangeChildElementLayoutProperties (cyclomatic 28) · ×1
  • PanelViewModel.ChangeChildElementLayoutProperties (cyclomatic 28) sources/plugins/UI/Stride.UI.Editor/ViewModels/PanelViewModel.cs:56 — PanelViewModel.ChangeChildElementLayoutProperties has cyclomatic complexity 28 (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 · MainView.OnKeyDown (cyclomatic 28) · ×1
  • MainView.OnKeyDown (cyclomatic 28) sources/tests/xunit.runner.stride/Views/MainView.axaml.cs:169 — MainView.OnKeyDown 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 · ModelDeformationRenderer.Schedule (cyclomatic 27) · ×1
  • ModelDeformationRenderer.Schedule (cyclomatic 27) sources/engine/Stride.Engine/Rendering/ModelDeformationRenderer.cs:137 — ModelDeformationRenderer.Schedule 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 · SpriteRenderFeature.Draw (cyclomatic 27) · ×1
  • SpriteRenderFeature.Draw (cyclomatic 27) sources/engine/Stride.Rendering/Rendering/Sprites/SpriteRenderFeature.cs:65 — SpriteRenderFeature.Draw 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 · ShaderMixer.ConvertBoolCBufferMembers (cyclomatic 27) · ×1
  • ShaderMixer.ConvertBoolCBufferMembers (cyclomatic 27) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.CBuffers.cs:522 — ShaderMixer.ConvertBoolCBufferMembers 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 · PrefixExpression.CompileImpl (cyclomatic 27) · ×1
  • PrefixExpression.CompileImpl (cyclomatic 27) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:653 — PrefixExpression.CompileImpl 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 · SPVGenerator.ConvertOperandName (cyclomatic 27) · ×1
  • SPVGenerator.ConvertOperandName (cyclomatic 27) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Naming.cs:280 — SPVGenerator.ConvertOperandName has cyclomatic complexity 27 (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 · SPVGenerator.ToTypeFieldAndOperandName (cyclomatic 27) · ×1
  • SPVGenerator.ToTypeFieldAndOperandName (cyclomatic 27) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Instructions.cs:321 — SPVGenerator.ToTypeFieldAndOperandName has cyclomatic complexity 27 (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 · Parser.ParseNode (cyclomatic 27) · ×1
  • Parser.ParseNode (cyclomatic 27) sources/core/Stride.Core.Yaml/Parser.cs:429 — Parser.ParseNode 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 · CodeUpgrades.GetArgumentNameColons (cyclomatic 27) · ×1
  • CodeUpgrades.GetArgumentNameColons (cyclomatic 27) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.cs:390 — CodeUpgrades.GetArgumentNameColons has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: CodeUpgrades.FluentCallRemove (cyclomatic 28) 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 · ScrollViewer.Update (cyclomatic 27) · ×1
  • ScrollViewer.Update (cyclomatic 27) sources/plugins/UI/Stride.UI/Controls/ScrollViewer.cs:352 — ScrollViewer.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 · ForwardRenderer.DrawCore (cyclomatic 26) · ×1
  • ForwardRenderer.DrawCore (cyclomatic 26) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.cs:620 — ForwardRenderer.DrawCore 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 · SharedMesh.SharedMesh.ctor (cyclomatic 26) · ×1
  • SharedMesh.SharedMesh.ctor (cyclomatic 26) sources/engine/Stride.Engine/Rendering/ModelDeformationRenderer.cs:482 — SharedMesh.SharedMesh.ctor has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body's own statements and 4 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 · Texture.InitializeFromImpl (cyclomatic 26) · ×1
  • Texture.InitializeFromImpl (cyclomatic 26) sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs:137 — Texture.InitializeFromImpl 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 · EffectCompilerCache.Compile (cyclomatic 26) · ×1
  • EffectCompilerCache.Compile (cyclomatic 26) sources/shaders/Stride.Shaders.Effects/Compiler/EffectCompilerCache.cs:97 — EffectCompilerCache.Compile 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 · ShaderDefinition.ImportSymbol (cyclomatic 26) · ×1
  • ShaderDefinition.ImportSymbol (cyclomatic 26) sources/shaders/Stride.Shaders.Parsers/Core/SymbolTypes.cs:566 — ShaderDefinition.ImportSymbol has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: SymbolType.TryGetBufferType (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 · ShaderMember.ProcessSymbol (cyclomatic 26) · ×1
  • ShaderMember.ProcessSymbol (cyclomatic 26) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:203 — ShaderMember.ProcessSymbol 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 · SpirvContext.InsertWithoutDuplicates (cyclomatic 26) · ×1
  • SpirvContext.InsertWithoutDuplicates (cyclomatic 26) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Context.ExtractBuffers.cs:16 — SpirvContext.InsertWithoutDuplicates 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 · AssemblyContainer.LoadAssemblyFromPathInternal (cyclomatic 26) · ×1
  • AssemblyContainer.LoadAssemblyFromPathInternal (cyclomatic 26) sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:246 — AssemblyContainer.LoadAssemblyFromPathInternal has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PrimitiveSerializer.ConvertFrom (cyclomatic 26) · ×1
  • PrimitiveSerializer.ConvertFrom (cyclomatic 26) REDACTED:61 — PrimitiveSerializer.ConvertFrom has cyclomatic complexity 26 (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 · PackageSession.ContributeManifest (cyclomatic 26) · ×1
  • PackageSession.ContributeManifest (cyclomatic 26) sources/assets/Stride.Core.Assets/PackageSession.BuildManifest.cs:227 — PackageSession.ContributeManifest 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 · TextLogViewer.AppendText (cyclomatic 26) · ×1
  • TextLogViewer.AppendText (cyclomatic 26) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TextLogViewer.cs:338 — TextLogViewer.AppendText 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 · EditorContentLoader.RefreshChangedAssetsAsync (cyclomatic 26) · ×1
  • EditorContentLoader.RefreshChangedAssetsAsync (cyclomatic 26) sources/editor/Stride.Assets.Editor/EditorGame/ContentLoader/EditorContentLoader.cs:555 — EditorContentLoader.RefreshChangedAssetsAsync 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 · DockPanelService.Apply (cyclomatic 26) · ×1
  • DockPanelService.Apply (cyclomatic 26) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs:403 — DockPanelService.Apply has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · Program.Run (cyclomatic 26) · ×1
  • Program.Run (cyclomatic 26) sources/editor/Stride.GameStudio/Program.cs:130 — Program.Run has cyclomatic complexity 26 (threshold 15). Of this number, 23 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SpriteStudioRenderFeature.Draw (cyclomatic 26) · ×1
  • SpriteStudioRenderFeature.Draw (cyclomatic 26) sources/plugins/SpriteStudio/Stride.SpriteStudio.Runtime/SpriteStudioRenderFeature.cs:67 — SpriteStudioRenderFeature.Draw 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 · UIEditorView.OpenElementMenu (cyclomatic 26) · ×1
  • UIEditorView.OpenElementMenu (cyclomatic 26) sources/plugins/UI/Stride.UI.Editor.Avalonia/Views/UIEditorView.axaml.cs:138 — UIEditorView.OpenElementMenu has cyclomatic complexity 26 (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 · CharacterScript.Update (cyclomatic 26) · ×1
  • CharacterScript.Update (cyclomatic 26) samples/Physics/PhysicsSample/PhysicsSample.Game/CharacterScript.cs:91 — CharacterScript.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 · AnimationBlender.Blend (cyclomatic 25) · ×1
  • AnimationBlender.Blend (cyclomatic 25) sources/engine/Stride.Engine/Animations/AnimationBlender.cs:155 — AnimationBlender.Blend has cyclomatic complexity 25 (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 · Image.Initialize (cyclomatic 25) · ×1
  • Image.Initialize (cyclomatic 25) sources/engine/Stride.Foundation/Graphics/Image.cs:774 — Image.Initialize 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 · YamlAssetPath.ToMemberPath (cyclomatic 25) · ×1
  • YamlAssetPath.ToMemberPath (cyclomatic 25) sources/assets/Stride.Core.Assets/Yaml/YamlAssetPath.cs:220 — YamlAssetPath.ToMemberPath 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 · TilePanelNavigationBehavior.OnAssociatedObjectKeyDown (cyclomatic 25) · ×1
  • TilePanelNavigationBehavior.OnAssociatedObjectKeyDown (cyclomatic 25) sources/presentation/Stride.Core.Presentation.Wpf/Behaviors/TilePanelNavigationBehavior.cs:48 — TilePanelNavigationBehavior.OnAssociatedObjectKeyDown 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 · HorizontalAndVerticalAxisRenderer.RenderMajorItems (cyclomatic 25) · ×1
  • HorizontalAndVerticalAxisRenderer.RenderMajorItems (cyclomatic 25) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/HorizontalAndVerticalAxisRenderer.cs:238 — HorizontalAndVerticalAxisRenderer.RenderMajorItems 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 · TemplatePreprocessor.DumbPruneUnreachableAssets (cyclomatic 25) · ×1
  • TemplatePreprocessor.DumbPruneUnreachableAssets (cyclomatic 25) sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs:996 — TemplatePreprocessor.DumbPruneUnreachableAssets 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 · UIRenderFeature.DrawInternal (cyclomatic 25) · ×1
  • UIRenderFeature.DrawInternal (cyclomatic 25) sources/plugins/UI/Stride.UI/Rendering/UI/UIRenderFeature.cs:83 — UIRenderFeature.DrawInternal 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 · CommandList.EnsureRenderPass (cyclomatic 24) · ×1
  • CommandList.EnsureRenderPass (cyclomatic 24) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:2077 — CommandList.EnsureRenderPass 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. This is NOT this file's highest cyclomatic complexity: CommandList.GetClearFormat (cyclomatic 41) 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 · CompositeLiteral.CompileImpl (cyclomatic 24) · ×1
  • CompositeLiteral.CompileImpl (cyclomatic 24) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:232 — CompositeLiteral.CompileImpl has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · ShaderClass.CreateShaderType (cyclomatic 24) · ×1
  • ShaderClass.CreateShaderType (cyclomatic 24) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs:390 — ShaderClass.CreateShaderType 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 · Parsers.VariableModifiers (cyclomatic 24) · ×1
  • Parsers.VariableModifiers (cyclomatic 24) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/Common/CommonParsers.cs:130 — Parsers.VariableModifiers 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 · ShaderClassParser.Match (cyclomatic 24) · ×1
  • ShaderClassParser.Match (cyclomatic 24) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderClassParser.cs:63 — ShaderClassParser.Match 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 · SpirvBuilder.AnalyzeBinaryOperation (cyclomatic 24) · ×1
  • SpirvBuilder.AnalyzeBinaryOperation (cyclomatic 24) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:130 — SpirvBuilder.AnalyzeBinaryOperation has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · SPVGenerator.CreateOperation (cyclomatic 24) · ×1
  • SPVGenerator.CreateOperation (cyclomatic 24) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Buffers.cs:7 — SPVGenerator.CreateOperation has cyclomatic complexity 24 (threshold 15). Of this number, 23 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 · SPVGenerator.GenerateEnumerantParameterSingle (cyclomatic 24) · ×1
  • SPVGenerator.GenerateEnumerantParameterSingle (cyclomatic 24) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.EnumerantParams.cs:147 — SPVGenerator.GenerateEnumerantParameterSingle has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · MemberPath.Apply (cyclomatic 24) · ×1
  • MemberPath.Apply (cyclomatic 24) sources/core/Stride.Core.Reflection/MemberPath.cs:220 — MemberPath.Apply 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 · TagTypeSerializer.ReadYaml (cyclomatic 24) · ×1
  • TagTypeSerializer.ReadYaml (cyclomatic 24) sources/core/Stride.Core.Yaml/Serialization/Serializers/TagTypeSerializer.cs:55 — TagTypeSerializer.ReadYaml 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 · AssetCollision.Clean (cyclomatic 24) · ×1
  • AssetCollision.Clean (cyclomatic 24) sources/assets/Stride.Core.Assets/Analysis/AssetCollision.cs:30 — AssetCollision.Clean has cyclomatic complexity 24 (threshold 15). Of this number, 23 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 · PackageSession.LoadFromBuildManifest (cyclomatic 24) · ×1
  • PackageSession.LoadFromBuildManifest (cyclomatic 24) sources/assets/Stride.Core.Assets/PackageSession.BuildManifest.cs:27 — PackageSession.LoadFromBuildManifest 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 · ToolBarPanel.MeasureGeneratedItems (cyclomatic 24) · ×1
  • ToolBarPanel.MeasureGeneratedItems (cyclomatic 24) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarPanel.cs:242 — ToolBarPanel.MeasureGeneratedItems 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 · TreeViewItem.OnKeyDown (cyclomatic 24) · ×1
  • TreeViewItem.OnKeyDown (cyclomatic 24) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TreeViewItem.cs:240 — TreeViewItem.OnKeyDown 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 · VisualScriptMethodViewModel.UpdateSlots (cyclomatic 24) · ×1
  • VisualScriptMethodViewModel.UpdateSlots (cyclomatic 24) sources/editor/Stride.Assets.Presentation/ViewModels/VisualScriptMethodViewModel.cs:177 — VisualScriptMethodViewModel.UpdateSlots 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 · PrefabModelAssetCompileCommand.DoCommandOverride (cyclomatic 24) · ×1
  • PrefabModelAssetCompileCommand.DoCommandOverride (cyclomatic 24) sources/engine/Stride.Assets.Models/PrefabModelAssetCompiler.cs:299 — PrefabModelAssetCompileCommand.DoCommandOverride has cyclomatic complexity 24 (threshold 15). Of this number, 21 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 · CodeUpgrades.AddAttributeToStaticFieldHolders (cyclomatic 24) · ×1
  • CodeUpgrades.AddAttributeToStaticFieldHolders (cyclomatic 24) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Attributes.cs:21 — CodeUpgrades.AddAttributeToStaticFieldHolders has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 32, 61). 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 · TextureHelper.ImportTextureImageRaw (cyclomatic 24) · ×1
  • TextureHelper.ImportTextureImageRaw (cyclomatic 24) sources/engine/Stride.Assets/Textures/TextureHelper.cs:342 — TextureHelper.ImportTextureImageRaw 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 · CharacterControllers.AnalyzeContactsForCharacterRegion (cyclomatic 24) · ×1
  • CharacterControllers.AnalyzeContactsForCharacterRegion (cyclomatic 24) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs:545 — CharacterControllers.AnalyzeContactsForCharacterRegion 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 · PhysicsShapesRenderingService.CreateChildEntity (cyclomatic 24) · ×1
  • PhysicsShapesRenderingService.CreateChildEntity (cyclomatic 24) sources/plugins/BulletPhysics/Stride.Physics/Engine/PhysicsShapesRenderingService.cs:121 — PhysicsShapesRenderingService.CreateChildEntity 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 · SpriteStudioModelAssetCommand.DoCommandOverride (cyclomatic 24) · ×1
  • SpriteStudioModelAssetCommand.DoCommandOverride (cyclomatic 24) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioModelAssetCompiler.cs:88 — SpriteStudioModelAssetCommand.DoCommandOverride has cyclomatic complexity 24 (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 · Scheduler.Run (cyclomatic 23) · ×1
  • Scheduler.Run (cyclomatic 23) sources/core/Stride.Core.MicroThreading/Scheduler.cs:117 — Scheduler.Run 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 · MediaSynchronizer.Update (cyclomatic 23) · ×1
  • MediaSynchronizer.Update (cyclomatic 23) sources/engine/Stride.Foundation/Media/MediaSynchronizer.cs:251 — MediaSynchronizer.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 · CommandList.BindDescriptorSets (cyclomatic 23) · ×1
  • CommandList.BindDescriptorSets (cyclomatic 23) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:312 — CommandList.BindDescriptorSets has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: CommandList.GetClearFormat (cyclomatic 41) 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 · MaterialGeneratorContext.ProcessIntermediateLayer (cyclomatic 23) · ×1
  • MaterialGeneratorContext.ProcessIntermediateLayer (cyclomatic 23) sources/engine/Stride.Rendering/Rendering/Materials/MaterialGeneratorContext.cs:371 — MaterialGeneratorContext.ProcessIntermediateLayer 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 · RootEffectRenderFeature.PrepareEffectPermutations (cyclomatic 23) · ×1
  • RootEffectRenderFeature.PrepareEffectPermutations (cyclomatic 23) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:427 — RootEffectRenderFeature.PrepareEffectPermutations 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 · SpirvBuilder.BinaryOperation (cyclomatic 23) · ×1
  • SpirvBuilder.BinaryOperation (cyclomatic 23) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:211 — SpirvBuilder.BinaryOperation 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 · SPVGenerator.PreProcessOperands (cyclomatic 23) · ×1
  • SPVGenerator.PreProcessOperands (cyclomatic 23) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Naming.cs:93 — SPVGenerator.PreProcessOperands 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 · LiteralValue.LiteralValue.ctor (cyclomatic 23) · ×1
  • LiteralValue.LiteralValue.ctor (cyclomatic 23) sources/shaders/Stride.Shaders.Spirv/Literals/LiteralValue.cs:52 — LiteralValue.LiteralValue.ctor 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 · ShaderSourceToCode.ToCode (cyclomatic 23) · ×1
  • ShaderSourceToCode.ToCode (cyclomatic 23) sources/shaders/Stride.Shaders/ShaderSourceToCode.cs:22 — ShaderSourceToCode.ToCode 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 · AssetObjectNodeExtended.OnItemChanged (cyclomatic 23) · ×1
  • AssetObjectNodeExtended.OnItemChanged (cyclomatic 23) sources/assets/Stride.Core.Assets.Quantum/Internal/AssetObjectNodeExtended.cs:297 — AssetObjectNodeExtended.OnItemChanged 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 · Trimming.ProcessTrimming (cyclomatic 23) · ×1
  • Trimming.ProcessTrimming (cyclomatic 23) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Trimming.cs:125 — Trimming.ProcessTrimming 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 · VirtualizingTreePanel.MeasureOverride (cyclomatic 23) · ×1
  • VirtualizingTreePanel.MeasureOverride (cyclomatic 23) sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:159 — VirtualizingTreePanel.MeasureOverride 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 · ViewportGridGizmo.UpdateGrids (cyclomatic 23) · ×1
  • ViewportGridGizmo.UpdateGrids (cyclomatic 23) sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/ViewportGridGizmo.cs:172 — ViewportGridGizmo.UpdateGrids 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 · CharacterControllers.TryReportContacts (cyclomatic 23) · ×1
  • CharacterControllers.TryReportContacts (cyclomatic 23) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs:255 — CharacterControllers.TryReportContacts 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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D1 · Cyclomatic Complexity · ConstraintGizmo.Update (cyclomatic 23) · ×1
  • ConstraintGizmo.Update (cyclomatic 23) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/ConstraintGizmo.cs:195 — ConstraintGizmo.Update has cyclomatic complexity 23 (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 · top-level statements (cyclomatic 23) · ×1
  • top-level statements (cyclomatic 23) sources/tools/Stride.Shaders.CorpusCapture/Program.cs:17 — top-level statements has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body's own statements and 5 belong to 3 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · NuGetAssemblyResolver.SetupNuGet (cyclomatic 23) · ×1
  • NuGetAssemblyResolver.SetupNuGet (cyclomatic 23) sources/shared/Stride.NuGetResolver/NuGetAssemblyResolver.cs:40 — NuGetAssemblyResolver.SetupNuGet has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 79, 103). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · NewCommand.Create (cyclomatic 23) · ×1
  • NewCommand.Create (cyclomatic 23) sources/launcher/Stride.Cli/NewCommand.cs:16 — NewCommand.Create 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 2 function literals inside it that branch (lines 67, 53). 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 · PlayerScript.Execute (cyclomatic 23) · ×1
  • PlayerScript.Execute (cyclomatic 23) samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs:69 — PlayerScript.Execute 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 · GameProfiler.Execute (cyclomatic 23) · ×1
  • GameProfiler.Execute (cyclomatic 23) samples/Particles/ParticlesSample/ParticlesSample.Game/GameProfiler.cs:46 — GameProfiler.Execute 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 · BasicCameraControllerComponent.ProcessInput (cyclomatic 23) · ×1
  • BasicCameraControllerComponent.ProcessInput (cyclomatic 23) samples/Physics/BepuSample/BepuSample.Game/Components/Camera/BasicCameraControllerComponent.cs:73 — BasicCameraControllerComponent.ProcessInput 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 · SerializationProcessor.GenerateSerializeMethod (cyclomatic 23) · ×1
  • SerializationProcessor.GenerateSerializeMethod (cyclomatic 23) sources/core/Stride.Core.AssemblyProcessor/SerializationProcessor.cs:263 — SerializationProcessor.GenerateSerializeMethod 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 · CameraProcessor.Draw (cyclomatic 22) · ×1
  • CameraProcessor.Draw (cyclomatic 22) sources/engine/Stride.Engine/Engine/Processors/CameraProcessor.cs:28 — CameraProcessor.Draw 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 · ParameterCollection.UpdateLayout (cyclomatic 22) · ×1
  • ParameterCollection.UpdateLayout (cyclomatic 22) sources/engine/Stride.Foundation/Rendering/ParameterCollection.cs:576 — ParameterCollection.UpdateLayout 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 · GraphicsDeviceManager.ChangeOrCreateDevice (cyclomatic 22) · ×1
  • GraphicsDeviceManager.ChangeOrCreateDevice (cyclomatic 22) sources/engine/Stride.Games/GraphicsDeviceManager.cs:1253 — GraphicsDeviceManager.ChangeOrCreateDevice 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 · VertexHelper.GenerateTangentBinormal (cyclomatic 22) · ×1
  • VertexHelper.GenerateTangentBinormal (cyclomatic 22) sources/engine/Stride.Graphics/VertexHelper.cs:231 — VertexHelper.GenerateTangentBinormal 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 · Texture.GetImageView (cyclomatic 22) · ×1
  • Texture.GetImageView (cyclomatic 22) sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs:574 — Texture.GetImageView 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 · BowyerWatsonTetrahedralization.AddVertex (cyclomatic 22) · ×1
  • BowyerWatsonTetrahedralization.AddVertex (cyclomatic 22) sources/engine/Stride.Rendering/Rendering/LightProbes/BowyerWatsonTetrahedralization.cs:447 — BowyerWatsonTetrahedralization.AddVertex 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 · IntrinsicsGenerator.GenerateIntrinsicsCall (cyclomatic 22) · ×1
  • IntrinsicsGenerator.GenerateIntrinsicsCall (cyclomatic 22) sources/shaders/Stride.Shaders.Generators.Internal/IntrinsicGenerator.cs:164 — IntrinsicsGenerator.GenerateIntrinsicsCall has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ConstantEvaluator.TryEvaluateBinary (cyclomatic 22) · ×1
  • ConstantEvaluator.TryEvaluateBinary (cyclomatic 22) sources/shaders/Stride.Shaders.Parsers/Core/ConstantEvaluator.cs:57 — ConstantEvaluator.TryEvaluateBinary has cyclomatic complexity 22 (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. This is NOT this file's highest cyclomatic complexity: ConstantEvaluator.EvaluateIntegerBinary (cyclomatic 28) 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 · LiteralFolding.TryFoldBinary (cyclomatic 22) · ×1
  • LiteralFolding.TryFoldBinary (cyclomatic 22) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/LiteralFolding.cs:69 — LiteralFolding.TryFoldBinary has cyclomatic complexity 22 (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 · TypeDuplicateHelper.ProcessSortedInstructions (cyclomatic 22) · ×1
  • TypeDuplicateHelper.ProcessSortedInstructions (cyclomatic 22) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:498 — TypeDuplicateHelper.ProcessSortedInstructions 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: TypeDuplicateHelper.OpCheckDuplicateForTypesAndImport (cyclomatic 23) 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 · SPVGenerator.PreProcessInstructions (cyclomatic 22) · ×1
  • SPVGenerator.PreProcessInstructions (cyclomatic 22) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:111 — SPVGenerator.PreProcessInstructions 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 · GameTestBase.SaveImage (cyclomatic 22) · ×1
  • GameTestBase.SaveImage (cyclomatic 22) sources/engine/Stride.Graphics.Regression/GameTestBase.cs:847 — GameTestBase.SaveImage 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 · CommandIOMonitor.CommandEnded (cyclomatic 22) · ×1
  • CommandIOMonitor.CommandEnded (cyclomatic 22) sources/buildengine/Stride.Core.BuildEngine.Common/CommandIOMonitor.cs:72 — CommandIOMonitor.CommandEnded has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong to 5 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · PackageSession.UpdateDependencies (cyclomatic 22) · ×1
  • PackageSession.UpdateDependencies (cyclomatic 22) sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:623 — PackageSession.UpdateDependencies 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 · PackageSession.FindDependencyVersionChanges (cyclomatic 22) · ×1
  • PackageSession.FindDependencyVersionChanges (cyclomatic 22) sources/assets/Stride.Core.Assets/PackageSession.DependencyVersions.cs:134 — PackageSession.FindDependencyVersionChanges has cyclomatic complexity 22 (threshold 15). Of this number, 19 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 · DirectoryBaseViewModel.CanAddChildren (cyclomatic 22) · ×1
  • DirectoryBaseViewModel.CanAddChildren (cyclomatic 22) sources/editor/Stride.Core.Assets.Presentation/ViewModels/DirectoryBaseViewModel.cs:201 — DirectoryBaseViewModel.CanAddChildren has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body's own statements and 3 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 · SymbolSearchHelper.GenerateSymbolSearchValues (cyclomatic 22) · ×1
  • SymbolSearchHelper.GenerateSymbolSearchValues (cyclomatic 22) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.cs:450 — SymbolSearchHelper.GenerateSymbolSearchValues has cyclomatic complexity 22 (threshold 15). Of this number, 14 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 · DebugRenderProcessor.Draw (cyclomatic 22) · ×1
  • DebugRenderProcessor.Draw (cyclomatic 22) sources/plugins/BepuPhysics/Stride.BepuPhysics.Debug/DebugRenderProcessor.cs:139 — DebugRenderProcessor.Draw 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 · ContactEventsManager.RunManifoldEvent (cyclomatic 22) · ×1
  • ContactEventsManager.RunManifoldEvent (cyclomatic 22) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Contacts/ContactEventsManager.cs:188 — ContactEventsManager.RunManifoldEvent 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 · UIRenderFeature.UpdateTouchEvents (cyclomatic 22) · ×1
  • UIRenderFeature.UpdateTouchEvents (cyclomatic 22) sources/plugins/UI/Stride.UI/Rendering/UI/UIRenderFeature.Picking.cs:137 — UIRenderFeature.UpdateTouchEvents 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 · ScreenshotComparator.Compare (cyclomatic 22) · ×1
  • ScreenshotComparator.Compare (cyclomatic 22) tests/infra/Stride.ScreenshotComparator/ScreenshotComparator.cs:41 — ScreenshotComparator.Compare has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MeshConverter.ProcessMorphAnimation (cyclomatic 22) · ×1
  • MeshConverter.ProcessMorphAnimation (cyclomatic 22) sources/tools/Stride.Importer.3D/MeshConverter.cs:693 — MeshConverter.ProcessMorphAnimation 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 · MeshConverter.ProcessMorphTarget (cyclomatic 22) · ×1
  • MeshConverter.ProcessMorphTarget (cyclomatic 22) sources/tools/Stride.Importer.3D/MeshConverter.cs:1403 — MeshConverter.ProcessMorphTarget 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 · SdkCommand.Create (cyclomatic 22) · ×1
  • SdkCommand.Create (cyclomatic 22) sources/launcher/Stride.Cli/SdkCommand.cs:12 — SdkCommand.Create has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 63, 135, 36, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · ReferenceSerializer.Serialize (cyclomatic 21) · ×1
  • ReferenceSerializer.Serialize (cyclomatic 21) sources/core/Stride.Core.Serialization/Serialization/Contents/ReferenceSerializer.cs:23 — ReferenceSerializer.Serialize 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 · MergeExtensions.MergeDrawData (cyclomatic 21) · ×1
  • MergeExtensions.MergeDrawData (cyclomatic 21) sources/engine/Stride.Rendering/Extensions/MergeExtensions.cs:21 — MergeExtensions.MergeDrawData 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 · ShaderMixer.PromoteConstantOffsets (cyclomatic 21) · ×1
  • ShaderMixer.PromoteConstantOffsets (cyclomatic 21) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.SampleOffsets.cs:75 — ShaderMixer.PromoteConstantOffsets 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 · ImageTester.CompareImage (cyclomatic 21) · ×1
  • ImageTester.CompareImage (cyclomatic 21) sources/engine/Stride.Graphics.Regression/ImageTester.cs:385 — ImageTester.CompareImage has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PrimitiveSerializer.ConvertTo (cyclomatic 21) · ×1
  • PrimitiveSerializer.ConvertTo (cyclomatic 21) REDACTED:191 — PrimitiveSerializer.ConvertTo has cyclomatic complexity 21 (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 · TreeSet.Remove (cyclomatic 21) · ×1
  • TreeSet.Remove (cyclomatic 21) sources/core/Stride.Core.Yaml/SortedDictionary.cs:1181 — TreeSet.Remove 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 · Package.LoadAssemblyReferenceInternal (cyclomatic 21) · ×1
  • Package.LoadAssemblyReferenceInternal (cyclomatic 21) sources/assets/Stride.Core.Assets/Package.cs:1234 — Package.LoadAssemblyReferenceInternal has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NugetStore.SyncLocalFolderSources (cyclomatic 21) · ×1
  • NugetStore.SyncLocalFolderSources (cyclomatic 21) REDACTED:470 — NugetStore.SyncLocalFolderSources 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 one function literal inside it that branches (line 503). 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 · NodeViewModel.CheckDynamicMemberConsistency (cyclomatic 21) · ×1
  • NodeViewModel.CheckDynamicMemberConsistency (cyclomatic 21) sources/presentation/Stride.Core.Presentation.Quantum/ViewModels/NodeViewModel.cs:521 — NodeViewModel.CheckDynamicMemberConsistency 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 · AudioEmitterProcessor.Draw (cyclomatic 21) · ×1
  • AudioEmitterProcessor.Draw (cyclomatic 21) sources/plugins/Audio/Stride.Audio/Engine/AudioEmitterProcessor.cs:117 — AudioEmitterProcessor.Draw 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 · HeightfieldShape.EnumerateChildrenInAabb (cyclomatic 21) · ×1
  • HeightfieldShape.EnumerateChildrenInAabb (cyclomatic 21) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldShape.cs:320 — HeightfieldShape.EnumerateChildrenInAabb 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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D1 · Cyclomatic Complexity · NavigationBuilder.BuildNavmesh (cyclomatic 21) · ×1
  • NavigationBuilder.BuildNavmesh (cyclomatic 21) sources/plugins/BulletPhysics/Stride.Navigation/NavigationBuilder.cs:27 — NavigationBuilder.BuildNavmesh 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 · ColliderShapeCombineCommand.DoCommandOverride (cyclomatic 21) · ×1
  • ColliderShapeCombineCommand.DoCommandOverride (cyclomatic 21) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/ColliderShapeAssetCompiler.cs:119 — ColliderShapeCombineCommand.DoCommandOverride 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 · Simulation.SendEvents (cyclomatic 21) · ×1
  • Simulation.SendEvents (cyclomatic 21) sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs:342 — Simulation.SendEvents 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 · TexImage.Equals (cyclomatic 21) · ×1
  • TexImage.Equals (cyclomatic 21) sources/tools/Stride.TextureConverter/Frontend/TexImage.cs:185 — TexImage.Equals 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 · SelfUpdater.UpdateLauncherFiles (cyclomatic 21) · ×1
  • SelfUpdater.UpdateLauncherFiles (cyclomatic 21) sources/launcher/Stride.Launcher/Services/SelfUpdater.cs:208 — SelfUpdater.UpdateLauncherFiles has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body's own statements and 7 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GameProfilerComponent.Execute (cyclomatic 21) · ×1
  • GameProfilerComponent.Execute (cyclomatic 21) samples/Physics/BepuSample/BepuSample.Game/Components/GameProfilerComponent.cs:52 — GameProfilerComponent.Execute 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 · GameProfilingSystem.ReadEventsAsync (cyclomatic 20) · ×1
  • GameProfilingSystem.ReadEventsAsync (cyclomatic 20) sources/engine/Stride.Engine/Profiling/GameProfilingSystem.cs:195 — GameProfilingSystem.ReadEventsAsync 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 · Plane.New (cyclomatic 20) · ×1
  • Plane.New (cyclomatic 20) sources/engine/Stride.Graphics/GeometricPrimitives/GeometricPrimitive.Plane.cs:79 — Plane.New has cyclomatic complexity 20 (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 · GraphicsOutput.SelectDisplayMode (cyclomatic 20) · ×1
  • GraphicsOutput.SelectDisplayMode (cyclomatic 20) sources/engine/Stride.Graphics/GraphicsOutput.cs:173 — GraphicsOutput.SelectDisplayMode 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 · VertexBufferHelper.Copy (cyclomatic 20) · ×1
  • VertexBufferHelper.Copy (cyclomatic 20) sources/engine/Stride.Graphics/VertexBufferHelper.cs:119 — VertexBufferHelper.Copy has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, 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 · CommandList.MapSubResource (cyclomatic 20) · ×1
  • CommandList.MapSubResource (cyclomatic 20) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:1976 — CommandList.MapSubResource 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: CommandList.GetClearFormat (cyclomatic 41) 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 · GraphicsAdapterFactoryInstance.DebugReport (cyclomatic 20) · ×1
  • GraphicsAdapterFactoryInstance.DebugReport (cyclomatic 20) sources/engine/Stride.Graphics/Vulkan/GraphicsAdapterFactory.Vulkan.cs:496 — GraphicsAdapterFactoryInstance.DebugReport 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 · GamePadLayout.MapInputEvent (cyclomatic 20) · ×1
  • GamePadLayout.MapInputEvent (cyclomatic 20) sources/engine/Stride.Input/GamePadLayouts/GamePadLayout.cs:68 — GamePadLayout.MapInputEvent 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 · LightShafts.DrawCore (cyclomatic 20) · ×1
  • LightShafts.DrawCore (cyclomatic 20) sources/engine/Stride.Rendering/Rendering/Images/LightShafts/LightShafts.cs:136 — LightShafts.DrawCore 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 · MeshMorphData.Validate (cyclomatic 20) · ×1
  • MeshMorphData.Validate (cyclomatic 20) sources/engine/Stride.Rendering/Rendering/MeshMorphData.cs:99 — MeshMorphData.Validate 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 · PrepareJob.Process (cyclomatic 20) · ×1
  • PrepareJob.Process (cyclomatic 20) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:793 — PrepareJob.Process 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 · SDSLC.Compile (cyclomatic 20) · ×1
  • SDSLC.Compile (cyclomatic 20) sources/shaders/Stride.Shaders.Compilers/SDSL/SDSLC.cs:28 — SDSLC.Compile 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 · SpirvTranslator.Translate (cyclomatic 20) · ×1
  • SpirvTranslator.Translate (cyclomatic 20) sources/shaders/Stride.Shaders.Compilers/SpirvTranslator.cs:64 — SpirvTranslator.Translate has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IntrinsicsGenerator.GenerateIntrinsicsData (cyclomatic 20) · ×1
  • IntrinsicsGenerator.GenerateIntrinsicsData (cyclomatic 20) sources/shaders/Stride.Shaders.Generators.Internal/IntrinsicGenerator.cs:48 — IntrinsicsGenerator.GenerateIntrinsicsData has cyclomatic complexity 20 (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 · MethodCall.CompileImpl (cyclomatic 20) · ×1
  • MethodCall.CompileImpl (cyclomatic 20) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:280 — MethodCall.CompileImpl 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 · ShaderMethod.ProcessSymbol (cyclomatic 20) · ×1
  • ShaderMethod.ProcessSymbol (cyclomatic 20) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:441 — ShaderMethod.ProcessSymbol 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 · SPVGenerator.GenerateImplicitCasting (cyclomatic 20) · ×1
  • SPVGenerator.GenerateImplicitCasting (cyclomatic 20) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.EnumerantParams.cs:83 — SPVGenerator.GenerateImplicitCasting 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 · OperandEnumerator.MoveNext (cyclomatic 20) · ×1
  • OperandEnumerator.MoveNext (cyclomatic 20) sources/shaders/Stride.Shaders.Spirv/Parsing/OperandEnumerator.cs:19 — OperandEnumerator.MoveNext 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 · SpvOperand.To (cyclomatic 20) · ×1
  • SpvOperand.To (cyclomatic 20) sources/shaders/Stride.Shaders.Spirv/SpvLiteral.cs:81 — SpvOperand.To 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. This is NOT this file's highest cyclomatic complexity: SpvOperand.ToString (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 · ImageThreshold.ResolveRule (cyclomatic 20) · ×1
  • ImageThreshold.ResolveRule (cyclomatic 20) sources/engine/Stride.Graphics.Regression/ImageThreshold.cs:131 — ImageThreshold.ResolveRule 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 · Project.GetDependencies (cyclomatic 20) · ×1
  • Project.GetDependencies (cyclomatic 20) REDACTED:130 — Project.GetDependencies 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 · Emitter.WriteFoldedScalar (cyclomatic 20) · ×1
  • Emitter.WriteFoldedScalar (cyclomatic 20) sources/core/Stride.Core.Yaml/Emitter.cs:1084 — Emitter.WriteFoldedScalar 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 · AssetMigration.MigrateAssetIfNeeded (cyclomatic 20) · ×1
  • AssetMigration.MigrateAssetIfNeeded (cyclomatic 20) sources/assets/Stride.Core.Assets/AssetMigration.cs:92 — AssetMigration.MigrateAssetIfNeeded 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 · PackageSession.LoadDependencyPackages (cyclomatic 20) · ×1
  • PackageSession.LoadDependencyPackages (cyclomatic 20) sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:438 — PackageSession.LoadDependencyPackages 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 · TransformationGizmo.TransformSceneEntityBase (cyclomatic 20) · ×1
  • TransformationGizmo.TransformSceneEntityBase (cyclomatic 20) sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/TransformationGizmo.cs:383 — TransformationGizmo.TransformSceneEntityBase 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 · EditorContentLoader.CheckAssetsToReload (cyclomatic 20) · ×1
  • EditorContentLoader.CheckAssetsToReload (cyclomatic 20) sources/editor/Stride.Assets.Editor/EditorGame/ContentLoader/EditorContentLoader.cs:350 — EditorContentLoader.CheckAssetsToReload has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 352, 436). 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 · DockPanelService.BuildNode (cyclomatic 20) · ×1
  • DockPanelService.BuildNode (cyclomatic 20) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs:506 — DockPanelService.BuildNode 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 · CodeUpgrades.MoveCallback (cyclomatic 20) · ×1
  • CodeUpgrades.MoveCallback (cyclomatic 20) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:141 — CodeUpgrades.MoveCallback 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 · RoslynHelper.AnalyzeBlockFlow (cyclomatic 20) · ×1
  • RoslynHelper.AnalyzeBlockFlow (cyclomatic 20) sources/engine/Stride.Assets/Scripts/RoslynHelper.cs:15 — RoslynHelper.AnalyzeBlockFlow 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 · StridePackageUpgrader.UpgradeProjectTo44 (cyclomatic 20) · ×1
  • StridePackageUpgrader.UpgradeProjectTo44 (cyclomatic 20) sources/engine/Stride.Assets/StridePackageUpgrader.cs:306 — StridePackageUpgrader.UpgradeProjectTo44 has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 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 · ParticleSystemNodeUpdater.FinalizeTree (cyclomatic 20) · ×1
  • ParticleSystemNodeUpdater.FinalizeTree (cyclomatic 20) sources/plugins/Particles/Stride.Particles.Editor/ParticleSystemNodeUpdater.cs:18 — ParticleSystemNodeUpdater.FinalizeTree 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 · InitialDefaultFields.Initialize (cyclomatic 20) · ×1
  • InitialDefaultFields.Initialize (cyclomatic 20) sources/plugins/Particles/Stride.Particles/Initializers/InitialDefaultFields.cs:17 — InitialDefaultFields.Initialize has cyclomatic complexity 20 (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 · ImageSizeHelper.CalculateImageSizeFromAvailable (cyclomatic 20) · ×1
  • ImageSizeHelper.CalculateImageSizeFromAvailable (cyclomatic 20) sources/plugins/UI/Stride.UI/ImageSizeHelper.cs:22 — ImageSizeHelper.CalculateImageSizeFromAvailable has cyclomatic complexity 20 (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 · DefaultSliderRenderer.RenderColor (cyclomatic 20) · ×1
  • DefaultSliderRenderer.RenderColor (cyclomatic 20) sources/plugins/UI/Stride.UI/Renderers/DefaultSliderRenderer.cs:22 — DefaultSliderRenderer.RenderColor 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 · DxtTexLib.Export (cyclomatic 20) · ×1
  • DxtTexLib.Export (cyclomatic 20) sources/tools/Stride.TextureConverter/Backend/TexLibraries/DxtTexLib.cs:574 — DxtTexLib.Export 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 · SceneStreaming.Update (cyclomatic 20) · ×1
  • SceneStreaming.Update (cyclomatic 20) samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Gameplay/SceneStreaming.cs:52 — SceneStreaming.Update has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NativeLibraryHelper.PreloadLibrary (cyclomatic 19) · ×1
  • NativeLibraryHelper.PreloadLibrary (cyclomatic 19) sources/core/Stride.Core/Native/NativeLibraryHelper.cs:193 — NativeLibraryHelper.PreloadLibrary 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 · SplitExtensions.SplitMesh (cyclomatic 19) · ×1
  • SplitExtensions.SplitMesh (cyclomatic 19) sources/engine/Stride.Rendering/Extensions/SplitExtensions.cs:47 — SplitExtensions.SplitMesh 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 · LocalReflections.DrawCore (cyclomatic 19) · ×1
  • LocalReflections.DrawCore (cyclomatic 19) sources/engine/Stride.Rendering/Rendering/Images/LocalReflections/LocalReflections.cs:457 — LocalReflections.DrawCore has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · RenderSystem.Draw (cyclomatic 19) · ×1
  • RenderSystem.Draw (cyclomatic 19) sources/engine/Stride.Rendering/Rendering/RenderSystem.cs:461 — RenderSystem.Draw 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 · ShaderMixer.BuildTypesAndMethodGroups (cyclomatic 19) · ×1
  • ShaderMixer.BuildTypesAndMethodGroups (cyclomatic 19) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:810 — ShaderMixer.BuildTypesAndMethodGroups has cyclomatic complexity 19 (threshold 15). Of this number, 18 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 · ShaderMixer.Explain (cyclomatic 19) · ×1
  • ShaderMixer.Explain (cyclomatic 19) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Explain.cs:26 — ShaderMixer.Explain has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body's own statements and 5 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShaderMixer.RenameVariables (cyclomatic 19) · ×1
  • ShaderMixer.RenameVariables (cyclomatic 19) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs:162 — ShaderMixer.RenameVariables 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 · ShaderMixer.ProcessCompositions (cyclomatic 19) · ×1
  • ShaderMixer.ProcessCompositions (cyclomatic 19) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.ShaderSourceEvaluator.cs:247 — ShaderMixer.ProcessCompositions 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 · MethodCall.ProcessInputArguments (cyclomatic 19) · ×1
  • MethodCall.ProcessInputArguments (cyclomatic 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:353 — MethodCall.ProcessInputArguments 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 · AccessorChainExpression.SetValue (cyclomatic 19) · ×1
  • AccessorChainExpression.SetValue (cyclomatic 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:915 — AccessorChainExpression.SetValue 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 · MethodCall.ConversionScore (cyclomatic 19) · ×1
  • MethodCall.ConversionScore (cyclomatic 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/MethodCallOverloads.cs:99 — MethodCall.ConversionScore 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 · SpirvBuilder.BuildInheritanceListWithoutSelf (cyclomatic 19) · ×1
  • SpirvBuilder.BuildInheritanceListWithoutSelf (cyclomatic 19) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:136 — SpirvBuilder.BuildInheritanceListWithoutSelf 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 · InterfaceProcessor.RemoveGeometryStreamParameters (cyclomatic 19) · ×1
  • InterfaceProcessor.RemoveGeometryStreamParameters (cyclomatic 19) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:419 — InterfaceProcessor.RemoveGeometryStreamParameters 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 · InterfaceProcessor.GenerateStreamWrapper (cyclomatic 19) · ×1
  • InterfaceProcessor.GenerateStreamWrapper (cyclomatic 19) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:516 — InterfaceProcessor.GenerateStreamWrapper 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 · SPVGenerator.PreProcessEnumerants (cyclomatic 19) · ×1
  • SPVGenerator.PreProcessEnumerants (cyclomatic 19) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:65 — SPVGenerator.PreProcessEnumerants has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · SPVGenerator.GenerateInstructionStructsSingle (cyclomatic 19) · ×1
  • SPVGenerator.GenerateInstructionStructsSingle (cyclomatic 19) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Instructions.cs:54 — SPVGenerator.GenerateInstructionStructsSingle 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 · UPath.MakeRelative (cyclomatic 19) · ×1
  • UPath.MakeRelative (cyclomatic 19) sources/core/Stride.Core.Design/IO/UPath.cs:343 — UPath.MakeRelative 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 · Emitter.EmitDocumentStart (cyclomatic 19) · ×1
  • Emitter.EmitDocumentStart (cyclomatic 19) sources/core/Stride.Core.Yaml/Emitter.cs:659 — Emitter.EmitDocumentStart 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 · PackageContainer.Save (cyclomatic 19) · ×1
  • PackageContainer.Save (cyclomatic 19) sources/assets/Stride.Core.Assets/PackageSession.cs:79 — PackageContainer.Save 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 · ReferenceEnumerable.Refresh (cyclomatic 19) · ×1
  • ReferenceEnumerable.Refresh (cyclomatic 19) sources/presentation/Stride.Core.Quantum/References/ReferenceEnumerable.cs:62 — ReferenceEnumerable.Refresh 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 · ScaleBar.AdjustUnitIntervalWithUnitSystem (cyclomatic 19) · ×1
  • ScaleBar.AdjustUnitIntervalWithUnitSystem (cyclomatic 19) sources/presentation/Stride.Core.Presentation.Wpf/Controls/ScaleBar.cs:842 — ScaleBar.AdjustUnitIntervalWithUnitSystem 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 · TemplateProviderBase.CompareTo (cyclomatic 19) · ×1
  • TemplateProviderBase.CompareTo (cyclomatic 19) sources/presentation/Stride.Core.Presentation.Wpf/View/TemplateProviderBase.cs:41 — TemplateProviderBase.CompareTo 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 · EntityHierarchyItemViewModel.MoveChildren (cyclomatic 19) · ×1
  • EntityHierarchyItemViewModel.MoveChildren (cyclomatic 19) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:524 — EntityHierarchyItemViewModel.MoveChildren has cyclomatic complexity 19 (threshold 15). Of this number, 18 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 · MaterialViewModel.OnAssetPropertyChanged (cyclomatic 19) · ×1
  • MaterialViewModel.OnAssetPropertyChanged (cyclomatic 19) sources/editor/Stride.Assets.Presentation/ViewModels/MaterialViewModel.cs:35 — MaterialViewModel.OnAssetPropertyChanged 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 · AssetEditorsManager.OpenAssetEditorWindow (cyclomatic 19) · ×1
  • AssetEditorsManager.OpenAssetEditorWindow (cyclomatic 19) sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs:312 — AssetEditorsManager.OpenAssetEditorWindow 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 · CodeUpgrades.DispatcherCallbacksToStaticLambdas (cyclomatic 19) · ×1
  • CodeUpgrades.DispatcherCallbacksToStaticLambdas (cyclomatic 19) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:27 — CodeUpgrades.DispatcherCallbacksToStaticLambdas has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 29, 63). 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 · HullDecomposition.DoCommandOverride (cyclomatic 19) · ×1
  • HullDecomposition.DoCommandOverride (cyclomatic 19) sources/plugins/BepuPhysics/Stride.BepuPhysics.Assets/HullAssetCompiler.cs:81 — HullDecomposition.DoCommandOverride 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 · Simulation.CreateConstraintInternal (cyclomatic 19) · ×1
  • Simulation.CreateConstraintInternal (cyclomatic 19) sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs:703 — Simulation.CreateConstraintInternal 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 · ParticleEmitter.SimulationSpaceChanged (cyclomatic 19) · ×1
  • ParticleEmitter.SimulationSpaceChanged (cyclomatic 19) sources/plugins/Particles/Stride.Particles/ParticleEmitter.cs:1028 — ParticleEmitter.SimulationSpaceChanged 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 · ThicknessEditor.UpdateValueFromComponent (cyclomatic 19) · ×1
  • ThicknessEditor.UpdateValueFromComponent (cyclomatic 19) sources/plugins/UI/Stride.UI.Editor.Wpf/Views/ThicknessEditor.cs:94 — ThicknessEditor.UpdateValueFromComponent 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 · FFmpegVideoBackend.Update (cyclomatic 19) · ×1
  • FFmpegVideoBackend.Update (cyclomatic 19) sources/plugins/Video/Stride.Video/Backends/FFmpegVideoBackend.cs:94 — FFmpegVideoBackend.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 · TextureTool.FindSpriteRegion (cyclomatic 19) · ×1
  • TextureTool.FindSpriteRegion (cyclomatic 19) sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:870 — TextureTool.FindSpriteRegion 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 · TypeNameBuilder.Build (cyclomatic 18) · ×1
  • TypeNameBuilder.Build (cyclomatic 18) sources/core/Stride.Core.CompilerServices/Common/TypeNameBuilder.cs:38 — TypeNameBuilder.Build 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 · VirtualFileSystem.ResolveAbsolutePath (cyclomatic 18) · ×1
  • VirtualFileSystem.ResolveAbsolutePath (cyclomatic 18) sources/core/Stride.Core.IO/VirtualFileSystem.cs:363 — VirtualFileSystem.ResolveAbsolutePath 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 · Internals.Wait (cyclomatic 18) · ×1
  • Internals.Wait (cyclomatic 18) sources/core/Stride.Core/Threading/ThreadPool.SemaphoreW.cs:82 — Internals.Wait 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 · SceneSystem.Draw (cyclomatic 18) · ×1
  • SceneSystem.Draw (cyclomatic 18) sources/engine/Stride.Engine/Engine/SceneSystem.cs:194 — SceneSystem.Draw 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 · ForwardRenderer.CollectCore (cyclomatic 18) · ×1
  • ForwardRenderer.CollectCore (cyclomatic 18) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.cs:295 — ForwardRenderer.CollectCore 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 · GameBase.RawTickProducer (cyclomatic 18) · ×1
  • GameBase.RawTickProducer (cyclomatic 18) sources/engine/Stride.Games/GameBase.cs:535 — GameBase.RawTickProducer 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 · GamePlatform.FindBestDevices (cyclomatic 18) · ×1
  • GamePlatform.FindBestDevices (cyclomatic 18) sources/engine/Stride.Games/GamePlatform.cs:354 — GamePlatform.FindBestDevices 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 · Buffer.Recreate (cyclomatic 18) · ×1
  • Buffer.Recreate (cyclomatic 18) sources/engine/Stride.Graphics/Vulkan/Buffer.Vulkan.cs:72 — Buffer.Recreate 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 · PipelineState.CreatePipeline (cyclomatic 18) · ×1
  • PipelineState.CreatePipeline (cyclomatic 18) sources/engine/Stride.Graphics/Vulkan/PipelineState.Vulkan.cs:81 — PipelineState.CreatePipeline has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CompileEffectJob.Process (cyclomatic 18) · ×1
  • CompileEffectJob.Process (cyclomatic 18) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:645 — CompileEffectJob.Process 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 · ShaderMixer.ProcessClasses (cyclomatic 18) · ×1
  • ShaderMixer.ProcessClasses (cyclomatic 18) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.ShaderSourceEvaluator.cs:82 — ShaderMixer.ProcessClasses has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body's own statements and 7 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 · SymbolType.Of (cyclomatic 18) · ×1
  • SymbolType.Of (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Core/SymbolTypes.cs:165 — SymbolType.Of has cyclomatic complexity 18 (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. This is NOT this file's highest cyclomatic complexity: SymbolType.TryGetBufferType (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 · MixinParser.Match (cyclomatic 18) · ×1
  • MixinParser.Match (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDFX/Parsers/EffectStatementParsers.cs:126 — MixinParser.Match 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 · IntrinsicImplementations.CompileInterlockedCall (cyclomatic 18) · ×1
  • IntrinsicImplementations.CompileInterlockedCall (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicImplementations.cs:728 — IntrinsicImplementations.CompileInterlockedCall 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 · SwitchStatement.Compile (cyclomatic 18) · ×1
  • SwitchStatement.Compile (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Statements.Control.cs:175 — SwitchStatement.Compile 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 · MatrixParser.Match (cyclomatic 18) · ×1
  • MatrixParser.Match (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/LiteralParsers.cs:425 — MatrixParser.Match 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 · ShaderFileParser.Match (cyclomatic 18) · ×1
  • ShaderFileParser.Match (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderFileParsers.cs:16 — ShaderFileParser.Match 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 · FlowParsers.ForEach (cyclomatic 18) · ×1
  • FlowParsers.ForEach (cyclomatic 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/StatementParsers/StatementParsers.Flow.cs:173 — FlowParsers.ForEach 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 · Builder.ScheduleBuildStep (cyclomatic 18) · ×1
  • Builder.ScheduleBuildStep (cyclomatic 18) sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:578 — Builder.ScheduleBuildStep has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 620). 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 · PackageBuilder.SaveBuildUpToDateFile (cyclomatic 18) · ×1
  • PackageBuilder.SaveBuildUpToDateFile (cyclomatic 18) sources/assets/Stride.AssetCompiler/PackageBuilder.cs:306 — PackageBuilder.SaveBuildUpToDateFile 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 · Package.ListAssetFiles (cyclomatic 18) · ×1
  • Package.ListAssetFiles (cyclomatic 18) sources/assets/Stride.Core.Assets/Package.cs:1434 — Package.ListAssetFiles 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 · PackageAssetCollection.CheckCanAdd (cyclomatic 18) · ×1
  • PackageAssetCollection.CheckCanAdd (cyclomatic 18) sources/assets/Stride.Core.Assets/PackageAssetCollection.cs:310 — PackageAssetCollection.CheckCanAdd 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 · PackageSession.LoadMissingDependencies (cyclomatic 18) · ×1
  • PackageSession.LoadMissingDependencies (cyclomatic 18) sources/assets/Stride.Core.Assets/PackageSession.cs:1080 — PackageSession.LoadMissingDependencies 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 · TextLogViewer.AppendText (cyclomatic 18) · ×1
  • TextLogViewer.AppendText (cyclomatic 18) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/TextLogViewer.cs:430 — TextLogViewer.AppendText 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 · ToolBarTray.GenerateBands (cyclomatic 18) · ×1
  • ToolBarTray.GenerateBands (cyclomatic 18) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarTray.cs:167 — ToolBarTray.GenerateBands 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 · TemplateProviderBase.CompareTo (cyclomatic 18) · ×1
  • TemplateProviderBase.CompareTo (cyclomatic 18) sources/presentation/Stride.Core.Presentation.Avalonia/Views/TemplateProviderBase.cs:42 — TemplateProviderBase.CompareTo 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 · CrashReportSender.SendCoreAsync (cyclomatic 18) · ×1
  • CrashReportSender.SendCoreAsync (cyclomatic 18) sources/crashreport/Stride.CrashReport/CrashReportSender.cs:81 — CrashReportSender.SendCoreAsync has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CrashReportSender.MapReport (cyclomatic 18) · ×1
  • CrashReportSender.MapReport (cyclomatic 18) sources/crashreport/Stride.CrashReport/CrashReportSender.cs:212 — CrashReportSender.MapReport 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 · EditorGameEntityCameraService.UpdateCamera (cyclomatic 18) · ×1
  • EditorGameEntityCameraService.UpdateCamera (cyclomatic 18) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameEntityCameraService.cs:134 — EditorGameEntityCameraService.UpdateCamera 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 · EditorGameMaterialHighlightService.Update (cyclomatic 18) · ×1
  • EditorGameMaterialHighlightService.Update (cyclomatic 18) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameMaterialHighlightService.cs:132 — EditorGameMaterialHighlightService.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 · DockPanelService.SnapshotNode (cyclomatic 18) · ×1
  • DockPanelService.SnapshotNode (cyclomatic 18) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs:571 — DockPanelService.SnapshotNode 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 · DotNetNewTemplateParametersWindow.Humanize (cyclomatic 18) · ×1
  • DotNetNewTemplateParametersWindow.Humanize (cyclomatic 18) sources/editor/Stride.Assets.Editor.Wpf/Templates/DotNetNewTemplateParametersWindow.xaml.cs:336 — DotNetNewTemplateParametersWindow.Humanize 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 · Program.Main (cyclomatic 18) · ×1
  • Program.Main (cyclomatic 18) sources/editor/Stride.GameStudio.AutoTesting/Program.cs:23 — Program.Main has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SymbolRewriteEngine.ApplyAsync (cyclomatic 18) · ×1
  • SymbolRewriteEngine.ApplyAsync (cyclomatic 18) sources/engine/Stride.Assets/CodeUpgrade/SymbolRewriteEngine.cs:27 — SymbolRewriteEngine.ApplyAsync 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 · CompressedSoundSource.ExtractAndFillData (cyclomatic 18) · ×1
  • CompressedSoundSource.ExtractAndFillData (cyclomatic 18) sources/plugins/Audio/Stride.Audio/CompressedSoundSource.cs:222 — CompressedSoundSource.ExtractAndFillData 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 · NavmeshBuildCommand.EnsureClonedSceneAndHash (cyclomatic 18) · ×1
  • NavmeshBuildCommand.EnsureClonedSceneAndHash (cyclomatic 18) sources/plugins/BulletPhysics/Stride.Physics.Assets/Navigation/NavigationMeshAssetCompiler.cs:257 — NavmeshBuildCommand.EnsureClonedSceneAndHash 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 · MeshConverter.GenerateOneTextureTypeLayers (cyclomatic 18) · ×1
  • MeshConverter.GenerateOneTextureTypeLayers (cyclomatic 18) sources/tools/Stride.Importer.3D/MeshConverter.cs:1822 — MeshConverter.GenerateOneTextureTypeLayers 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 · Program.Run (cyclomatic 18) · ×1
  • Program.Run (cyclomatic 18) sources/tools/Stride.TextureConverter/Frontend/Console/Program.cs:75 — Program.Run 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 · TextureTool.GetAlphaLevels (cyclomatic 18) · ×1
  • TextureTool.GetAlphaLevels (cyclomatic 18) sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:759 — TextureTool.GetAlphaLevels 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 · RecentProjectViewModel.UpdateOpenOptions (cyclomatic 18) · ×1
  • RecentProjectViewModel.UpdateOpenOptions (cyclomatic 18) REDACTED:309 — RecentProjectViewModel.UpdateOpenOptions 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 · ContentManager.ThrowAssetNotFound (cyclomatic 17) · ×1
  • ContentManager.ThrowAssetNotFound (cyclomatic 17) sources/core/Stride.Core.Serialization/Serialization/Contents/ContentManager.cs:668 — ContentManager.ThrowAssetNotFound has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AnimationBlender.CreateEvaluator (cyclomatic 17) · ×1
  • AnimationBlender.CreateEvaluator (cyclomatic 17) sources/engine/Stride.Engine/Animations/AnimationBlender.cs:34 — AnimationBlender.CreateEvaluator 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 · EntityManager.RemoveStaleTypes (cyclomatic 17) · ×1
  • EntityManager.RemoveStaleTypes (cyclomatic 17) sources/engine/Stride.Engine/Engine/EntityManager.cs:319 — EntityManager.RemoveStaleTypes 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 · CommandList.GetClearWord (cyclomatic 17) · ×1
  • CommandList.GetClearWord (cyclomatic 17) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:1318 — CommandList.GetClearWord has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: CommandList.GetClearFormat (cyclomatic 41) 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 · RadiancePrefilteringGGXNoCompute.DrawCore (cyclomatic 17) · ×1
  • RadiancePrefilteringGGXNoCompute.DrawCore (cyclomatic 17) sources/engine/Stride.Rendering/Rendering/ComputeEffect/GGXPrefiltering/RadiancePrefilteringGGXNoCompute.cs:75 — RadiancePrefilteringGGXNoCompute.DrawCore 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 · LightShafts.DrawBoundingVolumes (cyclomatic 17) · ×1
  • LightShafts.DrawBoundingVolumes (cyclomatic 17) sources/engine/Stride.Rendering/Rendering/Images/LightShafts/LightShafts.cs:382 — LightShafts.DrawBoundingVolumes 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 · PointLightShaderGroupData.ComputeViewParameter (cyclomatic 17) · ×1
  • PointLightShaderGroupData.ComputeViewParameter (cyclomatic 17) sources/engine/Stride.Rendering/Rendering/Lights/LightClusteredPointSpotGroupRenderer.cs:243 — PointLightShaderGroupData.ComputeViewParameter has cyclomatic complexity 17 (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 · PointLightShaderGroupData.ComputeViewsParameter (cyclomatic 17) · ×1
  • PointLightShaderGroupData.ComputeViewsParameter (cyclomatic 17) sources/engine/Stride.Rendering/Rendering/Lights/LightClusteredPointSpotGroupRenderer.cs:446 — PointLightShaderGroupData.ComputeViewsParameter 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 · LightSpotGroupRenderer.ProcessLights (cyclomatic 17) · ×1
  • LightSpotGroupRenderer.ProcessLights (cyclomatic 17) sources/engine/Stride.Rendering/Rendering/Lights/LightSpotGroupRenderer.cs:133 — LightSpotGroupRenderer.ProcessLights 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 · ComputeShaderClassBase.GenerateShaderSource (cyclomatic 17) · ×1
  • ComputeShaderClassBase.GenerateShaderSource (cyclomatic 17) sources/engine/Stride.Rendering/Rendering/Materials/ComputeColors/ComputeShaderClassBase.cs:94 — ComputeShaderClassBase.GenerateShaderSource 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 · ShaderMixer.MergeSDSL (cyclomatic 17) · ×1
  • ShaderMixer.MergeSDSL (cyclomatic 17) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:37 — ShaderMixer.MergeSDSL has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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 · ShaderMixer.ExpandForeach (cyclomatic 17) · ×1
  • ShaderMixer.ExpandForeach (cyclomatic 17) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:887 — ShaderMixer.ExpandForeach 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 · ShaderMixer.OffsetIds (cyclomatic 17) · ×1
  • ShaderMixer.OffsetIds (cyclomatic 17) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:1190 — ShaderMixer.OffsetIds 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 · ShaderMember.Compile (cyclomatic 17) · ×1
  • ShaderMember.Compile (cyclomatic 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:296 — ShaderMember.Compile 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 · TextureMethodsImplementations.CompileGetDimensions (cyclomatic 17) · ×1
  • TextureMethodsImplementations.CompileGetDimensions (cyclomatic 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/TextureMethodsImplementations.cs:365 — TextureMethodsImplementations.CompileGetDimensions 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 · FunctionDefineDirectiveParser.Match (cyclomatic 17) · ×1
  • FunctionDefineDirectiveParser.Match (cyclomatic 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/DirectiveExpressions/DirectiveParsers.cs:403 — FunctionDefineDirectiveParser.Match has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · NumberParser.Float (cyclomatic 17) · ×1
  • NumberParser.Float (cyclomatic 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/NumberParsers.cs:84 — NumberParser.Float 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 · SpirvBuilder.InstantiateMemberNames (cyclomatic 17) · ×1
  • SpirvBuilder.InstantiateMemberNames (cyclomatic 17) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:541 — SpirvBuilder.InstantiateMemberNames 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 · TypeDuplicateHelper.ReplaceRefs (cyclomatic 17) · ×1
  • TypeDuplicateHelper.ReplaceRefs (cyclomatic 17) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:550 — TypeDuplicateHelper.ReplaceRefs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: TypeDuplicateHelper.OpCheckDuplicateForTypesAndImport (cyclomatic 23) 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 · LiteralArray.From (cyclomatic 17) · ×1
  • LiteralArray.From (cyclomatic 17) sources/shaders/Stride.Shaders.Spirv/Literals/LiteralArray.cs:97 — LiteralArray.From 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 · VisualStudioVersions.BuildIDEInfos (cyclomatic 17) · ×1
  • VisualStudioVersions.BuildIDEInfos (cyclomatic 17) sources/core/Stride.Core.Design/CodeEditorSupport/VisualStudio/VisualStudioVersions.cs:19 — VisualStudioVersions.BuildIDEInfos 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 · TransactionStack.CompleteTransaction (cyclomatic 17) · ×1
  • TransactionStack.CompleteTransaction (cyclomatic 17) sources/core/Stride.Core.Design/Transactions/TransactionStack.cs:132 — TransactionStack.CompleteTransaction 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 · TypeConverterHelper.TryConvert (cyclomatic 17) · ×1
  • TypeConverterHelper.TryConvert (cyclomatic 17) sources/core/Stride.Core.Design/TypeConverters/TypeConverterHelper.cs:42 — TypeConverterHelper.TryConvert has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · AssetPropertyGraph.ResolveObjectPath (cyclomatic 17) · ×1
  • AssetPropertyGraph.ResolveObjectPath (cyclomatic 17) sources/assets/Stride.Core.Assets.Quantum/AssetPropertyGraph.cs:328 — AssetPropertyGraph.ResolveObjectPath 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 · AbstractObjectInstantiator.InitializeTypeBuilderFromType (cyclomatic 17) · ×1
  • AbstractObjectInstantiator.InitializeTypeBuilderFromType (cyclomatic 17) sources/assets/Stride.Core.Assets/Reflection/AbstractObjectInstantiator.cs:58 — AbstractObjectInstantiator.InitializeTypeBuilderFromType 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 · SourceFilesCollector.VisitObjectMember (cyclomatic 17) · ×1
  • SourceFilesCollector.VisitObjectMember (cyclomatic 17) sources/assets/Stride.Core.Assets/Tracking/SourceFilesCollector.cs:43 — SourceFilesCollector.VisitObjectMember 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 · AutoUpdatingSortedObservableCollection.ItemPropertyChanged (cyclomatic 17) · ×1
  • AutoUpdatingSortedObservableCollection.ItemPropertyChanged (cyclomatic 17) sources/presentation/Stride.Core.Presentation/Collections/AutoUpdatingSortedObservableCollection.cs:123 — AutoUpdatingSortedObservableCollection.ItemPropertyChanged 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 · TemplateParameterViewModel.Humanize (cyclomatic 17) · ×1
  • TemplateParameterViewModel.Humanize (cyclomatic 17) sources/editor/Stride.Assets.Editor/Templates/TemplateParameterViewModel.cs:76 — TemplateParameterViewModel.Humanize 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 · AssetCollectionViewModel.AddFilesAsync (cyclomatic 17) · ×1
  • AssetCollectionViewModel.AddFilesAsync (cyclomatic 17) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.AddAssets.cs:108 — AssetCollectionViewModel.AddFilesAsync 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 · EntityExtensions.CalculateBoundSphere (cyclomatic 17) · ×1
  • EntityExtensions.CalculateBoundSphere (cyclomatic 17) sources/editor/Stride.Editor/Engine/EntityExtensions.cs:65 — EntityExtensions.CalculateBoundSphere 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 · GameStudioAssemblyReloader.PostAssemblyReloading (cyclomatic 17) · ×1
  • GameStudioAssemblyReloader.PostAssemblyReloading (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/AssemblyReloading/GameStudioAssemblyReloader.cs:327 — GameStudioAssemblyReloader.PostAssemblyReloading 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 · VisualScriptEditorViewModel.TriggerBackgroundCompilation (cyclomatic 17) · ×1
  • VisualScriptEditorViewModel.TriggerBackgroundCompilation (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.Diagnostics.cs:38 — VisualScriptEditorViewModel.TriggerBackgroundCompilation 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 · Color4CurveViewModel.UpdateMaxMin (cyclomatic 17) · ×1
  • Color4CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/ColorCurveViewModel.cs:106 — Color4CurveViewModel.UpdateMaxMin 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 · KeyFrameCurveViewModel.UpdateMaxMin (cyclomatic 17) · ×1
  • KeyFrameCurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/KeyFrameCurveViewModel.cs:234 — KeyFrameCurveViewModel.UpdateMaxMin 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 · RotationCurveViewModel.UpdateMaxMin (cyclomatic 17) · ×1
  • RotationCurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/RotationCurveViewModel.cs:147 — RotationCurveViewModel.UpdateMaxMin 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 · Vector2CurveViewModel.UpdateMaxMin (cyclomatic 17) · ×1
  • Vector2CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs:99 — Vector2CurveViewModel.UpdateMaxMin has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (Vector3CurveViewModel.UpdateMaxMin, Vector4CurveViewModel.UpdateMaxMin) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · Vector3CurveViewModel.UpdateMaxMin (cyclomatic 17) · ×1
  • Vector3CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs:249 — Vector3CurveViewModel.UpdateMaxMin has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (Vector2CurveViewModel.UpdateMaxMin, Vector4CurveViewModel.UpdateMaxMin) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · Vector4CurveViewModel.UpdateMaxMin (cyclomatic 17) · ×1
  • Vector4CurveViewModel.UpdateMaxMin (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs:403 — Vector4CurveViewModel.UpdateMaxMin has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (Vector2CurveViewModel.UpdateMaxMin, Vector3CurveViewModel.UpdateMaxMin) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · DotNetNewTemplateParametersWindow.BuildOneRow (cyclomatic 17) · ×1
  • DotNetNewTemplateParametersWindow.BuildOneRow (cyclomatic 17) sources/editor/Stride.Assets.Editor.Wpf/Templates/DotNetNewTemplateParametersWindow.xaml.cs:199 — DotNetNewTemplateParametersWindow.BuildOneRow has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PluginFeatureOwnershipUpgrader.UpgradeAsset (cyclomatic 17) · ×1
  • PluginFeatureOwnershipUpgrader.UpgradeAsset (cyclomatic 17) sources/engine/Stride.Assets/Rendering/GraphicsCompositorAsset.cs:186 — PluginFeatureOwnershipUpgrader.UpgradeAsset 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 · AtlasTextureFactory.CreateTextureAtlas (cyclomatic 17) · ×1
  • AtlasTextureFactory.CreateTextureAtlas (cyclomatic 17) sources/engine/Stride.Assets/Textures/Packing/AtlasTextureFactory.cs:21 — AtlasTextureFactory.CreateTextureAtlas 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 · Grid.RebuildMeasureCacheData (cyclomatic 17) · ×1
  • Grid.RebuildMeasureCacheData (cyclomatic 17) sources/plugins/UI/Stride.UI/Panels/Grid.cs:601 — Grid.RebuildMeasureCacheData has cyclomatic complexity 17 (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 · StrideXunitRunner.ParseVstestFilter (cyclomatic 17) · ×1
  • StrideXunitRunner.ParseVstestFilter (cyclomatic 17) sources/tests/xunit.runner.stride/StrideXunitRunner.cs:217 — StrideXunitRunner.ParseVstestFilter 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 · ClaudeVisionFallback.Compare (cyclomatic 17) · ×1
  • ClaudeVisionFallback.Compare (cyclomatic 17) tests/infra/Stride.ScreenshotComparator/ClaudeVisionFallback.cs:57 — ClaudeVisionFallback.Compare 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 · ScreenshotComparator.LoadPerFrameMetadata (cyclomatic 17) · ×1
  • ScreenshotComparator.LoadPerFrameMetadata (cyclomatic 17) tests/infra/Stride.ScreenshotComparator/ScreenshotComparator.cs:219 — ScreenshotComparator.LoadPerFrameMetadata 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 · MeshConverter.BuildLayeredSurface (cyclomatic 17) · ×1
  • MeshConverter.BuildLayeredSurface (cyclomatic 17) sources/tools/Stride.Importer.3D/MeshConverter.cs:1726 — MeshConverter.BuildLayeredSurface 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 · DotNetHostSelector.Resolve (cyclomatic 17) · ×1
  • DotNetHostSelector.Resolve (cyclomatic 17) sources/shared/Stride.NuGetResolver/DotNetHostSelector.cs:93 — DotNetHostSelector.Resolve 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 · CecilExtensions.InflateMethod (cyclomatic 17) · ×1
  • CecilExtensions.InflateMethod (cyclomatic 17) sources/core/Stride.Core.AssemblyProcessor/CecilExtensions.cs:666 — CecilExtensions.InflateMethod 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 · CollisionHelper.ClosestPointPointTriangle (cyclomatic 16) · ×1
  • CollisionHelper.ClosestPointPointTriangle (cyclomatic 16) sources/core/Stride.Core.Mathematics/CollisionHelper.cs:69 — CollisionHelper.ClosestPointPointTriangle 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 · CollisionHelper.RayIntersectsRectangle (cyclomatic 16) · ×1
  • CollisionHelper.RayIntersectsRectangle (cyclomatic 16) sources/core/Stride.Core.Mathematics/CollisionHelper.cs:710 — CollisionHelper.RayIntersectsRectangle has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · CollisionHelper.RayIntersectsBox (cyclomatic 16) · ×1
  • CollisionHelper.RayIntersectsBox (cyclomatic 16) sources/core/Stride.Core.Mathematics/CollisionHelper.cs:803 — CollisionHelper.RayIntersectsBox 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 · ContentManager.DeserializeObject (cyclomatic 16) · ×1
  • ContentManager.DeserializeObject (cyclomatic 16) sources/core/Stride.Core.Serialization/Serialization/Contents/ContentManager.cs:410 — ContentManager.DeserializeObject 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 · Cone.New (cyclomatic 16) · ×1
  • Cone.New (cyclomatic 16) sources/engine/Stride.Graphics/GeometricPrimitives/GeometricPrimitive.Cone.cs:44 — Cone.New 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 · PipelineStateDescription.Equals (cyclomatic 16) · ×1
  • PipelineStateDescription.Equals (cyclomatic 16) sources/engine/Stride.Graphics/PipelineStateDescription.cs:121 — PipelineStateDescription.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 · Texture.SetData (cyclomatic 16) · ×1
  • Texture.SetData (cyclomatic 16) sources/engine/Stride.Graphics/Texture.cs:1443 — Texture.SetData 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: Texture.GetDebugName (cyclomatic 19) 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 · VertexElement.ConvertTypeToFormat · ×1
  • VertexElement.ConvertTypeToFormat::ConvertTypeToFormat (cyclomatic 16) sources/engine/Stride.Graphics/VertexElement.cs:599 — VertexElement.ConvertTypeToFormat::ConvertTypeToFormat 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 · CommandList.Copy (cyclomatic 16) · ×1
  • CommandList.Copy (cyclomatic 16) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:1488 — CommandList.Copy 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: CommandList.GetClearFormat (cyclomatic 41) 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 · CommandList.CopyRegion (cyclomatic 16) · ×1
  • CommandList.CopyRegion (cyclomatic 16) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:1662 — CommandList.CopyRegion 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: CommandList.GetClearFormat (cyclomatic 41) 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 · RadiancePrefilteringGGX.DrawCore (cyclomatic 16) · ×1
  • RadiancePrefilteringGGX.DrawCore (cyclomatic 16) sources/engine/Stride.Rendering/Rendering/ComputeEffect/GGXPrefiltering/RadiancePrefilteringGGX.cs:72 — RadiancePrefilteringGGX.DrawCore 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 · Predicates.fast_expansion_sum_zeroelim (cyclomatic 16) · ×1
  • Predicates.fast_expansion_sum_zeroelim (cyclomatic 16) sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs:829 — Predicates.fast_expansion_sum_zeroelim 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: Predicates.InSphereAdapt (cyclomatic 17) 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 · ForwardLightingRenderFeature.PrepareEffectPermutations (cyclomatic 16) · ×1
  • ForwardLightingRenderFeature.PrepareEffectPermutations (cyclomatic 16) sources/engine/Stride.Rendering/Rendering/Lights/ForwardLightingRenderFeature.cs:228 — ForwardLightingRenderFeature.PrepareEffectPermutations 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 · LightGroupRendererShadow.ProcessLights (cyclomatic 16) · ×1
  • LightGroupRendererShadow.ProcessLights (cyclomatic 16) sources/engine/Stride.Rendering/Rendering/Lights/LightGroupRendererShadow.cs:131 — LightGroupRendererShadow.ProcessLights 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 · PrimitiveProceduralModelBase.Generate (cyclomatic 16) · ×1
  • PrimitiveProceduralModelBase.Generate (cyclomatic 16) sources/engine/Stride.Rendering/Rendering/ProceduralModels/PrimitiveProceduralModelBase.cs:87 — PrimitiveProceduralModelBase.Generate 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 · OpenXRInput.GetAction (cyclomatic 16) · ×1
  • OpenXRInput.GetAction (cyclomatic 16) sources/engine/Stride.VirtualReality/OpenXR/OpenXRInput.cs:126 — OpenXRInput.GetAction 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 · EffectCompiler.CompileDxilPipeline (cyclomatic 16) · ×1
  • EffectCompiler.CompileDxilPipeline (cyclomatic 16) sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs:584 — EffectCompiler.CompileDxilPipeline has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · ConstantEvaluator.TryEvaluateUnary (cyclomatic 16) · ×1
  • ConstantEvaluator.TryEvaluateUnary (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Core/ConstantEvaluator.cs:22 — ConstantEvaluator.TryEvaluateUnary has cyclomatic complexity 16 (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. This is NOT this file's highest cyclomatic complexity: ConstantEvaluator.EvaluateIntegerBinary (cyclomatic 28) 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 · Identifier.IsMatrixSwizzle · ×1
  • Identifier.IsMatrixSwizzle::TryParseOne (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:788 — Identifier.IsMatrixSwizzle::TryParseOne 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 · ShaderSamplerState.Compile (cyclomatic 16) · ×1
  • ShaderSamplerState.Compile (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:65 — ShaderSamplerState.Compile has cyclomatic complexity 16 (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 · Parsers.TypeNameIdentifierArraySizeValue (cyclomatic 16) · ×1
  • Parsers.TypeNameIdentifierArraySizeValue (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/Common/CommonParsers.cs:280 — Parsers.TypeNameIdentifierArraySizeValue 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 · LiteralsParser.TypeName (cyclomatic 16) · ×1
  • LiteralsParser.TypeName (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/LiteralParsers.cs:90 — LiteralsParser.TypeName 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 · MethodParser.Match (cyclomatic 16) · ×1
  • MethodParser.Match (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderMethodParsers.cs:140 — MethodParser.Match 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 · SpirvBuilder.ContainIds (cyclomatic 16) · ×1
  • SpirvBuilder.ContainIds (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:644 — SpirvBuilder.ContainIds 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 · SpirvContext.ExtractConstantFromBuffer (cyclomatic 16) · ×1
  • SpirvContext.ExtractConstantFromBuffer (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Context.ExtractBuffers.cs:148 — SpirvContext.ExtractConstantFromBuffer has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · TypeDuplicateHelper.MergeTypeDecorations (cyclomatic 16) · ×1
  • TypeDuplicateHelper.MergeTypeDecorations (cyclomatic 16) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:347 — TypeDuplicateHelper.MergeTypeDecorations 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: TypeDuplicateHelper.OpCheckDuplicateForTypesAndImport (cyclomatic 23) 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 · SPVGenerator.ConvertOperandsToParameters (cyclomatic 16) · ×1
  • SPVGenerator.ConvertOperandsToParameters (cyclomatic 16) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Naming.cs:160 — SPVGenerator.ConvertOperandsToParameters 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 · OpData.ToString (cyclomatic 16) · ×1
  • OpData.ToString (cyclomatic 16) sources/shaders/Stride.Shaders.Spirv/Buffers/OpData.cs:101 — OpData.ToString has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · PackageVersionRange.ToPrettyPrint (cyclomatic 16) · ×1
  • PackageVersionRange.ToPrettyPrint (cyclomatic 16) sources/core/Stride.Core.Design/PackageVersionRange.cs:277 — PackageVersionRange.ToPrettyPrint 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 · CompilerCrashCapture.AdoptDumps (cyclomatic 16) · ×1
  • CompilerCrashCapture.AdoptDumps (cyclomatic 16) sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:153 — CompilerCrashCapture.AdoptDumps 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 · PackageBuilder.BuildMaster (cyclomatic 16) · ×1
  • PackageBuilder.BuildMaster (cyclomatic 16) sources/assets/Stride.AssetCompiler/PackageBuilder.cs:59 — PackageBuilder.BuildMaster 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 · BuildAssetNode.Analyze (cyclomatic 16) · ×1
  • BuildAssetNode.Analyze (cyclomatic 16) sources/assets/Stride.Core.Assets/Analysis/BuildAssetNode.cs:130 — BuildAssetNode.Analyze 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 · AssetRegistry.UnregisterAssetAssembly (cyclomatic 16) · ×1
  • AssetRegistry.UnregisterAssetAssembly (cyclomatic 16) sources/assets/Stride.Core.Assets/AssetRegistry.cs:793 — AssetRegistry.UnregisterAssetAssembly 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 · AssetDependenciesCompiler.Prepare (cyclomatic 16) · ×1
  • AssetDependenciesCompiler.Prepare (cyclomatic 16) sources/assets/Stride.Core.Assets/Compiler/AssetDependenciesCompiler.cs:72 — AssetDependenciesCompiler.Prepare 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 · PackageSession.Load (cyclomatic 16) · ×1
  • PackageSession.Load (cyclomatic 16) sources/assets/Stride.Core.Assets/PackageSession.cs:884 — PackageSession.Load 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 · ErrorRecoverySerializer.ReadYaml (cyclomatic 16) · ×1
  • ErrorRecoverySerializer.ReadYaml (cyclomatic 16) sources/assets/Stride.Core.Assets/Yaml/ErrorRecoverySerializer.cs:16 — ErrorRecoverySerializer.ReadYaml 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 · FilteringComboBox.EditableTextBoxPreviewKeyDown (cyclomatic 16) · ×1
  • FilteringComboBox.EditableTextBoxPreviewKeyDown (cyclomatic 16) sources/presentation/Stride.Core.Presentation.Wpf/Controls/FilteringComboBox.cs:422 — FilteringComboBox.EditableTextBoxPreviewKeyDown 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 · ProjectWatcher.BatchChanges (cyclomatic 16) · ×1
  • ProjectWatcher.BatchChanges (cyclomatic 16) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ProjectWatcher.cs:152 — ProjectWatcher.BatchChanges 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 · ProjectWatcher.FileChangeTransformation (cyclomatic 16) · ×1
  • ProjectWatcher.FileChangeTransformation (cyclomatic 16) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ProjectWatcher.cs:349 — ProjectWatcher.FileChangeTransformation 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 · ModelComponentViewModel.UpdateNodePresenter (cyclomatic 16) · ×1
  • ModelComponentViewModel.UpdateNodePresenter (cyclomatic 16) sources/editor/Stride.Assets.Editor.Wpf/ViewModel/ModelComponentViewModel.cs:80 — ModelComponentViewModel.UpdateNodePresenter has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 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 · GameSettingsAssetCompiler.SetPlatformOrientation (cyclomatic 16) · ×1
  • GameSettingsAssetCompiler.SetPlatformOrientation (cyclomatic 16) sources/engine/Stride.Assets/GameSettingsAssetCompiler.cs:95 — GameSettingsAssetCompiler.SetPlatformOrientation has cyclomatic complexity 16 (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 · SpriteSheetCommand.DoCommandOverride (cyclomatic 16) · ×1
  • SpriteSheetCommand.DoCommandOverride (cyclomatic 16) sources/engine/Stride.Assets/Sprite/SpriteSheetAssetCompiler.cs:155 — SpriteSheetCommand.DoCommandOverride 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 · FreeTypeFontImporter.ImportGlyph (cyclomatic 16) · ×1
  • FreeTypeFontImporter.ImportGlyph (cyclomatic 16) sources/engine/Stride.Assets/SpriteFont/Compiler/FreeTypeFontImporter.cs:92 — FreeTypeFontImporter.ImportGlyph 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 · TemplatePreprocessor.SubstituteEngineVersion (cyclomatic 16) · ×1
  • TemplatePreprocessor.SubstituteEngineVersion (cyclomatic 16) sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs:458 — TemplatePreprocessor.SubstituteEngineVersion 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 · StaticMeshColliderShape.BuildAndShareMeshes (cyclomatic 16) · ×1
  • StaticMeshColliderShape.BuildAndShareMeshes (cyclomatic 16) sources/plugins/BulletPhysics/Stride.Physics/Shapes/StaticMeshColliderShape.cs:109 — StaticMeshColliderShape.BuildAndShareMeshes 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 · ParticleSystem.Update (cyclomatic 16) · ×1
  • ParticleSystem.Update (cyclomatic 16) sources/plugins/Particles/Stride.Particles/ParticleSystem.cs:226 — ParticleSystem.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 · MarginAdorner.Update (cyclomatic 16) · ×1
  • MarginAdorner.Update (cyclomatic 16) sources/plugins/UI/Stride.UI.Editor/Adorners/MarginAdorner.cs:68 — MarginAdorner.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 · UIEditorGameCameraService.UpdateCamera (cyclomatic 16) · ×1
  • UIEditorGameCameraService.UpdateCamera (cyclomatic 16) sources/plugins/UI/Stride.UI.Editor/Game/UIEditorGameCameraService.cs:83 — UIEditorGameCameraService.UpdateCamera 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 · UIElement.Measure (cyclomatic 16) · ×1
  • UIElement.Measure (cyclomatic 16) sources/plugins/UI/Stride.UI/UIElement.cs:867 — UIElement.Measure 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 · CSharpExtractor.ExtractPattern (cyclomatic 16) · ×1
  • CSharpExtractor.ExtractPattern (cyclomatic 16) sources/tools/Stride.Core.Translation.Extractor/Extractors/CSharpExtractor.cs:114 — CSharpExtractor.ExtractPattern 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 · Materials.ConvertAssimpStackCppToCs (cyclomatic 16) · ×1
  • Materials.ConvertAssimpStackCppToCs (cyclomatic 16) sources/tools/Stride.Importer.3D/Material/Materials.cs:82 — Materials.ConvertAssimpStackCppToCs 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 · TextureTool.ExecuteRequest (cyclomatic 16) · ×1
  • TextureTool.ExecuteRequest (cyclomatic 16) sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:1437 — TextureTool.ExecuteRequest 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 · CrashCommand.Create (cyclomatic 16) · ×1
  • CrashCommand.Create (cyclomatic 16) sources/launcher/Stride.Cli/CrashCommand.cs:11 — CrashCommand.Create has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 19, 58, 91). 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 · UpgradeCommand.Create (cyclomatic 16) · ×1
  • UpgradeCommand.Create (cyclomatic 16) sources/launcher/Stride.Cli/UpgradeCommand.cs:10 — UpgradeCommand.Create has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 28). 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 · ApiCheck.GetPublicApiItems (cyclomatic 16) · ×1
  • ApiCheck.GetPublicApiItems (cyclomatic 16) sources/tools/Stride.PublicApiCheck/ApiCheck.cs:47 — ApiCheck.GetPublicApiItems 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.
D17 · Explicit Debt · TodoComment repeated across 14 files · ×1
  • TodoComment repeated across 14 files sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/GizmoUniformColorMaterial.cs:31 — The identical TodoComment appears in 14 files (17 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 17 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO GRAPHICS REFACTOR". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · XxxComment · ×1
  • XxxComment sources/engine/Stride.Engine/Rendering/LightProbes/LightProbeGenerator.cs:81 — // Face XXX — 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.
D17 · Explicit Debt · IneffectivePragmaPair · ×1
  • IneffectivePragmaPair sources/engine/Stride.Rendering/Rendering/Lights/LightDirectionalGroupRenderer.cs:16 — #pragma disable 169 is restored on the very next line — the pair suppresses nothing; delete it.
D18 · Solution Shape · Build failed · ×1
  • Build failed — The target solution did not build cleanly (errors: 32), which caps Solution Shape at 3/10 — the most basic shape signal is that it compiles. First errors: MSB4062: The "AssemblyProcessorTask" task could not be loaded from the assembly /tmp/codehealth-child-tmp-efdb690d6c0a4f69824a8197697850d3/stride/AssemblyProcessor/netstandard2.0/6F3D9E60A4862DF47347520EA20E06A0E6C70C8E7CE549C684CE0B8F1060E59B/Stride.Core.AssemblyProcessor.dll. Unknown file format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.; MSB3073: The command ""clang" -std=c++11 -fno-rtti -fno-exceptions -Wno-ignored-attributes -Wno-delete-non-virtual-dtor -Wno-macro-redefined -I"sources/native/../../deps/NativePath" -I"sources/native/../../deps/NativePath/standard" -O0 -g -DPLATFORM_LINUX -o "sources/crashreport/Stride.CrashReport/obj/Debug/net10.0/linux-x64/StrideCrash_x64.o" -c "sources/crashreport/Stride.CrashReport/Native/StrideCrash.cpp" -fPIC -target x86_64-linux-gnu" exited with code 127.; CS7065: Error building Win32 resources -- Icon stream is not in the expected format.; CS0246: The type or namespace name 'EffectKeysAttribute' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'EffectKeys' could not be found (are you missing a using directive or an assembly reference?); MSB3073: The command ""clang" -std=c++11 -fno-rtti -fno-exceptions -Wno-ignored-attributes -Wno-delete-non-virtual-dtor -Wno-macro-redefined -I"sources/native/../../deps/NativePath" -I"sources/native/../../deps/NativePath/standard" -O0 -g -DPLATFORM_LINUX -o "sources/engine/Stride.VirtualReality/obj/Debug/net10.0/Vulkan/linux-x64/OculusOVR_x64.o" -c "sources/engine/Stride.VirtualReality/OculusOVR/OculusOVR.cpp" -fPIC -target x86_64-linux-gnu" exited with code 127.; MSB4019: The imported project "/tmp/nuget-packages/microsoft.vssdk.buildtools/18.6.38345/tools/vssdk/Microsoft.VSSDK.targets" was not found. Confirm that the expression in the Import declaration "$(VSToolsPath)/vssdk/Microsoft.VSSDK.targets", which evaluated to "/tmp/nuget-packages/microsoft.vssdk.buildtools/18.6.38345/build/../tools/vssdk/Microsoft.VSSDK.targets", is correct, and that the file exists on disk..
D2 · Cognitive Complexity · AccessorChainExpression.CompileHelper (cognitive 246) · ×1
  • AccessorChainExpression.CompileHelper (cognitive 246) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:1102 — AccessorChainExpression.CompileHelper has cognitive complexity 246 (threshold 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 · AssetPropertyPasteProcessor.Paste (cognitive 238) · ×1
  • AssetPropertyPasteProcessor.Paste (cognitive 238) sources/editor/Stride.Core.Assets.Editor/Components/CopyPasteProcessors/AssetPropertyPasteProcessor.cs:155 — AssetPropertyPasteProcessor.Paste has cognitive complexity 238 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EffectCompiler.Compile (cognitive 205) · ×1
  • EffectCompiler.Compile (cognitive 205) sources/shaders/Stride.Shaders.Compilers/EffectCompiler.cs:156 — EffectCompiler.Compile has cognitive complexity 205 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderMixer.MergeClassInBuffers (cognitive 201) · ×1
  • ShaderMixer.MergeClassInBuffers (cognitive 201) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:473 — ShaderMixer.MergeClassInBuffers has cognitive complexity 201 (threshold 15). Of this number, 193 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ImportModelCommand.ExportAnimation (cognitive 197) · ×1
  • ImportModelCommand.ExportAnimation (cognitive 197) sources/engine/Stride.Assets.Models/ImportModelCommand.Animation.cs:30 — ImportModelCommand.ExportAnimation has cognitive complexity 197 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition (cognitive 184) · ×1
  • IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition (cognitive 184) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicTemplateExpander.cs:50 — IntrinsicTemplateExpander.TryGetOrGenerateIntrinsicsDefinition has cognitive complexity 184 (threshold 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 · InterfaceProcessor.Process (cognitive 177) · ×1
  • InterfaceProcessor.Process (cognitive 177) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:145 — InterfaceProcessor.Process has cognitive complexity 177 (threshold 15). Of this number, 174 points are the body's own statements and 3 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ReadWriteAnalyzer.AnalyzeStreamReadWrites (cognitive 168) · ×1
  • ReadWriteAnalyzer.AnalyzeStreamReadWrites (cognitive 168) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/ReadWriteAnalyzer.cs:17 — ReadWriteAnalyzer.AnalyzeStreamReadWrites has cognitive complexity 168 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AssetRegistry.RegisterAssetAssembly (cognitive 162) · ×1
  • AssetRegistry.RegisterAssetAssembly (cognitive 162) sources/assets/Stride.Core.Assets/AssetRegistry.cs:567 — AssetRegistry.RegisterAssetAssembly has cognitive complexity 162 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AssetPropertyGraph.ReconcileWithBaseNode (cognitive 120) · ×1
  • AssetPropertyGraph.ReconcileWithBaseNode (cognitive 120) sources/assets/Stride.Core.Assets.Quantum/AssetPropertyGraph.cs:728 — AssetPropertyGraph.ReconcileWithBaseNode has cognitive complexity 120 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MeshConverter.GenerateBoneToNodeMap (cognitive 120) · ×1
  • MeshConverter.GenerateBoneToNodeMap (cognitive 120) sources/tools/Stride.Importer.3D/MeshConverter.cs:387 — MeshConverter.GenerateBoneToNodeMap has cognitive complexity 120 (threshold 15). Of this number, 117 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EntryPointWrapperGenerator.GenerateWrapper (cognitive 118) · ×1
  • EntryPointWrapperGenerator.GenerateWrapper (cognitive 118) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Generation/EntryPointWrapperGenerator.cs:15 — EntryPointWrapperGenerator.GenerateWrapper has cognitive complexity 118 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · UpdateEngine.Compile (cognitive 115) · ×1
  • UpdateEngine.Compile (cognitive 115) sources/engine/Stride.Engine/Updater/UpdateEngine.cs:133 — UpdateEngine.Compile has cognitive complexity 115 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · VisitorGenerator.GenerateVisitorsBase (cognitive 111) · ×1
  • VisitorGenerator.GenerateVisitorsBase (cognitive 111) sources/shaders/Stride.Shaders.Generators.Internal/VisitorGenerator.cs:44 — VisitorGenerator.GenerateVisitorsBase has cognitive complexity 111 (threshold 15). Of this number, 109 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 · ShaderClass.ProcessNameAndTypes (cognitive 111) · ×1
  • ShaderClass.ProcessNameAndTypes (cognitive 111) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs:96 — ShaderClass.ProcessNameAndTypes has cognitive complexity 111 (threshold 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 · PackageBuilderApp.Run (cognitive 107) · ×1
  • PackageBuilderApp.Run (cognitive 107) sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:53 — PackageBuilderApp.Run has cognitive complexity 107 (threshold 15). Of this number, 88 points are the body's own statements and 19 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 · Grid.MeasureOverride (cognitive 106) · ×1
  • Grid.MeasureOverride (cognitive 106) sources/plugins/UI/Stride.UI/Panels/Grid.cs:142 — Grid.MeasureOverride has cognitive complexity 106 (threshold 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 · AssetCollectionViewModel.InvokeAddAssetTemplateAsync (cognitive 103) · ×1
  • AssetCollectionViewModel.InvokeAddAssetTemplateAsync (cognitive 103) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.AddAssets.cs:327 — AssetCollectionViewModel.InvokeAddAssetTemplateAsync has cognitive complexity 103 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SpriteStudioAnimationAssetCommand.DoCommandOverride (cognitive 102) · ×1
  • SpriteStudioAnimationAssetCommand.DoCommandOverride (cognitive 102) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioAnimationAssetCompiler.cs:53 — SpriteStudioAnimationAssetCommand.DoCommandOverride has cognitive complexity 102 (threshold 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 · ShaderMixer.ProcessMemberAccessAndForeach (cognitive 101) · ×1
  • ShaderMixer.ProcessMemberAccessAndForeach (cognitive 101) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:1004 — ShaderMixer.ProcessMemberAccessAndForeach has cognitive complexity 101 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · StreamAccessPatcher.PatchStreamsAccesses (cognitive 101) · ×1
  • StreamAccessPatcher.PatchStreamsAccesses (cognitive 101) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Transformation/StreamAccessPatcher.cs:43 — StreamAccessPatcher.PatchStreamsAccesses has cognitive complexity 101 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderMixer.MergeCBuffers (cognitive 99) · ×1
  • ShaderMixer.MergeCBuffers (cognitive 99) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.CBuffers.cs:161 — ShaderMixer.MergeCBuffers has cognitive complexity 99 (threshold 15). Of this number, 98 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 · DeadCodeRemover.RemoveUnreferencedCode (cognitive 99) · ×1
  • DeadCodeRemover.RemoveUnreferencedCode (cognitive 99) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Cleanup/DeadCodeRemover.cs:40 — DeadCodeRemover.RemoveUnreferencedCode has cognitive complexity 99 (threshold 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 · PackageSession.PreLoadPackageDependencies (cognitive 95) · ×1
  • PackageSession.PreLoadPackageDependencies (cognitive 95) sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:162 — PackageSession.PreLoadPackageDependencies has cognitive complexity 95 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ImportModelCommand.ExportModel (cognitive 93) · ×1
  • ImportModelCommand.ExportModel (cognitive 93) sources/engine/Stride.Assets.Models/ImportModelCommand.Model.cs:74 — ImportModelCommand.ExportModel has cognitive complexity 93 (threshold 15). Of this number, 90 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PackAssetsHelper.Run (cognitive 90) · ×1
  • PackAssetsHelper.Run (cognitive 90) sources/assets/Stride.AssetCompiler/Tasks/PackAssets.cs:29 — PackAssetsHelper.Run has cognitive complexity 90 (threshold 15). Of this number, 78 points are the body's own statements and 12 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 · Scanner.ScanFlowScalar (cognitive 86) · ×1
  • Scanner.ScanFlowScalar (cognitive 86) sources/core/Stride.Core.Yaml/Scanner.cs:1566 — Scanner.ScanFlowScalar has cognitive complexity 86 (threshold 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 · PrepareEffectPermutationJob.Process (cognitive 83) · ×1
  • PrepareEffectPermutationJob.Process (cognitive 83) sources/engine/Stride.Rendering/Rendering/Materials/MaterialRenderFeature.cs:199 — PrepareEffectPermutationJob.Process has cognitive complexity 83 (threshold 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 · AssemblyRecompiler.Recompile (cognitive 83) · ×1
  • AssemblyRecompiler.Recompile (cognitive 83) sources/editor/Stride.GameStudio/Debugging/AssemblyRecompiler.cs:37 — AssemblyRecompiler.Recompile has cognitive complexity 83 (threshold 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 · NavigationMeshBuilder.Build (cognitive 83) · ×1
  • NavigationMeshBuilder.Build (cognitive 83) sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuilder.cs:118 — NavigationMeshBuilder.Build has cognitive complexity 83 (threshold 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 · ShaderCompiler.Compile (cognitive 81) · ×1
  • ShaderCompiler.Compile (cognitive 81) sources/shaders/Stride.Shaders.Compilers/Direct3D/ShaderCompiler.cs:69 — ShaderCompiler.Compile has cognitive complexity 81 (threshold 15). Of this number, 65 points are the body's own statements and 16 belong to 9 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TextLogViewer.AppendText (cognitive 80) · ×1
  • TextLogViewer.AppendText (cognitive 80) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TextLogViewer.cs:338 — TextLogViewer.AppendText has cognitive complexity 80 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderMixer.ProcessReflection (cognitive 79) · ×1
  • ShaderMixer.ProcessReflection (cognitive 79) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs:264 — ShaderMixer.ProcessReflection has cognitive complexity 79 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SessionViewModel.DeleteItems (cognitive 79) · ×1
  • SessionViewModel.DeleteItems (cognitive 79) sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:1154 — SessionViewModel.DeleteItems has cognitive complexity 79 (threshold 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 · top-level statements (cognitive 79) · ×1
  • top-level statements (cognitive 79) build/tools/ParallelBuildAuditor/Program.cs:8 — top-level statements has cognitive complexity 79 (threshold 15). Of this number, 24 points are the body's own statements and 55 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Emitter.AnalyzeScalar (cognitive 77) · ×1
  • Emitter.AnalyzeScalar (cognitive 77) sources/core/Stride.Core.Yaml/Emitter.cs:322 — Emitter.AnalyzeScalar has cognitive complexity 77 (threshold 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 · CharacterControllers.TryReportContacts (cognitive 77) · ×1
  • CharacterControllers.TryReportContacts (cognitive 77) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs:255 — CharacterControllers.TryReportContacts has cognitive complexity 77 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D2 · Cognitive Complexity · MeshConverter.ProcessMesh (cognitive 77) · ×1
  • MeshConverter.ProcessMesh (cognitive 77) sources/tools/Stride.Importer.3D/MeshConverter.cs:1062 — MeshConverter.ProcessMesh has cognitive complexity 77 (threshold 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 · RootEffectRenderFeature.PrepareEffectPermutations (cognitive 75) · ×1
  • RootEffectRenderFeature.PrepareEffectPermutations (cognitive 75) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:427 — RootEffectRenderFeature.PrepareEffectPermutations has cognitive complexity 75 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderMixer.SpecializeBufferParameters (cognitive 75) · ×1
  • ShaderMixer.SpecializeBufferParameters (cognitive 75) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.BufferParameters.cs:26 — ShaderMixer.SpecializeBufferParameters has cognitive complexity 75 (threshold 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 · PackageSession.UpdateDependencies (cognitive 72) · ×1
  • PackageSession.UpdateDependencies (cognitive 72) sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:623 — PackageSession.UpdateDependencies has cognitive complexity 72 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ToolBarPanel.MeasureGeneratedItems (cognitive 72) · ×1
  • ToolBarPanel.MeasureGeneratedItems (cognitive 72) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarPanel.cs:242 — ToolBarPanel.MeasureGeneratedItems has cognitive complexity 72 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · BundleOdbBackend.CreateBundle (cognitive 70) · ×1
  • BundleOdbBackend.CreateBundle (cognitive 70) sources/core/Stride.Core.Serialization/Storage/BundleOdbBackend.cs:420 — BundleOdbBackend.CreateBundle has cognitive complexity 70 (threshold 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 · EditorGameEntityCameraService.UpdateCameraBase (cognitive 70) · ×1
  • EditorGameEntityCameraService.UpdateCameraBase (cognitive 70) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameEntityCameraService.cs:220 — EditorGameEntityCameraService.UpdateCameraBase has cognitive complexity 70 (threshold 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 · Predicates.Orient3dAdapt (cognitive 69) · ×1
  • Predicates.Orient3dAdapt (cognitive 69) sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs:123 — Predicates.Orient3dAdapt has cognitive complexity 69 (threshold 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 · BundlePacker.Build (cognitive 69) · ×1
  • BundlePacker.Build (cognitive 69) sources/assets/Stride.AssetCompiler/BundlePacker.cs:35 — BundlePacker.Build has cognitive complexity 69 (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.
D2 · Cognitive Complexity · NavmeshBuildCommand.EnsureClonedSceneAndHash (cognitive 69) · ×1
  • NavmeshBuildCommand.EnsureClonedSceneAndHash (cognitive 69) sources/plugins/BulletPhysics/Stride.Physics.Assets/Navigation/NavigationMeshAssetCompiler.cs:257 — NavmeshBuildCommand.EnsureClonedSceneAndHash has cognitive complexity 69 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SerializationProcessor.GenerateSerializeMethod (cognitive 69) · ×1
  • SerializationProcessor.GenerateSerializeMethod (cognitive 69) sources/core/Stride.Core.AssemblyProcessor/SerializationProcessor.cs:263 — SerializationProcessor.GenerateSerializeMethod has cognitive complexity 69 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderMixer.CleanupUnnecessaryInstructions (cognitive 68) · ×1
  • ShaderMixer.CleanupUnnecessaryInstructions (cognitive 68) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:1299 — ShaderMixer.CleanupUnnecessaryInstructions has cognitive complexity 68 (threshold 15). Of this number, 22 points are the body's own statements and 46 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 · Scanner.ScanPlainScalar (cognitive 68) · ×1
  • Scanner.ScanPlainScalar (cognitive 68) sources/core/Stride.Core.Yaml/Scanner.cs:1808 — Scanner.ScanPlainScalar has cognitive complexity 68 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · YamlAssetPath.ToMemberPath (cognitive 68) · ×1
  • YamlAssetPath.ToMemberPath (cognitive 68) sources/assets/Stride.Core.Assets/Yaml/YamlAssetPath.cs:220 — YamlAssetPath.ToMemberPath has cognitive complexity 68 (threshold 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 · ColorConverter.Convert (cognitive 68) · ×1
  • ColorConverter.Convert (cognitive 68) sources/presentation/Stride.Core.Presentation.Wpf/ValueConverters/ColorConverter.cs:21 — ColorConverter.Convert has cognitive complexity 68 (threshold 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 · AudioEmitterProcessor.Draw (cognitive 68) · ×1
  • AudioEmitterProcessor.Draw (cognitive 68) sources/plugins/Audio/Stride.Audio/Engine/AudioEmitterProcessor.cs:117 — AudioEmitterProcessor.Draw has cognitive complexity 68 (threshold 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 · ShaderClass.Compile (cognitive 67) · ×1
  • ShaderClass.Compile (cognitive 67) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs:499 — ShaderClass.Compile has cognitive complexity 67 (threshold 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 · SpirvBuilder.InstantiateGenericShader (cognitive 67) · ×1
  • SpirvBuilder.InstantiateGenericShader (cognitive 67) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:387 — SpirvBuilder.InstantiateGenericShader has cognitive complexity 67 (threshold 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 · BuildInputJob.BuildColliderInput (cognitive 67) · ×1
  • BuildInputJob.BuildColliderInput (cognitive 67) sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuilder.cs:469 — BuildInputJob.BuildColliderInput has cognitive complexity 67 (threshold 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 · VirtualizingTreePanel.MeasureOverride (cognitive 66) · ×1
  • VirtualizingTreePanel.MeasureOverride (cognitive 66) sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:159 — VirtualizingTreePanel.MeasureOverride has cognitive complexity 66 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EntityHierarchyItemViewModel.CanAddOrInsertChildren (cognitive 66) · ×1
  • EntityHierarchyItemViewModel.CanAddOrInsertChildren (cognitive 66) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:393 — EntityHierarchyItemViewModel.CanAddOrInsertChildren has cognitive complexity 66 (threshold 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 · CharacterControllers.AnalyzeContactsForCharacterRegion (cognitive 65) · ×1
  • CharacterControllers.AnalyzeContactsForCharacterRegion (cognitive 65) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs:545 — CharacterControllers.AnalyzeContactsForCharacterRegion has cognitive complexity 65 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ColliderShapeCombineCommand.DoCommandOverride (cognitive 65) · ×1
  • ColliderShapeCombineCommand.DoCommandOverride (cognitive 65) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/ColliderShapeAssetCompiler.cs:119 — ColliderShapeCombineCommand.DoCommandOverride has cognitive complexity 65 (threshold 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 · StrideTexLibrary.Export (cognitive 65) · ×1
  • StrideTexLibrary.Export (cognitive 65) sources/tools/Stride.TextureConverter/Backend/TexLibraries/StrideTexLibrary.cs:216 — StrideTexLibrary.Export has cognitive complexity 65 (threshold 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 · SerializationHelpers.GetSerializableItems (cognitive 65) · ×1
  • SerializationHelpers.GetSerializableItems (cognitive 65) sources/core/Stride.Core.AssemblyProcessor/SerializationHelpers.cs:96 — SerializationHelpers.GetSerializableItems has cognitive complexity 65 (threshold 15). Of this number, 64 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 · UpdateAnimationJob.ProcessEntity (cognitive 64) · ×1
  • UpdateAnimationJob.ProcessEntity (cognitive 64) sources/engine/Stride.Engine/Animations/AnimationProcessor.cs:94 — UpdateAnimationJob.ProcessEntity has cognitive complexity 64 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderDefinition.ImportSymbol (cognitive 64) · ×1
  • ShaderDefinition.ImportSymbol (cognitive 64) sources/shaders/Stride.Shaders.Parsers/Core/SymbolTypes.cs:566 — ShaderDefinition.ImportSymbol has cognitive complexity 64 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ColorConverter.DoConvert (cognitive 64) · ×1
  • ColorConverter.DoConvert (cognitive 64) sources/presentation/Stride.Core.Presentation.Avalonia/Converters/ColorConverter.cs:32 — ColorConverter.DoConvert has cognitive complexity 64 (threshold 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 · DynamicSoundSource.Worker (cognitive 63) · ×1
  • DynamicSoundSource.Worker (cognitive 63) sources/plugins/Audio/Stride.Audio/DynamicSoundSource.cs:349 — DynamicSoundSource.Worker has cognitive complexity 63 (threshold 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 · StreamAnalyzer.Analyze (cognitive 62) · ×1
  • StreamAnalyzer.Analyze (cognitive 62) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Analysis/StreamAnalyzer.cs:12 — StreamAnalyzer.Analyze has cognitive complexity 62 (threshold 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 · HullDecomposition.DoCommandOverride (cognitive 62) · ×1
  • HullDecomposition.DoCommandOverride (cognitive 62) sources/plugins/BepuPhysics/Stride.BepuPhysics.Assets/HullAssetCompiler.cs:81 — HullDecomposition.DoCommandOverride has cognitive complexity 62 (threshold 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 · InterfaceProcessor.GenerateStreamVariables (cognitive 61) · ×1
  • InterfaceProcessor.GenerateStreamVariables (cognitive 61) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:651 — InterfaceProcessor.GenerateStreamVariables has cognitive complexity 61 (threshold 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 · HeightfieldShape.MarchRay (cognitive 61) · ×1
  • HeightfieldShape.MarchRay (cognitive 61) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldShape.cs:456 — HeightfieldShape.MarchRay has cognitive complexity 61 (threshold 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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller, and it works in raw pointers or stack-allocated memory, whose lifetime is this stack frame. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. Anything extracted from it has to take that memory as a parameter rather than reach for it. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D2 · Cognitive Complexity · ShaderMixer.GenerateDefaultCBuffer (cognitive 60) · ×1
  • ShaderMixer.GenerateDefaultCBuffer (cognitive 60) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.CBuffers.cs:20 — ShaderMixer.GenerateDefaultCBuffer has cognitive complexity 60 (threshold 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 · ShaderClassParser.Match (cognitive 60) · ×1
  • ShaderClassParser.Match (cognitive 60) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderClassParser.cs:63 — ShaderClassParser.Match has cognitive complexity 60 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PhysicsGizmo.Update (cognitive 60) · ×1
  • PhysicsGizmo.Update (cognitive 60) sources/plugins/BulletPhysics/Stride.Physics.Editor/PhysicsGizmo.cs:141 — PhysicsGizmo.Update has cognitive complexity 60 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderMixer.ProcessLinks (cognitive 59) · ×1
  • ShaderMixer.ProcessLinks (cognitive 59) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs:25 — ShaderMixer.ProcessLinks has cognitive complexity 59 (threshold 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 · AssetCompositeHierarchyPropertyGraph.FindBestInsertIndex (cognitive 59) · ×1
  • AssetCompositeHierarchyPropertyGraph.FindBestInsertIndex (cognitive 59) sources/assets/Stride.Core.Assets.Quantum/AssetCompositeHierarchyPropertyGraph.cs:474 — AssetCompositeHierarchyPropertyGraph.FindBestInsertIndex has cognitive complexity 59 (threshold 15). Of this number, 54 points are the body's own statements and 5 belong to 5 function literals inside it that branch. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ScrollViewer.Update (cognitive 59) · ×1
  • ScrollViewer.Update (cognitive 59) sources/plugins/UI/Stride.UI/Controls/ScrollViewer.cs:352 — ScrollViewer.Update has cognitive complexity 59 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Effect.UpdateValueBindingKey (cognitive 58) · ×1
  • Effect.UpdateValueBindingKey (cognitive 58) sources/engine/Stride.Graphics/Effects/Effect.cs:251 — Effect.UpdateValueBindingKey has cognitive complexity 58 (threshold 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 · SpriteRenderFeature.Draw (cognitive 58) · ×1
  • SpriteRenderFeature.Draw (cognitive 58) sources/engine/Stride.Rendering/Rendering/Sprites/SpriteRenderFeature.cs:65 — SpriteRenderFeature.Draw has cognitive complexity 58 (threshold 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 · IntrinsicsGenerator.GenerateIntrinsicsCall (cognitive 58) · ×1
  • IntrinsicsGenerator.GenerateIntrinsicsCall (cognitive 58) sources/shaders/Stride.Shaders.Generators.Internal/IntrinsicGenerator.cs:164 — IntrinsicsGenerator.GenerateIntrinsicsCall has cognitive complexity 58 (threshold 15). Of this number, 55 points are the body's own statements and 3 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TextLogViewer.AppendText (cognitive 58) · ×1
  • TextLogViewer.AppendText (cognitive 58) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/TextLogViewer.cs:430 — TextLogViewer.AppendText has cognitive complexity 58 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TextureHelper.DetermineOutputFormat (cognitive 58) · ×1
  • TextureHelper.DetermineOutputFormat (cognitive 58) sources/engine/Stride.Assets/Textures/TextureHelper.cs:212 — TextureHelper.DetermineOutputFormat has cognitive complexity 58 (threshold 15). 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 · ParticleSystemNodeUpdater.FinalizeTree (cognitive 58) · ×1
  • ParticleSystemNodeUpdater.FinalizeTree (cognitive 58) sources/plugins/Particles/Stride.Particles.Editor/ParticleSystemNodeUpdater.cs:18 — ParticleSystemNodeUpdater.FinalizeTree has cognitive complexity 58 (threshold 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 · ForwardRenderer.BakeLightProbes (cognitive 57) · ×1
  • ForwardRenderer.BakeLightProbes (cognitive 57) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.LightProbes.cs:60 — ForwardRenderer.BakeLightProbes has cognitive complexity 57 (threshold 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 · Texture.InitializeFromImpl (cognitive 57) · ×1
  • Texture.InitializeFromImpl (cognitive 57) sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs:137 — Texture.InitializeFromImpl has cognitive complexity 57 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DebuggingViewModel.BuildProjectCore (cognitive 57) · ×1
  • DebuggingViewModel.BuildProjectCore (cognitive 57) sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs:671 — DebuggingViewModel.BuildProjectCore has cognitive complexity 57 (threshold 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 · CodeUpgrades.MoveLocalCallbacks (cognitive 57) · ×1
  • CodeUpgrades.MoveLocalCallbacks (cognitive 57) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:214 — CodeUpgrades.MoveLocalCallbacks has cognitive complexity 57 (threshold 15). Of this number, 54 points are the body's own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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 · Scheduler.Run (cognitive 56) · ×1
  • Scheduler.Run (cognitive 56) sources/core/Stride.Core.MicroThreading/Scheduler.cs:117 — Scheduler.Run has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PostProcessingEffects.DrawCore (cognitive 56) · ×1
  • PostProcessingEffects.DrawCore (cognitive 56) sources/engine/Stride.Rendering/Rendering/Images/PostProcessingEffects.cs:278 — PostProcessingEffects.DrawCore has cognitive complexity 56 (threshold 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 · ShaderMethod.Compile (cognitive 56) · ×1
  • ShaderMethod.Compile (cognitive 56) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:604 — ShaderMethod.Compile has cognitive complexity 56 (threshold 15). Of this number, 55 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ReferenceSerializer.Serialize (cognitive 55) · ×1
  • ReferenceSerializer.Serialize (cognitive 55) sources/core/Stride.Core.Serialization/Serialization/Contents/ReferenceSerializer.cs:23 — ReferenceSerializer.Serialize has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PackageSession.Save (cognitive 55) · ×1
  • PackageSession.Save (cognitive 55) sources/assets/Stride.Core.Assets/PackageSession.cs:1223 — PackageSession.Save has cognitive complexity 55 (threshold 15). Of this number, 51 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DebuggingViewModel.ReloadAssemblies (cognitive 55) · ×1
  • DebuggingViewModel.ReloadAssemblies (cognitive 55) sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs:382 — DebuggingViewModel.ReloadAssemblies has cognitive complexity 55 (threshold 15). Of this number, 42 points are the body's own statements and 13 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SymbolSearchHelper.GenerateSymbolSearchValues (cognitive 54) · ×1
  • SymbolSearchHelper.GenerateSymbolSearchValues (cognitive 54) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.cs:450 — SymbolSearchHelper.GenerateSymbolSearchValues has cognitive complexity 54 (threshold 15). Of this number, 34 points are the body's own statements and 20 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 · BowyerWatsonTetrahedralization.AddVertex (cognitive 53) · ×1
  • BowyerWatsonTetrahedralization.AddVertex (cognitive 53) sources/engine/Stride.Rendering/Rendering/LightProbes/BowyerWatsonTetrahedralization.cs:447 — BowyerWatsonTetrahedralization.AddVertex has cognitive complexity 53 (threshold 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 · ShaderMixer.BuildTypesAndMethodGroups (cognitive 53) · ×1
  • ShaderMixer.BuildTypesAndMethodGroups (cognitive 53) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:810 — ShaderMixer.BuildTypesAndMethodGroups has cognitive complexity 53 (threshold 15). Of this number, 52 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TreeSet.Remove (cognitive 53) · ×1
  • TreeSet.Remove (cognitive 53) sources/core/Stride.Core.Yaml/SortedDictionary.cs:1181 — TreeSet.Remove has cognitive complexity 53 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PackageSession.LoadPackageDependenciesFromLockFile (cognitive 53) · ×1
  • PackageSession.LoadPackageDependenciesFromLockFile (cognitive 53) sources/assets/Stride.Core.Assets/PackageSession.BuildManifest.cs:319 — PackageSession.LoadPackageDependenciesFromLockFile has cognitive complexity 53 (threshold 15). Of this number, 52 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 · PackageSession.LoadDependencyPackages (cognitive 53) · ×1
  • PackageSession.LoadDependencyPackages (cognitive 53) sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:438 — PackageSession.LoadDependencyPackages has cognitive complexity 53 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · LiteralsParser.Vector (cognitive 52) · ×1
  • LiteralsParser.Vector (cognitive 52) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/LiteralParsers.cs:180 — LiteralsParser.Vector has cognitive complexity 52 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · UPath.Normalize (cognitive 52) · ×1
  • UPath.Normalize (cognitive 52) sources/core/Stride.Core.Design/IO/UPath.cs:510 — UPath.Normalize has cognitive complexity 52 (threshold 15). Of this number, 51 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PanelViewModel.ChangeLayoutType (cognitive 52) · ×1
  • PanelViewModel.ChangeLayoutType (cognitive 52) sources/plugins/UI/Stride.UI.Editor/ViewModels/PanelViewModel.cs:237 — PanelViewModel.ChangeLayoutType has cognitive complexity 52 (threshold 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 · UpdateEngine.RunOperations (cognitive 51) · ×1
  • UpdateEngine.RunOperations (cognitive 51) sources/engine/Stride.Engine/Updater/UpdateEngine.cs:509 — UpdateEngine.RunOperations has cognitive complexity 51 (threshold 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 · GamePadLayout.MapInputEvent (cognitive 51) · ×1
  • GamePadLayout.MapInputEvent (cognitive 51) sources/engine/Stride.Input/GamePadLayouts/GamePadLayout.cs:68 — GamePadLayout.MapInputEvent has cognitive complexity 51 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · LightShafts.DrawBoundingVolumes (cognitive 51) · ×1
  • LightShafts.DrawBoundingVolumes (cognitive 51) sources/engine/Stride.Rendering/Rendering/Images/LightShafts/LightShafts.cs:382 — LightShafts.DrawBoundingVolumes has cognitive complexity 51 (threshold 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 · ShaderMixer.AddRequiredCapabilities (cognitive 51) · ×1
  • ShaderMixer.AddRequiredCapabilities (cognitive 51) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:192 — ShaderMixer.AddRequiredCapabilities has cognitive complexity 51 (threshold 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 · ShaderMixer.Explain (cognitive 51) · ×1
  • ShaderMixer.Explain (cognitive 51) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Explain.cs:26 — ShaderMixer.Explain has cognitive complexity 51 (threshold 15). Of this number, 42 points are the body's own statements and 9 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EffectPriorityScheduler.QueueTask (cognitive 51) · ×1
  • EffectPriorityScheduler.QueueTask (cognitive 51) sources/shaders/Stride.Shaders.Effects/Compiler/EffectPriorityScheduler.cs:85 — EffectPriorityScheduler.QueueTask has cognitive complexity 51 (threshold 15). Most of this is not in the body itself: 9 of the 51 points are its own statements and the rest belongs to one function literal inside it that branches (line 110). 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 · AssemblyContainer.LoadAssemblyFromPathInternal (cognitive 51) · ×1
  • AssemblyContainer.LoadAssemblyFromPathInternal (cognitive 51) sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:246 — AssemblyContainer.LoadAssemblyFromPathInternal has cognitive complexity 51 (threshold 15). Of this number, 50 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 · DirectoryBaseViewModel.CanAddChildren (cognitive 51) · ×1
  • DirectoryBaseViewModel.CanAddChildren (cognitive 51) sources/editor/Stride.Core.Assets.Presentation/ViewModels/DirectoryBaseViewModel.cs:201 — DirectoryBaseViewModel.CanAddChildren has cognitive complexity 51 (threshold 15). Of this number, 48 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 · CodeUpgrades.CollectCaptures (cognitive 51) · ×1
  • CodeUpgrades.CollectCaptures (cognitive 51) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:419 — CodeUpgrades.CollectCaptures has cognitive complexity 51 (threshold 15). Of this number, 50 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 · NuGetAssemblyResolver.SetupNuGet (cognitive 51) · ×1
  • NuGetAssemblyResolver.SetupNuGet (cognitive 51) sources/shared/Stride.NuGetResolver/NuGetAssemblyResolver.cs:40 — NuGetAssemblyResolver.SetupNuGet has cognitive complexity 51 (threshold 15). Most of this is not in the body itself: 7 of the 51 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 79, 103). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · UILayoutHelper.UpdateElementLayout (cognitive 50) · ×1
  • UILayoutHelper.UpdateElementLayout (cognitive 50) sources/plugins/UI/Stride.UI.Editor/Game/UILayoutHelper.cs:371 — UILayoutHelper.UpdateElementLayout has cognitive complexity 50 (threshold 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 · ShaderSourceManager.LoadShaderSource (cognitive 49) · ×1
  • ShaderSourceManager.LoadShaderSource (cognitive 49) sources/shaders/Stride.Shaders.Compilers/ShaderSourceManager.cs:126 — ShaderSourceManager.LoadShaderSource has cognitive complexity 49 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · CompoundHeightfieldCollisionTask.ExecuteBatch (cognitive 49) · ×1
  • CompoundHeightfieldCollisionTask.ExecuteBatch (cognitive 49) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldCollisionTasks.cs:228 — CompoundHeightfieldCollisionTask.ExecuteBatch has cognitive complexity 49 (threshold 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 · UnifiedGenerator.Initialize (cognitive 48) · ×1
  • UnifiedGenerator.Initialize (cognitive 48) sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.cs:19 — UnifiedGenerator.Initialize has cognitive complexity 48 (threshold 15). None of this is in the body itself: all 48 points belong to 9 function literals inside it that branch (lines 21, 141, 117, …). 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 · ForwardRenderer.DrawCore (cognitive 47) · ×1
  • ForwardRenderer.DrawCore (cognitive 47) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.cs:620 — ForwardRenderer.DrawCore has cognitive complexity 47 (threshold 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 · ParameterCollection.UpdateLayout (cognitive 47) · ×1
  • ParameterCollection.UpdateLayout (cognitive 47) sources/engine/Stride.Foundation/Rendering/ParameterCollection.cs:576 — ParameterCollection.UpdateLayout has cognitive complexity 47 (threshold 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 · SDSLC.Compile (cognitive 47) · ×1
  • SDSLC.Compile (cognitive 47) sources/shaders/Stride.Shaders.Compilers/SDSL/SDSLC.cs:28 — SDSLC.Compile has cognitive complexity 47 (threshold 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 · SpirvBuilder.RemapIds (cognitive 47) · ×1
  • SpirvBuilder.RemapIds (cognitive 47) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:687 — SpirvBuilder.RemapIds has cognitive complexity 47 (threshold 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 · NodeViewModel.CheckDynamicMemberConsistency (cognitive 47) · ×1
  • NodeViewModel.CheckDynamicMemberConsistency (cognitive 47) sources/presentation/Stride.Core.Presentation.Quantum/ViewModels/NodeViewModel.cs:521 — NodeViewModel.CheckDynamicMemberConsistency has cognitive complexity 47 (threshold 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 · GameProfilingSystem.ReadEventsAsync (cognitive 46) · ×1
  • GameProfilingSystem.ReadEventsAsync (cognitive 46) sources/engine/Stride.Engine/Profiling/GameProfilingSystem.cs:195 — GameProfilingSystem.ReadEventsAsync has cognitive complexity 46 (threshold 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 · PrepareJob.Process (cognitive 46) · ×1
  • PrepareJob.Process (cognitive 46) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:793 — PrepareJob.Process has cognitive complexity 46 (threshold 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 · NamespaceParsers.Match (cognitive 46) · ×1
  • NamespaceParsers.Match (cognitive 46) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderFileParsers.cs:144 — NamespaceParsers.Match has cognitive complexity 46 (threshold 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 · ReferenceEnumerable.Refresh (cognitive 46) · ×1
  • ReferenceEnumerable.Refresh (cognitive 46) sources/presentation/Stride.Core.Quantum/References/ReferenceEnumerable.cs:62 — ReferenceEnumerable.Refresh has cognitive complexity 46 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ScreenshotComparator.Compare (cognitive 46) · ×1
  • ScreenshotComparator.Compare (cognitive 46) tests/infra/Stride.ScreenshotComparator/ScreenshotComparator.cs:41 — ScreenshotComparator.Compare has cognitive complexity 46 (threshold 15). Of this number, 45 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 · DxtTexLib.Export (cognitive 46) · ×1
  • DxtTexLib.Export (cognitive 46) sources/tools/Stride.TextureConverter/Backend/TexLibraries/DxtTexLib.cs:574 — DxtTexLib.Export has cognitive complexity 46 (threshold 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 · BasicCameraController.ProcessInput (cognitive 46) · ×1
  • BasicCameraController.ProcessInput (cognitive 46) samples/NewGame/NewGame/MyTemplate.Game/BasicCameraController.cs:59 — BasicCameraController.ProcessInput has cognitive complexity 46 (threshold 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 · ShaderMixer.ConvertBoolCBufferMembers (cognitive 45) · ×1
  • ShaderMixer.ConvertBoolCBufferMembers (cognitive 45) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.CBuffers.cs:522 — ShaderMixer.ConvertBoolCBufferMembers has cognitive complexity 45 (threshold 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 · SPVGenerator.PreProcessInstructions (cognitive 45) · ×1
  • SPVGenerator.PreProcessInstructions (cognitive 45) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:111 — SPVGenerator.PreProcessInstructions has cognitive complexity 45 (threshold 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 · ShaderSourceToCode.ToCode (cognitive 45) · ×1
  • ShaderSourceToCode.ToCode (cognitive 45) sources/shaders/Stride.Shaders/ShaderSourceToCode.cs:22 — ShaderSourceToCode.ToCode has cognitive complexity 45 (threshold 15). 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 · NugetStore.SyncLocalFolderSources (cognitive 45) · ×1
  • NugetStore.SyncLocalFolderSources (cognitive 45) REDACTED:470 — NugetStore.SyncLocalFolderSources has cognitive complexity 45 (threshold 15). Most of this is not in the body itself: 11 of the 45 points are its own statements and the rest belongs to one function literal inside it that branches (line 503). 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 · PrefabModelAssetCompileCommand.ProcessMaterial (cognitive 45) · ×1
  • PrefabModelAssetCompileCommand.ProcessMaterial (cognitive 45) sources/engine/Stride.Assets.Models/PrefabModelAssetCompiler.cs:117 — PrefabModelAssetCompileCommand.ProcessMaterial has cognitive complexity 45 (threshold 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 · SpriteStudioRenderFeature.Draw (cognitive 45) · ×1
  • SpriteStudioRenderFeature.Draw (cognitive 45) sources/plugins/SpriteStudio/Stride.SpriteStudio.Runtime/SpriteStudioRenderFeature.cs:67 — SpriteStudioRenderFeature.Draw has cognitive complexity 45 (threshold 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 · TextureContentSerializer.Serialize (cognitive 44) · ×1
  • TextureContentSerializer.Serialize (cognitive 44) sources/engine/Stride.Graphics/Data/TextureContentSerializer.cs:19 — TextureContentSerializer.Serialize has cognitive complexity 44 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MaterialGeneratorContext.ProcessIntermediateLayer (cognitive 44) · ×1
  • MaterialGeneratorContext.ProcessIntermediateLayer (cognitive 44) sources/engine/Stride.Rendering/Rendering/Materials/MaterialGeneratorContext.cs:371 — MaterialGeneratorContext.ProcessIntermediateLayer has cognitive complexity 44 (threshold 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 · ShaderMixer.ValidateDerivativeUsage (cognitive 44) · ×1
  • ShaderMixer.ValidateDerivativeUsage (cognitive 44) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Validation.cs:20 — ShaderMixer.ValidateDerivativeUsage has cognitive complexity 44 (threshold 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 · EffectCompilerCache.Compile (cognitive 44) · ×1
  • EffectCompilerCache.Compile (cognitive 44) sources/shaders/Stride.Shaders.Effects/Compiler/EffectCompilerCache.cs:97 — EffectCompilerCache.Compile has cognitive complexity 44 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SpirvContext.InsertWithoutDuplicates (cognitive 44) · ×1
  • SpirvContext.InsertWithoutDuplicates (cognitive 44) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Context.ExtractBuffers.cs:16 — SpirvContext.InsertWithoutDuplicates has cognitive complexity 44 (threshold 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 · ContactEventsManager.RunManifoldEvent (cognitive 44) · ×1
  • ContactEventsManager.RunManifoldEvent (cognitive 44) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Contacts/ContactEventsManager.cs:188 — ContactEventsManager.RunManifoldEvent has cognitive complexity 44 (threshold 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 · ParticleEmitter.SimulationSpaceChanged (cognitive 44) · ×1
  • ParticleEmitter.SimulationSpaceChanged (cognitive 44) sources/plugins/Particles/Stride.Particles/ParticleEmitter.cs:1028 — ParticleEmitter.SimulationSpaceChanged has cognitive complexity 44 (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.
D2 · Cognitive Complexity · PlayerScript.Execute (cognitive 44) · ×1
  • PlayerScript.Execute (cognitive 44) samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Game/PlayerScript.cs:69 — PlayerScript.Execute has cognitive complexity 44 (threshold 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 · CompileEffectJob.Process (cognitive 43) · ×1
  • CompileEffectJob.Process (cognitive 43) sources/engine/Stride.Rendering/Rendering/RootEffectRenderFeature.cs:645 — CompileEffectJob.Process has cognitive complexity 43 (threshold 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 · FpsTestCamera.UpdateCamera (cognitive 43) · ×1
  • FpsTestCamera.UpdateCamera (cognitive 43) sources/engine/Stride.Graphics.Regression/FpsTestCamera.cs:108 — FpsTestCamera.UpdateCamera has cognitive complexity 43 (threshold 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 · Parser.ParseNode (cognitive 43) · ×1
  • Parser.ParseNode (cognitive 43) sources/core/Stride.Core.Yaml/Parser.cs:429 — Parser.ParseNode has cognitive complexity 43 (threshold 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 · AssetMigration.MigrateAssetIfNeeded (cognitive 43) · ×1
  • AssetMigration.MigrateAssetIfNeeded (cognitive 43) sources/assets/Stride.Core.Assets/AssetMigration.cs:92 — AssetMigration.MigrateAssetIfNeeded has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ProjectWatcher.BatchChanges (cognitive 43) · ×1
  • ProjectWatcher.BatchChanges (cognitive 43) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ProjectWatcher.cs:152 — ProjectWatcher.BatchChanges has cognitive complexity 43 (threshold 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 · CodeUpgrades.AddAttributeToStaticFieldHolders (cognitive 43) · ×1
  • CodeUpgrades.AddAttributeToStaticFieldHolders (cognitive 43) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Attributes.cs:21 — CodeUpgrades.AddAttributeToStaticFieldHolders has cognitive complexity 43 (threshold 15). Most of this is not in the body itself: 3 of the 43 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 32, 61). 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 · SymbolRewriteEngine.ApplyAsync (cognitive 43) · ×1
  • SymbolRewriteEngine.ApplyAsync (cognitive 43) sources/engine/Stride.Assets/CodeUpgrade/SymbolRewriteEngine.cs:27 — SymbolRewriteEngine.ApplyAsync has cognitive complexity 43 (threshold 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 · SpriteStudioXmlImport.FillNodeData (cognitive 43) · ×1
  • SpriteStudioXmlImport.FillNodeData (cognitive 43) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioXmlImport.cs:37 — SpriteStudioXmlImport.FillNodeData has cognitive complexity 43 (threshold 15). Of this number, 40 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MethodCall.ProcessInputArguments (cognitive 42) · ×1
  • MethodCall.ProcessInputArguments (cognitive 42) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:353 — MethodCall.ProcessInputArguments has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderClass.CreateShaderType (cognitive 42) · ×1
  • ShaderClass.CreateShaderType (cognitive 42) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Shader.cs:390 — ShaderClass.CreateShaderType has cognitive complexity 42 (threshold 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 · SpirvBuilder.Convert (cognitive 42) · ×1
  • SpirvBuilder.Convert (cognitive 42) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:487 — SpirvBuilder.Convert has cognitive complexity 42 (threshold 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 · GameTestBase.SaveImage (cognitive 42) · ×1
  • GameTestBase.SaveImage (cognitive 42) sources/engine/Stride.Graphics.Regression/GameTestBase.cs:847 — GameTestBase.SaveImage has cognitive complexity 42 (threshold 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 · ObjectDescriptor.PrepareMember (cognitive 42) · ×1
  • ObjectDescriptor.PrepareMember (cognitive 42) sources/core/Stride.Core.Reflection/TypeDescriptors/ObjectDescriptor.cs:260 — ObjectDescriptor.PrepareMember has cognitive complexity 42 (threshold 15). Of this number, 37 points are the body's own statements and 5 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 · PackageSession.LoadFromBuildManifest (cognitive 42) · ×1
  • PackageSession.LoadFromBuildManifest (cognitive 42) sources/assets/Stride.Core.Assets/PackageSession.BuildManifest.cs:27 — PackageSession.LoadFromBuildManifest has cognitive complexity 42 (threshold 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 · EditorContentLoader.RefreshChangedAssetsAsync (cognitive 42) · ×1
  • EditorContentLoader.RefreshChangedAssetsAsync (cognitive 42) sources/editor/Stride.Assets.Editor/EditorGame/ContentLoader/EditorContentLoader.cs:555 — EditorContentLoader.RefreshChangedAssetsAsync has cognitive complexity 42 (threshold 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 · DockPanelService.BuildNode (cognitive 42) · ×1
  • DockPanelService.BuildNode (cognitive 42) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs:506 — DockPanelService.BuildNode has cognitive complexity 42 (threshold 15). 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 · CodeUpgrades.DispatcherCallbacksToStaticLambdas (cognitive 42) · ×1
  • CodeUpgrades.DispatcherCallbacksToStaticLambdas (cognitive 42) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:27 — CodeUpgrades.DispatcherCallbacksToStaticLambdas has cognitive complexity 42 (threshold 15). None of this is in the body itself: all 42 points belong to 2 function literals inside it that branch (lines 29, 63). 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 · SceneStreaming.Update (cognitive 42) · ×1
  • SceneStreaming.Update (cognitive 42) samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Gameplay/SceneStreaming.cs:52 — SceneStreaming.Update has cognitive complexity 42 (threshold 15). Of this number, 31 points are the body's own statements and 11 belong to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · UpdateEngineProcessor.ProcessSerializers (cognitive 42) · ×1
  • UpdateEngineProcessor.ProcessSerializers (cognitive 42) sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs:103 — UpdateEngineProcessor.ProcessSerializers has cognitive complexity 42 (threshold 15). Of this number, 35 points are the body's own statements and 7 belong to 7 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 · ModelDeformationRenderer.Schedule (cognitive 41) · ×1
  • ModelDeformationRenderer.Schedule (cognitive 41) sources/engine/Stride.Engine/Rendering/ModelDeformationRenderer.cs:137 — ModelDeformationRenderer.Schedule has cognitive complexity 41 (threshold 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 · MergeExtensions.MergeDrawData (cognitive 41) · ×1
  • MergeExtensions.MergeDrawData (cognitive 41) sources/engine/Stride.Rendering/Extensions/MergeExtensions.cs:21 — MergeExtensions.MergeDrawData has cognitive complexity 41 (threshold 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 · EditorContentLoader.CheckAssetsToReload (cognitive 41) · ×1
  • EditorContentLoader.CheckAssetsToReload (cognitive 41) sources/editor/Stride.Assets.Editor/EditorGame/ContentLoader/EditorContentLoader.cs:350 — EditorContentLoader.CheckAssetsToReload has cognitive complexity 41 (threshold 15). None of this is in the body itself: all 41 points belong to 2 function literals inside it that branch (lines 352, 436). 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 · VisualScriptMethodViewModel.UpdateSlots (cognitive 41) · ×1
  • VisualScriptMethodViewModel.UpdateSlots (cognitive 41) sources/editor/Stride.Assets.Presentation/ViewModels/VisualScriptMethodViewModel.cs:177 — VisualScriptMethodViewModel.UpdateSlots has cognitive complexity 41 (threshold 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 · TemplatePreprocessor.DumbPruneUnreachableAssets (cognitive 41) · ×1
  • TemplatePreprocessor.DumbPruneUnreachableAssets (cognitive 41) sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs:996 — TemplatePreprocessor.DumbPruneUnreachableAssets has cognitive complexity 41 (threshold 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 · AnimationBlender.CreateEvaluator (cognitive 40) · ×1
  • AnimationBlender.CreateEvaluator (cognitive 40) sources/engine/Stride.Engine/Animations/AnimationBlender.cs:34 — AnimationBlender.CreateEvaluator has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SPVGenerator.PreProcessOperands (cognitive 40) · ×1
  • SPVGenerator.PreProcessOperands (cognitive 40) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Naming.cs:93 — SPVGenerator.PreProcessOperands has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Scanner.ScanBlockScalar (cognitive 40) · ×1
  • Scanner.ScanBlockScalar (cognitive 40) sources/core/Stride.Core.Yaml/Scanner.cs:1307 — Scanner.ScanBlockScalar has cognitive complexity 40 (threshold 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 · MovePackageInsideProject.UpgradeAsset (cognitive 40) · ×1
  • MovePackageInsideProject.UpgradeAsset (cognitive 40) sources/assets/Stride.Core.Assets/Package.cs:1586 — MovePackageInsideProject.UpgradeAsset has cognitive complexity 40 (threshold 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 · PackageContainer.Save (cognitive 40) · ×1
  • PackageContainer.Save (cognitive 40) sources/assets/Stride.Core.Assets/PackageSession.cs:79 — PackageContainer.Save has cognitive complexity 40 (threshold 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 · PackageSession.FindDependencyVersionChanges (cognitive 40) · ×1
  • PackageSession.FindDependencyVersionChanges (cognitive 40) sources/assets/Stride.Core.Assets/PackageSession.DependencyVersions.cs:134 — PackageSession.FindDependencyVersionChanges has cognitive complexity 40 (threshold 15). Of this number, 38 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 · ViewportGridGizmo.UpdateGrids (cognitive 40) · ×1
  • ViewportGridGizmo.UpdateGrids (cognitive 40) sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/ViewportGridGizmo.cs:172 — ViewportGridGizmo.UpdateGrids has cognitive complexity 40 (threshold 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 · AssetEditorsManager.OpenAssetEditorWindow (cognitive 40) · ×1
  • AssetEditorsManager.OpenAssetEditorWindow (cognitive 40) sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs:312 — AssetEditorsManager.OpenAssetEditorWindow has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · CrashReportHelper.SendReport (cognitive 40) · ×1
  • CrashReportHelper.SendReport (cognitive 40) sources/editor/Stride.GameStudio/Helpers/CrashReportHelper.cs:27 — CrashReportHelper.SendReport has cognitive complexity 40 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EditText.InterpretKey (cognitive 40) · ×1
  • EditText.InterpretKey (cognitive 40) sources/plugins/UI/Stride.UI/Controls/EditText.Direct.cs:105 — EditText.InterpretKey has cognitive complexity 40 (threshold 15). 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 · UIRenderFeature.DrawInternal (cognitive 40) · ×1
  • UIRenderFeature.DrawInternal (cognitive 40) sources/plugins/UI/Stride.UI/Rendering/UI/UIRenderFeature.cs:83 — UIRenderFeature.DrawInternal has cognitive complexity 40 (threshold 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 · CameraProcessor.Draw (cognitive 39) · ×1
  • CameraProcessor.Draw (cognitive 39) sources/engine/Stride.Engine/Engine/Processors/CameraProcessor.cs:28 — CameraProcessor.Draw has cognitive complexity 39 (threshold 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 · ForwardRenderer.InitializeCore (cognitive 39) · ×1
  • ForwardRenderer.InitializeCore (cognitive 39) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.cs:129 — ForwardRenderer.InitializeCore has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · HeightfieldShape.EnumerateChildrenInAabb (cognitive 39) · ×1
  • HeightfieldShape.EnumerateChildrenInAabb (cognitive 39) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldShape.cs:320 — HeightfieldShape.EnumerateChildrenInAabb has cognitive complexity 39 (threshold 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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D2 · Cognitive Complexity · Grid.RebuildMeasureCacheData (cognitive 39) · ×1
  • Grid.RebuildMeasureCacheData (cognitive 39) sources/plugins/UI/Stride.UI/Panels/Grid.cs:601 — Grid.RebuildMeasureCacheData has cognitive complexity 39 (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.
D2 · Cognitive Complexity · PipelineState.CreatePipeline (cognitive 38) · ×1
  • PipelineState.CreatePipeline (cognitive 38) sources/engine/Stride.Graphics/Vulkan/PipelineState.Vulkan.cs:81 — PipelineState.CreatePipeline has cognitive complexity 38 (threshold 15). Of this number, 37 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SwapChainGraphicsPresenter.CreateSwapChain (cognitive 38) · ×1
  • SwapChainGraphicsPresenter.CreateSwapChain (cognitive 38) sources/engine/Stride.Graphics/Vulkan/SwapChainGraphicsPresenter.Vulkan.cs:416 — SwapChainGraphicsPresenter.CreateSwapChain has cognitive complexity 38 (threshold 15). Of this number, 37 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AccessorChainExpression.SetValue (cognitive 38) · ×1
  • AccessorChainExpression.SetValue (cognitive 38) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:915 — AccessorChainExpression.SetValue has cognitive complexity 38 (threshold 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 · FlowParsers.ForEach (cognitive 38) · ×1
  • FlowParsers.ForEach (cognitive 38) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/StatementParsers/StatementParsers.Flow.cs:173 — FlowParsers.ForEach has cognitive complexity 38 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ImageTester.CompareImage (cognitive 38) · ×1
  • ImageTester.CompareImage (cognitive 38) sources/engine/Stride.Graphics.Regression/ImageTester.cs:385 — ImageTester.CompareImage has cognitive complexity 38 (threshold 15). Of this number, 37 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 · AssetCollision.Clean (cognitive 38) · ×1
  • AssetCollision.Clean (cognitive 38) sources/assets/Stride.Core.Assets/Analysis/AssetCollision.cs:30 — AssetCollision.Clean has cognitive complexity 38 (threshold 15). Of this number, 36 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 · Trimming.ProcessTrimming (cognitive 38) · ×1
  • Trimming.ProcessTrimming (cognitive 38) sources/presentation/Stride.Core.Presentation.Wpf/Controls/Trimming.cs:125 — Trimming.ProcessTrimming has cognitive complexity 38 (threshold 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 · RunevisionTerrainCompileCommand.DoCommandOverride (cognitive 38) · ×1
  • RunevisionTerrainCompileCommand.DoCommandOverride (cognitive 38) sources/plugins/BepuPhysics/Stride.Heightfield.Assets/RunevisionTerrainAssetCompiler.cs:53 — RunevisionTerrainCompileCommand.DoCommandOverride has cognitive complexity 38 (threshold 15). Most of this is not in the body itself: 14 of the 38 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 176, 84, 120, …). 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 · NavigationMeshAssetCompiler.GetInputFiles (cognitive 38) · ×1
  • NavigationMeshAssetCompiler.GetInputFiles (cognitive 38) sources/plugins/BulletPhysics/Stride.Physics.Assets/Navigation/NavigationMeshAssetCompiler.cs:38 — NavigationMeshAssetCompiler.GetInputFiles has cognitive complexity 38 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · GamePlatform.FindBestDevices (cognitive 37) · ×1
  • GamePlatform.FindBestDevices (cognitive 37) sources/engine/Stride.Games/GamePlatform.cs:354 — GamePlatform.FindBestDevices has cognitive complexity 37 (threshold 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 · ShaderMixer.MergeMixinNode (cognitive 37) · ×1
  • ShaderMixer.MergeMixinNode (cognitive 37) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:376 — ShaderMixer.MergeMixinNode has cognitive complexity 37 (threshold 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 · MethodParser.Match (cognitive 37) · ×1
  • MethodParser.Match (cognitive 37) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderMethodParsers.cs:140 — MethodParser.Match has cognitive complexity 37 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · OperationComparer.Compare (cognitive 37) · ×1
  • OperationComparer.Compare (cognitive 37) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:65 — OperationComparer.Compare has cognitive complexity 37 (threshold 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 · SPVGenerator.GenerateEnumerantParameterSingle (cognitive 37) · ×1
  • SPVGenerator.GenerateEnumerantParameterSingle (cognitive 37) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.EnumerantParams.cs:147 — SPVGenerator.GenerateEnumerantParameterSingle has cognitive complexity 37 (threshold 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 · AssetPropertyGraph.ResolveObjectPath (cognitive 37) · ×1
  • AssetPropertyGraph.ResolveObjectPath (cognitive 37) sources/assets/Stride.Core.Assets.Quantum/AssetPropertyGraph.cs:328 — AssetPropertyGraph.ResolveObjectPath has cognitive complexity 37 (threshold 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 · ErrorRecoverySerializer.ReadYaml (cognitive 37) · ×1
  • ErrorRecoverySerializer.ReadYaml (cognitive 37) sources/assets/Stride.Core.Assets/Yaml/ErrorRecoverySerializer.cs:16 — ErrorRecoverySerializer.ReadYaml has cognitive complexity 37 (threshold 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 · MaterialViewModel.OnAssetPropertyChanged (cognitive 37) · ×1
  • MaterialViewModel.OnAssetPropertyChanged (cognitive 37) sources/editor/Stride.Assets.Presentation/ViewModels/MaterialViewModel.cs:35 — MaterialViewModel.OnAssetPropertyChanged has cognitive complexity 37 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · GameStudioAssemblyReloader.PostAssemblyReloading (cognitive 37) · ×1
  • GameStudioAssemblyReloader.PostAssemblyReloading (cognitive 37) sources/editor/Stride.Assets.Editor.Wpf/AssemblyReloading/GameStudioAssemblyReloader.cs:327 — GameStudioAssemblyReloader.PostAssemblyReloading has cognitive complexity 37 (threshold 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 · RoslynHelper.AnalyzeBlockFlow (cognitive 37) · ×1
  • RoslynHelper.AnalyzeBlockFlow (cognitive 37) sources/engine/Stride.Assets/Scripts/RoslynHelper.cs:15 — RoslynHelper.AnalyzeBlockFlow has cognitive complexity 37 (threshold 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 · AtlasTextureFactory.CreateTextureAtlas (cognitive 37) · ×1
  • AtlasTextureFactory.CreateTextureAtlas (cognitive 37) sources/engine/Stride.Assets/Textures/Packing/AtlasTextureFactory.cs:21 — AtlasTextureFactory.CreateTextureAtlas has cognitive complexity 37 (threshold 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 · InitialPositionParent.Initialize (cognitive 37) · ×1
  • InitialPositionParent.Initialize (cognitive 37) sources/plugins/Particles/Stride.Particles/Initializers/InitialPositionParent.cs:63 — InitialPositionParent.Initialize has cognitive complexity 37 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EncodeVideoFileCommand.DoCommandOverride (cognitive 37) · ×1
  • EncodeVideoFileCommand.DoCommandOverride (cognitive 37) REDACTED:73 — EncodeVideoFileCommand.DoCommandOverride has cognitive complexity 37 (threshold 15). 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 · MeshConverter.ProcessMorphAnimation (cognitive 37) · ×1
  • MeshConverter.ProcessMorphAnimation (cognitive 37) sources/tools/Stride.Importer.3D/MeshConverter.cs:693 — MeshConverter.ProcessMorphAnimation has cognitive complexity 37 (threshold 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 · Buffer.Recreate (cognitive 36) · ×1
  • Buffer.Recreate (cognitive 36) sources/engine/Stride.Graphics/Vulkan/Buffer.Vulkan.cs:72 — Buffer.Recreate has cognitive complexity 36 (threshold 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 · LightShafts.DrawCore (cognitive 36) · ×1
  • LightShafts.DrawCore (cognitive 36) sources/engine/Stride.Rendering/Rendering/Images/LightShafts/LightShafts.cs:136 — LightShafts.DrawCore has cognitive complexity 36 (threshold 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 · LightSpotGroupRenderer.ProcessLights (cognitive 36) · ×1
  • LightSpotGroupRenderer.ProcessLights (cognitive 36) sources/engine/Stride.Rendering/Rendering/Lights/LightSpotGroupRenderer.cs:133 — LightSpotGroupRenderer.ProcessLights has cognitive complexity 36 (threshold 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 · ParsersExtensions.IntrinsicDeclaration (cognitive 36) · ×1
  • ParsersExtensions.IntrinsicDeclaration (cognitive 36) sources/shaders/Stride.Shaders.Generators.Internal/Intrinsics/Parser.cs:380 — ParsersExtensions.IntrinsicDeclaration has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · OperandEnumerator.MoveNext (cognitive 36) · ×1
  • OperandEnumerator.MoveNext (cognitive 36) sources/shaders/Stride.Shaders.Spirv/Parsing/OperandEnumerator.cs:19 — OperandEnumerator.MoveNext has cognitive complexity 36 (threshold 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 · Builder.ScheduleBuildStep (cognitive 36) · ×1
  • Builder.ScheduleBuildStep (cognitive 36) sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:578 — Builder.ScheduleBuildStep has cognitive complexity 36 (threshold 15). Most of this is not in the body itself: 10 of the 36 points are its own statements and the rest belongs to one function literal inside it that branches (line 620). 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 · AssetObjectNodeExtended.OnItemChanged (cognitive 36) · ×1
  • AssetObjectNodeExtended.OnItemChanged (cognitive 36) sources/assets/Stride.Core.Assets.Quantum/Internal/AssetObjectNodeExtended.cs:297 — AssetObjectNodeExtended.OnItemChanged has cognitive complexity 36 (threshold 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 · GameProfiler.Execute (cognitive 36) · ×1
  • GameProfiler.Execute (cognitive 36) samples/Particles/ParticlesSample/ParticlesSample.Game/GameProfiler.cs:46 — GameProfiler.Execute has cognitive complexity 36 (threshold 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 · CharacterScript.Update (cognitive 36) · ×1
  • CharacterScript.Update (cognitive 36) samples/Physics/PhysicsSample/PhysicsSample.Game/CharacterScript.cs:91 — CharacterScript.Update has cognitive complexity 36 (threshold 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 · GraphicsAdapterFactoryInstance.GraphicsAdapterFactoryInstance.ctor (cognitive 35) · ×1
  • GraphicsAdapterFactoryInstance.GraphicsAdapterFactoryInstance.ctor (cognitive 35) sources/engine/Stride.Graphics/Vulkan/GraphicsAdapterFactory.Vulkan.cs:222 — GraphicsAdapterFactoryInstance.GraphicsAdapterFactoryInstance.ctor has cognitive complexity 35 (threshold 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 · BowyerWatsonTetrahedralization.CleanupUnusedTetrahedra (cognitive 35) · ×1
  • BowyerWatsonTetrahedralization.CleanupUnusedTetrahedra (cognitive 35) sources/engine/Stride.Rendering/Rendering/LightProbes/BowyerWatsonTetrahedralization.cs:303 — BowyerWatsonTetrahedralization.CleanupUnusedTetrahedra has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SPVGenerator.ConvertOperandsToParameters (cognitive 35) · ×1
  • SPVGenerator.ConvertOperandsToParameters (cognitive 35) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Naming.cs:160 — SPVGenerator.ConvertOperandsToParameters has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · CommandIOMonitor.CommandEnded (cognitive 35) · ×1
  • CommandIOMonitor.CommandEnded (cognitive 35) sources/buildengine/Stride.Core.BuildEngine.Common/CommandIOMonitor.cs:72 — CommandIOMonitor.CommandEnded has cognitive complexity 35 (threshold 15). Of this number, 30 points are the body's own statements and 5 belong to 5 function literals inside it that branch. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Project.GetDependencies (cognitive 35) · ×1
  • Project.GetDependencies (cognitive 35) REDACTED:130 — Project.GetDependencies has cognitive complexity 35 (threshold 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 · Scanner.FetchNextToken (cognitive 35) · ×1
  • Scanner.FetchNextToken (cognitive 35) sources/core/Stride.Core.Yaml/Scanner.cs:281 — Scanner.FetchNextToken has cognitive complexity 35 (threshold 15). 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 · AssetDependenciesCompiler.Prepare (cognitive 35) · ×1
  • AssetDependenciesCompiler.Prepare (cognitive 35) sources/assets/Stride.Core.Assets/Compiler/AssetDependenciesCompiler.cs:72 — AssetDependenciesCompiler.Prepare has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PackageSession.ContributeManifest (cognitive 35) · ×1
  • PackageSession.ContributeManifest (cognitive 35) sources/assets/Stride.Core.Assets/PackageSession.BuildManifest.cs:227 — PackageSession.ContributeManifest has cognitive complexity 35 (threshold 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 · SourceFilesCollector.VisitObjectMember (cognitive 35) · ×1
  • SourceFilesCollector.VisitObjectMember (cognitive 35) sources/assets/Stride.Core.Assets/Tracking/SourceFilesCollector.cs:43 — SourceFilesCollector.VisitObjectMember has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ScaleBar.AdjustUnitIntervalWithUnitSystem (cognitive 35) · ×1
  • ScaleBar.AdjustUnitIntervalWithUnitSystem (cognitive 35) sources/presentation/Stride.Core.Presentation.Wpf/Controls/ScaleBar.cs:842 — ScaleBar.AdjustUnitIntervalWithUnitSystem has cognitive complexity 35 (threshold 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 · MeshConverter.ProcessMorphTargets (cognitive 35) · ×1
  • MeshConverter.ProcessMorphTargets (cognitive 35) sources/tools/Stride.Importer.3D/MeshConverter.cs:1337 — MeshConverter.ProcessMorphTargets has cognitive complexity 35 (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.
D2 · Cognitive Complexity · TextureTool.GetAlphaLevels (cognitive 35) · ×1
  • TextureTool.GetAlphaLevels (cognitive 35) sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:759 — TextureTool.GetAlphaLevels has cognitive complexity 35 (threshold 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 · TouchInputsScript.Update (cognitive 35) · ×1
  • TouchInputsScript.Update (cognitive 35) samples/Input/TouchInputs/TouchInputs.Game/TouchInputsScript.cs:82 — TouchInputsScript.Update has cognitive complexity 35 (threshold 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 · CecilExtensions.InflateMethod (cognitive 35) · ×1
  • CecilExtensions.InflateMethod (cognitive 35) sources/core/Stride.Core.AssemblyProcessor/CecilExtensions.cs:666 — CecilExtensions.InflateMethod has cognitive complexity 35 (threshold 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 · Internals.Wait (cognitive 34) · ×1
  • Internals.Wait (cognitive 34) sources/core/Stride.Core/Threading/ThreadPool.SemaphoreW.cs:82 — Internals.Wait has cognitive complexity 34 (threshold 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 · EntityManager.CollectProcessors (cognitive 34) · ×1
  • EntityManager.CollectProcessors (cognitive 34) sources/engine/Stride.Engine/Engine/EntityManager.cs:389 — EntityManager.CollectProcessors has cognitive complexity 34 (threshold 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 · ForwardRenderer.CollectCore (cognitive 34) · ×1
  • ForwardRenderer.CollectCore (cognitive 34) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.cs:295 — ForwardRenderer.CollectCore has cognitive complexity 34 (threshold 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 · GraphicsDeviceManager.RankDevices (cognitive 34) · ×1
  • GraphicsDeviceManager.RankDevices (cognitive 34) sources/engine/Stride.Games/GraphicsDeviceManager.cs:728 — GraphicsDeviceManager.RankDevices has cognitive complexity 34 (threshold 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 · ShaderMixer.OffsetIds (cognitive 34) · ×1
  • ShaderMixer.OffsetIds (cognitive 34) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:1190 — ShaderMixer.OffsetIds has cognitive complexity 34 (threshold 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 · MethodCall.CompileImpl (cognitive 34) · ×1
  • MethodCall.CompileImpl (cognitive 34) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:280 — MethodCall.CompileImpl has cognitive complexity 34 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Emitter.SelectScalarStyle (cognitive 34) · ×1
  • Emitter.SelectScalarStyle (cognitive 34) sources/core/Stride.Core.Yaml/Emitter.cs:1442 — Emitter.SelectScalarStyle has cognitive complexity 34 (threshold 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 · CompressedSoundSource.ExtractAndFillData (cognitive 34) · ×1
  • CompressedSoundSource.ExtractAndFillData (cognitive 34) sources/plugins/Audio/Stride.Audio/CompressedSoundSource.cs:222 — CompressedSoundSource.ExtractAndFillData has cognitive complexity 34 (threshold 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 · DebugRenderProcessor.Draw (cognitive 34) · ×1
  • DebugRenderProcessor.Draw (cognitive 34) sources/plugins/BepuPhysics/Stride.BepuPhysics.Debug/DebugRenderProcessor.cs:139 — DebugRenderProcessor.Draw has cognitive complexity 34 (threshold 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 · Simulation.SendEvents (cognitive 34) · ×1
  • Simulation.SendEvents (cognitive 34) sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs:342 — Simulation.SendEvents has cognitive complexity 34 (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.
D2 · Cognitive Complexity · MeshConverter.ProcessMorphTarget (cognitive 34) · ×1
  • MeshConverter.ProcessMorphTarget (cognitive 34) sources/tools/Stride.Importer.3D/MeshConverter.cs:1403 — MeshConverter.ProcessMorphTarget has cognitive complexity 34 (threshold 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 · GameProfilerComponent.Execute (cognitive 34) · ×1
  • GameProfilerComponent.Execute (cognitive 34) samples/Physics/BepuSample/BepuSample.Game/Components/GameProfilerComponent.cs:52 — GameProfilerComponent.Execute has cognitive complexity 34 (threshold 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 · tableBuilder.displayTestResults (cognitive 34) · ×1
  • tableBuilder.displayTestResults (cognitive 34) sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:144 — tableBuilder.displayTestResults has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (29 pts), boolean chains 3, loops 1 (2 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 · MeshRenderFeature.Draw (cognitive 33) · ×1
  • MeshRenderFeature.Draw (cognitive 33) sources/engine/Stride.Rendering/Rendering/MeshRenderFeature.cs:171 — MeshRenderFeature.Draw has cognitive complexity 33 (threshold 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 · ShaderMixer.ProcessCompositions (cognitive 33) · ×1
  • ShaderMixer.ProcessCompositions (cognitive 33) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.ShaderSourceEvaluator.cs:247 — ShaderMixer.ProcessCompositions has cognitive complexity 33 (threshold 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 · TypeName.TryResolveType (cognitive 33) · ×1
  • TypeName.TryResolveType (cognitive 33) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:912 — TypeName.TryResolveType has cognitive complexity 33 (threshold 15). 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 · TypeDuplicateHelper.MergeTypeDecorations (cognitive 33) · ×1
  • TypeDuplicateHelper.MergeTypeDecorations (cognitive 33) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:347 — TypeDuplicateHelper.MergeTypeDecorations has cognitive complexity 33 (threshold 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 · TypeDuplicateHelper.ProcessSortedInstructions (cognitive 33) · ×1
  • TypeDuplicateHelper.ProcessSortedInstructions (cognitive 33) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:498 — TypeDuplicateHelper.ProcessSortedInstructions has cognitive complexity 33 (threshold 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 · SPVGenerator.PreProcessGrammar (cognitive 33) · ×1
  • SPVGenerator.PreProcessGrammar (cognitive 33) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:24 — SPVGenerator.PreProcessGrammar has cognitive complexity 33 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · BuildAssetNode.Analyze (cognitive 33) · ×1
  • BuildAssetNode.Analyze (cognitive 33) sources/assets/Stride.Core.Assets/Analysis/BuildAssetNode.cs:130 — BuildAssetNode.Analyze has cognitive complexity 33 (threshold 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 · Package.ListAssetFiles (cognitive 33) · ×1
  • Package.ListAssetFiles (cognitive 33) sources/assets/Stride.Core.Assets/Package.cs:1434 — Package.ListAssetFiles has cognitive complexity 33 (threshold 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 · DotNetNewTemplateParametersWindow.BuildOneRow (cognitive 33) · ×1
  • DotNetNewTemplateParametersWindow.BuildOneRow (cognitive 33) sources/editor/Stride.Assets.Editor.Wpf/Templates/DotNetNewTemplateParametersWindow.xaml.cs:199 — DotNetNewTemplateParametersWindow.BuildOneRow has cognitive complexity 33 (threshold 15). Of this number, 28 points are the body's own statements and 5 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 · CodeUpgrades.RemoveUnusedUsings (cognitive 33) · ×1
  • CodeUpgrades.RemoveUnusedUsings (cognitive 33) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.cs:510 — CodeUpgrades.RemoveUnusedUsings has cognitive complexity 33 (threshold 15). None of this is in the body itself: all 33 points belong to 2 function literals inside it that branch (lines 513, 541). 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 · SpriteSheetCommand.DoCommandOverride (cognitive 33) · ×1
  • SpriteSheetCommand.DoCommandOverride (cognitive 33) sources/engine/Stride.Assets/Sprite/SpriteSheetAssetCompiler.cs:155 — SpriteSheetCommand.DoCommandOverride has cognitive complexity 33 (threshold 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 · HeightmapConvertCommand.DoCommandOverride (cognitive 33) · ×1
  • HeightmapConvertCommand.DoCommandOverride (cognitive 33) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs:54 — HeightmapConvertCommand.DoCommandOverride has cognitive complexity 33 (threshold 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 · Program.Run (cognitive 33) · ×1
  • Program.Run (cognitive 33) sources/tools/Stride.TextureConverter/Frontend/Console/Program.cs:75 — Program.Run has cognitive complexity 33 (threshold 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 · TextureTool.ExecuteRequest (cognitive 33) · ×1
  • TextureTool.ExecuteRequest (cognitive 33) sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:1437 — TextureTool.ExecuteRequest has cognitive complexity 33 (threshold 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 · BasicCameraControllerComponent.ProcessInput (cognitive 33) · ×1
  • BasicCameraControllerComponent.ProcessInput (cognitive 33) samples/Physics/BepuSample/BepuSample.Game/Components/Camera/BasicCameraControllerComponent.cs:73 — BasicCameraControllerComponent.ProcessInput has cognitive complexity 33 (threshold 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 · LiteralsParser.TypeName (cognitive 32) · ×1
  • LiteralsParser.TypeName (cognitive 32) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/LiteralParsers.cs:90 — LiteralsParser.TypeName has cognitive complexity 32 (threshold 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 · InterfaceProcessor.RemoveGeometryStreamParameters (cognitive 32) · ×1
  • InterfaceProcessor.RemoveGeometryStreamParameters (cognitive 32) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:419 — InterfaceProcessor.RemoveGeometryStreamParameters has cognitive complexity 32 (threshold 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 · TypeConverterHelper.TryConvert (cognitive 32) · ×1
  • TypeConverterHelper.TryConvert (cognitive 32) sources/core/Stride.Core.Design/TypeConverters/TypeConverterHelper.cs:42 — TypeConverterHelper.TryConvert has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Scanner.ScanUriEscapes (cognitive 32) · ×1
  • Scanner.ScanUriEscapes (cognitive 32) sources/core/Stride.Core.Yaml/Scanner.cs:2151 — Scanner.ScanUriEscapes has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AbstractObjectInstantiator.InitializeTypeBuilderFromType (cognitive 32) · ×1
  • AbstractObjectInstantiator.InitializeTypeBuilderFromType (cognitive 32) sources/assets/Stride.Core.Assets/Reflection/AbstractObjectInstantiator.cs:58 — AbstractObjectInstantiator.InitializeTypeBuilderFromType has cognitive complexity 32 (threshold 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 · CharacterControllers.AnalyzeContacts (cognitive 32) · ×1
  • CharacterControllers.AnalyzeContacts (cognitive 32) sources/plugins/BepuPhysics/Stride.BepuPhysics/Systems/Characters/CharacterControllers.cs:756 — CharacterControllers.AnalyzeContacts has cognitive complexity 32 (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.
D2 · Cognitive Complexity · Materials.ConvertAssimpStackCppToCs (cognitive 32) · ×1
  • Materials.ConvertAssimpStackCppToCs (cognitive 32) sources/tools/Stride.Importer.3D/Material/Materials.cs:82 — Materials.ConvertAssimpStackCppToCs has cognitive complexity 32 (threshold 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 · MediaSynchronizer.Update (cognitive 31) · ×1
  • MediaSynchronizer.Update (cognitive 31) sources/engine/Stride.Foundation/Media/MediaSynchronizer.cs:251 — MediaSynchronizer.Update has cognitive complexity 31 (threshold 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 · CommandList.Copy (cognitive 31) · ×1
  • CommandList.Copy (cognitive 31) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:1488 — CommandList.Copy has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · CommandList.MapSubResource (cognitive 31) · ×1
  • CommandList.MapSubResource (cognitive 31) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:1976 — CommandList.MapSubResource has cognitive complexity 31 (threshold 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 · SplitExtensions.SplitMesh (cognitive 31) · ×1
  • SplitExtensions.SplitMesh (cognitive 31) sources/engine/Stride.Rendering/Extensions/SplitExtensions.cs:47 — SplitExtensions.SplitMesh has cognitive complexity 31 (threshold 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 · EffectSystem.GetShaderFromParameters (cognitive 31) · ×1
  • EffectSystem.GetShaderFromParameters (cognitive 31) sources/engine/Stride.Rendering/Rendering/EffectSystem.cs:362 — EffectSystem.GetShaderFromParameters has cognitive complexity 31 (threshold 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 · RenderSystem.Draw (cognitive 31) · ×1
  • RenderSystem.Draw (cognitive 31) sources/engine/Stride.Rendering/Rendering/RenderSystem.cs:461 — RenderSystem.Draw has cognitive complexity 31 (threshold 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 · ShaderMixer.CopyWithBuffers (cognitive 31) · ×1
  • ShaderMixer.CopyWithBuffers (cognitive 31) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.BufferParameters.cs:153 — ShaderMixer.CopyWithBuffers has cognitive complexity 31 (threshold 15). Of this number, 27 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShaderMethod.ProcessSymbol (cognitive 31) · ×1
  • ShaderMethod.ProcessSymbol (cognitive 31) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:441 — ShaderMethod.ProcessSymbol has cognitive complexity 31 (threshold 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 · SpirvBuilder.BuildInheritanceListWithoutSelf (cognitive 31) · ×1
  • SpirvBuilder.BuildInheritanceListWithoutSelf (cognitive 31) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:136 — SpirvBuilder.BuildInheritanceListWithoutSelf has cognitive complexity 31 (threshold 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 · SpirvContext.TryGetConstantValue (cognitive 31) · ×1
  • SpirvContext.TryGetConstantValue (cognitive 31) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Context.Constants.cs:46 — SpirvContext.TryGetConstantValue has cognitive complexity 31 (threshold 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 · TypeDuplicateHelper.ReplaceRefs (cognitive 31) · ×1
  • TypeDuplicateHelper.ReplaceRefs (cognitive 31) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/TypeDuplicatesHelper.cs:550 — TypeDuplicateHelper.ReplaceRefs has cognitive complexity 31 (threshold 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 · SPVGenerator.CreateOperation (cognitive 31) · ×1
  • SPVGenerator.CreateOperation (cognitive 31) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Buffers.cs:7 — SPVGenerator.CreateOperation has cognitive complexity 31 (threshold 15). Of this number, 30 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Emitter.EmitDocumentStart (cognitive 31) · ×1
  • Emitter.EmitDocumentStart (cognitive 31) sources/core/Stride.Core.Yaml/Emitter.cs:659 — Emitter.EmitDocumentStart has cognitive complexity 31 (threshold 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 · PackageBuilder.WriteContentAliases (cognitive 31) · ×1
  • PackageBuilder.WriteContentAliases (cognitive 31) sources/assets/Stride.AssetCompiler/PackageBuilder.cs:255 — PackageBuilder.WriteContentAliases has cognitive complexity 31 (threshold 15). Of this number, 29 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 · AssetQuantumRegistry.RegisterAssemblyLocked (cognitive 31) · ×1
  • AssetQuantumRegistry.RegisterAssemblyLocked (cognitive 31) sources/assets/Stride.Core.Assets.Quantum/AssetQuantumRegistry.cs:70 — AssetQuantumRegistry.RegisterAssemblyLocked has cognitive complexity 31 (threshold 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 · EditorGameLightProbeGizmoService.UpdateLightProbeWireframe (cognitive 31) · ×1
  • EditorGameLightProbeGizmoService.UpdateLightProbeWireframe (cognitive 31) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameLightProbeGizmoService.cs:222 — EditorGameLightProbeGizmoService.UpdateLightProbeWireframe has cognitive complexity 31 (threshold 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 · HorizontalAndVerticalAxisRenderer.RenderMajorItems (cognitive 31) · ×1
  • HorizontalAndVerticalAxisRenderer.RenderMajorItems (cognitive 31) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/HorizontalAndVerticalAxisRenderer.cs:238 — HorizontalAndVerticalAxisRenderer.RenderMajorItems has cognitive complexity 31 (threshold 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 · DragDropBehavior.OnDrop (cognitive 31) · ×1
  • DragDropBehavior.OnDrop (cognitive 31) sources/editor/Stride.Core.Assets.Editor.Wpf/View/Behaviors/DragDrop/DragDropBehavior.cs:474 — DragDropBehavior.OnDrop has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Program.Run (cognitive 31) · ×1
  • Program.Run (cognitive 31) sources/editor/Stride.GameStudio/Program.cs:130 — Program.Run has cognitive complexity 31 (threshold 15). Of this number, 28 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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.Update (cognitive 31) · ×1
  • ParticleSystem.Update (cognitive 31) sources/plugins/Particles/Stride.Particles/ParticleSystem.cs:226 — ParticleSystem.Update has cognitive complexity 31 (threshold 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 · ProcessorManager.RemoveComponent (cognitive 30) · ×1
  • ProcessorManager.RemoveComponent (cognitive 30) sources/engine/Stride.Engine/Engine/FlexibleProcessing/ProcessorManager.cs:110 — ProcessorManager.RemoveComponent has cognitive complexity 30 (threshold 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 · Texture.SetData (cognitive 30) · ×1
  • Texture.SetData (cognitive 30) sources/engine/Stride.Graphics/Texture.cs:1443 — Texture.SetData has cognitive complexity 30 (threshold 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 · ShaderMixer.ProcessClasses (cognitive 30) · ×1
  • ShaderMixer.ProcessClasses (cognitive 30) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.ShaderSourceEvaluator.cs:82 — ShaderMixer.ProcessClasses has cognitive complexity 30 (threshold 15). Of this number, 15 points are the body's own statements and 15 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 · CBuffer.ProcessAttributes (cognitive 30) · ×1
  • CBuffer.ProcessAttributes (cognitive 30) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.cs:270 — CBuffer.ProcessAttributes has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PostfixParser.Match (cognitive 30) · ×1
  • PostfixParser.Match (cognitive 30) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/UnaryParsers.Postfix.cs:13 — PostfixParser.Match has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SPVGenerator.GenerateInstructionStructsSingle (cognitive 30) · ×1
  • SPVGenerator.GenerateInstructionStructsSingle (cognitive 30) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Instructions.cs:54 — SPVGenerator.GenerateInstructionStructsSingle has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · LiteralValue.LiteralValue.ctor (cognitive 30) · ×1
  • LiteralValue.LiteralValue.ctor (cognitive 30) sources/shaders/Stride.Shaders.Spirv/Literals/LiteralValue.cs:52 — LiteralValue.LiteralValue.ctor has cognitive complexity 30 (threshold 15). 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 · VisualStudioVersions.BuildIDEInfos (cognitive 30) · ×1
  • VisualStudioVersions.BuildIDEInfos (cognitive 30) sources/core/Stride.Core.Design/CodeEditorSupport/VisualStudio/VisualStudioVersions.cs:19 — VisualStudioVersions.BuildIDEInfos has cognitive complexity 30 (threshold 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 · Emitter.WriteFoldedScalar (cognitive 30) · ×1
  • Emitter.WriteFoldedScalar (cognitive 30) sources/core/Stride.Core.Yaml/Emitter.cs:1084 — Emitter.WriteFoldedScalar has cognitive complexity 30 (threshold 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 · YamlAssemblyRegistry.RegisterAssembly (cognitive 30) · ×1
  • YamlAssemblyRegistry.RegisterAssembly (cognitive 30) sources/core/Stride.Core.Yaml/Serialization/YamlAssemblyRegistry.cs:97 — YamlAssemblyRegistry.RegisterAssembly has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EntityExtensions.CalculateBoundSphere (cognitive 30) · ×1
  • EntityExtensions.CalculateBoundSphere (cognitive 30) sources/editor/Stride.Editor/Engine/EntityExtensions.cs:65 — EntityExtensions.CalculateBoundSphere has cognitive complexity 30 (threshold 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 · DockPanelService.Apply (cognitive 30) · ×1
  • DockPanelService.Apply (cognitive 30) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs:403 — DockPanelService.Apply has cognitive complexity 30 (threshold 15). Of this number, 27 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RemoteFacilities.Launch (cognitive 30) · ×1
  • RemoteFacilities.Launch (cognitive 30) sources/editor/Stride.GameStudio/Remote/RemoteFacilities.cs:36 — RemoteFacilities.Launch has cognitive complexity 30 (threshold 15). Of this number, 22 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · VisualScriptCompilerContext.GenerateExpression (cognitive 30) · ×1
  • VisualScriptCompilerContext.GenerateExpression (cognitive 30) sources/engine/Stride.Assets/Scripts/VisualScriptCompiler.cs:99 — VisualScriptCompilerContext.GenerateExpression has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · InitialDefaultFields.Initialize (cognitive 30) · ×1
  • InitialDefaultFields.Initialize (cognitive 30) sources/plugins/Particles/Stride.Particles/Initializers/InitialDefaultFields.cs:17 — InitialDefaultFields.Initialize has cognitive complexity 30 (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.
D2 · Cognitive Complexity · UIRenderFeature.UpdateTouchEvents (cognitive 30) · ×1
  • UIRenderFeature.UpdateTouchEvents (cognitive 30) sources/plugins/UI/Stride.UI/Rendering/UI/UIRenderFeature.Picking.cs:137 — UIRenderFeature.UpdateTouchEvents has cognitive complexity 30 (threshold 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 · Image.CalculateImageArray (cognitive 29) · ×1
  • Image.CalculateImageArray (cognitive 29) sources/engine/Stride.Foundation/Graphics/Image.cs:1018 — Image.CalculateImageArray has cognitive complexity 29 (threshold 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 · Cone.New (cognitive 29) · ×1
  • Cone.New (cognitive 29) sources/engine/Stride.Graphics/GeometricPrimitives/GeometricPrimitive.Cone.cs:44 — Cone.New has cognitive complexity 29 (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.
D2 · Cognitive Complexity · PointLightShaderGroupData.ComputeViewParameter (cognitive 29) · ×1
  • PointLightShaderGroupData.ComputeViewParameter (cognitive 29) sources/engine/Stride.Rendering/Rendering/Lights/LightClusteredPointSpotGroupRenderer.cs:243 — PointLightShaderGroupData.ComputeViewParameter has cognitive complexity 29 (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.
D2 · Cognitive Complexity · LightGroupRendererShadow.ProcessLights (cognitive 29) · ×1
  • LightGroupRendererShadow.ProcessLights (cognitive 29) sources/engine/Stride.Rendering/Rendering/Lights/LightGroupRendererShadow.cs:131 — LightGroupRendererShadow.ProcessLights has cognitive complexity 29 (threshold 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 · SpirvTranslator.Translate (cognitive 29) · ×1
  • SpirvTranslator.Translate (cognitive 29) sources/shaders/Stride.Shaders.Compilers/SpirvTranslator.cs:64 — SpirvTranslator.Translate has cognitive complexity 29 (threshold 15). Of this number, 28 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 · SpirvBuilder.InstantiateMemberNames (cognitive 29) · ×1
  • SpirvBuilder.InstantiateMemberNames (cognitive 29) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:541 — SpirvBuilder.InstantiateMemberNames has cognitive complexity 29 (threshold 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 · SpirvBuilder.BinaryOperation (cognitive 29) · ×1
  • SpirvBuilder.BinaryOperation (cognitive 29) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:211 — SpirvBuilder.BinaryOperation has cognitive complexity 29 (threshold 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 · SPVGenerator.ConvertOperandsToParameterNames (cognitive 29) · ×1
  • SPVGenerator.ConvertOperandsToParameterNames (cognitive 29) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Naming.cs:211 — SPVGenerator.ConvertOperandsToParameterNames has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TreeViewItem.OnKeyDown (cognitive 29) · ×1
  • TreeViewItem.OnKeyDown (cognitive 29) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TreeViewItem.cs:240 — TreeViewItem.OnKeyDown has cognitive complexity 29 (threshold 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 · EditorGameRenderModeService.Update (cognitive 29) · ×1
  • EditorGameRenderModeService.Update (cognitive 29) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/EntityHierarchyEditor/Game/EditorGameRenderModeService.cs:75 — EditorGameRenderModeService.Update has cognitive complexity 29 (threshold 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 · ImportModelCommand.IsSubsetOf (cognitive 29) · ×1
  • ImportModelCommand.IsSubsetOf (cognitive 29) sources/engine/Stride.Assets.Models/ImportModelCommand.cs:200 — ImportModelCommand.IsSubsetOf has cognitive complexity 29 (threshold 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 · PrefabModelAssetCompileCommand.DoCommandOverride (cognitive 29) · ×1
  • PrefabModelAssetCompileCommand.DoCommandOverride (cognitive 29) sources/engine/Stride.Assets.Models/PrefabModelAssetCompiler.cs:299 — PrefabModelAssetCompileCommand.DoCommandOverride has cognitive complexity 29 (threshold 15). Of this number, 27 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 · RoslynCodeUpgradeRunner.RunAsync (cognitive 29) · ×1
  • RoslynCodeUpgradeRunner.RunAsync (cognitive 29) sources/engine/Stride.Assets/CodeUpgrade/RoslynCodeUpgradeRunner.cs:88 — RoslynCodeUpgradeRunner.RunAsync has cognitive complexity 29 (threshold 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 · StridePackageUpgrader.UpgradeProjectTo44 (cognitive 29) · ×1
  • StridePackageUpgrader.UpgradeProjectTo44 (cognitive 29) sources/engine/Stride.Assets/StridePackageUpgrader.cs:306 — StridePackageUpgrader.UpgradeProjectTo44 has cognitive complexity 29 (threshold 15). Of this number, 25 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LerpFunction.FillSamples (cognitive 29) · ×1
  • LerpFunction.FillSamples (cognitive 29) sources/plugins/BepuPhysics/Stride.Heightfield/RuntimeLayer/LerpRuntimeLayer.cs:119 — LerpFunction.FillSamples has cognitive complexity 29 (threshold 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 · StaticMeshColliderShape.BuildAndShareMeshes (cognitive 29) · ×1
  • StaticMeshColliderShape.BuildAndShareMeshes (cognitive 29) sources/plugins/BulletPhysics/Stride.Physics/Shapes/StaticMeshColliderShape.cs:109 — StaticMeshColliderShape.BuildAndShareMeshes has cognitive complexity 29 (threshold 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 · ParticleSystem.TryGetDebugDrawShape (cognitive 29) · ×1
  • ParticleSystem.TryGetDebugDrawShape (cognitive 29) sources/plugins/Particles/Stride.Particles/ParticleSystem.cs:64 — ParticleSystem.TryGetDebugDrawShape has cognitive complexity 29 (threshold 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 · RestoreHelper.ListAssemblies (cognitive 29) · ×1
  • RestoreHelper.ListAssemblies (cognitive 29) sources/shared/Stride.NuGetResolver/RestoreHelper.cs:26 — RestoreHelper.ListAssemblies has cognitive complexity 29 (threshold 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 · PropertyContainer.Set (cognitive 28) · ×1
  • PropertyContainer.Set (cognitive 28) sources/core/Stride.Core/PropertyContainer.cs:386 — PropertyContainer.Set has cognitive complexity 28 (threshold 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 · Dispatcher.SortOnThread (cognitive 28) · ×1
  • Dispatcher.SortOnThread (cognitive 28) sources/core/Stride.Core/Threading/Dispatcher.cs:217 — Dispatcher.SortOnThread has cognitive complexity 28 (threshold 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 · AssetUrlConstantsGenerator.CollectAssetTypes (cognitive 28) · ×1
  • AssetUrlConstantsGenerator.CollectAssetTypes (cognitive 28) sources/engine/Stride.Assets.Generators/AssetUrlConstantsGenerator.cs:260 — AssetUrlConstantsGenerator.CollectAssetTypes has cognitive complexity 28 (threshold 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 · VertexHelper.GenerateTangentBinormal (cognitive 28) · ×1
  • VertexHelper.GenerateTangentBinormal (cognitive 28) sources/engine/Stride.Graphics/VertexHelper.cs:231 — VertexHelper.GenerateTangentBinormal has cognitive complexity 28 (threshold 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 · IntrinsicCallHelper.CompileIntrinsic (cognitive 28) · ×1
  • IntrinsicCallHelper.CompileIntrinsic (cognitive 28) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/IntrinsicCall.cs:125 — IntrinsicCallHelper.CompileIntrinsic has cognitive complexity 28 (threshold 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 · TextureMethodsImplementations.CompileGetDimensions (cognitive 28) · ×1
  • TextureMethodsImplementations.CompileGetDimensions (cognitive 28) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/TextureMethodsImplementations.cs:365 — TextureMethodsImplementations.CompileGetDimensions has cognitive complexity 28 (threshold 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 · MatrixParser.Match (cognitive 28) · ×1
  • MatrixParser.Match (cognitive 28) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/LiteralParsers.cs:425 — MatrixParser.Match has cognitive complexity 28 (threshold 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 · NumberParser.Float (cognitive 28) · ×1
  • NumberParser.Float (cognitive 28) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/NumberParsers.cs:84 — NumberParser.Float has cognitive complexity 28 (threshold 15). 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 · OpData.ToString (cognitive 28) · ×1
  • OpData.ToString (cognitive 28) sources/shaders/Stride.Shaders.Spirv/Buffers/OpData.cs:101 — OpData.ToString has cognitive complexity 28 (threshold 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 · ImageThreshold.ResolveRule (cognitive 28) · ×1
  • ImageThreshold.ResolveRule (cognitive 28) sources/engine/Stride.Graphics.Regression/ImageThreshold.cs:131 — ImageThreshold.ResolveRule has cognitive complexity 28 (threshold 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 · PackageBuilder.SaveBuildUpToDateFile (cognitive 28) · ×1
  • PackageBuilder.SaveBuildUpToDateFile (cognitive 28) sources/assets/Stride.AssetCompiler/PackageBuilder.cs:306 — PackageBuilder.SaveBuildUpToDateFile has cognitive complexity 28 (threshold 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 · AssetCompositeHierarchyPropertyGraph.UpdateAssetPartBases (cognitive 28) · ×1
  • AssetCompositeHierarchyPropertyGraph.UpdateAssetPartBases (cognitive 28) sources/assets/Stride.Core.Assets.Quantum/AssetCompositeHierarchyPropertyGraph.cs:604 — AssetCompositeHierarchyPropertyGraph.UpdateAssetPartBases has cognitive complexity 28 (threshold 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 · AssetNodeMetadataCollectorBase.ConvertPath (cognitive 28) · ×1
  • AssetNodeMetadataCollectorBase.ConvertPath (cognitive 28) sources/assets/Stride.Core.Assets.Quantum/Visitors/AssetNodeMetadataCollectorBase.cs:65 — AssetNodeMetadataCollectorBase.ConvertPath has cognitive complexity 28 (threshold 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 · IdentifiableObjectAnalysis.Visit (cognitive 28) · ×1
  • IdentifiableObjectAnalysis.Visit (cognitive 28) sources/assets/Stride.Core.Assets/Analysis/IdentifiableObjectAnalysis.cs:24 — IdentifiableObjectAnalysis.Visit has cognitive complexity 28 (threshold 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 · ToolBarOverflowPanel.MeasureOverride (cognitive 28) · ×1
  • ToolBarOverflowPanel.MeasureOverride (cognitive 28) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarOverflowPanel.cs:41 — ToolBarOverflowPanel.MeasureOverride has cognitive complexity 28 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ToolBarTray.MeasureOverride (cognitive 28) · ×1
  • ToolBarTray.MeasureOverride (cognitive 28) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarTray.cs:64 — ToolBarTray.MeasureOverride has cognitive complexity 28 (threshold 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 · TilePanelNavigationBehavior.OnAssociatedObjectKeyDown (cognitive 28) · ×1
  • TilePanelNavigationBehavior.OnAssociatedObjectKeyDown (cognitive 28) sources/presentation/Stride.Core.Presentation.Wpf/Behaviors/TilePanelNavigationBehavior.cs:48 — TilePanelNavigationBehavior.OnAssociatedObjectKeyDown has cognitive complexity 28 (threshold 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 · VirtualizingTreePanel.ArrangeOverride (cognitive 28) · ×1
  • VirtualizingTreePanel.ArrangeOverride (cognitive 28) sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:376 — VirtualizingTreePanel.ArrangeOverride has cognitive complexity 28 (threshold 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 · GameEditorChangePropagator.Propagate (cognitive 28) · ×1
  • GameEditorChangePropagator.Propagate (cognitive 28) sources/editor/Stride.Assets.Editor/EditorGame/GameEditorChangePropagator.cs:265 — GameEditorChangePropagator.Propagate has cognitive complexity 28 (threshold 15). Of this number, 22 points are the body's own statements and 6 belong to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · InitialOrderParent.Initialize (cognitive 28) · ×1
  • InitialOrderParent.Initialize (cognitive 28) sources/plugins/Particles/Stride.Particles/Initializers/InitialOrderParent.cs:36 — InitialOrderParent.Initialize has cognitive complexity 28 (threshold 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 · CollisionHelper.RayIntersectsBox (cognitive 27) · ×1
  • CollisionHelper.RayIntersectsBox (cognitive 27) sources/core/Stride.Core.Mathematics/CollisionHelper.cs:803 — CollisionHelper.RayIntersectsBox has cognitive complexity 27 (threshold 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 · ContentManager.ThrowAssetNotFound (cognitive 27) · ×1
  • ContentManager.ThrowAssetNotFound (cognitive 27) sources/core/Stride.Core.Serialization/Serialization/Contents/ContentManager.cs:668 — ContentManager.ThrowAssetNotFound has cognitive complexity 27 (threshold 15). Of this number, 26 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ProcessorManager.IntroduceComponent (cognitive 27) · ×1
  • ProcessorManager.IntroduceComponent (cognitive 27) sources/engine/Stride.Engine/Engine/FlexibleProcessing/ProcessorManager.cs:46 — ProcessorManager.IntroduceComponent has cognitive complexity 27 (threshold 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 · Image.SetupImageArray (cognitive 27) · ×1
  • Image.SetupImageArray (cognitive 27) sources/engine/Stride.Foundation/Graphics/Image.cs:1081 — Image.SetupImageArray has cognitive complexity 27 (threshold 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 · Predicates.fast_expansion_sum_zeroelim (cognitive 27) · ×1
  • Predicates.fast_expansion_sum_zeroelim (cognitive 27) sources/engine/Stride.Rendering/Rendering/LightProbes/Predicates.cs:829 — Predicates.fast_expansion_sum_zeroelim has cognitive complexity 27 (threshold 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 · ComputeTextureBase.GenerateShaderSource (cognitive 27) · ×1
  • ComputeTextureBase.GenerateShaderSource (cognitive 27) sources/engine/Stride.Rendering/Rendering/Materials/ComputeColors/ComputeTextureBase.cs:178 — ComputeTextureBase.GenerateShaderSource has cognitive complexity 27 (threshold 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 · PrefixExpression.CompileImpl (cognitive 27) · ×1
  • PrefixExpression.CompileImpl (cognitive 27) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:653 — PrefixExpression.CompileImpl has cognitive complexity 27 (threshold 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 · SpirvBuilder.ContainIds (cognitive 27) · ×1
  • SpirvBuilder.ContainIds (cognitive 27) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Class.cs:644 — SpirvBuilder.ContainIds has cognitive complexity 27 (threshold 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 · CameraOrientationGizmo.Create (cognitive 27) · ×1
  • CameraOrientationGizmo.Create (cognitive 27) sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/CameraOrientationGizmo.cs:241 — CameraOrientationGizmo.Create has cognitive complexity 27 (threshold 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 · VisualScriptEditorViewModel.TriggerBackgroundCompilation (cognitive 27) · ×1
  • VisualScriptEditorViewModel.TriggerBackgroundCompilation (cognitive 27) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.Diagnostics.cs:38 — VisualScriptEditorViewModel.TriggerBackgroundCompilation has cognitive complexity 27 (threshold 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 · ModelComponentViewModel.UpdateNodePresenter (cognitive 27) · ×1
  • ModelComponentViewModel.UpdateNodePresenter (cognitive 27) sources/editor/Stride.Assets.Editor.Wpf/ViewModel/ModelComponentViewModel.cs:80 — ModelComponentViewModel.UpdateNodePresenter has cognitive complexity 27 (threshold 15). Of this number, 21 points are the body's own statements and 6 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 · CodeUpgrades.GetArgumentNameColons (cognitive 27) · ×1
  • CodeUpgrades.GetArgumentNameColons (cognitive 27) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.cs:390 — CodeUpgrades.GetArgumentNameColons has cognitive complexity 27 (threshold 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 · CodeUpgrades.MoveCallback (cognitive 27) · ×1
  • CodeUpgrades.MoveCallback (cognitive 27) sources/engine/Stride.Assets/CodeUpgrade/CodeUpgrades.Dispatcher.cs:141 — CodeUpgrades.MoveCallback has cognitive complexity 27 (threshold 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 · ConvexHeightfieldCollisionTask.ExecuteBatch (cognitive 27) · ×1
  • ConvexHeightfieldCollisionTask.ExecuteBatch (cognitive 27) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldCollisionTasks.cs:72 — ConvexHeightfieldCollisionTask.ExecuteBatch has cognitive complexity 27 (threshold 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 · ConvexHullDecompositionParametersUpgrader.UpgradeAsset (cognitive 27) · ×1
  • ConvexHullDecompositionParametersUpgrader.UpgradeAsset (cognitive 27) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/ColliderShapeAsset.cs:42 — ConvexHullDecompositionParametersUpgrader.UpgradeAsset has cognitive complexity 27 (threshold 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 · ConvexHullColliderShapeDesc.CreateShape (cognitive 27) · ×1
  • ConvexHullColliderShapeDesc.CreateShape (cognitive 27) sources/plugins/BulletPhysics/Stride.Physics/Data/ConvexHullColliderShapeDesc.cs:80 — ConvexHullColliderShapeDesc.CreateShape has cognitive complexity 27 (threshold 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 · Simulation.ClearCollisionDataOf (cognitive 27) · ×1
  • Simulation.ClearCollisionDataOf (cognitive 27) sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs:260 — Simulation.ClearCollisionDataOf has cognitive complexity 27 (threshold 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 · UIEditorGameAdornerService.TouchMove (cognitive 27) · ×1
  • UIEditorGameAdornerService.TouchMove (cognitive 27) sources/plugins/UI/Stride.UI.Editor/Game/UIEditorGameAdornerService.Events.cs:126 — UIEditorGameAdornerService.TouchMove has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MeshConverter.GenerateOneTextureTypeLayers (cognitive 27) · ×1
  • MeshConverter.GenerateOneTextureTypeLayers (cognitive 27) sources/tools/Stride.Importer.3D/MeshConverter.cs:1822 — MeshConverter.GenerateOneTextureTypeLayers has cognitive complexity 27 (threshold 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 · CrashCommand.Create (cognitive 27) · ×1
  • CrashCommand.Create (cognitive 27) sources/launcher/Stride.Cli/CrashCommand.cs:11 — CrashCommand.Create has cognitive complexity 27 (threshold 15). None of this is in the body itself: all 27 points belong to 3 function literals inside it that branch (lines 19, 58, 91). 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 · RecentProjectViewModel.UpdateOpenOptions (cognitive 27) · ×1
  • RecentProjectViewModel.UpdateOpenOptions (cognitive 27) REDACTED:309 — RecentProjectViewModel.UpdateOpenOptions has cognitive complexity 27 (threshold 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 · GeoSphereData.Create (cognitive 26) · ×1
  • GeoSphereData.Create (cognitive 26) sources/engine/Stride.Graphics/GeometricPrimitives/GeometricPrimitive.GeoSphere.cs:172 — GeoSphereData.Create has cognitive complexity 26 (threshold 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 · CommandList.CopyRegion (cognitive 26) · ×1
  • CommandList.CopyRegion (cognitive 26) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:1662 — CommandList.CopyRegion has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PipelineState.CreatePipelineLayout (cognitive 26) · ×1
  • PipelineState.CreatePipelineLayout (cognitive 26) sources/engine/Stride.Graphics/Vulkan/PipelineState.Vulkan.cs:308 — PipelineState.CreatePipelineLayout has cognitive complexity 26 (threshold 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 · ForwardLightingRenderFeature.Prepare (cognitive 26) · ×1
  • ForwardLightingRenderFeature.Prepare (cognitive 26) sources/engine/Stride.Rendering/Rendering/Lights/ForwardLightingRenderFeature.cs:385 — ForwardLightingRenderFeature.Prepare has cognitive complexity 26 (threshold 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 · ShaderMixer.RenameVariables (cognitive 26) · ×1
  • ShaderMixer.RenameVariables (cognitive 26) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.Reflection.cs:162 — ShaderMixer.RenameVariables has cognitive complexity 26 (threshold 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 · IntrinParser.Parse (cognitive 26) · ×1
  • IntrinParser.Parse (cognitive 26) sources/shaders/Stride.Shaders.Generators.Internal/Intrinsics/Parser.cs:475 — IntrinParser.Parse has cognitive complexity 26 (threshold 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 · YamlAssemblyRegistry.GetGenericArgumentsAndArrayDimension (cognitive 26) · ×1
  • YamlAssemblyRegistry.GetGenericArgumentsAndArrayDimension (cognitive 26) sources/core/Stride.Core.Yaml/Serialization/YamlAssemblyRegistry.cs:388 — YamlAssemblyRegistry.GetGenericArgumentsAndArrayDimension has cognitive complexity 26 (threshold 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 · PackageSession.DetectPendingCodeUpgrades (cognitive 26) · ×1
  • PackageSession.DetectPendingCodeUpgrades (cognitive 26) sources/assets/Stride.Core.Assets/PackageSession.Dependencies.cs:109 — PackageSession.DetectPendingCodeUpgrades has cognitive complexity 26 (threshold 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 · SortedObservableCollection.SortedObservableCollection.ctor (cognitive 26) · ×1
  • SortedObservableCollection.SortedObservableCollection.ctor (cognitive 26) sources/presentation/Stride.Core.Presentation/Collections/SortedObservableCollection.cs:35 — SortedObservableCollection.SortedObservableCollection.ctor has cognitive complexity 26 (threshold 15). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 52, 71). 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 · EntityHierarchyItemViewModel.MoveChildren (cognitive 26) · ×1
  • EntityHierarchyItemViewModel.MoveChildren (cognitive 26) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:524 — EntityHierarchyItemViewModel.MoveChildren has cognitive complexity 26 (threshold 15). Of this number, 23 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AssetCompositeHierarchyEditorViewModel.CreateAssetFromSelectedParts (cognitive 26) · ×1
  • AssetCompositeHierarchyEditorViewModel.CreateAssetFromSelectedParts (cognitive 26) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCompositeHierarchyEditorViewModel.cs:266 — AssetCompositeHierarchyEditorViewModel.CreateAssetFromSelectedParts has cognitive complexity 26 (threshold 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 · TreeViewDragDropBehavior.GetDropTarget (cognitive 26) · ×1
  • TreeViewDragDropBehavior.GetDropTarget (cognitive 26) sources/editor/Stride.Core.Assets.Editor.Avalonia/DragDrop/TreeViewDragDropBehavior.cs:160 — TreeViewDragDropBehavior.GetDropTarget has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Color4CurveViewModel.UpdateMaxMin (cognitive 26) · ×1
  • Color4CurveViewModel.UpdateMaxMin (cognitive 26) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/ColorCurveViewModel.cs:106 — Color4CurveViewModel.UpdateMaxMin has cognitive complexity 26 (threshold 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 · RotationCurveViewModel.UpdateMaxMin (cognitive 26) · ×1
  • RotationCurveViewModel.UpdateMaxMin (cognitive 26) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/RotationCurveViewModel.cs:147 — RotationCurveViewModel.UpdateMaxMin has cognitive complexity 26 (threshold 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 · Vector2CurveViewModel.UpdateMaxMin (cognitive 26) · ×1
  • Vector2CurveViewModel.UpdateMaxMin (cognitive 26) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs:99 — Vector2CurveViewModel.UpdateMaxMin has cognitive complexity 26 (threshold 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. This shape REPEATS in the file: 2 other methods here (Vector3CurveViewModel.UpdateMaxMin, Vector4CurveViewModel.UpdateMaxMin) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · Vector3CurveViewModel.UpdateMaxMin (cognitive 26) · ×1
  • Vector3CurveViewModel.UpdateMaxMin (cognitive 26) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs:249 — Vector3CurveViewModel.UpdateMaxMin has cognitive complexity 26 (threshold 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. This shape REPEATS in the file: 2 other methods here (Vector2CurveViewModel.UpdateMaxMin, Vector4CurveViewModel.UpdateMaxMin) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · Vector4CurveViewModel.UpdateMaxMin (cognitive 26) · ×1
  • Vector4CurveViewModel.UpdateMaxMin (cognitive 26) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/VectorCurveViewModel.cs:403 — Vector4CurveViewModel.UpdateMaxMin has cognitive complexity 26 (threshold 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. This shape REPEATS in the file: 2 other methods here (Vector2CurveViewModel.UpdateMaxMin, Vector3CurveViewModel.UpdateMaxMin) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · FreeTypeFontImporter.ImportGlyph (cognitive 26) · ×1
  • FreeTypeFontImporter.ImportGlyph (cognitive 26) sources/engine/Stride.Assets/SpriteFont/Compiler/FreeTypeFontImporter.cs:92 — FreeTypeFontImporter.ImportGlyph has cognitive complexity 26 (threshold 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 · DotNetNewTemplateBridge.RegisterNewTemplates (cognitive 26) · ×1
  • DotNetNewTemplateBridge.RegisterNewTemplates (cognitive 26) sources/engine/Stride.Assets/Templates/DotNetNewTemplateBridge.cs:229 — DotNetNewTemplateBridge.RegisterNewTemplates has cognitive complexity 26 (threshold 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 · ColliderShapeAssetCompiler.GetInputFiles (cognitive 26) · ×1
  • ColliderShapeAssetCompiler.GetInputFiles (cognitive 26) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/ColliderShapeAssetCompiler.cs:54 — ColliderShapeAssetCompiler.GetInputFiles has cognitive complexity 26 (threshold 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 · PhysicsShapesRenderingService.CreateChildEntity (cognitive 26) · ×1
  • PhysicsShapesRenderingService.CreateChildEntity (cognitive 26) sources/plugins/BulletPhysics/Stride.Physics/Engine/PhysicsShapesRenderingService.cs:121 — PhysicsShapesRenderingService.CreateChildEntity has cognitive complexity 26 (threshold 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 · Ribbonizer.Ribbonize (cognitive 26) · ×1
  • Ribbonizer.Ribbonize (cognitive 26) sources/plugins/Particles/Stride.Particles/ShapeBuilders/ShapeBuilderTrail.cs:365 — Ribbonizer.Ribbonize has cognitive complexity 26 (threshold 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 · CSharpExtractor.ExtractPattern (cognitive 26) · ×1
  • CSharpExtractor.ExtractPattern (cognitive 26) sources/tools/Stride.Core.Translation.Extractor/Extractors/CSharpExtractor.cs:114 — CSharpExtractor.ExtractPattern has cognitive complexity 26 (threshold 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 · top-level statements (cognitive 26) · ×1
  • top-level statements (cognitive 26) sources/tools/Stride.Shaders.CorpusCapture/Program.cs:17 — top-level statements has cognitive complexity 26 (threshold 15). Of this number, 20 points are the body's own statements and 6 belong to 3 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · TextureTool.FindSpriteRegion (cognitive 26) · ×1
  • TextureTool.FindSpriteRegion (cognitive 26) sources/tools/Stride.TextureConverter/Frontend/TextureTool.cs:870 — TextureTool.FindSpriteRegion has cognitive complexity 26 (threshold 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 · SelfUpdater.UpdateLauncherFiles (cognitive 26) · ×1
  • SelfUpdater.UpdateLauncherFiles (cognitive 26) sources/launcher/Stride.Launcher/Services/SelfUpdater.cs:208 — SelfUpdater.UpdateLauncherFiles has cognitive complexity 26 (threshold 15). Of this number, 18 points are the body's own statements and 8 belong to 5 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · PlayerInput.Update (cognitive 26) · ×1
  • PlayerInput.Update (cognitive 26) samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Player/PlayerInput.cs:37 — PlayerInput.Update has cognitive complexity 26 (threshold 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 · Matrix.ReducedRowEchelonForm (cognitive 25) · ×1
  • Matrix.ReducedRowEchelonForm (cognitive 25) sources/core/Stride.Core.Mathematics/Matrix.cs:1783 — Matrix.ReducedRowEchelonForm has cognitive 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.
D2 · Cognitive Complexity · AnimationBlender.Blend (cognitive 25) · ×1
  • AnimationBlender.Blend (cognitive 25) sources/engine/Stride.Engine/Animations/AnimationBlender.cs:155 — AnimationBlender.Blend has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SharedMesh.SharedMesh.ctor (cognitive 25) · ×1
  • SharedMesh.SharedMesh.ctor (cognitive 25) sources/engine/Stride.Engine/Rendering/ModelDeformationRenderer.cs:482 — SharedMesh.SharedMesh.ctor has cognitive complexity 25 (threshold 15). Of this number, 21 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · ImageMultiScaler.PrepareScaling (cognitive 25) · ×1
  • ImageMultiScaler.PrepareScaling (cognitive 25) sources/engine/Stride.Rendering/Rendering/Images/ImageScaler/ImageMultiScaler.cs:103 — ImageMultiScaler.PrepareScaling has cognitive complexity 25 (threshold 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 · LocalReflections.DrawCore (cognitive 25) · ×1
  • LocalReflections.DrawCore (cognitive 25) sources/engine/Stride.Rendering/Rendering/Images/LocalReflections/LocalReflections.cs:457 — LocalReflections.DrawCore has cognitive complexity 25 (threshold 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 · MaterialNormalMapFeature.GenerateShader (cognitive 25) · ×1
  • MaterialNormalMapFeature.GenerateShader (cognitive 25) sources/engine/Stride.Rendering/Rendering/Materials/MaterialNormalMapFeature.cs:81 — MaterialNormalMapFeature.GenerateShader has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · LightDirectionalShadowMapRenderer.Collect (cognitive 25) · ×1
  • LightDirectionalShadowMapRenderer.Collect (cognitive 25) sources/engine/Stride.Rendering/Rendering/Shadows/LightDirectionalShadowMapRenderer.cs:118 — LightDirectionalShadowMapRenderer.Collect has cognitive complexity 25 (threshold 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 · OpenXRInput.Initialize (cognitive 25) · ×1
  • OpenXRInput.Initialize (cognitive 25) sources/engine/Stride.VirtualReality/OpenXR/OpenXRInput.cs:217 — OpenXRInput.Initialize has cognitive 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.
D2 · Cognitive Complexity · ShaderMixer.ExpandForeach (cognitive 25) · ×1
  • ShaderMixer.ExpandForeach (cognitive 25) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:887 — ShaderMixer.ExpandForeach has cognitive complexity 25 (threshold 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 · Parsers.VariableModifiers (cognitive 25) · ×1
  • Parsers.VariableModifiers (cognitive 25) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/Common/CommonParsers.cs:130 — Parsers.VariableModifiers has cognitive complexity 25 (threshold 15). 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 · BufferParsers.CBuffer (cognitive 25) · ×1
  • BufferParsers.CBuffer (cognitive 25) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderBufferParsers.cs:59 — BufferParsers.CBuffer has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: one other method here (BufferParsers.RGroup) 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 · BufferParsers.RGroup (cognitive 25) · ×1
  • BufferParsers.RGroup (cognitive 25) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderBufferParsers.cs:98 — BufferParsers.RGroup has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function. This shape REPEATS in the file: one other method here (BufferParsers.CBuffer) 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 · SpirvBuilder.CanConvertScore (cognitive 25) · ×1
  • SpirvBuilder.CanConvertScore (cognitive 25) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Builder.Expressions.cs:387 — SpirvBuilder.CanConvertScore has cognitive complexity 25 (threshold 15). 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 · SettingsContainer.ChangeCurrentProfile (cognitive 25) · ×1
  • SettingsContainer.ChangeCurrentProfile (cognitive 25) sources/core/Stride.Core.Design/Settings/SettingsContainer.cs:386 — SettingsContainer.ChangeCurrentProfile has cognitive complexity 25 (threshold 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 · MemberPath.Apply (cognitive 25) · ×1
  • MemberPath.Apply (cognitive 25) sources/core/Stride.Core.Reflection/MemberPath.cs:220 — MemberPath.Apply has cognitive complexity 25 (threshold 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 · TagTypeSerializer.ReadYaml (cognitive 25) · ×1
  • TagTypeSerializer.ReadYaml (cognitive 25) sources/core/Stride.Core.Yaml/Serialization/Serializers/TagTypeSerializer.cs:55 — TagTypeSerializer.ReadYaml has cognitive complexity 25 (threshold 15). 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 · Package.LoadAssemblyReferenceInternal (cognitive 25) · ×1
  • Package.LoadAssemblyReferenceInternal (cognitive 25) sources/assets/Stride.Core.Assets/Package.cs:1234 — Package.LoadAssemblyReferenceInternal has cognitive complexity 25 (threshold 15). Of this number, 23 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BindableSelectedItemsBehavior.CollectionSelectionChanged (cognitive 25) · ×1
  • BindableSelectedItemsBehavior.CollectionSelectionChanged (cognitive 25) sources/presentation/Stride.Core.Presentation.Wpf/Behaviors/BindableSelectedItemsBehavior.cs:218 — BindableSelectedItemsBehavior.CollectionSelectionChanged has cognitive complexity 25 (threshold 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 · SceneRootViewModel.OnLoadingRequested (cognitive 25) · ×1
  • SceneRootViewModel.OnLoadingRequested (cognitive 25) sources/editor/Stride.Assets.Presentation/ViewModels/SceneRootViewModel.cs:176 — SceneRootViewModel.OnLoadingRequested has cognitive complexity 25 (threshold 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 · AssetCollectionViewModel.AddFilesAsync (cognitive 25) · ×1
  • AssetCollectionViewModel.AddFilesAsync (cognitive 25) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.AddAssets.cs:108 — AssetCollectionViewModel.AddFilesAsync has cognitive complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VisualScriptCompilerContext.BuildGlobalConnectivityCache (cognitive 25) · ×1
  • VisualScriptCompilerContext.BuildGlobalConnectivityCache (cognitive 25) sources/engine/Stride.Assets/Scripts/VisualScriptCompiler.cs:376 — VisualScriptCompilerContext.BuildGlobalConnectivityCache has cognitive complexity 25 (threshold 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 · TemplatePreprocessor.SubstituteEngineVersion (cognitive 25) · ×1
  • TemplatePreprocessor.SubstituteEngineVersion (cognitive 25) sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs:458 — TemplatePreprocessor.SubstituteEngineVersion has cognitive complexity 25 (threshold 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 · NavigationProcessor.DynamicNavigationMeshSystemOnNavigationMeshUpdatedUpdated (cognitive 25) · ×1
  • NavigationProcessor.DynamicNavigationMeshSystemOnNavigationMeshUpdatedUpdated (cognitive 25) sources/plugins/BulletPhysics/Stride.Navigation/Processors/NavigationProcessor.cs:91 — NavigationProcessor.DynamicNavigationMeshSystemOnNavigationMeshUpdatedUpdated has cognitive complexity 25 (threshold 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 · DefaultSliderRenderer.RenderColor (cognitive 25) · ×1
  • DefaultSliderRenderer.RenderColor (cognitive 25) sources/plugins/UI/Stride.UI/Renderers/DefaultSliderRenderer.cs:22 — DefaultSliderRenderer.RenderColor has cognitive complexity 25 (threshold 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 · MainView.OnKeyDown (cognitive 25) · ×1
  • MainView.OnKeyDown (cognitive 25) sources/tests/xunit.runner.stride/Views/MainView.axaml.cs:169 — MainView.OnKeyDown has cognitive complexity 25 (threshold 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 · XamlExtractor.ExtractFromAttributeValue (cognitive 25) · ×1
  • XamlExtractor.ExtractFromAttributeValue (cognitive 25) sources/tools/Stride.Core.Translation.Extractor/Extractors/XamlExtractor.cs:115 — XamlExtractor.ExtractFromAttributeValue has cognitive complexity 25 (threshold 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 · ClaudeVisionFallback.Compare (cognitive 25) · ×1
  • ClaudeVisionFallback.Compare (cognitive 25) tests/infra/Stride.ScreenshotComparator/ClaudeVisionFallback.cs:57 — ClaudeVisionFallback.Compare has cognitive complexity 25 (threshold 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 · ScreenshotComparator.LoadPerFrameMetadata (cognitive 25) · ×1
  • ScreenshotComparator.LoadPerFrameMetadata (cognitive 25) tests/infra/Stride.ScreenshotComparator/ScreenshotComparator.cs:219 — ScreenshotComparator.LoadPerFrameMetadata has cognitive complexity 25 (threshold 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 · UninstallHelper.CloseProcessesInPathsAsync (cognitive 25) · ×1
  • UninstallHelper.CloseProcessesInPathsAsync (cognitive 25) sources/launcher/Stride.Launcher/Services/UninstallHelper.cs:39 — UninstallHelper.CloseProcessesInPathsAsync has cognitive complexity 25 (threshold 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 · MainViewModel.CheckForFirstInstall (cognitive 25) · ×1
  • MainViewModel.CheckForFirstInstall (cognitive 25) sources/launcher/Stride.Launcher/ViewModels/MainViewModel.cs:741 — MainViewModel.CheckForFirstInstall has cognitive complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 756, 754, 763). 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 · BoxTriangleCollider.Intersecting (cognitive 25) · ×1
  • BoxTriangleCollider.Intersecting (cognitive 25) sources/plugins/BepuPhysics/Stride.BepuPhysics.Soft/Definitions/BepuThings.cs:76 — BoxTriangleCollider.Intersecting has cognitive complexity 25 (threshold 15). 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 · SocketRelay.handle (cognitive 25) · ×1
  • SocketRelay.handle (cognitive 25) sources/tools/Stride.ConnectionRouter/ios-tcprelay/stride-ios-relay.py:39 — SocketRelay.handle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NativeLibraryHelper.PreloadLibrary (cognitive 24) · ×1
  • NativeLibraryHelper.PreloadLibrary (cognitive 24) sources/core/Stride.Core/Native/NativeLibraryHelper.cs:193 — NativeLibraryHelper.PreloadLibrary has cognitive complexity 24 (threshold 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 · GraphicsDeviceManager.ChangeOrCreateDevice (cognitive 24) · ×1
  • GraphicsDeviceManager.ChangeOrCreateDevice (cognitive 24) sources/engine/Stride.Games/GraphicsDeviceManager.cs:1253 — GraphicsDeviceManager.ChangeOrCreateDevice has cognitive complexity 24 (threshold 15). 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 · VertexElementValidator.Validate (cognitive 24) · ×1
  • VertexElementValidator.Validate (cognitive 24) sources/engine/Stride.Graphics/VertexElementValidator.cs:60 — VertexElementValidator.Validate has cognitive complexity 24 (threshold 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 · CommandList.EnsureRenderPass (cognitive 24) · ×1
  • CommandList.EnsureRenderPass (cognitive 24) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:2077 — CommandList.EnsureRenderPass has cognitive complexity 24 (threshold 15). 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 · Texture.GetImageView (cognitive 24) · ×1
  • Texture.GetImageView (cognitive 24) sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs:574 — Texture.GetImageView has cognitive complexity 24 (threshold 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 · ForwardLightingRenderFeature.PrepareEffectPermutations (cognitive 24) · ×1
  • ForwardLightingRenderFeature.PrepareEffectPermutations (cognitive 24) sources/engine/Stride.Rendering/Rendering/Lights/ForwardLightingRenderFeature.cs:228 — ForwardLightingRenderFeature.PrepareEffectPermutations has cognitive complexity 24 (threshold 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 · ComputeShaderClassBase.GenerateShaderSource (cognitive 24) · ×1
  • ComputeShaderClassBase.GenerateShaderSource (cognitive 24) sources/engine/Stride.Rendering/Rendering/Materials/ComputeColors/ComputeShaderClassBase.cs:94 — ComputeShaderClassBase.GenerateShaderSource has cognitive complexity 24 (threshold 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 · TransformRenderFeature.Prepare (cognitive 24) · ×1
  • TransformRenderFeature.Prepare (cognitive 24) sources/engine/Stride.Rendering/Rendering/TransformRenderFeature.cs:102 — TransformRenderFeature.Prepare has cognitive complexity 24 (threshold 15). Of this number, 14 points are the body's own statements and 10 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 · ShaderMember.Compile (cognitive 24) · ×1
  • ShaderMember.Compile (cognitive 24) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:296 — ShaderMember.Compile has cognitive complexity 24 (threshold 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 · SwitchStatement.Compile (cognitive 24) · ×1
  • SwitchStatement.Compile (cognitive 24) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Statements.Control.cs:175 — SwitchStatement.Compile has cognitive complexity 24 (threshold 15). 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 · BufferParsers.TBuffer (cognitive 24) · ×1
  • BufferParsers.TBuffer (cognitive 24) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderBufferParsers.cs:23 — BufferParsers.TBuffer has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MethodDuplicator.DuplicateMethodIfNecessary (cognitive 24) · ×1
  • MethodDuplicator.DuplicateMethodIfNecessary (cognitive 24) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/Transformation/MethodDuplicator.cs:20 — MethodDuplicator.DuplicateMethodIfNecessary has cognitive complexity 24 (threshold 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 · PackageBuilderApp.FindContainingSolution (cognitive 24) · ×1
  • PackageBuilderApp.FindContainingSolution (cognitive 24) sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:650 — PackageBuilderApp.FindContainingSolution has cognitive complexity 24 (threshold 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 · AssetReplacementAnalysis.TryCollect (cognitive 24) · ×1
  • AssetReplacementAnalysis.TryCollect (cognitive 24) sources/assets/Stride.Core.Assets/Analysis/AssetReplacementAnalysis.cs:25 — AssetReplacementAnalysis.TryCollect has cognitive complexity 24 (threshold 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 · FileVersionManager.ComputeFileHashAsyncRunner (cognitive 24) · ×1
  • FileVersionManager.ComputeFileHashAsyncRunner (cognitive 24) sources/assets/Stride.Core.Assets/FileVersionManager.cs:116 — FileVersionManager.ComputeFileHashAsyncRunner has cognitive complexity 24 (threshold 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 · PackageAssetCollection.CheckCanAdd (cognitive 24) · ×1
  • PackageAssetCollection.CheckCanAdd (cognitive 24) sources/assets/Stride.Core.Assets/PackageAssetCollection.cs:310 — PackageAssetCollection.CheckCanAdd has cognitive complexity 24 (threshold 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 · PackageSession.Load (cognitive 24) · ×1
  • PackageSession.Load (cognitive 24) sources/assets/Stride.Core.Assets/PackageSession.cs:884 — PackageSession.Load has cognitive complexity 24 (threshold 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 · ToolBarTray.GenerateBands (cognitive 24) · ×1
  • ToolBarTray.GenerateBands (cognitive 24) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarTray.cs:167 — ToolBarTray.GenerateBands has cognitive complexity 24 (threshold 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 · DumpStackWalk.Populate (cognitive 24) · ×1
  • DumpStackWalk.Populate (cognitive 24) sources/crashreport/Stride.CrashReport/DumpStackWalk.cs:78 — DumpStackWalk.Populate has cognitive complexity 24 (threshold 15). Of this number, 23 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 · AssetSourceTrackerViewModel.PullSourceFileChangesAsync (cognitive 24) · ×1
  • AssetSourceTrackerViewModel.PullSourceFileChangesAsync (cognitive 24) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetSourceTrackerViewModel.cs:161 — AssetSourceTrackerViewModel.PullSourceFileChangesAsync has cognitive complexity 24 (threshold 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 · DragDropBehavior.OnDragOver (cognitive 24) · ×1
  • DragDropBehavior.OnDragOver (cognitive 24) sources/editor/Stride.Core.Assets.Editor.Wpf/View/Behaviors/DragDrop/DragDropBehavior.cs:393 — DragDropBehavior.OnDragOver has cognitive complexity 24 (threshold 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 · TextureHelper.ImportTextureImageRaw (cognitive 24) · ×1
  • TextureHelper.ImportTextureImageRaw (cognitive 24) sources/engine/Stride.Assets/Textures/TextureHelper.cs:342 — TextureHelper.ImportTextureImageRaw has cognitive complexity 24 (threshold 15). 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 · ParticleEmitter.MoveAndDeleteParticles (cognitive 24) · ×1
  • ParticleEmitter.MoveAndDeleteParticles (cognitive 24) sources/plugins/Particles/Stride.Particles/ParticleEmitter.cs:715 — ParticleEmitter.MoveAndDeleteParticles has cognitive complexity 24 (threshold 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 · ThicknessEditor.UpdateValueFromComponent (cognitive 24) · ×1
  • ThicknessEditor.UpdateValueFromComponent (cognitive 24) sources/plugins/UI/Stride.UI.Editor.Wpf/Views/ThicknessEditor.cs:94 — ThicknessEditor.UpdateValueFromComponent has cognitive complexity 24 (threshold 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 · UILayoutHelper.ExtractRects (cognitive 24) · ×1
  • UILayoutHelper.ExtractRects (cognitive 24) sources/plugins/UI/Stride.UI.Editor/Game/UILayoutHelper.cs:141 — UILayoutHelper.ExtractRects has cognitive complexity 24 (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.
D2 · Cognitive Complexity · TextBlock.UpdateWrappedText (cognitive 24) · ×1
  • TextBlock.UpdateWrappedText (cognitive 24) sources/plugins/UI/Stride.UI/Controls/TextBlock.cs:280 — TextBlock.UpdateWrappedText has cognitive complexity 24 (threshold 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 · TestsViewModel.RunTestCases (cognitive 24) · ×1
  • TestsViewModel.RunTestCases (cognitive 24) sources/tests/xunit.runner.stride/ViewModels/TestsViewModel.cs:156 — TestsViewModel.RunTestCases has cognitive 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 11 function literals inside it that branch (lines 243, 199, 339, …). 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 · MeshConverter.ProcessAnimations (cognitive 24) · ×1
  • MeshConverter.ProcessAnimations (cognitive 24) sources/tools/Stride.Importer.3D/MeshConverter.cs:587 — MeshConverter.ProcessAnimations has cognitive complexity 24 (threshold 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 · MorphFrameGenerator.MorphFrameGenerator.ctor (cognitive 24) · ×1
  • MorphFrameGenerator.MorphFrameGenerator.ctor (cognitive 24) sources/tools/Stride.Importer.3D/MorphFrameGenerator.cs:40 — MorphFrameGenerator.MorphFrameGenerator.ctor has cognitive complexity 24 (threshold 15). 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, 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 · NewCommand.Create (cognitive 24) · ×1
  • NewCommand.Create (cognitive 24) sources/launcher/Stride.Cli/NewCommand.cs:16 — NewCommand.Create has cognitive complexity 24 (threshold 15). None of this is in the body itself: all 24 points belong to 2 function literals inside it that branch (lines 67, 53). 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 · VirtualFileSystem.ResolveAbsolutePath (cognitive 23) · ×1
  • VirtualFileSystem.ResolveAbsolutePath (cognitive 23) sources/core/Stride.Core.IO/VirtualFileSystem.cs:363 — VirtualFileSystem.ResolveAbsolutePath has cognitive complexity 23 (threshold 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 · ContentManager.CollectUnreferencedCycles (cognitive 23) · ×1
  • ContentManager.CollectUnreferencedCycles (cognitive 23) sources/core/Stride.Core.Serialization/Serialization/Contents/ContentManager.ReferenceCounting.cs:112 — ContentManager.CollectUnreferencedCycles has cognitive complexity 23 (threshold 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 · SerializerSelector.UpdateDataSerializers (cognitive 23) · ×1
  • SerializerSelector.UpdateDataSerializers (cognitive 23) sources/core/Stride.Core/Serialization/SerializerSelector.cs:220 — SerializerSelector.UpdateDataSerializers has cognitive complexity 23 (threshold 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 · EntityManager.CheckEntityComponentWithProcessors (cognitive 23) · ×1
  • EntityManager.CheckEntityComponentWithProcessors (cognitive 23) sources/engine/Stride.Engine/Engine/EntityManager.cs:601 — EntityManager.CheckEntityComponentWithProcessors has cognitive complexity 23 (threshold 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 · SceneSystem.Draw (cognitive 23) · ×1
  • SceneSystem.Draw (cognitive 23) sources/engine/Stride.Engine/Engine/SceneSystem.cs:194 — SceneSystem.Draw has cognitive complexity 23 (threshold 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 · Plane.New (cognitive 23) · ×1
  • Plane.New (cognitive 23) sources/engine/Stride.Graphics/GeometricPrimitives/GeometricPrimitive.Plane.cs:79 — Plane.New has cognitive complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · Texture.InitializeData (cognitive 23) · ×1
  • Texture.InitializeData (cognitive 23) sources/engine/Stride.Graphics/Vulkan/Texture.Vulkan.cs:394 — Texture.InitializeData has cognitive complexity 23 (threshold 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 · RadiancePrefilteringGGXNoCompute.DrawCore (cognitive 23) · ×1
  • RadiancePrefilteringGGXNoCompute.DrawCore (cognitive 23) sources/engine/Stride.Rendering/Rendering/ComputeEffect/GGXPrefiltering/RadiancePrefilteringGGXNoCompute.cs:75 — RadiancePrefilteringGGXNoCompute.DrawCore has cognitive complexity 23 (threshold 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 · VRDeviceSystem.OnEnabledChanged (cognitive 23) · ×1
  • VRDeviceSystem.OnEnabledChanged (cognitive 23) sources/engine/Stride.VirtualReality/VRDeviceSystem.cs:46 — VRDeviceSystem.OnEnabledChanged has cognitive complexity 23 (threshold 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 · ShaderMixer.PopulateShaderInfo (cognitive 23) · ×1
  • ShaderMixer.PopulateShaderInfo (cognitive 23) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.ShaderInfo.cs:67 — ShaderMixer.PopulateShaderInfo has cognitive complexity 23 (threshold 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 · ConstantExpression.ParseInstruction (cognitive 23) · ×1
  • ConstantExpression.ParseInstruction (cognitive 23) sources/shaders/Stride.Shaders.Parsers/Core/ConstantExpression.cs:85 — ConstantExpression.ParseInstruction has cognitive complexity 23 (threshold 15). 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 · SPVGenerator.GenerateImplicitCasting (cognitive 23) · ×1
  • SPVGenerator.GenerateImplicitCasting (cognitive 23) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.EnumerantParams.cs:83 — SPVGenerator.GenerateImplicitCasting has cognitive complexity 23 (threshold 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 · LiteralArray.From (cognitive 23) · ×1
  • LiteralArray.From (cognitive 23) sources/shaders/Stride.Shaders.Spirv/Literals/LiteralArray.cs:97 — LiteralArray.From has cognitive complexity 23 (threshold 15). 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 · UPath.MakeRelative (cognitive 23) · ×1
  • UPath.MakeRelative (cognitive 23) sources/core/Stride.Core.Design/IO/UPath.cs:343 — UPath.MakeRelative has cognitive complexity 23 (threshold 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 · TransactionStack.CompleteTransaction (cognitive 23) · ×1
  • TransactionStack.CompleteTransaction (cognitive 23) sources/core/Stride.Core.Design/Transactions/TransactionStack.cs:132 — TransactionStack.CompleteTransaction has cognitive complexity 23 (threshold 15). 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 · Emitter.WriteDoubleQuotedScalar (cognitive 23) · ×1
  • Emitter.WriteDoubleQuotedScalar (cognitive 23) sources/core/Stride.Core.Yaml/Emitter.cs:1183 — Emitter.WriteDoubleQuotedScalar has cognitive complexity 23 (threshold 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 · AssetBaseAnalysis.ValidateAssetBase (cognitive 23) · ×1
  • AssetBaseAnalysis.ValidateAssetBase (cognitive 23) sources/assets/Stride.Core.Assets/Analysis/AssetBaseAnalysis.cs:41 — AssetBaseAnalysis.ValidateAssetBase has cognitive complexity 23 (threshold 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 · PackageSession.LoadMissingDependencies (cognitive 23) · ×1
  • PackageSession.LoadMissingDependencies (cognitive 23) sources/assets/Stride.Core.Assets/PackageSession.cs:1080 — PackageSession.LoadMissingDependencies has cognitive complexity 23 (threshold 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 · NodePresenterFactory.CreateItems (cognitive 23) · ×1
  • NodePresenterFactory.CreateItems (cognitive 23) sources/presentation/Stride.Core.Presentation.Quantum/Presenters/NodePresenterFactory.cs:116 — NodePresenterFactory.CreateItems has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AutoUpdatingSortedObservableCollection.ItemPropertyChanged (cognitive 23) · ×1
  • AutoUpdatingSortedObservableCollection.ItemPropertyChanged (cognitive 23) sources/presentation/Stride.Core.Presentation/Collections/AutoUpdatingSortedObservableCollection.cs:123 — AutoUpdatingSortedObservableCollection.ItemPropertyChanged has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · XamlMarkdown.Normalize (cognitive 23) · ×1
  • XamlMarkdown.Normalize (cognitive 23) sources/presentation/Stride.Core.Presentation.Wpf/XamlMarkdown.cs:914 — XamlMarkdown.Normalize has cognitive complexity 23 (threshold 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 · CrashReportSender.SendCoreAsync (cognitive 23) · ×1
  • CrashReportSender.SendCoreAsync (cognitive 23) sources/crashreport/Stride.CrashReport/CrashReportSender.cs:81 — CrashReportSender.SendCoreAsync has cognitive complexity 23 (threshold 15). Of this number, 17 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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 · CrashReportSender.MapReport (cognitive 23) · ×1
  • CrashReportSender.MapReport (cognitive 23) sources/crashreport/Stride.CrashReport/CrashReportSender.cs:212 — CrashReportSender.MapReport has cognitive complexity 23 (threshold 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 · TransformationGizmo.TransformSceneEntityBase (cognitive 23) · ×1
  • TransformationGizmo.TransformSceneEntityBase (cognitive 23) sources/editor/Stride.Assets.Editor/AssetEditors/Gizmos/TransformationGizmo.cs:383 — TransformationGizmo.TransformSceneEntityBase has cognitive complexity 23 (threshold 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 · DebugAssetChildNodeViewModel.UpdateChildren (cognitive 23) · ×1
  • DebugAssetChildNodeViewModel.UpdateChildren (cognitive 23) sources/editor/Stride.Core.Assets.Editor/ViewModels/DebugAssetChildNodeViewModel.cs:50 — DebugAssetChildNodeViewModel.UpdateChildren has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SessionViewModel.CreateNewFolderInDirectoriesAsync (cognitive 23) · ×1
  • SessionViewModel.CreateNewFolderInDirectoriesAsync (cognitive 23) sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:1425 — SessionViewModel.CreateNewFolderInDirectoriesAsync has cognitive complexity 23 (threshold 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 · KeyFrameCurveViewModel.UpdateMaxMin (cognitive 23) · ×1
  • KeyFrameCurveViewModel.UpdateMaxMin (cognitive 23) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/KeyFrameCurveViewModel.cs:234 — KeyFrameCurveViewModel.UpdateMaxMin has cognitive complexity 23 (threshold 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 · DotNetNewTemplateParametersWindow.Humanize (cognitive 23) · ×1
  • DotNetNewTemplateParametersWindow.Humanize (cognitive 23) sources/editor/Stride.Assets.Editor.Wpf/Templates/DotNetNewTemplateParametersWindow.xaml.cs:336 — DotNetNewTemplateParametersWindow.Humanize has cognitive complexity 23 (threshold 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 · VisualScriptAsset.ContainsPart (cognitive 23) · ×1
  • VisualScriptAsset.ContainsPart (cognitive 23) sources/engine/Stride.Assets/Scripts/VisualScriptAsset.cs:85 — VisualScriptAsset.ContainsPart has cognitive complexity 23 (threshold 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 · TemplatePreprocessor.CollapseProjectReferences (cognitive 23) · ×1
  • TemplatePreprocessor.CollapseProjectReferences (cognitive 23) sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs:592 — TemplatePreprocessor.CollapseProjectReferences has cognitive complexity 23 (threshold 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 · EditorGameNavigationMeshService.CreateDebugVisual (cognitive 23) · ×1
  • EditorGameNavigationMeshService.CreateDebugVisual (cognitive 23) sources/plugins/BulletPhysics/Stride.Physics.Editor/EditorGameNavigationMeshService.cs:314 — EditorGameNavigationMeshService.CreateDebugVisual has cognitive complexity 23 (threshold 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 · InitialVelocityParent.Initialize (cognitive 23) · ×1
  • InitialVelocityParent.Initialize (cognitive 23) sources/plugins/Particles/Stride.Particles/Initializers/InitialVelocityParent.cs:73 — InitialVelocityParent.Initialize has cognitive complexity 23 (threshold 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 · SpriteStudioXmlImport.ParseModel (cognitive 23) · ×1
  • SpriteStudioXmlImport.ParseModel (cognitive 23) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioXmlImport.cs:180 — SpriteStudioXmlImport.ParseModel has cognitive complexity 23 (threshold 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 · XamlExtractor.ExtractFromDocument (cognitive 23) · ×1
  • XamlExtractor.ExtractFromDocument (cognitive 23) sources/tools/Stride.Core.Translation.Extractor/Extractors/XamlExtractor.cs:44 — XamlExtractor.ExtractFromDocument has cognitive 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MeshConverter.ExtractTextureDependencies (cognitive 23) · ×1
  • MeshConverter.ExtractTextureDependencies (cognitive 23) sources/tools/Stride.Importer.3D/MeshConverter.cs:2048 — MeshConverter.ExtractTextureDependencies has cognitive complexity 23 (threshold 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 · LZ4Stream.AcquireNextChunk (cognitive 22) · ×1
  • LZ4Stream.AcquireNextChunk (cognitive 22) sources/core/Stride.Core.Serialization/Serialization/LZ4/LZ4Stream.cs:268 — LZ4Stream.AcquireNextChunk has cognitive complexity 22 (threshold 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 · PriorityQueue.Remove (cognitive 22) · ×1
  • PriorityQueue.Remove (cognitive 22) sources/core/Stride.Core/Collections/PriorityQueue.cs:39 — PriorityQueue.Remove has cognitive complexity 22 (threshold 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 · ModelComponent.Update (cognitive 22) · ×1
  • ModelComponent.Update (cognitive 22) sources/engine/Stride.Engine/Engine/ModelComponent.cs:235 — ModelComponent.Update has cognitive complexity 22 (threshold 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 · SceneInstance.Add (cognitive 22) · ×1
  • SceneInstance.Add (cognitive 22) sources/engine/Stride.Engine/Engine/SceneInstance.cs:135 — SceneInstance.Add has cognitive complexity 22 (threshold 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 · GraphicsAdapterFactoryInstance.DebugReport (cognitive 22) · ×1
  • GraphicsAdapterFactoryInstance.DebugReport (cognitive 22) sources/engine/Stride.Graphics/Vulkan/GraphicsAdapterFactory.Vulkan.cs:496 — GraphicsAdapterFactoryInstance.DebugReport has cognitive complexity 22 (threshold 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 · LightStreak.DrawCore (cognitive 22) · ×1
  • LightStreak.DrawCore (cognitive 22) sources/engine/Stride.Rendering/Rendering/Images/LightStreak/LightStreak.cs:238 — LightStreak.DrawCore has cognitive complexity 22 (threshold 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 · ForwardLightingRenderFeature.CollectVisibleLights (cognitive 22) · ×1
  • ForwardLightingRenderFeature.CollectVisibleLights (cognitive 22) sources/engine/Stride.Rendering/Rendering/Lights/ForwardLightingRenderFeature.cs:567 — ForwardLightingRenderFeature.CollectVisibleLights has cognitive complexity 22 (threshold 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 · PrimitiveProceduralModelBase.Generate (cognitive 22) · ×1
  • PrimitiveProceduralModelBase.Generate (cognitive 22) sources/engine/Stride.Rendering/Rendering/ProceduralModels/PrimitiveProceduralModelBase.cs:87 — PrimitiveProceduralModelBase.Generate has cognitive complexity 22 (threshold 15). 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 · ShaderCorpusEntry.WriteSource (cognitive 22) · ×1
  • ShaderCorpusEntry.WriteSource (cognitive 22) sources/shaders/Stride.Shaders.Effects/Compiler/ShaderCorpusEntry.cs:157 — ShaderCorpusEntry.WriteSource has cognitive complexity 22 (threshold 15). 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 · ShaderDefinition.TryResolveSymbolNoRecursion (cognitive 22) · ×1
  • ShaderDefinition.TryResolveSymbolNoRecursion (cognitive 22) sources/shaders/Stride.Shaders.Parsers/Core/SymbolTypes.cs:728 — ShaderDefinition.TryResolveSymbolNoRecursion has cognitive complexity 22 (threshold 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 · ShaderMember.ProcessSymbol (cognitive 22) · ×1
  • ShaderMember.ProcessSymbol (cognitive 22) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.MethodOrMember.cs:203 — ShaderMember.ProcessSymbol has cognitive complexity 22 (threshold 15). 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 · ConditionalFlow.Compile (cognitive 22) · ×1
  • ConditionalFlow.Compile (cognitive 22) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Statements.Control.cs:30 — ConditionalFlow.Compile has cognitive complexity 22 (threshold 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 · DirectiveRelationalParser.Match (cognitive 22) · ×1
  • DirectiveRelationalParser.Match (cognitive 22) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/DirectiveExpressions/DirectiveBinaryParsers.cs:399 — DirectiveRelationalParser.Match has cognitive complexity 22 (threshold 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 · SPVGenerator.PreProcessEnumerants (cognitive 22) · ×1
  • SPVGenerator.PreProcessEnumerants (cognitive 22) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Preprocessing.cs:65 — SPVGenerator.PreProcessEnumerants has cognitive complexity 22 (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.
D2 · Cognitive Complexity · SpvOperand.To (cognitive 22) · ×1
  • SpvOperand.To (cognitive 22) sources/shaders/Stride.Shaders.Spirv/SpvLiteral.cs:81 — SpvOperand.To has cognitive complexity 22 (threshold 15). 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 · OldCollectionDescriptor.OldCollectionDescriptor.ctor (cognitive 22) · ×1
  • OldCollectionDescriptor.OldCollectionDescriptor.ctor (cognitive 22) sources/core/Stride.Core.Reflection/TypeDescriptors/OldCollectionDescriptor.cs:38 — OldCollectionDescriptor.OldCollectionDescriptor.ctor has cognitive complexity 22 (threshold 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 · PackageSession.TryLoadAssemblies (cognitive 22) · ×1
  • PackageSession.TryLoadAssemblies (cognitive 22) sources/assets/Stride.Core.Assets/PackageSession.cs:1702 — PackageSession.TryLoadAssemblies has cognitive complexity 22 (threshold 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 · AssetSourceTracker.Assets_CollectionChanged (cognitive 22) · ×1
  • AssetSourceTracker.Assets_CollectionChanged (cognitive 22) sources/assets/Stride.Core.Assets/Tracking/AssetSourceTracker.cs:397 — AssetSourceTracker.Assets_CollectionChanged has cognitive complexity 22 (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.
D2 · Cognitive Complexity · AutoUpdatingSortedObservableCollection.GetReorderingIndex (cognitive 22) · ×1
  • AutoUpdatingSortedObservableCollection.GetReorderingIndex (cognitive 22) sources/presentation/Stride.Core.Presentation/Collections/AutoUpdatingSortedObservableCollection.cs:171 — AutoUpdatingSortedObservableCollection.GetReorderingIndex has cognitive complexity 22 (threshold 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 · SizesCache.AddOrChange (cognitive 22) · ×1
  • SizesCache.AddOrChange (cognitive 22) sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:40 — SizesCache.AddOrChange has cognitive complexity 22 (threshold 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 · TemplateParameterViewModel.Humanize (cognitive 22) · ×1
  • TemplateParameterViewModel.Humanize (cognitive 22) sources/editor/Stride.Assets.Editor/Templates/TemplateParameterViewModel.cs:76 — TemplateParameterViewModel.Humanize has cognitive complexity 22 (threshold 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 · DirectoryBaseViewModel.AddChildren (cognitive 22) · ×1
  • DirectoryBaseViewModel.AddChildren (cognitive 22) sources/editor/Stride.Core.Assets.Presentation/ViewModels/DirectoryBaseViewModel.cs:289 — DirectoryBaseViewModel.AddChildren has cognitive complexity 22 (threshold 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 · VisualScriptAsset.FindPart (cognitive 22) · ×1
  • VisualScriptAsset.FindPart (cognitive 22) sources/engine/Stride.Assets/Scripts/VisualScriptAsset.cs:121 — VisualScriptAsset.FindPart has cognitive complexity 22 (threshold 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 · CompoundHeightfieldSweepTask.PreorderedTypeSweep (cognitive 22) · ×1
  • CompoundHeightfieldSweepTask.PreorderedTypeSweep (cognitive 22) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldCollisionTasks.cs:565 — CompoundHeightfieldSweepTask.PreorderedTypeSweep has cognitive complexity 22 (threshold 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 · InitialSizeParent.Initialize (cognitive 22) · ×1
  • InitialSizeParent.Initialize (cognitive 22) sources/plugins/Particles/Stride.Particles/Initializers/InitialSizeParent.cs:52 — InitialSizeParent.Initialize has cognitive complexity 22 (threshold 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 · FFmpegMedia.ExtractNextImage (cognitive 22) · ×1
  • FFmpegMedia.ExtractNextImage (cognitive 22) sources/plugins/Video/Stride.Video/FFmpeg/FFmpegMedia.cs:342 — FFmpegMedia.ExtractNextImage has cognitive complexity 22 (threshold 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 · GltfMaterialBuilder.CollectTextureRoles (cognitive 22) · ×1
  • GltfMaterialBuilder.CollectTextureRoles (cognitive 22) sources/tools/Stride.Importer.3D/Material/GltfMaterialBuilder.cs:136 — GltfMaterialBuilder.CollectTextureRoles has cognitive complexity 22 (threshold 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 · RestoreHelper.Restore (cognitive 22) · ×1
  • RestoreHelper.Restore (cognitive 22) sources/shared/Stride.NuGetResolver/RestoreHelper.cs:243 — RestoreHelper.Restore has cognitive complexity 22 (threshold 15). Of this number, 21 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ColorKeyTexLibrary.ApplyColorKey (cognitive 22) · ×1
  • ColorKeyTexLibrary.ApplyColorKey (cognitive 22) sources/tools/Stride.TextureConverter/Backend/TexLibraries/ColorKeyTexLibrary.cs:58 — ColorKeyTexLibrary.ApplyColorKey has cognitive complexity 22 (threshold 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 · NewCommand.TryParseParameters (cognitive 22) · ×1
  • NewCommand.TryParseParameters (cognitive 22) sources/launcher/Stride.Cli/NewCommand.cs:319 — NewCommand.TryParseParameters has cognitive complexity 22 (threshold 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 · ReferencedAssemblySerializerProcessor.ProcessDataSerializerGlobalAttributes (cognitive 22) · ×1
  • ReferencedAssemblySerializerProcessor.ProcessDataSerializerGlobalAttributes (cognitive 22) sources/core/Stride.Core.AssemblyProcessor/Serializers/ReferencedAssemblySerializerProcessor.cs:22 — ReferencedAssemblySerializerProcessor.ProcessDataSerializerGlobalAttributes has cognitive complexity 22 (threshold 15). Of this number, 20 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NativeLockFile.UnixLock (cognitive 21) · ×1
  • NativeLockFile.UnixLock (cognitive 21) sources/core/Stride.Core.IO/NativeLockFile.cs:168 — NativeLockFile.UnixLock has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ContentManager.DeserializeObject (cognitive 21) · ×1
  • ContentManager.DeserializeObject (cognitive 21) sources/core/Stride.Core.Serialization/Serialization/Contents/ContentManager.cs:410 — ContentManager.DeserializeObject has cognitive complexity 21 (threshold 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 · NativeLibraryHelper.StripPlatformNativeExtension (cognitive 21) · ×1
  • NativeLibraryHelper.StripPlatformNativeExtension (cognitive 21) sources/core/Stride.Core/Native/NativeLibraryHelper.cs:590 — NativeLibraryHelper.StripPlatformNativeExtension has cognitive complexity 21 (threshold 15). 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 · EntityManager.RemoveStaleTypes (cognitive 21) · ×1
  • EntityManager.RemoveStaleTypes (cognitive 21) sources/engine/Stride.Engine/Engine/EntityManager.cs:319 — EntityManager.RemoveStaleTypes has cognitive complexity 21 (threshold 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 · ScriptSystem.Update (cognitive 21) · ×1
  • ScriptSystem.Update (cognitive 21) sources/engine/Stride.Engine/Engine/Processors/ScriptSystem.cs:63 — ScriptSystem.Update has cognitive complexity 21 (threshold 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 · Image.Initialize (cognitive 21) · ×1
  • Image.Initialize (cognitive 21) sources/engine/Stride.Foundation/Graphics/Image.cs:774 — Image.Initialize has cognitive complexity 21 (threshold 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 · GameBase.RawTickProducer (cognitive 21) · ×1
  • GameBase.RawTickProducer (cognitive 21) sources/engine/Stride.Games/GameBase.cs:535 — GameBase.RawTickProducer has cognitive complexity 21 (threshold 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 · Texture.GetData (cognitive 21) · ×1
  • Texture.GetData (cognitive 21) sources/engine/Stride.Graphics/Texture.cs:1230 — Texture.GetData has cognitive complexity 21 (threshold 15). 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 · CommandList.BindDescriptorSets (cognitive 21) · ×1
  • CommandList.BindDescriptorSets (cognitive 21) sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:312 — CommandList.BindDescriptorSets has cognitive complexity 21 (threshold 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 · BowyerWatsonTetrahedralization.CheckConnectivity (cognitive 21) · ×1
  • BowyerWatsonTetrahedralization.CheckConnectivity (cognitive 21) sources/engine/Stride.Rendering/Rendering/LightProbes/BowyerWatsonTetrahedralization.cs:590 — BowyerWatsonTetrahedralization.CheckConnectivity has cognitive complexity 21 (threshold 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 · MonoGamePreProcessor.Run (cognitive 21) · ×1
  • MonoGamePreProcessor.Run (cognitive 21) sources/shaders/Stride.Shaders.Parsers/Parsing/PreProcessing/MacroPreProcessor.cs:21 — MonoGamePreProcessor.Run has cognitive complexity 21 (threshold 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 · Identifier.IsMatrixSwizzle (cognitive 21) · ×1
  • Identifier.IsMatrixSwizzle (cognitive 21) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:785 — Identifier.IsMatrixSwizzle has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to one function item inside it that branches (TryParseOne). 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 · Parsers.TypeNameIdentifierArraySizeValue (cognitive 21) · ×1
  • Parsers.TypeNameIdentifierArraySizeValue (cognitive 21) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/Common/CommonParsers.cs:280 — Parsers.TypeNameIdentifierArraySizeValue has cognitive complexity 21 (threshold 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 · FlowParsers.While (cognitive 21) · ×1
  • FlowParsers.While (cognitive 21) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/StatementParsers/StatementParsers.Flow.cs:55 — FlowParsers.While has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · InterfaceProcessor.GenerateStreamWrapper (cognitive 21) · ×1
  • InterfaceProcessor.GenerateStreamWrapper (cognitive 21) sources/shaders/Stride.Shaders.Parsers/Spirv/Processing/Interfaces/InterfaceProcessor.cs:516 — InterfaceProcessor.GenerateStreamWrapper has cognitive complexity 21 (threshold 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 · CommandBuildStep.Clean (cognitive 21) · ×1
  • CommandBuildStep.Clean (cognitive 21) sources/buildengine/Stride.Core.BuildEngine.Common/CommandBuildStep.cs:54 — CommandBuildStep.Clean has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ListBuildStep.CompleteCommands (cognitive 21) · ×1
  • ListBuildStep.CompleteCommands (cognitive 21) sources/buildengine/Stride.Core.BuildEngine.Common/ListBuildStep.cs:91 — ListBuildStep.CompleteCommands has cognitive 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.
D2 · Cognitive Complexity · UPath.Decode (cognitive 21) · ×1
  • UPath.Decode (cognitive 21) sources/core/Stride.Core.Design/IO/UPath.cs:763 — UPath.Decode has cognitive complexity 21 (threshold 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 · Program.RealMain (cognitive 21) · ×1
  • Program.RealMain (cognitive 21) sources/core/Stride.Core.Tasks/Program.cs:37 — Program.RealMain has cognitive complexity 21 (threshold 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 · CommonAnalysis.UpdatePaths (cognitive 21) · ×1
  • CommonAnalysis.UpdatePaths (cognitive 21) sources/assets/Stride.Core.Assets/Analysis/CommonAnalysis.cs:10 — CommonAnalysis.UpdatePaths has cognitive complexity 21 (threshold 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 · PackageSession.AddCompanionDependencies (cognitive 21) · ×1
  • PackageSession.AddCompanionDependencies (cognitive 21) sources/assets/Stride.Core.Assets/PackageSession.CompanionPackages.cs:139 — PackageSession.AddCompanionDependencies has cognitive complexity 21 (threshold 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 · FilteringComboBox.EditableTextBoxPreviewKeyDown (cognitive 21) · ×1
  • FilteringComboBox.EditableTextBoxPreviewKeyDown (cognitive 21) sources/presentation/Stride.Core.Presentation.Wpf/Controls/FilteringComboBox.cs:422 — FilteringComboBox.EditableTextBoxPreviewKeyDown has cognitive complexity 21 (threshold 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 · EditorGameCameraOrientationService.Update (cognitive 21) · ×1
  • EditorGameCameraOrientationService.Update (cognitive 21) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameCameraOrientationService.cs:67 — EditorGameCameraOrientationService.Update has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EditorGameMaterialHighlightService.Update (cognitive 21) · ×1
  • EditorGameMaterialHighlightService.Update (cognitive 21) sources/editor/Stride.Assets.Editor/EditorGame/EditorGameMaterialHighlightService.cs:132 — EditorGameMaterialHighlightService.Update has cognitive complexity 21 (threshold 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 · EntityHierarchyItemViewModel.AddEntitiesFromAssets (cognitive 21) · ×1
  • EntityHierarchyItemViewModel.AddEntitiesFromAssets (cognitive 21) sources/editor/Stride.Assets.Presentation/ViewModels/EntityHierarchyItemViewModel.cs:190 — EntityHierarchyItemViewModel.AddEntitiesFromAssets has cognitive complexity 21 (threshold 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 · PanelLayoutResolver.KeepUnavailablePanels (cognitive 21) · ×1
  • PanelLayoutResolver.KeepUnavailablePanels (cognitive 21) sources/editor/Stride.Core.Assets.Editor/Panels/PanelLayoutResolver.cs:122 — PanelLayoutResolver.KeepUnavailablePanels has cognitive complexity 21 (threshold 15). Of this number, 19 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 · ConvexHeightfieldSweepTaskHeightfield.PreorderedTypeSweep (cognitive 21) · ×1
  • ConvexHeightfieldSweepTaskHeightfield.PreorderedTypeSweep (cognitive 21) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldCollisionTasks.cs:498 — ConvexHeightfieldSweepTaskHeightfield.PreorderedTypeSweep has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · InitialPositionSeed.Initialize (cognitive 21) · ×1
  • InitialPositionSeed.Initialize (cognitive 21) sources/plugins/Particles/Stride.Particles/Initializers/InitialPositionSeed.cs:39 — InitialPositionSeed.Initialize has cognitive complexity 21 (threshold 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 · Ribbonizer.Ribbonize (cognitive 21) · ×1
  • Ribbonizer.Ribbonize (cognitive 21) sources/plugins/Particles/Stride.Particles/ShapeBuilders/ShapeBuilderRibbon.cs:374 — Ribbonizer.Ribbonize has cognitive complexity 21 (threshold 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 · AndroidDeviceEnumerator.ListAndroidDevices (cognitive 21) · ×1
  • AndroidDeviceEnumerator.ListAndroidDevices (cognitive 21) sources/shared/Process/AndroidDeviceEnumerator.cs:73 — AndroidDeviceEnumerator.ListAndroidDevices has cognitive complexity 21 (threshold 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 · MeshConverter.BuildLayeredSurface (cognitive 21) · ×1
  • MeshConverter.BuildLayeredSurface (cognitive 21) sources/tools/Stride.Importer.3D/MeshConverter.cs:1726 — MeshConverter.BuildLayeredSurface has cognitive complexity 21 (threshold 15). 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 · TexImage.TexImage.ctor (cognitive 21) · ×1
  • TexImage.TexImage.ctor (cognitive 21) sources/tools/Stride.TextureConverter/Frontend/TexImage.cs:111 — TexImage.TexImage.ctor has cognitive 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.
D2 · Cognitive Complexity · UpgradeCommand.Create (cognitive 21) · ×1
  • UpgradeCommand.Create (cognitive 21) sources/launcher/Stride.Cli/UpgradeCommand.cs:10 — UpgradeCommand.Create has cognitive complexity 21 (threshold 15). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 28). 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 · PlayerController.UpdateMoveTowardsDestination (cognitive 21) · ×1
  • PlayerController.UpdateMoveTowardsDestination (cognitive 21) samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Player/PlayerController.cs:196 — PlayerController.UpdateMoveTowardsDestination has cognitive complexity 21 (threshold 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 · RecastMeshSystem.FindFollowPath (cognitive 21) · ×1
  • RecastMeshSystem.FindFollowPath (cognitive 21) sources/plugins/BepuPhysics/Stride.BepuPhysics.Navigation/Processors/RecastMeshSystem.cs:347 — RecastMeshSystem.FindFollowPath has cognitive complexity 21 (threshold 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 · EffectKeysGenerator.Generate (cognitive 20) · ×1
  • EffectKeysGenerator.Generate (cognitive 20) sources/core/Stride.Core.CompilerServices/Generators/EffectKeysGenerator.cs:31 — EffectKeysGenerator.Generate has cognitive complexity 20 (threshold 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 · SpriteAnimationSystem.Draw (cognitive 20) · ×1
  • SpriteAnimationSystem.Draw (cognitive 20) sources/engine/Stride.Engine/Rendering/Sprites/SpriteAnimationSystem.cs:42 — SpriteAnimationSystem.Draw has cognitive complexity 20 (threshold 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 · CompositionCopier.Compile (cognitive 20) · ×1
  • CompositionCopier.Compile (cognitive 20) sources/engine/Stride.Foundation/Rendering/ParameterCollection.cs:991 — CompositionCopier.Compile has cognitive complexity 20 (threshold 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 · ImageEffect.SetRenderTargets (cognitive 20) · ×1
  • ImageEffect.SetRenderTargets (cognitive 20) sources/engine/Stride.Rendering/Rendering/Images/ImageEffect.cs:232 — ImageEffect.SetRenderTargets has cognitive complexity 20 (threshold 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 · ParsersExtensions.TypeMatching (cognitive 20) · ×1
  • ParsersExtensions.TypeMatching (cognitive 20) sources/shaders/Stride.Shaders.Generators.Internal/Intrinsics/Parser.cs:172 — ParsersExtensions.TypeMatching has cognitive complexity 20 (threshold 15). 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 · EffectGenerator.Generate (cognitive 20) · ×1
  • EffectGenerator.Generate (cognitive 20) sources/shaders/Stride.Shaders.Generators/EffectGenerator.cs:65 — EffectGenerator.Generate has cognitive complexity 20 (threshold 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 · SymbolTable.TryResolveSymbol (cognitive 20) · ×1
  • SymbolTable.TryResolveSymbol (cognitive 20) sources/shaders/Stride.Shaders.Parsers/Parsing/Analysis/SymbolTable.cs:104 — SymbolTable.TryResolveSymbol has cognitive complexity 20 (threshold 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 · ArrayLiteral.ProcessFlattened (cognitive 20) · ×1
  • ArrayLiteral.ProcessFlattened (cognitive 20) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:418 — ArrayLiteral.ProcessFlattened has cognitive complexity 20 (threshold 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 · Parsers.Repeat (cognitive 20) · ×1
  • Parsers.Repeat (cognitive 20) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/Common/CommonParsers.cs:587 — Parsers.Repeat has cognitive complexity 20 (threshold 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 · SpirvContext.ExtractConstantFromBuffer (cognitive 20) · ×1
  • SpirvContext.ExtractConstantFromBuffer (cognitive 20) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Context.ExtractBuffers.cs:148 — SpirvContext.ExtractConstantFromBuffer has cognitive complexity 20 (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.
D2 · Cognitive Complexity · GameTestBase.ResolveRepoAndBranch (cognitive 20) · ×1
  • GameTestBase.ResolveRepoAndBranch (cognitive 20) sources/engine/Stride.Graphics.Regression/GameTestBase.cs:708 — GameTestBase.ResolveRepoAndBranch has cognitive complexity 20 (threshold 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 · UPath.TrimParentAndSelfPath (cognitive 20) · ×1
  • UPath.TrimParentAndSelfPath (cognitive 20) sources/core/Stride.Core.Design/IO/UPath.cs:712 — UPath.TrimParentAndSelfPath has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · PackageVersionRange.Contains (cognitive 20) · ×1
  • PackageVersionRange.Contains (cognitive 20) sources/core/Stride.Core.Design/PackageVersionRange.cs:114 — PackageVersionRange.Contains has cognitive complexity 20 (threshold 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 · TypeExtensions.GetInterface (cognitive 20) · ×1
  • TypeExtensions.GetInterface (cognitive 20) sources/core/Stride.Core.Reflection/TypeExtensions.cs:18 — TypeExtensions.GetInterface has cognitive complexity 20 (threshold 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 · Emitter.WriteSingleQuotedScalar (cognitive 20) · ×1
  • Emitter.WriteSingleQuotedScalar (cognitive 20) sources/core/Stride.Core.Yaml/Emitter.cs:1309 — Emitter.WriteSingleQuotedScalar has cognitive complexity 20 (threshold 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 · CompilerCrashCapture.AdoptDumps (cognitive 20) · ×1
  • CompilerCrashCapture.AdoptDumps (cognitive 20) sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:153 — CompilerCrashCapture.AdoptDumps has cognitive complexity 20 (threshold 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 · AssetAnalysis.UpdateAssetReferences (cognitive 20) · ×1
  • AssetAnalysis.UpdateAssetReferences (cognitive 20) sources/assets/Stride.Core.Assets/Analysis/AssetAnalysis.cs:119 — AssetAnalysis.UpdateAssetReferences has cognitive complexity 20 (threshold 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 · AssetRegistry.RegisterEngineAssembly (cognitive 20) · ×1
  • AssetRegistry.RegisterEngineAssembly (cognitive 20) sources/assets/Stride.Core.Assets/AssetRegistry.cs:484 — AssetRegistry.RegisterEngineAssembly has cognitive complexity 20 (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.
D2 · Cognitive Complexity · Package.SetCompanionDeclarations (cognitive 20) · ×1
  • Package.SetCompanionDeclarations (cognitive 20) sources/assets/Stride.Core.Assets/Package.cs:244 — Package.SetCompanionDeclarations has cognitive complexity 20 (threshold 15). Of this number, 18 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NodeViewModel.FinishInitialization (cognitive 20) · ×1
  • NodeViewModel.FinishInitialization (cognitive 20) sources/presentation/Stride.Core.Presentation.Quantum/ViewModels/NodeViewModel.cs:233 — NodeViewModel.FinishInitialization has cognitive complexity 20 (threshold 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 · TreeView.OnSelectedItemsChanged (cognitive 20) · ×1
  • TreeView.OnSelectedItemsChanged (cognitive 20) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TreeView.cs:626 — TreeView.OnSelectedItemsChanged has cognitive complexity 20 (threshold 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 · TemplateProviderBase.CompareTo (cognitive 20) · ×1
  • TemplateProviderBase.CompareTo (cognitive 20) sources/presentation/Stride.Core.Presentation.Wpf/View/TemplateProviderBase.cs:41 — TemplateProviderBase.CompareTo has cognitive complexity 20 (threshold 15). 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 · CrashReportAnonymizer.Mask (cognitive 20) · ×1
  • CrashReportAnonymizer.Mask (cognitive 20) sources/crashreport/Stride.CrashReport/CrashReportAnonymizer.cs:96 — CrashReportAnonymizer.Mask has cognitive complexity 20 (threshold 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 · UserDocumentationService.CacheAssemblyDocumentation (cognitive 20) · ×1
  • UserDocumentationService.CacheAssemblyDocumentation (cognitive 20) REDACTED:83 — UserDocumentationService.CacheAssemblyDocumentation has cognitive complexity 20 (threshold 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 · ContentReferenceViewModel.CanAddChildren (cognitive 20) · ×1
  • ContentReferenceViewModel.CanAddChildren (cognitive 20) sources/editor/Stride.Core.Assets.Editor/ViewModels/ContentReferenceViewModel.cs:12 — ContentReferenceViewModel.CanAddChildren has cognitive complexity 20 (threshold 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 · DockPanelService.SnapshotNode (cognitive 20) · ×1
  • DockPanelService.SnapshotNode (cognitive 20) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs:571 — DockPanelService.SnapshotNode has cognitive complexity 20 (threshold 15). 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 · GameStudioAssemblyReloader.DeclaresGameEditorCode (cognitive 20) · ×1
  • GameStudioAssemblyReloader.DeclaresGameEditorCode (cognitive 20) sources/editor/Stride.Assets.Editor.Wpf/AssemblyReloading/GameStudioAssemblyReloader.cs:273 — GameStudioAssemblyReloader.DeclaresGameEditorCode has cognitive complexity 20 (threshold 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 · SpriteSheetCommand.CreateAtlasTextures (cognitive 20) · ×1
  • SpriteSheetCommand.CreateAtlasTextures (cognitive 20) sources/engine/Stride.Assets/Sprite/SpriteSheetAssetCompiler.cs:310 — SpriteSheetCommand.CreateAtlasTextures has cognitive complexity 20 (threshold 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 · NavigationBuilder.BuildNavmesh (cognitive 20) · ×1
  • NavigationBuilder.BuildNavmesh (cognitive 20) sources/plugins/BulletPhysics/Stride.Navigation/NavigationBuilder.cs:27 — NavigationBuilder.BuildNavmesh has cognitive complexity 20 (threshold 15). 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 · VhacdV4Upgrader.UpgradeAsset (cognitive 20) · ×1
  • VhacdV4Upgrader.UpgradeAsset (cognitive 20) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/ColliderShapeAsset.cs:102 — VhacdV4Upgrader.UpgradeAsset has cognitive complexity 20 (threshold 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 · FFmpegVideoBackend.Update (cognitive 20) · ×1
  • FFmpegVideoBackend.Update (cognitive 20) sources/plugins/Video/Stride.Video/Backends/FFmpegVideoBackend.cs:94 — FFmpegVideoBackend.Update has cognitive complexity 20 (threshold 15). 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 · MeshConverter.ExtractEntity (cognitive 20) · ×1
  • MeshConverter.ExtractEntity (cognitive 20) sources/tools/Stride.Importer.3D/MeshConverter.cs:91 — MeshConverter.ExtractEntity has cognitive complexity 20 (threshold 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 · MorphFrameGenerator.Generate (cognitive 20) · ×1
  • MorphFrameGenerator.Generate (cognitive 20) sources/tools/Stride.Importer.3D/MorphFrameGenerator.cs:179 — MorphFrameGenerator.Generate has cognitive complexity 20 (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.
D2 · Cognitive Complexity · CecilExtensions.GenerateGenerics (cognitive 20) · ×1
  • CecilExtensions.GenerateGenerics (cognitive 20) sources/core/Stride.Core.AssemblyProcessor/CecilExtensions.cs:330 — CecilExtensions.GenerateGenerics has cognitive complexity 20 (threshold 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 · CecilExtensions.ConvertCSharp (cognitive 20) · ×1
  • CecilExtensions.ConvertCSharp (cognitive 20) sources/core/Stride.Core.AssemblyProcessor/CecilExtensions.cs:395 — CecilExtensions.ConvertCSharp has cognitive complexity 20 (threshold 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 · CecilSerializerContext.CollectSerializerDependencies (cognitive 20) · ×1
  • CecilSerializerContext.CollectSerializerDependencies (cognitive 20) sources/core/Stride.Core.AssemblyProcessor/Serializers/CecilSerializerContext.cs:209 — CecilSerializerContext.CollectSerializerDependencies has cognitive complexity 20 (threshold 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 · ApiCheck.GetPublicApiItems (cognitive 20) · ×1
  • ApiCheck.GetPublicApiItems (cognitive 20) sources/tools/Stride.PublicApiCheck/ApiCheck.cs:47 — ApiCheck.GetPublicApiItems has cognitive complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Matrix.UpperTriangularForm (cognitive 19) · ×1
  • Matrix.UpperTriangularForm (cognitive 19) sources/core/Stride.Core.Mathematics/Matrix.cs:1542 — Matrix.UpperTriangularForm has cognitive complexity 19 (threshold 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. This shape REPEATS in the file: 2 other methods here (Matrix.LowerTriangularForm, Matrix.RowEchelonForm) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · Matrix.LowerTriangularForm (cognitive 19) · ×1
  • Matrix.LowerTriangularForm (cognitive 19) sources/core/Stride.Core.Mathematics/Matrix.cs:1621 — Matrix.LowerTriangularForm has cognitive complexity 19 (threshold 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. This shape REPEATS in the file: 2 other methods here (Matrix.UpperTriangularForm, Matrix.RowEchelonForm) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · Matrix.RowEchelonForm (cognitive 19) · ×1
  • Matrix.RowEchelonForm (cognitive 19) sources/core/Stride.Core.Mathematics/Matrix.cs:1698 — Matrix.RowEchelonForm has cognitive complexity 19 (threshold 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. This shape REPEATS in the file: 2 other methods here (Matrix.UpperTriangularForm, Matrix.LowerTriangularForm) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · Internals.WaitForSignal (cognitive 19) · ×1
  • Internals.WaitForSignal (cognitive 19) sources/core/Stride.Core/Threading/ThreadPool.SemaphoreW.cs:245 — Internals.WaitForSignal has cognitive complexity 19 (threshold 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 · AnimationData.FromAnimationChannels (cognitive 19) · ×1
  • AnimationData.FromAnimationChannels (cognitive 19) sources/engine/Stride.Engine/Animations/AnimationData.cs:59 — AnimationData.FromAnimationChannels has cognitive complexity 19 (threshold 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 · EntityComponentCollection.ValidateItem (cognitive 19) · ×1
  • EntityComponentCollection.ValidateItem (cognitive 19) sources/engine/Stride.Engine/Engine/EntityComponentCollection.cs:204 — EntityComponentCollection.ValidateItem has cognitive complexity 19 (threshold 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 · SocketMessageLayer.MessageLoop (cognitive 19) · ×1
  • SocketMessageLayer.MessageLoop (cognitive 19) sources/engine/Stride.Engine/Engine/Network/SocketMessageLayer.cs:87 — SocketMessageLayer.MessageLoop has cognitive complexity 19 (threshold 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 · StandardImageHelper.CreateImage (cognitive 19) · ×1
  • StandardImageHelper.CreateImage (cognitive 19) sources/engine/Stride.Foundation/Graphics/StandardImageHelper.cs:59 — StandardImageHelper.CreateImage has cognitive 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.
D2 · Cognitive Complexity · Copier.Copy (cognitive 19) · ×1
  • Copier.Copy (cognitive 19) sources/engine/Stride.Foundation/Rendering/ParameterCollection.cs:837 — Copier.Copy has cognitive complexity 19 (threshold 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 · BufferPool.Allocate (cognitive 19) · ×1
  • BufferPool.Allocate (cognitive 19) sources/engine/Stride.Graphics/BufferPool.cs:132 — BufferPool.Allocate has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · WindowsDisplayProvider.Enumerate (cognitive 19) · ×1
  • WindowsDisplayProvider.Enumerate (cognitive 19) sources/engine/Stride.Graphics/Windowing/WindowsDisplayProvider.cs:21 — WindowsDisplayProvider.Enumerate has cognitive complexity 19 (threshold 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 · IndexExtensions.GenerateIndexBufferAEN (cognitive 19) · ×1
  • IndexExtensions.GenerateIndexBufferAEN (cognitive 19) sources/engine/Stride.Rendering/Extensions/IndexExtensions.cs:148 — IndexExtensions.GenerateIndexBufferAEN has cognitive complexity 19 (threshold 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 · InstancingRenderFeature.Prepare (cognitive 19) · ×1
  • InstancingRenderFeature.Prepare (cognitive 19) sources/engine/Stride.Rendering/Rendering/InstancingRenderFeature.cs:163 — InstancingRenderFeature.Prepare has cognitive complexity 19 (threshold 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 · BowyerWatsonTetrahedralization.GenerateFaces (cognitive 19) · ×1
  • BowyerWatsonTetrahedralization.GenerateFaces (cognitive 19) sources/engine/Stride.Rendering/Rendering/LightProbes/BowyerWatsonTetrahedralization.cs:229 — BowyerWatsonTetrahedralization.GenerateFaces has cognitive complexity 19 (threshold 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 · MeshMorphData.Validate (cognitive 19) · ×1
  • MeshMorphData.Validate (cognitive 19) sources/engine/Stride.Rendering/Rendering/MeshMorphData.cs:99 — MeshMorphData.Validate has cognitive complexity 19 (threshold 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 · LightDirectionalShadowMapRenderer.ComputeCascadeSplits (cognitive 19) · ×1
  • LightDirectionalShadowMapRenderer.ComputeCascadeSplits (cognitive 19) sources/engine/Stride.Rendering/Rendering/Shadows/LightDirectionalShadowMapRenderer.cs:365 — LightDirectionalShadowMapRenderer.ComputeCascadeSplits has cognitive complexity 19 (threshold 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 · ShaderMixer.SimplifyNotSupportedConstantsInShader (cognitive 19) · ×1
  • ShaderMixer.SimplifyNotSupportedConstantsInShader (cognitive 19) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:1237 — ShaderMixer.SimplifyNotSupportedConstantsInShader has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ShaderMixer.PropagateMacrosRecursively (cognitive 19) · ×1
  • ShaderMixer.PropagateMacrosRecursively (cognitive 19) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.ShaderSourceEvaluator.cs:310 — ShaderMixer.PropagateMacrosRecursively has cognitive 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.
D2 · Cognitive Complexity · ShaderLoaderBase.ValidateCachedHashes (cognitive 19) · ×1
  • ShaderLoaderBase.ValidateCachedHashes (cognitive 19) sources/shaders/Stride.Shaders.Compilers/ShaderLoaderBase.cs:133 — ShaderLoaderBase.ValidateCachedHashes has cognitive complexity 19 (threshold 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 · ShaderCorpusEntry.ReadSource (cognitive 19) · ×1
  • ShaderCorpusEntry.ReadSource (cognitive 19) sources/shaders/Stride.Shaders.Effects/Compiler/ShaderCorpusEntry.cs:219 — ShaderCorpusEntry.ReadSource has cognitive complexity 19 (threshold 15). 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 · MixinParser.Match (cognitive 19) · ×1
  • MixinParser.Match (cognitive 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDFX/Parsers/EffectStatementParsers.cs:126 — MixinParser.Match has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ParameterParser.Match (cognitive 19) · ×1
  • ParameterParser.Match (cognitive 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDFX/Parsers/ParamsParsers.cs:49 — ParameterParser.Match has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MethodCall.ConversionScore (cognitive 19) · ×1
  • MethodCall.ConversionScore (cognitive 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/MethodCallOverloads.cs:99 — MethodCall.ConversionScore has cognitive complexity 19 (threshold 15). 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 · FunctionDefineDirectiveParser.Match (cognitive 19) · ×1
  • FunctionDefineDirectiveParser.Match (cognitive 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/DirectiveExpressions/DirectiveParsers.cs:403 — FunctionDefineDirectiveParser.Match has cognitive complexity 19 (threshold 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 · FlowParsers.For (cognitive 19) · ×1
  • FlowParsers.For (cognitive 19) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/StatementParsers/StatementParsers.Flow.cs:119 — FlowParsers.For has cognitive complexity 19 (threshold 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 · Builder.Run (cognitive 19) · ×1
  • Builder.Run (cognitive 19) sources/buildengine/Stride.Core.BuildEngine.Common/Builder.cs:214 — Builder.Run has cognitive complexity 19 (threshold 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 · Emitter.WritePlainScalar (cognitive 19) · ×1
  • Emitter.WritePlainScalar (cognitive 19) sources/core/Stride.Core.Yaml/Emitter.cs:1365 — Emitter.WritePlainScalar has cognitive complexity 19 (threshold 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 · Parser.ProcessDirectives (cognitive 19) · ×1
  • Parser.ProcessDirectives (cognitive 19) sources/core/Stride.Core.Yaml/Parser.cs:306 — Parser.ProcessDirectives has cognitive complexity 19 (threshold 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 · AssetBaseToDerivedRegistry.RegisterBaseToDerived (cognitive 19) · ×1
  • AssetBaseToDerivedRegistry.RegisterBaseToDerived (cognitive 19) sources/assets/Stride.Core.Assets.Quantum/AssetBaseToDerivedRegistry.cs:18 — AssetBaseToDerivedRegistry.RegisterBaseToDerived has cognitive complexity 19 (threshold 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 · AssetRegistry.UnregisterAssetAssembly (cognitive 19) · ×1
  • AssetRegistry.UnregisterAssetAssembly (cognitive 19) sources/assets/Stride.Core.Assets/AssetRegistry.cs:793 — AssetRegistry.UnregisterAssetAssembly has cognitive 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.
D2 · Cognitive Complexity · Package.UpdateSourceFolders (cognitive 19) · ×1
  • Package.UpdateSourceFolders (cognitive 19) sources/assets/Stride.Core.Assets/Package.cs:1340 — Package.UpdateSourceFolders has cognitive complexity 19 (threshold 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 · PackageSession.LoadCompanionPackages (cognitive 19) · ×1
  • PackageSession.LoadCompanionPackages (cognitive 19) sources/assets/Stride.Core.Assets/PackageSession.CompanionPackages.cs:23 — PackageSession.LoadCompanionPackages has cognitive complexity 19 (threshold 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 · PackageSession.LoadMissingAssets (cognitive 19) · ×1
  • PackageSession.LoadMissingAssets (cognitive 19) sources/assets/Stride.Core.Assets/PackageSession.cs:1170 — PackageSession.LoadMissingAssets has cognitive complexity 19 (threshold 15). Of this number, 18 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 · EditCommandRouter.Resolve (cognitive 19) · ×1
  • EditCommandRouter.Resolve (cognitive 19) sources/presentation/Stride.Core.Presentation.Avalonia/Commands/EditCommandRouter.cs:76 — EditCommandRouter.Resolve has cognitive complexity 19 (threshold 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 · ToolBarTray.ArrangeOverride (cognitive 19) · ×1
  • ToolBarTray.ArrangeOverride (cognitive 19) sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ToolBarTray.cs:129 — ToolBarTray.ArrangeOverride has cognitive complexity 19 (threshold 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 · TemplateProviderBase.CompareTo (cognitive 19) · ×1
  • TemplateProviderBase.CompareTo (cognitive 19) sources/presentation/Stride.Core.Presentation.Avalonia/Views/TemplateProviderBase.cs:42 — TemplateProviderBase.CompareTo has cognitive complexity 19 (threshold 15). 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 · ScaleBar.OnRender (cognitive 19) · ×1
  • ScaleBar.OnRender (cognitive 19) sources/presentation/Stride.Core.Presentation.Wpf/Controls/ScaleBar.cs:706 — ScaleBar.OnRender has cognitive complexity 19 (threshold 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 · TreeView.BringItemToView (cognitive 19) · ×1
  • TreeView.BringItemToView (cognitive 19) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TreeView.cs:152 — TreeView.BringItemToView has cognitive complexity 19 (threshold 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 · TreeViewElementFinder.FindNext (cognitive 19) · ×1
  • TreeViewElementFinder.FindNext (cognitive 19) sources/presentation/Stride.Core.Presentation.Wpf/Controls/TreeViewElementFinder.cs:12 — TreeViewElementFinder.FindNext has cognitive complexity 19 (threshold 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 · CanvasRenderer.DrawTexts (cognitive 19) · ×1
  • CanvasRenderer.DrawTexts (cognitive 19) sources/presentation/Stride.Core.Presentation.Wpf/Drawing/CanvasRenderer.cs:259 — CanvasRenderer.DrawTexts has cognitive complexity 19 (threshold 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 · CanvasRenderer.DrawPolylineBalanced (cognitive 19) · ×1
  • CanvasRenderer.DrawPolylineBalanced (cognitive 19) sources/presentation/Stride.Core.Presentation.Wpf/Drawing/CanvasRenderer.cs:465 — CanvasRenderer.DrawPolylineBalanced has cognitive complexity 19 (threshold 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 · AssetTemplateGenerator.Run (cognitive 19) · ×1
  • AssetTemplateGenerator.Run (cognitive 19) sources/editor/Stride.Assets.Editor/Templates/Assets/AssetTemplateGenerator.cs:40 — AssetTemplateGenerator.Run has cognitive complexity 19 (threshold 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 · ProjectWatcher.FileChangeTransformation (cognitive 19) · ×1
  • ProjectWatcher.FileChangeTransformation (cognitive 19) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ProjectWatcher.cs:349 — ProjectWatcher.FileChangeTransformation has cognitive complexity 19 (threshold 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 · VisualScriptMethodEditorViewModel.Diagnostics_CollectionChanged (cognitive 19) · ×1
  • VisualScriptMethodEditorViewModel.Diagnostics_CollectionChanged (cognitive 19) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptMethodEditorViewModel.cs:385 — VisualScriptMethodEditorViewModel.Diagnostics_CollectionChanged has cognitive complexity 19 (threshold 15). 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 · HorizontalAndVerticalAxisRenderer.RenderMinorItems (cognitive 19) · ×1
  • HorizontalAndVerticalAxisRenderer.RenderMinorItems (cognitive 19) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/HorizontalAndVerticalAxisRenderer.cs:404 — HorizontalAndVerticalAxisRenderer.RenderMinorItems has cognitive complexity 19 (threshold 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 · FloatCurveViewModel.UpdateMaxMin (cognitive 19) · ×1
  • FloatCurveViewModel.UpdateMaxMin (cognitive 19) sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/ViewModels/FloatCurveViewModel.cs:59 — FloatCurveViewModel.UpdateMaxMin has cognitive complexity 19 (threshold 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 · StrideDefaultAssetsWpfPlugin.Initialize (cognitive 19) · ×1
  • StrideDefaultAssetsWpfPlugin.Initialize (cognitive 19) sources/editor/Stride.Assets.Editor.Wpf/StrideDefaultAssetsWpfPlugin.cs:101 — StrideDefaultAssetsWpfPlugin.Initialize has cognitive complexity 19 (threshold 15). Of this number, 17 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Program.Startup (cognitive 19) · ×1
  • Program.Startup (cognitive 19) sources/editor/Stride.GameStudio/Program.cs:400 — Program.Startup has cognitive complexity 19 (threshold 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 · Program.Main (cognitive 19) · ×1
  • Program.Main (cognitive 19) sources/editor/Stride.GameStudio.AutoTesting/Program.cs:23 — Program.Main has cognitive complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · VisualScriptCompiler.Generate (cognitive 19) · ×1
  • VisualScriptCompiler.Generate (cognitive 19) sources/engine/Stride.Assets/Scripts/VisualScriptCompiler.cs:498 — VisualScriptCompiler.Generate has cognitive complexity 19 (threshold 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 · MaxRectanglesBinPack.FindPositionForNewNodeBestShortSideFit (cognitive 19) · ×1
  • MaxRectanglesBinPack.FindPositionForNewNodeBestShortSideFit (cognitive 19) sources/engine/Stride.Assets/Textures/Packing/MaxRectanglesBinPack.cs:285 — MaxRectanglesBinPack.FindPositionForNewNodeBestShortSideFit has cognitive complexity 19 (threshold 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. This shape REPEATS in the file: 3 other methods here (MaxRectanglesBinPack.FindPositionForNewNodeBottomLeft, MaxRectanglesBinPack.FindPositionForNewNodeBestLongSideFit, MaxRectanglesBinPack.FindPositionForNewNodeBestAreaFit) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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 · MaxRectanglesBinPack.FindPositionForNewNodeBottomLeft (cognitive 19) · ×1
  • MaxRectanglesBinPack.FindPositionForNewNodeBottomLeft (cognitive 19) sources/engine/Stride.Assets/Textures/Packing/MaxRectanglesBinPack.cs:353 — MaxRectanglesBinPack.FindPositionForNewNodeBottomLeft has cognitive complexity 19 (threshold 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. This shape REPEATS in the file: 3 other methods here (MaxRectanglesBinPack.FindPositionForNewNodeBestShortSideFit, MaxRectanglesBinPack.FindPositionForNewNodeBestLongSideFit, MaxRectanglesBinPack.FindPositionForNewNodeBestAreaFit) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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 · MaxRectanglesBinPack.FindPositionForNewNodeBestLongSideFit (cognitive 19) · ×1
  • MaxRectanglesBinPack.FindPositionForNewNodeBestLongSideFit (cognitive 19) sources/engine/Stride.Assets/Textures/Packing/MaxRectanglesBinPack.cs:488 — MaxRectanglesBinPack.FindPositionForNewNodeBestLongSideFit has cognitive complexity 19 (threshold 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. This shape REPEATS in the file: 3 other methods here (MaxRectanglesBinPack.FindPositionForNewNodeBestShortSideFit, MaxRectanglesBinPack.FindPositionForNewNodeBottomLeft, MaxRectanglesBinPack.FindPositionForNewNodeBestAreaFit) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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 · MaxRectanglesBinPack.FindPositionForNewNodeBestAreaFit (cognitive 19) · ×1
  • MaxRectanglesBinPack.FindPositionForNewNodeBestAreaFit (cognitive 19) sources/engine/Stride.Assets/Textures/Packing/MaxRectanglesBinPack.cs:550 — MaxRectanglesBinPack.FindPositionForNewNodeBestAreaFit has cognitive complexity 19 (threshold 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. This shape REPEATS in the file: 3 other methods here (MaxRectanglesBinPack.FindPositionForNewNodeBestShortSideFit, MaxRectanglesBinPack.FindPositionForNewNodeBottomLeft, MaxRectanglesBinPack.FindPositionForNewNodeBestLongSideFit) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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 · TexturePacker.PackTextures (cognitive 19) · ×1
  • TexturePacker.PackTextures (cognitive 19) sources/engine/Stride.Assets/Textures/Packing/TexturePacker.cs:70 — TexturePacker.PackTextures has cognitive complexity 19 (threshold 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 · BepuSimulation.Update (cognitive 19) · ×1
  • BepuSimulation.Update (cognitive 19) sources/plugins/BepuPhysics/Stride.BepuPhysics/BepuSimulation.cs:767 — BepuSimulation.Update has cognitive complexity 19 (threshold 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 · Simulation.CreateConstraintInternal (cognitive 19) · ×1
  • Simulation.CreateConstraintInternal (cognitive 19) sources/plugins/BulletPhysics/Stride.Physics/Simulation.cs:703 — Simulation.CreateConstraintInternal has cognitive complexity 19 (threshold 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 · InitialColorParent.Initialize (cognitive 19) · ×1
  • InitialColorParent.Initialize (cognitive 19) sources/plugins/Particles/Stride.Particles/Initializers/InitialColorParent.cs:60 — InitialColorParent.Initialize has cognitive complexity 19 (threshold 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 · ThicknessEditor.UpdateValueFromComponent (cognitive 19) · ×1
  • ThicknessEditor.UpdateValueFromComponent (cognitive 19) sources/plugins/UI/Stride.UI.Editor.Avalonia/Views/ThicknessEditor.cs:114 — ThicknessEditor.UpdateValueFromComponent has cognitive complexity 19 (threshold 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 · Grid.CalculateStarStripSize (cognitive 19) · ×1
  • Grid.CalculateStarStripSize (cognitive 19) sources/plugins/UI/Stride.UI/Panels/Grid.cs:486 — Grid.CalculateStarStripSize has cognitive 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.
D2 · Cognitive Complexity · FFmpegMedia.IsStereoscopicVideo (cognitive 19) · ×1
  • FFmpegMedia.IsStereoscopicVideo (cognitive 19) sources/plugins/Video/Stride.Video/FFmpeg/FFmpegMedia.cs:242 — FFmpegMedia.IsStereoscopicVideo has cognitive complexity 19 (threshold 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 · SdkCommand.Create (cognitive 19) · ×1
  • SdkCommand.Create (cognitive 19) sources/launcher/Stride.Cli/SdkCommand.cs:12 — SdkCommand.Create has cognitive complexity 19 (threshold 15). None of this is in the body itself: all 19 points belong to 5 function literals inside it that branch (lines 63, 135, 36, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · MainViewModel.StartStudio (cognitive 19) · ×1
  • MainViewModel.StartStudio (cognitive 19) sources/launcher/Stride.Launcher/ViewModels/MainViewModel.cs:813 — MainViewModel.StartStudio has cognitive complexity 19 (threshold 15). Of this number, 17 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 · CecilExtensions.ConvertAssemblyQualifiedName (cognitive 19) · ×1
  • CecilExtensions.ConvertAssemblyQualifiedName (cognitive 19) sources/core/Stride.Core.AssemblyProcessor/CecilExtensions.cs:531 — CecilExtensions.ConvertAssemblyQualifiedName has cognitive complexity 19 (threshold 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 · AnimationChannel.Fitting (cognitive 18) · ×1
  • AnimationChannel.Fitting (cognitive 18) sources/engine/Stride.Engine/Animations/AnimationChannel.cs:110 — AnimationChannel.Fitting has cognitive complexity 18 (threshold 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 · CloneSerializer.PreSerialize (cognitive 18) · ×1
  • CloneSerializer.PreSerialize (cognitive 18) sources/engine/Stride.Engine/Engine/Design/CloneSerializer.cs:14 — CloneSerializer.PreSerialize has cognitive complexity 18 (threshold 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 · GraphicsCompositor.DrawCore (cognitive 18) · ×1
  • GraphicsCompositor.DrawCore (cognitive 18) sources/engine/Stride.Engine/Rendering/Compositing/GraphicsCompositor.cs:149 — GraphicsCompositor.DrawCore has cognitive complexity 18 (threshold 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 · ModelRenderProcessor.CheckMeshes (cognitive 18) · ×1
  • ModelRenderProcessor.CheckMeshes (cognitive 18) sources/engine/Stride.Engine/Rendering/ModelRenderProcessor.cs:205 — ModelRenderProcessor.CheckMeshes has cognitive 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.
D2 · Cognitive Complexity · TextureSerializationData.Write (cognitive 18) · ×1
  • TextureSerializationData.Write (cognitive 18) sources/engine/Stride.Graphics/Data/TextureSerializationData.cs:67 — TextureSerializationData.Write has cognitive complexity 18 (threshold 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 · Effect.HasParameter (cognitive 18) · ×1
  • Effect.HasParameter (cognitive 18) sources/engine/Stride.Graphics/Effects/Effect.cs:76 — Effect.HasParameter has cognitive complexity 18 (threshold 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 · CharacterBitmap.CopyAndAddBordersFromMono (cognitive 18) · ×1
  • CharacterBitmap.CopyAndAddBordersFromMono (cognitive 18) sources/engine/Stride.Graphics/Font/CharacterBitmap.cs:100 — CharacterBitmap.CopyAndAddBordersFromMono has cognitive 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.
D2 · Cognitive Complexity · Teapot.CreatePatchVertices (cognitive 18) · ×1
  • Teapot.CreatePatchVertices (cognitive 18) sources/engine/Stride.Graphics/GeometricPrimitives/GeometricPrimitive.Teapot.cs:363 — Teapot.CreatePatchVertices has cognitive complexity 18 (threshold 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 · EffectParameterUpdater.Update (cognitive 18) · ×1
  • EffectParameterUpdater.Update (cognitive 18) sources/engine/Stride.Graphics/Rendering/EffectParameterUpdater.cs:31 — EffectParameterUpdater.Update has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ResourceGroupBufferUploader.Apply (cognitive 18) · ×1
  • ResourceGroupBufferUploader.Apply (cognitive 18) sources/engine/Stride.Graphics/ResourceGroupBufferUploader.cs:99 — ResourceGroupBufferUploader.Apply has cognitive complexity 18 (threshold 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 · WindowsDisplayProvider.ReadModes (cognitive 18) · ×1
  • WindowsDisplayProvider.ReadModes (cognitive 18) sources/engine/Stride.Graphics/Windowing/WindowsDisplayProvider.cs:101 — WindowsDisplayProvider.ReadModes has cognitive complexity 18 (threshold 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 · HalfBufferExtensions.CompactHalf (cognitive 18) · ×1
  • HalfBufferExtensions.CompactHalf (cognitive 18) sources/engine/Stride.Rendering/Extensions/HalfBufferExtensions.cs:15 — HalfBufferExtensions.CompactHalf has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · RadiancePrefilteringGGX.DrawCore (cognitive 18) · ×1
  • RadiancePrefilteringGGX.DrawCore (cognitive 18) sources/engine/Stride.Rendering/Rendering/ComputeEffect/GGXPrefiltering/RadiancePrefilteringGGX.cs:72 — RadiancePrefilteringGGX.DrawCore has cognitive complexity 18 (threshold 15). 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 · DepthOfField.SetupTechnique (cognitive 18) · ×1
  • DepthOfField.SetupTechnique (cognitive 18) sources/engine/Stride.Rendering/Rendering/Images/DepthOfField/DepthOfField.cs:278 — DepthOfField.SetupTechnique has cognitive complexity 18 (threshold 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 · BowyerWatsonTetrahedralization.RemoveSuperTetrahedron (cognitive 18) · ×1
  • BowyerWatsonTetrahedralization.RemoveSuperTetrahedron (cognitive 18) sources/engine/Stride.Rendering/Rendering/LightProbes/BowyerWatsonTetrahedralization.cs:357 — BowyerWatsonTetrahedralization.RemoveSuperTetrahedron has cognitive complexity 18 (threshold 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 · MeshVelocityRenderFeature.Prepare (cognitive 18) · ×1
  • MeshVelocityRenderFeature.Prepare (cognitive 18) sources/engine/Stride.Rendering/Rendering/MeshVelocityRenderFeature.cs:109 — MeshVelocityRenderFeature.Prepare has cognitive complexity 18 (threshold 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 · RenderSystemResourceGroupLayout.CreateLogicalGroup (cognitive 18) · ×1
  • RenderSystemResourceGroupLayout.CreateLogicalGroup (cognitive 18) sources/engine/Stride.Rendering/Rendering/RenderSystemResourceGroupLayout.cs:33 — RenderSystemResourceGroupLayout.CreateLogicalGroup has cognitive complexity 18 (threshold 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 · ShaderMixer.ComputeCBufferReflection (cognitive 18) · ×1
  • ShaderMixer.ComputeCBufferReflection (cognitive 18) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.CBuffers.cs:427 — ShaderMixer.ComputeCBufferReflection has cognitive 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShaderMixer.MergeSDSL (cognitive 18) · ×1
  • ShaderMixer.MergeSDSL (cognitive 18) sources/shaders/Stride.Shaders.Compilers/SDSL/ShaderMixer.cs:37 — ShaderMixer.MergeSDSL has cognitive 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: 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 · EffectCodeWriter.WriteVariableAsParameterKey (cognitive 18) · ×1
  • EffectCodeWriter.WriteVariableAsParameterKey (cognitive 18) sources/shaders/Stride.Shaders.Generators/EffectCodeWriter.cs:108 — EffectCodeWriter.WriteVariableAsParameterKey has cognitive complexity 18 (threshold 15). 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 · ParamsParsers.Match (cognitive 18) · ×1
  • ParamsParsers.Match (cognitive 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDFX/Parsers/ParamsParsers.cs:10 — ParamsParsers.Match has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DeclareStatementParser.Match (cognitive 18) · ×1
  • DeclareStatementParser.Match (cognitive 18) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/StatementParsers/StatementParsers.cs:333 — DeclareStatementParser.Match has cognitive complexity 18 (threshold 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 · DisData.ComputeIdOffset (cognitive 18) · ×1
  • DisData.ComputeIdOffset (cognitive 18) sources/shaders/Stride.Shaders.Parsers/Spirv/Tools/Dis.cs:492 — DisData.ComputeIdOffset has cognitive complexity 18 (threshold 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 · SpirvTools.Validate (cognitive 18) · ×1
  • SpirvTools.Validate (cognitive 18) sources/shaders/Stride.Shaders.Parsers/Spirv/Tools/SpirvTools.cs:156 — SpirvTools.Validate has cognitive complexity 18 (threshold 15). 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 · GameTestBase.RunGameTest (cognitive 18) · ×1
  • GameTestBase.RunGameTest (cognitive 18) sources/engine/Stride.Graphics.Regression/GameTestBase.cs:585 — GameTestBase.RunGameTest has cognitive complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HostEnvironment.ResolveCpuName (cognitive 18) · ×1
  • HostEnvironment.ResolveCpuName (cognitive 18) sources/engine/Stride.Graphics.Regression/HostEnvironment.cs:44 — HostEnvironment.ResolveCpuName has cognitive complexity 18 (threshold 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 · TestCamera.UpdateCamera (cognitive 18) · ×1
  • TestCamera.UpdateCamera (cognitive 18) sources/engine/Stride.Graphics.Regression/TestCamera.cs:224 — TestCamera.UpdateCamera has cognitive complexity 18 (threshold 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 · CommandBuildStep.StartCommand (cognitive 18) · ×1
  • CommandBuildStep.StartCommand (cognitive 18) sources/buildengine/Stride.Core.BuildEngine.Common/CommandBuildStep.cs:273 — CommandBuildStep.StartCommand has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DataVisitorBase.Visit (cognitive 18) · ×1
  • DataVisitorBase.Visit (cognitive 18) sources/core/Stride.Core.Design/Reflection/DataVisitorBase.cs:106 — DataVisitorBase.Visit has cognitive complexity 18 (threshold 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 · SolutionSerialization.Reconcile (cognitive 18) · ×1
  • SolutionSerialization.Reconcile (cognitive 18) REDACTED:173 — SolutionSerialization.Reconcile has cognitive complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BundlePacker.ValidateReferenceRooting (cognitive 18) · ×1
  • BundlePacker.ValidateReferenceRooting (cognitive 18) sources/assets/Stride.AssetCompiler/BundlePacker.cs:317 — BundlePacker.ValidateReferenceRooting has cognitive complexity 18 (threshold 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 · AssetFileChangedEventSquasher.Squash (cognitive 18) · ×1
  • AssetFileChangedEventSquasher.Squash (cognitive 18) sources/assets/Stride.Core.Assets/Analysis/AssetFileChangedEventSquasher.cs:20 — AssetFileChangedEventSquasher.Squash has cognitive complexity 18 (threshold 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 · TrackedAsset.UpdateAssetImportPathsTracked (cognitive 18) · ×1
  • TrackedAsset.UpdateAssetImportPathsTracked (cognitive 18) sources/assets/Stride.Core.Assets/Tracking/TrackedAsset.cs:63 — TrackedAsset.UpdateAssetImportPathsTracked has cognitive complexity 18 (threshold 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 · YamlAssetPath.FromMemberPath (cognitive 18) · ×1
  • YamlAssetPath.FromMemberPath (cognitive 18) sources/assets/Stride.Core.Assets/Yaml/YamlAssetPath.cs:341 — YamlAssetPath.FromMemberPath has cognitive complexity 18 (threshold 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 · GraphSelectionBehavior.OnSelectedVerticesChanged (cognitive 18) · ×1
  • GraphSelectionBehavior.OnSelectedVerticesChanged (cognitive 18) sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/GraphSelectionBehavior.cs:322 — GraphSelectionBehavior.OnSelectedVerticesChanged has cognitive complexity 18 (threshold 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. This shape REPEATS in the file: one other method here (GraphSelectionBehavior.OnSelectedEdgesChanged) 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 · GraphSelectionBehavior.OnSelectedEdgesChanged (cognitive 18) · ×1
  • GraphSelectionBehavior.OnSelectedEdgesChanged (cognitive 18) sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/GraphSelectionBehavior.cs:414 — GraphSelectionBehavior.OnSelectedEdgesChanged has cognitive complexity 18 (threshold 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. This shape REPEATS in the file: one other method here (GraphSelectionBehavior.OnSelectedVerticesChanged) 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 · NodeGraphSelectionBehavior.OnSelectedLinkItemsChanged (cognitive 18) · ×1
  • NodeGraphSelectionBehavior.OnSelectedLinkItemsChanged (cognitive 18) sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/NodeGraphSelectionBehavior.cs:41 — NodeGraphSelectionBehavior.OnSelectedLinkItemsChanged has cognitive complexity 18 (threshold 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 · VirtualizingTilePanel.MeasureOverride (cognitive 18) · ×1
  • VirtualizingTilePanel.MeasureOverride (cognitive 18) sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTilePanel.cs:133 — VirtualizingTilePanel.MeasureOverride has cognitive complexity 18 (threshold 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 · MinidumpReader.FaultingFrame (cognitive 18) · ×1
  • MinidumpReader.FaultingFrame (cognitive 18) sources/crashreport/Stride.CrashReport/MinidumpReader.cs:39 — MinidumpReader.FaultingFrame has cognitive complexity 18 (threshold 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 · MinidumpWriter.ScrubDump (cognitive 18) · ×1
  • MinidumpWriter.ScrubDump (cognitive 18) sources/crashreport/Stride.CrashReport/MinidumpWriter.cs:65 — MinidumpWriter.ScrubDump has cognitive 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.
D2 · Cognitive Complexity · EntityHierarchyAssetNodeUpdater.UpdateNode (cognitive 18) · ×1
  • EntityHierarchyAssetNodeUpdater.UpdateNode (cognitive 18) sources/editor/Stride.Assets.Editor/Quantum/NodePresenters/Updaters/EntityHierarchyAssetNodeUpdater.cs:20 — EntityHierarchyAssetNodeUpdater.UpdateNode has cognitive 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GraphicsCompositorEditorViewModel.ComputeSelectionName (cognitive 18) · ×1
  • GraphicsCompositorEditorViewModel.ComputeSelectionName (cognitive 18) sources/editor/Stride.Assets.Editor/ViewModels/GraphicsCompositorEditorViewModel.cs:213 — GraphicsCompositorEditorViewModel.ComputeSelectionName has cognitive complexity 18 (threshold 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 · ModelViewModel.UpdateMorphTargetNames (cognitive 18) · ×1
  • ModelViewModel.UpdateMorphTargetNames (cognitive 18) sources/editor/Stride.Assets.Presentation/ViewModels/ModelViewModel.cs:102 — ModelViewModel.UpdateMorphTargetNames has cognitive complexity 18 (threshold 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 · PanelLayoutResolver.Prune (cognitive 18) · ×1
  • PanelLayoutResolver.Prune (cognitive 18) sources/editor/Stride.Core.Assets.Editor/Panels/PanelLayoutResolver.cs:247 — PanelLayoutResolver.Prune has cognitive complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · SessionViewModel.DoUpdateSessionState (cognitive 18) · ×1
  • SessionViewModel.DoUpdateSessionState (cognitive 18) sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:1706 — SessionViewModel.DoUpdateSessionState has cognitive complexity 18 (threshold 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 · CodeViewModel.UpdateProjects (cognitive 18) · ×1
  • CodeViewModel.UpdateProjects (cognitive 18) sources/editor/Stride.Assets.Editor.Wpf/ViewModel/CodeViewModel.cs:137 — CodeViewModel.UpdateProjects has cognitive 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 one function literal inside it that branches (line 145). 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 · PluginFeatureOwnershipUpgrader.UpgradeAsset (cognitive 18) · ×1
  • PluginFeatureOwnershipUpgrader.UpgradeAsset (cognitive 18) sources/engine/Stride.Assets/Rendering/GraphicsCompositorAsset.cs:186 — PluginFeatureOwnershipUpgrader.UpgradeAsset has cognitive complexity 18 (threshold 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 · VisualScriptCompilerContext.ProcessCodeToGenerate (cognitive 18) · ×1
  • VisualScriptCompilerContext.ProcessCodeToGenerate (cognitive 18) sources/engine/Stride.Assets/Scripts/VisualScriptCompiler.cs:304 — VisualScriptCompilerContext.ProcessCodeToGenerate has cognitive complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PhysicsComponent.ComposeShape (cognitive 18) · ×1
  • PhysicsComponent.ComposeShape (cognitive 18) sources/plugins/BulletPhysics/Stride.Physics/Engine/PhysicsComponent.cs:592 — PhysicsComponent.ComposeShape has cognitive complexity 18 (threshold 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 · SpriteStudioModelAssetCommand.DoCommandOverride (cognitive 18) · ×1
  • SpriteStudioModelAssetCommand.DoCommandOverride (cognitive 18) sources/plugins/SpriteStudio/Stride.SpriteStudio.Assets/SpriteStudioModelAssetCompiler.cs:88 — SpriteStudioModelAssetCommand.DoCommandOverride has cognitive complexity 18 (threshold 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 · MarginAdorner.Update (cognitive 18) · ×1
  • MarginAdorner.Update (cognitive 18) sources/plugins/UI/Stride.UI.Editor/Adorners/MarginAdorner.cs:68 — MarginAdorner.Update has cognitive complexity 18 (threshold 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 · UIEditorGameCameraService.UpdateCamera (cognitive 18) · ×1
  • UIEditorGameCameraService.UpdateCamera (cognitive 18) sources/plugins/UI/Stride.UI.Editor/Game/UIEditorGameCameraService.cs:83 — UIEditorGameCameraService.UpdateCamera has cognitive complexity 18 (threshold 15). 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 · PanelViewModel.ChangeChildElementLayoutProperties (cognitive 18) · ×1
  • PanelViewModel.ChangeChildElementLayoutProperties (cognitive 18) sources/plugins/UI/Stride.UI.Editor/ViewModels/PanelViewModel.cs:56 — PanelViewModel.ChangeChildElementLayoutProperties has cognitive complexity 18 (threshold 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 · UIHierarchyItemViewModel.MoveChildren (cognitive 18) · ×1
  • UIHierarchyItemViewModel.MoveChildren (cognitive 18) sources/plugins/UI/Stride.UI.Editor/ViewModels/UIHierarchyItemViewModel.cs:69 — UIHierarchyItemViewModel.MoveChildren has cognitive complexity 18 (threshold 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 · UIHierarchyItemViewModel.CanAddOrInsertChildrenPrivate (cognitive 18) · ×1
  • UIHierarchyItemViewModel.CanAddOrInsertChildrenPrivate (cognitive 18) sources/plugins/UI/Stride.UI.Editor/ViewModels/UIHierarchyItemViewModel.cs:127 — UIHierarchyItemViewModel.CanAddOrInsertChildrenPrivate has cognitive complexity 18 (threshold 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 · RouterHelper.EnsureRouterLaunched (cognitive 18) · ×1
  • RouterHelper.EnsureRouterLaunched (cognitive 18) sources/tools/Stride.ConnectionRouter/RouterHelper.cs:29 — RouterHelper.EnsureRouterLaunched has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MeshConverter.ConvertAssimpScene (cognitive 18) · ×1
  • MeshConverter.ConvertAssimpScene (cognitive 18) sources/tools/Stride.Importer.3D/MeshConverter.cs:319 — MeshConverter.ConvertAssimpScene has cognitive complexity 18 (threshold 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 · MainViewModel.ListLocalStrideVersions (cognitive 18) · ×1
  • MainViewModel.ListLocalStrideVersions (cognitive 18) sources/launcher/Stride.Launcher/ViewModels/MainViewModel.cs:533 — MainViewModel.ListLocalStrideVersions has cognitive complexity 18 (threshold 15). Of this number, 14 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 · AssemblyProcessorApp.Run (cognitive 18) · ×1
  • AssemblyProcessorApp.Run (cognitive 18) sources/core/Stride.Core.AssemblyProcessor/AssemblyProcessorApp.cs:67 — AssemblyProcessorApp.Run has cognitive complexity 18 (threshold 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 · tableBuilder.extractJsonInformations (cognitive 18) · ×1
  • tableBuilder.extractJsonInformations (cognitive 18) sources/engine/Stride.Graphics.Regression/Web/tableBuilder.js:103 — tableBuilder.extractJsonInformations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TypeNameBuilder.Build (cognitive 17) · ×1
  • TypeNameBuilder.Build (cognitive 17) sources/core/Stride.Core.CompilerServices/Common/TypeNameBuilder.cs:38 — TypeNameBuilder.Build has cognitive complexity 17 (threshold 15). 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 · EffectKeysType.FromSymbol (cognitive 17) · ×1
  • EffectKeysType.FromSymbol (cognitive 17) sources/core/Stride.Core.CompilerServices/Generators/EffectKeysGenerator.cs:151 — EffectKeysType.FromSymbol has cognitive complexity 17 (threshold 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 · VirtualFileSystem.ResolveProviderUnsafe (cognitive 17) · ×1
  • VirtualFileSystem.ResolveProviderUnsafe (cognitive 17) sources/core/Stride.Core.IO/VirtualFileSystem.cs:528 — VirtualFileSystem.ResolveProviderUnsafe has cognitive complexity 17 (threshold 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 · Scheduler.ScheduleUnsafe (cognitive 17) · ×1
  • Scheduler.ScheduleUnsafe (cognitive 17) sources/core/Stride.Core.MicroThreading/Scheduler.cs:365 — Scheduler.ScheduleUnsafe has cognitive complexity 17 (threshold 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 · FileOdbBackend.EnumerateObjects (cognitive 17) · ×1
  • FileOdbBackend.EnumerateObjects (cognitive 17) sources/core/Stride.Core.Serialization/Storage/FileOdbBackend.cs:193 — FileOdbBackend.EnumerateObjects has cognitive complexity 17 (threshold 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 · Game.PrepareContext (cognitive 17) · ×1
  • Game.PrepareContext (cognitive 17) sources/engine/Stride.Engine/Engine/Game.cs:257 — Game.PrepareContext has cognitive complexity 17 (threshold 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 · ForwardRenderer.DrawView (cognitive 17) · ×1
  • ForwardRenderer.DrawView (cognitive 17) sources/engine/Stride.Engine/Rendering/Compositing/ForwardRenderer.cs:490 — ForwardRenderer.DrawView has cognitive complexity 17 (threshold 15). 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 · UpdateEngine.ProcessMember (cognitive 17) · ×1
  • UpdateEngine.ProcessMember (cognitive 17) sources/engine/Stride.Engine/Updater/UpdateEngine.cs:370 — UpdateEngine.ProcessMember has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · VertexHelper.GenerateMultiTextureCoordinates (cognitive 17) · ×1
  • VertexHelper.GenerateMultiTextureCoordinates (cognitive 17) sources/engine/Stride.Graphics/VertexHelper.cs:118 — VertexHelper.GenerateMultiTextureCoordinates has cognitive complexity 17 (threshold 15). 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 · EffectSystem.CreateEffect (cognitive 17) · ×1
  • EffectSystem.CreateEffect (cognitive 17) sources/engine/Stride.Rendering/Rendering/EffectSystem.cs:181 — EffectSystem.CreateEffect has cognitive complexity 17 (threshold 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 · StreamingManager.Update (cognitive 17) · ×1
  • StreamingManager.Update (cognitive 17) sources/engine/Stride.Rendering/Streaming/StreamingManager.cs:431 — StreamingManager.Update has cognitive complexity 17 (threshold 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 · DxilHash.ComputeHashRetail (cognitive 17) · ×1
  • DxilHash.ComputeHashRetail (cognitive 17) sources/shaders/Stride.Shaders.Compilers/Direct3D/DxilHash.cs:55 — DxilHash.ComputeHashRetail has cognitive complexity 17 (threshold 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 · ParsersExtensions.NamespaceDeclaration (cognitive 17) · ×1
  • ParsersExtensions.NamespaceDeclaration (cognitive 17) sources/shaders/Stride.Shaders.Generators.Internal/Intrinsics/Parser.cs:426 — ParsersExtensions.NamespaceDeclaration has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · EffectParser.Match (cognitive 17) · ×1
  • EffectParser.Match (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDFX/Parsers/EffectParser.cs:14 — EffectParser.Match has cognitive complexity 17 (threshold 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 · MethodCall.TryResolveFunctionSymbol (cognitive 17) · ×1
  • MethodCall.TryResolveFunctionSymbol (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Expression.cs:541 — MethodCall.TryResolveFunctionSymbol has cognitive complexity 17 (threshold 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 · CompositeLiteral.CompileImpl (cognitive 17) · ×1
  • CompositeLiteral.CompileImpl (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:232 — CompositeLiteral.CompileImpl has cognitive complexity 17 (threshold 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 · ConditionalDirectivesParser.Match (cognitive 17) · ×1
  • ConditionalDirectivesParser.Match (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/DirectiveExpressions/DirectiveParsers.cs:113 — ConditionalDirectivesParser.Match has cognitive complexity 17 (threshold 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 · ExpressionParser.Add (cognitive 17) · ×1
  • ExpressionParser.Add (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:57 — ExpressionParser.Add has cognitive complexity 17 (threshold 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. This shape REPEATS in the file: 6 other methods here (ExpressionParser.Mul, ExpressionParser.Shift, ExpressionParser.Relation, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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 · ExpressionParser.Mul (cognitive 17) · ×1
  • ExpressionParser.Mul (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:90 — ExpressionParser.Mul has cognitive complexity 17 (threshold 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. This shape REPEATS in the file: 6 other methods here (ExpressionParser.Add, ExpressionParser.Shift, ExpressionParser.Relation, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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 · ExpressionParser.Shift (cognitive 17) · ×1
  • ExpressionParser.Shift (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:123 — ExpressionParser.Shift has cognitive complexity 17 (threshold 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. This shape REPEATS in the file: 6 other methods here (ExpressionParser.Add, ExpressionParser.Mul, ExpressionParser.Relation, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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 · ExpressionParser.Relation (cognitive 17) · ×1
  • ExpressionParser.Relation (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:156 — ExpressionParser.Relation has cognitive complexity 17 (threshold 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. This shape REPEATS in the file: 6 other methods here (ExpressionParser.Add, ExpressionParser.Mul, ExpressionParser.Shift, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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 · ExpressionParser.BAnd (cognitive 17) · ×1
  • ExpressionParser.BAnd (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:219 — ExpressionParser.BAnd has cognitive complexity 17 (threshold 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. This shape REPEATS in the file: 6 other methods here (ExpressionParser.Add, ExpressionParser.Mul, ExpressionParser.Shift, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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 · ExpressionParser.BOr (cognitive 17) · ×1
  • ExpressionParser.BOr (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:254 — ExpressionParser.BOr has cognitive complexity 17 (threshold 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. This shape REPEATS in the file: 6 other methods here (ExpressionParser.Add, ExpressionParser.Mul, ExpressionParser.Shift, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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 · ExpressionParser.XOr (cognitive 17) · ×1
  • ExpressionParser.XOr (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:288 — ExpressionParser.XOr has cognitive complexity 17 (threshold 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. This shape REPEATS in the file: 6 other methods here (ExpressionParser.Add, ExpressionParser.Mul, ExpressionParser.Shift, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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 · NumberParser.Integer (cognitive 17) · ×1
  • NumberParser.Integer (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/LiteralParsers/NumberParsers.cs:25 — NumberParser.Integer has cognitive complexity 17 (threshold 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 · ShaderMemberParser.Match (cognitive 17) · ×1
  • ShaderMemberParser.Match (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderDataParsers.cs:15 — ShaderMemberParser.Match has cognitive complexity 17 (threshold 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 · ShaderFileParser.Match (cognitive 17) · ×1
  • ShaderFileParser.Match (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderFileParsers.cs:16 — ShaderFileParser.Match has cognitive 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.
D2 · Cognitive Complexity · SpirvContext.RemoveNameAndDecorations (cognitive 17) · ×1
  • SpirvContext.RemoveNameAndDecorations (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Spirv/Building/Context.cs:316 — SpirvContext.RemoveNameAndDecorations has cognitive complexity 17 (threshold 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 · SpirvTools.ResolveSourceLocation (cognitive 17) · ×1
  • SpirvTools.ResolveSourceLocation (cognitive 17) sources/shaders/Stride.Shaders.Parsers/Spirv/Tools/SpirvTools.cs:233 — SpirvTools.ResolveSourceLocation has cognitive complexity 17 (threshold 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 · SPVGenerator.GenerateSDSLSpecification (cognitive 17) · ×1
  • SPVGenerator.GenerateSDSLSpecification (cognitive 17) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Specification.cs:10 — SPVGenerator.GenerateSDSLSpecification has cognitive complexity 17 (threshold 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 · NativeCrashHandler.OnVectoredException (cognitive 17) · ×1
  • NativeCrashHandler.OnVectoredException (cognitive 17) sources/shared/NativeCrashHandler.cs:222 — NativeCrashHandler.OnVectoredException has cognitive complexity 17 (threshold 15). 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 · DynamicBuildStep.Execute (cognitive 17) · ×1
  • DynamicBuildStep.Execute (cognitive 17) sources/buildengine/Stride.Core.BuildEngine.Common/DynamicBuildStep.cs:55 — DynamicBuildStep.Execute has cognitive complexity 17 (threshold 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 · AssemblyContainer.FindDependencyPath (cognitive 17) · ×1
  • AssemblyContainer.FindDependencyPath (cognitive 17) sources/core/Stride.Core.Design/Reflection/AssemblyContainer.cs:191 — AssemblyContainer.FindDependencyPath has cognitive complexity 17 (threshold 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 · YamlMappingNode.ResolveAliases (cognitive 17) · ×1
  • YamlMappingNode.ResolveAliases (cognitive 17) sources/core/Stride.Core.Yaml/Serialization/YamlMappingNode.cs:225 — YamlMappingNode.ResolveAliases has cognitive complexity 17 (threshold 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 · AssetSourceTracker.EnableTracking.set (cognitive 17) · ×1
  • AssetSourceTracker.EnableTracking.set (cognitive 17) sources/assets/Stride.Core.Assets/Tracking/AssetSourceTracker.cs:66 — AssetSourceTracker.EnableTracking.set has cognitive complexity 17 (threshold 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 · DynamicYamlMapping.ParseOverrides (cognitive 17) · ×1
  • DynamicYamlMapping.ParseOverrides (cognitive 17) sources/assets/Stride.Core.Assets.Yaml/DynamicYaml/DynamicYamlMapping.cs:345 — DynamicYamlMapping.ParseOverrides has cognitive complexity 17 (threshold 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 · NugetStore.SourceSearch (cognitive 17) · ×1
  • NugetStore.SourceSearch (cognitive 17) REDACTED:1077 — NugetStore.SourceSearch has cognitive complexity 17 (threshold 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 · NodeGraphSelectionBehavior.OnSelectedLinksChanged (cognitive 17) · ×1
  • NodeGraphSelectionBehavior.OnSelectedLinksChanged (cognitive 17) sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/NodeGraphSelectionBehavior.cs:163 — NodeGraphSelectionBehavior.OnSelectedLinksChanged has cognitive complexity 17 (threshold 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 · SceneViewModel.ChildrenCollectionChanged (cognitive 17) · ×1
  • SceneViewModel.ChildrenCollectionChanged (cognitive 17) sources/editor/Stride.Assets.Presentation/ViewModels/SceneViewModel.cs:311 — SceneViewModel.ChildrenCollectionChanged has cognitive complexity 17 (threshold 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 · ExternalAssetChangeTracker.ProcessPendingFiles (cognitive 17) · ×1
  • ExternalAssetChangeTracker.ProcessPendingFiles (cognitive 17) sources/editor/Stride.Core.Assets.Editor/ViewModels/ExternalAssetChangeTracker.cs:161 — ExternalAssetChangeTracker.ProcessPendingFiles has cognitive complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 183). 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 · SessionViewModel.CloseAsync (cognitive 17) · ×1
  • SessionViewModel.CloseAsync (cognitive 17) sources/editor/Stride.Core.Assets.Editor/ViewModels/SessionViewModel.cs:989 — SessionViewModel.CloseAsync has cognitive complexity 17 (threshold 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 · AssetContentValueChangeOperation.ApplyUndo (cognitive 17) · ×1
  • AssetContentValueChangeOperation.ApplyUndo (cognitive 17) sources/editor/Stride.Core.Assets.Presentation/Quantum/AssetContentValueChangeOperation.cs:134 — AssetContentValueChangeOperation.ApplyUndo has cognitive complexity 17 (threshold 15). 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 · PreviewGame.ProcessPreviewRequestsTask (cognitive 17) · ×1
  • PreviewGame.ProcessPreviewRequestsTask (cognitive 17) sources/editor/Stride.Editor/Preview/PreviewGame.cs:112 — PreviewGame.ProcessPreviewRequestsTask has cognitive complexity 17 (threshold 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 · ReloadAssembliesOperation.LoadAssemblies (cognitive 17) · ×1
  • ReloadAssembliesOperation.LoadAssemblies (cognitive 17) sources/editor/Stride.Assets.Editor.Wpf/AssemblyReloading/ReloadAssembliesOperation.cs:92 — ReloadAssembliesOperation.LoadAssemblies has cognitive complexity 17 (threshold 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 · EntityComponentSourceCodeResolver.AnalyzeProject (cognitive 17) · ×1
  • EntityComponentSourceCodeResolver.AnalyzeProject (cognitive 17) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/EntityComponentSourceCodeResolver.cs:66 — EntityComponentSourceCodeResolver.AnalyzeProject has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectWatcher.EnsureSolutionOpened (cognitive 17) · ×1
  • ProjectWatcher.EnsureSolutionOpened (cognitive 17) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ProjectWatcher.cs:725 — ProjectWatcher.EnsureSolutionOpened has cognitive complexity 17 (threshold 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 · VisualScriptEditorViewModel.AddNewMethod (cognitive 17) · ×1
  • VisualScriptEditorViewModel.AddNewMethod (cognitive 17) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/VisualScriptEditorViewModel.cs:242 — VisualScriptEditorViewModel.AddNewMethod has cognitive complexity 17 (threshold 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 · CodeViewModel.AddNewProjectAssets (cognitive 17) · ×1
  • CodeViewModel.AddNewProjectAssets (cognitive 17) sources/editor/Stride.Assets.Editor.Wpf/ViewModel/CodeViewModel.cs:591 — CodeViewModel.AddNewProjectAssets has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GridLogViewer.OnLogMessagesCollectionChanged (cognitive 17) · ×1
  • GridLogViewer.OnLogMessagesCollectionChanged (cognitive 17) sources/editor/Stride.Core.Assets.Editor.Wpf/View/Controls/GridLogViewer.cs:200 — GridLogViewer.OnLogMessagesCollectionChanged has cognitive complexity 17 (threshold 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 · EditorDialogService.AddDelayedNotification (cognitive 17) · ×1
  • EditorDialogService.AddDelayedNotification (cognitive 17) sources/editor/Stride.Core.Assets.Editor.Wpf/View/EditorDialogService.cs:368 — EditorDialogService.AddDelayedNotification has cognitive complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 379). 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 · GameStudioWindow.OpenDefaultScene (cognitive 17) · ×1
  • GameStudioWindow.OpenDefaultScene (cognitive 17) sources/editor/Stride.GameStudio/View/GameStudioWindow.xaml.cs:357 — GameStudioWindow.OpenDefaultScene has cognitive complexity 17 (threshold 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 · GraphicsCaptureClient.OpenSession (cognitive 17) · ×1
  • GraphicsCaptureClient.OpenSession (cognitive 17) sources/editor/Stride.GameStudio.AutoTesting/GraphicsCaptureClient.cs:143 — GraphicsCaptureClient.OpenSession has cognitive complexity 17 (threshold 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 · RoslynCodeUpgradeRunner.Run (cognitive 17) · ×1
  • RoslynCodeUpgradeRunner.Run (cognitive 17) sources/engine/Stride.Assets/CodeUpgrade/RoslynCodeUpgradeRunner.cs:26 — RoslynCodeUpgradeRunner.Run has cognitive complexity 17 (threshold 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 · BitmapImporter.FindGlyphs (cognitive 17) · ×1
  • BitmapImporter.FindGlyphs (cognitive 17) sources/engine/Stride.Assets/SpriteFont/Compiler/BitmapImporter.cs:151 — BitmapImporter.FindGlyphs has cognitive complexity 17 (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.
D2 · Cognitive Complexity · ParticleSystemRenderProcessor.CheckEmitters (cognitive 17) · ×1
  • ParticleSystemRenderProcessor.CheckEmitters (cognitive 17) sources/plugins/Particles/Stride.Particles/Rendering/ParticleSystemRenderProcessor.cs:28 — ParticleSystemRenderProcessor.CheckEmitters has cognitive complexity 17 (threshold 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 · ScrollViewer.ArrangeOverride (cognitive 17) · ×1
  • ScrollViewer.ArrangeOverride (cognitive 17) sources/plugins/UI/Stride.UI/Controls/ScrollViewer.cs:662 — ScrollViewer.ArrangeOverride has cognitive complexity 17 (threshold 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 · StackPanel.UpdateAndArrangeVisibleChildren (cognitive 17) · ×1
  • StackPanel.UpdateAndArrangeVisibleChildren (cognitive 17) sources/plugins/UI/Stride.UI/Panels/StackPanel.cs:699 — StackPanel.UpdateAndArrangeVisibleChildren has cognitive complexity 17 (threshold 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 · DefaultTextBlockRenderer.RenderColor (cognitive 17) · ×1
  • DefaultTextBlockRenderer.RenderColor (cognitive 17) sources/plugins/UI/Stride.UI/Renderers/DefaultTextBlockRenderer.cs:21 — DefaultTextBlockRenderer.RenderColor has cognitive complexity 17 (threshold 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 · POExporter.MergeMessage (cognitive 17) · ×1
  • POExporter.MergeMessage (cognitive 17) sources/tools/Stride.Core.Translation.Extractor/Exporters/POExporter.cs:74 — POExporter.MergeMessage has cognitive complexity 17 (threshold 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 · Program.Run (cognitive 17) · ×1
  • Program.Run (cognitive 17) sources/tools/Stride.Core.Translation.Extractor/Program.cs:80 — Program.Run has cognitive complexity 17 (threshold 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 · RestoreHelper.ListNativeLibs (cognitive 17) · ×1
  • RestoreHelper.ListNativeLibs (cognitive 17) sources/shared/Stride.NuGetResolver/RestoreHelper.cs:161 — RestoreHelper.ListNativeLibs has cognitive complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtlasTexLibrary.InitalizeAtlas (cognitive 17) · ×1
  • AtlasTexLibrary.InitalizeAtlas (cognitive 17) sources/tools/Stride.TextureConverter/Backend/TexLibraries/AtlasTexLibrary.cs:320 — AtlasTexLibrary.InitalizeAtlas has cognitive complexity 17 (threshold 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 · StrideVersionManager.ResolveTemplatePackages (cognitive 17) · ×1
  • StrideVersionManager.ResolveTemplatePackages (cognitive 17) sources/launcher/Stride.Cli/Core/StrideVersionManager.cs:506 — StrideVersionManager.ResolveTemplatePackages has cognitive complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayerController.HandleInput (cognitive 17) · ×1
  • PlayerController.HandleInput (cognitive 17) samples/Templates/Platformer2D/Platformer2D/Platformer2D.Game/PlayerController.cs:48 — PlayerController.HandleInput has cognitive complexity 17 (threshold 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 · SerializationProcessor.GenerateSerializerTypes (cognitive 17) · ×1
  • SerializationProcessor.GenerateSerializerTypes (cognitive 17) sources/core/Stride.Core.AssemblyProcessor/SerializationProcessor.cs:126 — SerializationProcessor.GenerateSerializerTypes has cognitive complexity 17 (threshold 15). Of this number, 15 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 · BoxTriangleCollider.OverlapsAlongAxis (cognitive 17) · ×1
  • BoxTriangleCollider.OverlapsAlongAxis (cognitive 17) sources/plugins/BepuPhysics/Stride.BepuPhysics.Soft/Definitions/BepuThings.cs:22 — BoxTriangleCollider.OverlapsAlongAxis has cognitive complexity 17 (threshold 15). 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 · STRDIAG014UndeclaredAssetFileExtension.AnalyzeSymbol (cognitive 16) · ×1
  • STRDIAG014UndeclaredAssetFileExtension.AnalyzeSymbol (cognitive 16) sources/core/Stride.Core.CompilerServices/Analyzers/STRDIAG014UndeclaredAssetFileExtension.cs:73 — STRDIAG014UndeclaredAssetFileExtension.AnalyzeSymbol has cognitive complexity 16 (threshold 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 · GuillotinePacker.Insert (cognitive 16) · ×1
  • GuillotinePacker.Insert (cognitive 16) sources/core/Stride.Core.Mathematics/GuillotinePacker.cs:108 — GuillotinePacker.Insert has cognitive complexity 16 (threshold 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 · HalfUtils.HalfUtils.ctor (cognitive 16) · ×1
  • HalfUtils.HalfUtils.ctor (cognitive 16) sources/core/Stride.Core.Mathematics/HalfUtils.cs:77 — HalfUtils.HalfUtils.ctor has cognitive complexity 16 (threshold 15). 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 · PropertyContainer.GetEnumerator (cognitive 16) · ×1
  • PropertyContainer.GetEnumerator (cognitive 16) sources/core/Stride.Core/PropertyContainer.cs:61 — PropertyContainer.GetEnumerator has cognitive complexity 16 (threshold 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 · PropertyContainer.ContainsKey (cognitive 16) · ×1
  • PropertyContainer.ContainsKey (cognitive 16) sources/core/Stride.Core/PropertyContainer.cs:133 — PropertyContainer.ContainsKey has cognitive complexity 16 (threshold 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 · ConcurrentPool.Acquire (cognitive 16) · ×1
  • ConcurrentPool.Acquire (cognitive 16) sources/core/Stride.Core/Threading/ConcurrentPool.cs:80 — ConcurrentPool.Acquire has cognitive complexity 16 (threshold 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 · ThreadThrottler.Throttle (cognitive 16) · ×1
  • ThreadThrottler.Throttle (cognitive 16) sources/core/Stride.Core/ThreadThrottler.cs:190 — ThreadThrottler.Throttle has cognitive complexity 16 (threshold 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 · ModelNodeTransformLink.ComputeMatrix (cognitive 16) · ×1
  • ModelNodeTransformLink.ComputeMatrix (cognitive 16) sources/engine/Stride.Engine/Engine/ModelNodeTransformLink.cs:26 — ModelNodeTransformLink.ComputeMatrix has cognitive complexity 16 (threshold 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 · ModelNodeLinkProcessor.Draw (cognitive 16) · ×1
  • ModelNodeLinkProcessor.Draw (cognitive 16) sources/engine/Stride.Engine/Engine/Processors/ModelNodeLinkProcessor.cs:36 — ModelNodeLinkProcessor.Draw has cognitive complexity 16 (threshold 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 · UpdatableField.GetSetOperationType (cognitive 16) · ×1
  • UpdatableField.GetSetOperationType (cognitive 16) sources/engine/Stride.Engine/Updater/UpdatableField.cs:82 — UpdatableField.GetSetOperationType has cognitive complexity 16 (threshold 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 · ParameterCollectionExtensions.ToStringPermutationsDetailed (cognitive 16) · ×1
  • ParameterCollectionExtensions.ToStringPermutationsDetailed (cognitive 16) sources/engine/Stride.Foundation/Effects/ParameterCollectionExtensions.cs:20 — ParameterCollectionExtensions.ToStringPermutationsDetailed has cognitive complexity 16 (threshold 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 · DebugView.ZZParameters.get (cognitive 16) · ×1
  • DebugView.ZZParameters.get (cognitive 16) sources/engine/Stride.Foundation/Rendering/ParameterCollection.cs:1105 — DebugView.ZZParameters.get has cognitive complexity 16 (threshold 15). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 1109, 1108). 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 · GameSystemCollection.GameSystems_ItemRemoved (cognitive 16) · ×1
  • GameSystemCollection.GameSystems_ItemRemoved (cognitive 16) sources/engine/Stride.Games/GameSystemCollection.cs:324 — GameSystemCollection.GameSystems_ItemRemoved has cognitive complexity 16 (threshold 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 · BatchBase.DrawBatchPerTextureAndPass (cognitive 16) · ×1
  • BatchBase.DrawBatchPerTextureAndPass (cognitive 16) sources/engine/Stride.Graphics/BatchBase.cs:431 — BatchBase.DrawBatchPerTextureAndPass has cognitive complexity 16 (threshold 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 · GlyphEnumerator.MoveNext (cognitive 16) · ×1
  • GlyphEnumerator.MoveNext (cognitive 16) sources/engine/Stride.Graphics/SpriteFont.cs:585 — GlyphEnumerator.MoveNext has cognitive complexity 16 (threshold 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 · ComputeEffectShader.TransitionBoundResources (cognitive 16) · ×1
  • ComputeEffectShader.TransitionBoundResources (cognitive 16) sources/engine/Stride.Rendering/Rendering/ComputeEffect/ComputeEffectShader.cs:146 — ComputeEffectShader.TransitionBoundResources has cognitive complexity 16 (threshold 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 · MaterialRenderFeature.Prepare (cognitive 16) · ×1
  • MaterialRenderFeature.Prepare (cognitive 16) sources/engine/Stride.Rendering/Rendering/Materials/MaterialRenderFeature.cs:368 — MaterialRenderFeature.Prepare has cognitive complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SortRenderStagesJob.Process (cognitive 16) · ×1
  • SortRenderStagesJob.Process (cognitive 16) sources/engine/Stride.Rendering/Rendering/RenderSystem.cs:317 — SortRenderStagesJob.Process has cognitive complexity 16 (threshold 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 · ShadowMapRenderer.Collect (cognitive 16) · ×1
  • ShadowMapRenderer.Collect (cognitive 16) sources/engine/Stride.Rendering/Rendering/Shadows/ShadowMapRenderer.cs:76 — ShadowMapRenderer.Collect has cognitive complexity 16 (threshold 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 · PrepareEffectPermutationJob.Process (cognitive 16) · ×1
  • PrepareEffectPermutationJob.Process (cognitive 16) sources/engine/Stride.Rendering/Rendering/SkinningRenderFeature.cs:61 — PrepareEffectPermutationJob.Process has cognitive complexity 16 (threshold 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 · SkinningRenderFeature.Prepare · ×1
  • SkinningRenderFeature.Prepare::ForBatchedAction (cognitive 16) sources/engine/Stride.Rendering/Rendering/SkinningRenderFeature.cs:163 — SkinningRenderFeature.Prepare::ForBatchedAction 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 · CollectJob.Process (cognitive 16) · ×1
  • CollectJob.Process (cognitive 16) sources/engine/Stride.Rendering/Rendering/VisibilityGroup.cs:147 — CollectJob.Process has cognitive complexity 16 (threshold 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 · VisitorGenerator.CanVisitMember (cognitive 16) · ×1
  • VisitorGenerator.CanVisitMember (cognitive 16) sources/shaders/Stride.Shaders.Generators.Internal/VisitorGenerator.cs:269 — VisitorGenerator.CanVisitMember has cognitive complexity 16 (threshold 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 · EffectCodeWriter.VisitMixin (cognitive 16) · ×1
  • EffectCodeWriter.VisitMixin (cognitive 16) sources/shaders/Stride.Shaders.Generators/EffectCodeWriter.cs:589 — EffectCodeWriter.VisitMixin has cognitive complexity 16 (threshold 15). 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 · CompositeOpExpr.Create (cognitive 16) · ×1
  • CompositeOpExpr.Create (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Core/ConstantExpression.cs:546 — CompositeOpExpr.Create has cognitive complexity 16 (threshold 15). 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 · ParseError.GetNextToken (cognitive 16) · ×1
  • ParseError.GetNextToken (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/ParseResult.cs:15 — ParseError.GetNextToken has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Identifier.ProcessSymbol (cognitive 16) · ×1
  • Identifier.ProcessSymbol (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/Literals.cs:705 — Identifier.ProcessSymbol has cognitive complexity 16 (threshold 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 · CBuffer.ProcessSymbol (cognitive 16) · ×1
  • CBuffer.ProcessSymbol (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.cs:324 — CBuffer.ProcessSymbol has cognitive complexity 16 (threshold 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 · RGroup.Compile (cognitive 16) · ×1
  • RGroup.Compile (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/AST/ShaderElements.cs:432 — RGroup.Compile has cognitive complexity 16 (threshold 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 · Space1.Match (cognitive 16) · ×1
  • Space1.Match (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/Common/Spaces.cs:29 — Space1.Match has cognitive complexity 16 (threshold 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 · ExpressionParser.Equality (cognitive 16) · ×1
  • ExpressionParser.Equality (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:189 — ExpressionParser.Equality has cognitive complexity 16 (threshold 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. This shape REPEATS in the file: 2 other methods here (ExpressionParser.And, ExpressionParser.Or) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · ExpressionParser.And (cognitive 16) · ×1
  • ExpressionParser.And (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:322 — ExpressionParser.And has cognitive complexity 16 (threshold 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. This shape REPEATS in the file: 2 other methods here (ExpressionParser.Equality, ExpressionParser.Or) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · ExpressionParser.Or (cognitive 16) · ×1
  • ExpressionParser.Or (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:352 — ExpressionParser.Or has cognitive complexity 16 (threshold 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. This shape REPEATS in the file: 2 other methods here (ExpressionParser.Equality, ExpressionParser.And) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · ExpressionParser.Ternary (cognitive 16) · ×1
  • ExpressionParser.Ternary (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ExpressionParsers/BinaryParsers.cs:382 — ExpressionParser.Ternary has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AttributeParser.Match (cognitive 16) · ×1
  • AttributeParser.Match (cognitive 16) sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderAttributeParsers.cs:41 — AttributeParser.Match has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SPVGenerator.ConvertOperandName (cognitive 16) · ×1
  • SPVGenerator.ConvertOperandName (cognitive 16) sources/shaders/Stride.Shaders.Spirv.Generators/SPVGenerator.Helpers.Naming.cs:280 — SPVGenerator.ConvertOperandName has cognitive complexity 16 (threshold 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 · GameTestBase.NormalizeDeviceBucket (cognitive 16) · ×1
  • GameTestBase.NormalizeDeviceBucket (cognitive 16) sources/engine/Stride.Graphics.Regression/GameTestBase.cs:1022 — GameTestBase.NormalizeDeviceBucket has cognitive complexity 16 (threshold 15). 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 · ListBuildStep.ProcessCommandBuildStepResult (cognitive 16) · ×1
  • ListBuildStep.ProcessCommandBuildStepResult (cognitive 16) sources/buildengine/Stride.Core.BuildEngine.Common/ListBuildStep.cs:157 — ListBuildStep.ProcessCommandBuildStepResult has cognitive 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.
D2 · Cognitive Complexity · AppHelper.QueryVideoControllers (cognitive 16) · ×1
  • AppHelper.QueryVideoControllers (cognitive 16) sources/core/Stride.Core.Design/Windows/AppHelper.cs:170 — AppHelper.QueryVideoControllers has cognitive complexity 16 (threshold 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 · Parser.ParseFlowMappingKey (cognitive 16) · ×1
  • Parser.ParseFlowMappingKey (cognitive 16) sources/core/Stride.Core.Yaml/Parser.cs:875 — Parser.ParseFlowMappingKey has cognitive complexity 16 (threshold 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 · AssetQuantumRegistry.GetDefinitionLocked (cognitive 16) · ×1
  • AssetQuantumRegistry.GetDefinitionLocked (cognitive 16) sources/assets/Stride.Core.Assets.Quantum/AssetQuantumRegistry.cs:159 — AssetQuantumRegistry.GetDefinitionLocked has cognitive complexity 16 (threshold 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 · AssetDependencyManager.CollectDynamicOutReferences (cognitive 16) · ×1
  • AssetDependencyManager.CollectDynamicOutReferences (cognitive 16) sources/assets/Stride.Core.Assets/Analysis/AssetDependencyManager.cs:167 — AssetDependencyManager.CollectDynamicOutReferences has cognitive complexity 16 (threshold 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 · AssetObjectSerializerBackend.WriteMemberName (cognitive 16) · ×1
  • AssetObjectSerializerBackend.WriteMemberName (cognitive 16) sources/assets/Stride.Core.Assets/Yaml/AssetObjectSerializerBackend.cs:105 — AssetObjectSerializerBackend.WriteMemberName has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AssetObjectSerializerBackend.WriteDictionaryKey (cognitive 16) · ×1
  • AssetObjectSerializerBackend.WriteDictionaryKey (cognitive 16) sources/assets/Stride.Core.Assets/Yaml/AssetObjectSerializerBackend.cs:216 — AssetObjectSerializerBackend.WriteDictionaryKey has cognitive complexity 16 (threshold 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 · NodeViewModelFactory.GenerateChildren (cognitive 16) · ×1
  • NodeViewModelFactory.GenerateChildren (cognitive 16) sources/presentation/Stride.Core.Presentation.Quantum/ViewModels/NodeViewModelFactory.cs:16 — NodeViewModelFactory.GenerateChildren has cognitive complexity 16 (threshold 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 · BindableSelectedItemsBehavior.ControlSelectionChanged (cognitive 16) · ×1
  • BindableSelectedItemsBehavior.ControlSelectionChanged (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Behaviors/BindableSelectedItemsBehavior.cs:113 — BindableSelectedItemsBehavior.ControlSelectionChanged has cognitive complexity 16 (threshold 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 · NumericTextBoxDragBehavior.OnMouseMove (cognitive 16) · ×1
  • NumericTextBoxDragBehavior.OnMouseMove (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Behaviors/NumericTextBoxDragBehavior.cs:95 — NumericTextBoxDragBehavior.OnMouseMove has cognitive complexity 16 (threshold 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 · VirtualizingTreePanel.GetScrollLineHeightY (cognitive 16) · ×1
  • VirtualizingTreePanel.GetScrollLineHeightY (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Controls/VirtualizingTreePanel.cs:548 — VirtualizingTreePanel.GetScrollLineHeightY has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DrawingContextExtensions.InternalDrawMathText (cognitive 16) · ×1
  • DrawingContextExtensions.InternalDrawMathText (cognitive 16) sources/presentation/Stride.Core.Presentation.Wpf/Extensions/DrawingContextExtensions.cs:130 — DrawingContextExtensions.InternalDrawMathText has cognitive complexity 16 (threshold 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 · CrashReportAnonymizer.MaskPattern (cognitive 16) · ×1
  • CrashReportAnonymizer.MaskPattern (cognitive 16) sources/crashreport/Stride.CrashReport/CrashReportAnonymizer.cs:76 — CrashReportAnonymizer.MaskPattern has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · CrashReportText.Format (cognitive 16) · ×1
  • CrashReportText.Format (cognitive 16) sources/crashreport/Stride.CrashReport/CrashReportText.cs:18 — CrashReportText.Format has cognitive complexity 16 (threshold 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 · EditorContentLoader.ComputeReferences (cognitive 16) · ×1
  • EditorContentLoader.ComputeReferences (cognitive 16) sources/editor/Stride.Assets.Editor/EditorGame/ContentLoader/EditorContentLoader.cs:253 — EditorContentLoader.ComputeReferences has cognitive 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.
D2 · Cognitive Complexity · ContentReferenceCollector.VisitNode (cognitive 16) · ×1
  • ContentReferenceCollector.VisitNode (cognitive 16) sources/editor/Stride.Assets.Editor/EditorGame/ContentReferenceCollector.cs:75 — ContentReferenceCollector.VisitNode has cognitive complexity 16 (threshold 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 · EditorViewToolSet.Update (cognitive 16) · ×1
  • EditorViewToolSet.Update (cognitive 16) sources/editor/Stride.Assets.Editor/EditorGame/Tools/EditorViewToolSet.cs:154 — EditorViewToolSet.Update has cognitive complexity 16 (threshold 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 · MaterialViewModel.UpdateGenerics (cognitive 16) · ×1
  • MaterialViewModel.UpdateGenerics (cognitive 16) sources/editor/Stride.Assets.Presentation/ViewModels/MaterialViewModel.cs:97 — MaterialViewModel.UpdateGenerics has cognitive complexity 16 (threshold 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 · SceneRootViewModel.SceneChildrenCollectionChanged (cognitive 16) · ×1
  • SceneRootViewModel.SceneChildrenCollectionChanged (cognitive 16) sources/editor/Stride.Assets.Presentation/ViewModels/SceneRootViewModel.cs:338 — SceneRootViewModel.SceneChildrenCollectionChanged has cognitive complexity 16 (threshold 15). 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 · FixAssetReferencesViewModel.GetReplacementsForReferencer (cognitive 16) · ×1
  • FixAssetReferencesViewModel.GetReplacementsForReferencer (cognitive 16) sources/editor/Stride.Core.Assets.Editor/Components/FixAssetReferences/FixAssetReferencesViewModel.cs:44 — FixAssetReferencesViewModel.GetReplacementsForReferencer has cognitive complexity 16 (threshold 15). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 49). 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 · PanelLayoutResolver.AddGroup (cognitive 16) · ×1
  • PanelLayoutResolver.AddGroup (cognitive 16) sources/editor/Stride.Core.Assets.Editor/Panels/PanelLayoutResolver.cs:299 — PanelLayoutResolver.AddGroup has cognitive complexity 16 (threshold 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 · NumericValueNodeUpdater.UpdateNode (cognitive 16) · ×1
  • NumericValueNodeUpdater.UpdateNode (cognitive 16) sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Updaters/NumericValueNodeUpdater.cs:26 — NumericValueNodeUpdater.UpdateNode has cognitive complexity 16 (threshold 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 · CopyPasteService.CopyFromAssets (cognitive 16) · ×1
  • CopyPasteService.CopyFromAssets (cognitive 16) sources/editor/Stride.Core.Assets.Editor/Services/CopyPaste/CopyPasteService.cs:43 — CopyPasteService.CopyFromAssets has cognitive complexity 16 (threshold 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 · AssetCollectionViewModel.GetCopyCollectionAsync (cognitive 16) · ×1
  • AssetCollectionViewModel.GetCopyCollectionAsync (cognitive 16) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.cs:750 — AssetCollectionViewModel.GetCopyCollectionAsync has cognitive 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.
D2 · Cognitive Complexity · AssetCollectionViewModel.AssetsCollectionInDirectoryChanged (cognitive 16) · ×1
  • AssetCollectionViewModel.AssetsCollectionInDirectoryChanged (cognitive 16) sources/editor/Stride.Core.Assets.Editor/ViewModels/AssetCollectionViewModel.cs:932 — AssetCollectionViewModel.AssetsCollectionInDirectoryChanged has cognitive complexity 16 (threshold 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 · AssetDependenciesViewModel.IsReachableFromRoot (cognitive 16) · ×1
  • AssetDependenciesViewModel.IsReachableFromRoot (cognitive 16) sources/editor/Stride.Core.Assets.Presentation/ViewModels/AssetDependenciesViewModel.cs:100 — AssetDependenciesViewModel.IsReachableFromRoot has cognitive complexity 16 (threshold 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 · AssetViewModel.UpdateUrl (cognitive 16) · ×1
  • AssetViewModel.UpdateUrl (cognitive 16) sources/editor/Stride.Core.Assets.Presentation/ViewModels/AssetViewModel.cs:625 — AssetViewModel.UpdateUrl has cognitive complexity 16 (threshold 15). 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 · GameStudioDatabase.ApplyAssetReplacements (cognitive 16) · ×1
  • GameStudioDatabase.ApplyAssetReplacements (cognitive 16) sources/editor/Stride.Editor/Build/GameStudioDatabase.cs:193 — GameStudioDatabase.ApplyAssetReplacements has cognitive complexity 16 (threshold 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 · GameStudioThumbnailService.AddThumbnailAssetItems (cognitive 16) · ×1
  • GameStudioThumbnailService.AddThumbnailAssetItems (cognitive 16) sources/editor/Stride.Editor/Thumbnails/GameStudioThumbnailService.cs:291 — GameStudioThumbnailService.AddThumbnailAssetItems has cognitive complexity 16 (threshold 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 · GridLogViewer.LogMessagesCollectionChanged (cognitive 16) · ×1
  • GridLogViewer.LogMessagesCollectionChanged (cognitive 16) sources/editor/Stride.Core.Assets.Editor.Avalonia/Controls/GridLogViewer.cs:221 — GridLogViewer.LogMessagesCollectionChanged has cognitive complexity 16 (threshold 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 · GpuFramePresenter.Present (cognitive 16) · ×1
  • GpuFramePresenter.Present (cognitive 16) sources/editor/Stride.Editor.Avalonia/Engine/GpuFramePresenter.cs:336 — GpuFramePresenter.Present has cognitive complexity 16 (threshold 15). Of this number, 11 points are the body's own statements and 5 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 · DockPanelService.RegistryChanged (cognitive 16) · ×1
  • DockPanelService.RegistryChanged (cognitive 16) sources/editor/Stride.GameStudio.Avalonia/Docking/DockPanelService.cs:849 — DockPanelService.RegistryChanged has cognitive complexity 16 (threshold 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 · TextureAssetHighlighter.Highlight (cognitive 16) · ×1
  • TextureAssetHighlighter.Highlight (cognitive 16) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/AssetHighlighters/TextureAssetHighlighter.cs:39 — TextureAssetHighlighter.Highlight has cognitive complexity 16 (threshold 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 · ProjectWatcher.Initialize (cognitive 16) · ×1
  • ProjectWatcher.Initialize (cognitive 16) sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ProjectWatcher.cs:289 — ProjectWatcher.Initialize has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · DockingLayoutManager.ApplyDockingLayout (cognitive 16) · ×1
  • DockingLayoutManager.ApplyDockingLayout (cognitive 16) sources/editor/Stride.GameStudio/Layout/DockingLayoutManager.cs:193 — DockingLayoutManager.ApplyDockingLayout has cognitive complexity 16 (threshold 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 · DebuggingViewModel.PullAssemblyChanges (cognitive 16) · ×1
  • DebuggingViewModel.PullAssemblyChanges (cognitive 16) sources/editor/Stride.GameStudio/ViewModels/DebuggingViewModel.cs:192 — DebuggingViewModel.PullAssemblyChanges has cognitive complexity 16 (threshold 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 · LoaderToolLocator.GetExecutable (cognitive 16) · ×1
  • LoaderToolLocator.GetExecutable (cognitive 16) sources/shared/LoaderToolLocator/LoaderToolLocator.cs:20 — LoaderToolLocator.GetExecutable has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Context.WaitForEditorGameResized (cognitive 16) · ×1
  • Context.WaitForEditorGameResized (cognitive 16) sources/editor/Stride.GameStudio.AutoTesting/UITestHost.cs:412 — Context.WaitForEditorGameResized has cognitive complexity 16 (threshold 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 · ToolLocator.LocateTool (cognitive 16) · ×1
  • ToolLocator.LocateTool (cognitive 16) sources/engine/Stride.Assets.FFmpeg/ToolLocator.cs:16 — ToolLocator.LocateTool has cognitive complexity 16 (threshold 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 · ThreeDAssetImporter.GetAnimationDuration (cognitive 16) · ×1
  • ThreeDAssetImporter.GetAnimationDuration (cognitive 16) sources/engine/Stride.Assets.Models/ThreeDAssetImporter.cs:41 — ThreeDAssetImporter.GetAnimationDuration has cognitive complexity 16 (threshold 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 · GameSettingsAssetCompiler.SetPlatformOrientation (cognitive 16) · ×1
  • GameSettingsAssetCompiler.SetPlatformOrientation (cognitive 16) sources/engine/Stride.Assets/GameSettingsAssetCompiler.cs:95 — GameSettingsAssetCompiler.SetPlatformOrientation has cognitive complexity 16 (threshold 15). 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 · StridePackageUpgrader.UpgradeProjectTo41 (cognitive 16) · ×1
  • StridePackageUpgrader.UpgradeProjectTo41 (cognitive 16) sources/engine/Stride.Assets/StridePackageUpgrader.cs:220 — StridePackageUpgrader.UpgradeProjectTo41 has cognitive complexity 16 (threshold 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 · MaxRectanglesBinPack.SplitFreeNode (cognitive 16) · ×1
  • MaxRectanglesBinPack.SplitFreeNode (cognitive 16) sources/engine/Stride.Assets/Textures/Packing/MaxRectanglesBinPack.cs:171 — MaxRectanglesBinPack.SplitFreeNode has cognitive complexity 16 (threshold 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 · ContactRecorder.Record (cognitive 16) · ×1
  • ContactRecorder.Record (cognitive 16) sources/plugins/BepuPhysics/Stride.BepuPhysics.Debug/ContactRecorder.cs:60 — ContactRecorder.Record has cognitive 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.
D2 · Cognitive Complexity · CompoundHeightfieldCollisionTask.FindLocalOverlaps (cognitive 16) · ×1
  • CompoundHeightfieldCollisionTask.FindLocalOverlaps (cognitive 16) sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldCollisionTasks.cs:327 — CompoundHeightfieldCollisionTask.FindLocalOverlaps has cognitive 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. Note what this body is, though: it works in explicit hardware vector and instruction-set types, and it works in raw pointers or stack-allocated memory, whose lifetime is this stack frame. A kernel divided across a call boundary passes its vectors between the parts and depends on the runtime putting them back together, so the division can cost more than the complexity it removes. Anything extracted from it has to take that memory as a parameter rather than reach for it. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D2 · Cognitive Complexity · NavigationMeshBuildUtils.HasLatestColliderShape (cognitive 16) · ×1
  • NavigationMeshBuildUtils.HasLatestColliderShape (cognitive 16) sources/plugins/BulletPhysics/Stride.Navigation/NavigationMeshBuildUtils.cs:172 — NavigationMeshBuildUtils.HasLatestColliderShape has cognitive complexity 16 (threshold 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 · HeightmapConvertCommand.ScaleToHeightRange (cognitive 16) · ×1
  • HeightmapConvertCommand.ScaleToHeightRange (cognitive 16) sources/plugins/BulletPhysics/Stride.Physics.Assets/Physics/HeightmapAssetCompiler.cs:291 — HeightmapConvertCommand.ScaleToHeightRange has cognitive complexity 16 (threshold 15). 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 · ParticleEmitterRenderFeature.PrepareEffectPermutationsImpl (cognitive 16) · ×1
  • ParticleEmitterRenderFeature.PrepareEffectPermutationsImpl (cognitive 16) sources/plugins/Particles/Stride.Particles/Rendering/ParticleEmitterRenderFeature.cs:104 — ParticleEmitterRenderFeature.PrepareEffectPermutationsImpl has cognitive complexity 16 (threshold 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 · ParticleEmitterRenderFeature.Draw (cognitive 16) · ×1
  • ParticleEmitterRenderFeature.Draw (cognitive 16) sources/plugins/Particles/Stride.Particles/Rendering/ParticleEmitterRenderFeature.cs:297 — ParticleEmitterRenderFeature.Draw has cognitive complexity 16 (threshold 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 · UIEditorView.OpenElementMenu (cognitive 16) · ×1
  • UIEditorView.OpenElementMenu (cognitive 16) sources/plugins/UI/Stride.UI.Editor.Avalonia/Views/UIEditorView.axaml.cs:138 — UIEditorView.OpenElementMenu has cognitive 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.
D2 · Cognitive Complexity · DefaultEditTextRenderer.RenderSelection (cognitive 16) · ×1
  • DefaultEditTextRenderer.RenderSelection (cognitive 16) sources/plugins/UI/Stride.UI/Renderers/DefaultEditTextRenderer.cs:25 — DefaultEditTextRenderer.RenderSelection has cognitive complexity 16 (threshold 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 · StrideXunitRunner.RunHeadless (cognitive 16) · ×1
  • StrideXunitRunner.RunHeadless (cognitive 16) sources/tests/xunit.runner.stride/StrideXunitRunner.cs:53 — StrideXunitRunner.RunHeadless has cognitive complexity 16 (threshold 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 · RestoreHelper.TryResolveDevRedirect (cognitive 16) · ×1
  • RestoreHelper.TryResolveDevRedirect (cognitive 16) sources/shared/Stride.NuGetResolver/RestoreHelper.cs:93 — RestoreHelper.TryResolveDevRedirect has cognitive complexity 16 (threshold 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 · ArrayTexLib.Extract (cognitive 16) · ×1
  • ArrayTexLib.Extract (cognitive 16) sources/tools/Stride.TextureConverter/Backend/TexLibraries/ArrayTexLib.cs:175 — ArrayTexLib.Extract has cognitive 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.
D2 · Cognitive Complexity · AtlasTexLibrary.Update (cognitive 16) · ×1
  • AtlasTexLibrary.Update (cognitive 16) sources/tools/Stride.TextureConverter/Backend/TexLibraries/AtlasTexLibrary.cs:171 — AtlasTexLibrary.Update has cognitive complexity 16 (threshold 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 · ConsoleProgram.ParseArgument (cognitive 16) · ×1
  • ConsoleProgram.ParseArgument (cognitive 16) sources/shared/ConsoleProgram.cs:172 — ConsoleProgram.ParseArgument has cognitive complexity 16 (threshold 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 · StrideVersionManager.Update (cognitive 16) · ×1
  • StrideVersionManager.Update (cognitive 16) sources/launcher/Stride.Cli/Core/StrideVersionManager.cs:222 — StrideVersionManager.Update has cognitive 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LegacyCommands.CreateGenerateLegacyShaderCode (cognitive 16) · ×1
  • LegacyCommands.CreateGenerateLegacyShaderCode (cognitive 16) sources/launcher/Stride.Cli/Legacy/LegacyCommands.cs:40 — LegacyCommands.CreateGenerateLegacyShaderCode has cognitive complexity 16 (threshold 15). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 52). 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 · Utils.ScreenPositionToWorldPositionRaycast (cognitive 16) · ×1
  • Utils.ScreenPositionToWorldPositionRaycast (cognitive 16) samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Core/Utils.cs:144 — Utils.ScreenPositionToWorldPositionRaycast has cognitive complexity 16 (threshold 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 · UpdateEngineProcessor.ProcessType (cognitive 16) · ×1
  • UpdateEngineProcessor.ProcessType (cognitive 16) sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs:276 — UpdateEngineProcessor.ProcessType has cognitive complexity 16 (threshold 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.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D44 · Platform End-of-Life · End-of-life runtime · ×1
  • End-of-life runtime: .NET Framework net461 sources/tools/Stride.PackageInstall/Stride.PackageInstall.csproj:4 — sources/tools/Stride.PackageInstall/Stride.PackageInstall.csproj declares .NET Framework net461 as this project's target framework, and .NET Framework 4.6.1, support ended 2022-04-26. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2022-04-26 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended.
D5 · Coupling · Unstable project Stride.Shaders.Generators · ×1
  • Unstable project Stride.Shaders.Generators sources/shaders/Stride.Shaders.Generators/Stride.Shaders.Generators.csproj:1 — Stride.Shaders.Generators has instability 1.00 with 0 dependents.
D5 · Coupling · Unstable project Stride.Editor.Wpf · ×1
  • Unstable project Stride.Editor.Wpf sources/editor/Stride.Editor.Wpf/Stride.Editor.Wpf.csproj:1 — Stride.Editor.Wpf has instability 0.89 with 1 dependents.
D5 · Coupling · Unstable project Stride.Audio.Editor.Avalonia · ×1
  • Unstable project Stride.Audio.Editor.Avalonia sources/plugins/Audio/Stride.Audio.Editor.Avalonia/Stride.Audio.Editor.Avalonia.csproj:1 — Stride.Audio.Editor.Avalonia has instability 0.67 with 1 dependents.
D5 · Coupling · Unstable project Stride.Audio.Editor.Wpf · ×1
  • Unstable project Stride.Audio.Editor.Wpf sources/plugins/Audio/Stride.Audio.Editor.Wpf/Stride.Audio.Editor.Wpf.csproj:1 — Stride.Audio.Editor.Wpf has instability 0.67 with 1 dependents.
D5 · Coupling · Unstable project Stride.BepuPhysics.Assets · ×1
  • Unstable project Stride.BepuPhysics.Assets sources/plugins/BepuPhysics/Stride.BepuPhysics.Assets/Stride.BepuPhysics.Assets.csproj:1 — Stride.BepuPhysics.Assets has instability 0.75 with 1 dependents.
D5 · Coupling · Unstable project Stride.Physics.Editor · ×1
  • Unstable project Stride.Physics.Editor sources/plugins/BulletPhysics/Stride.Physics.Editor/Stride.Physics.Editor.csproj:1 — Stride.Physics.Editor has instability 0.80 with 1 dependents.
D5 · Coupling · Unstable project Stride.Particles.Editor · ×1
  • Unstable project Stride.Particles.Editor sources/plugins/Particles/Stride.Particles.Editor/Stride.Particles.Editor.csproj:1 — Stride.Particles.Editor has instability 0.50 with 2 dependents.
D5 · Coupling · Unstable project Stride.SpriteStudio.Editor.Avalonia · ×1
  • Unstable project Stride.SpriteStudio.Editor.Avalonia sources/plugins/SpriteStudio/Stride.SpriteStudio.Editor.Avalonia/Stride.SpriteStudio.Editor.Avalonia.csproj:1 — Stride.SpriteStudio.Editor.Avalonia has instability 0.67 with 1 dependents.
D5 · Coupling · Unstable project Stride.SpriteStudio.Editor.Wpf · ×1
  • Unstable project Stride.SpriteStudio.Editor.Wpf sources/plugins/SpriteStudio/Stride.SpriteStudio.Editor.Wpf/Stride.SpriteStudio.Editor.Wpf.csproj:1 — Stride.SpriteStudio.Editor.Wpf has instability 0.67 with 1 dependents.
D5 · Coupling · Unstable project Stride.UI.Editor.Wpf · ×1
  • Unstable project Stride.UI.Editor.Wpf sources/plugins/UI/Stride.UI.Editor.Wpf/Stride.UI.Editor.Wpf.csproj:1 — Stride.UI.Editor.Wpf has instability 0.67 with 1 dependents.
D5 · Coupling · Unstable project Stride.Video.Editor · ×1
  • Unstable project Stride.Video.Editor sources/plugins/Video/Stride.Video.Editor/Stride.Video.Editor.csproj:1 — Stride.Video.Editor has instability 0.75 with 1 dependents.
D5 · Coupling · Unstable project Stride.Voxels.Editor · ×1
  • Unstable project Stride.Voxels.Editor sources/plugins/Voxels/Stride.Voxels.Editor/Stride.Voxels.Editor.csproj:1 — Stride.Voxels.Editor has instability 0.67 with 1 dependents.
IC1 · Incompleteness & stubs · Skipped test marks a known-real bug · ×1
  • Skipped test marks a known-real bug sources/assets/Stride.Core.Assets.Tests/Compilers/TestBuildDependencyManager.cs:189 — A test is skipped with reason "Either non-deterministic or broken (failing 50%)" — the behavior it asserts is UNVERIFIED and this skip is likely the only marker of a real bug. It ages invisibly: fix the flakiness or track the bug somewhere that can't be forgotten.
IC1 · Incompleteness & stubs · Both branches are identical · ×1
  • Both branches are identical — the condition decides nothing sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Axes/AxisBase.cs:1014 — The `if` and its `else` contain the same 1 statement, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body.
IC1 · Incompleteness & stubs · Empty method body · ×1
  • Empty method body — does nothing with its inputs sources/editor/Stride.Editor/Build/GameStudioDatabase.cs:59 — `OnAssetChanged` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
P12 · CI test-gate honesty · Test failure does not fail the CI gate · ×1
  • Test failure does not fail the CI gate REDACTED:125 — `dotnet test "$TEST_PROJECT" --no-build --filter "FullyQualifiedName~ShaderCorpusTests.MatchesBaseline" -- xUnit.Explicit=on || status=$?` runs the tests, and `|| status=$?` discards their exit status — a failing suite leaves the check green. Let the test command's failure fail the step (re-raise it after logging).
SC1 · Supply-chain hygiene · NuGet dependencies are not locked · ×1
  • NuGet dependencies are not locked — No packages.lock.json and no central package management — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
X1 · Async correctness · Blocking `File.WriteAllBytes` inside an `async` method · ×1
  • Blocking `File.WriteAllBytes` inside an `async` method sources/shaders/Stride.Shaders.Spirv.Generators/Program.cs:99 — `File.WriteAllBytes` blocks the thread on I/O while `File.WriteAllBytesAsync` exists to wait without one — inside a method that is already `async`, await the twin.
X1 · Async correctness · Blocking `File.ReadAllText` inside an `async` method · ×1
  • Blocking `File.ReadAllText` inside an `async` method sources/shaders/Stride.Shaders.Spirv.Generators/Program.cs:101 — `File.ReadAllText` blocks the thread on I/O while `File.ReadAllTextAsync` exists to wait without one — inside a method that is already `async`, await the twin.
X1 · Async correctness · Blocking `WaitHandle.WaitOne` inside an `async` method · ×1
  • Blocking `WaitHandle.WaitOne` inside an `async` method sources/buildengine/Stride.Core.BuildEngine.Common/DynamicBuildStep.cs:86 — `WaitHandle.WaitOne` parks the thread until another thread signals it — inside a method that is already `async`, the wait should be awaitable (a `TaskCompletionSource`, `SemaphoreSlim.WaitAsync`, or `WaitHandle` bridged with `Task.Factory.FromAsync`).
X1 · Async correctness · Blocking `WaitHandle.WaitAny` inside an `async` method · ×1
  • Blocking `WaitHandle.WaitAny` inside an `async` method sources/buildengine/Stride.Core.BuildEngine.Common/DynamicBuildStep.cs:117 — `WaitHandle.WaitAny` parks the thread until another thread signals it — inside a method that is already `async`, the wait should be awaitable (a `TaskCompletionSource`, `SemaphoreSlim.WaitAsync`, or `WaitHandle` bridged with `Task.Factory.FromAsync`).
X1 · Async correctness · Blocking `Process.WaitForExit` inside an `async` method · ×1
  • Blocking `Process.WaitForExit` inside an `async` method sources/assets/Stride.AssetCompiler/PackageBuilder.cs:610 — `Process.WaitForExit` blocks the thread on I/O while `Process.WaitForExitAsync` exists to wait without one — inside a method that is already `async`, await the twin.
X1 · Async correctness · Sync-over-async (deadlock risk) through `Task.WaitAll` · ×1
  • Sync-over-async (deadlock risk) through `Task.WaitAll` sources/assets/Stride.Core.Assets/Package.cs:1008 — `Task.WaitAll` blocks this thread until the tasks complete — sync-over-async: it can deadlock under a synchronization context and it parks a thread for as long as the work runs. `await Task.WhenAll(…)` instead.
X29 · Per-element action decided by a fixed element · Per-element action decided by a fixed element · ×1
  • Per-element action decided by a fixed element sources/engine/Stride.Graphics/Vulkan/CommandList.Vulkan.cs:2114 — This loop runs once per element of `renderTargets`, and the statement it guards acts on the element it is on — `renderTargets[index]`. The test deciding whether that statement runs does not: `!renderTarget.IsInitialized` reads `renderTargets[0]`, a subscript that does not move, so whatever it answers for that one element it answers for ALL of them. One `if` names the same collection at two different subscripts — the fixed one at line 2095, which is the contradiction: either the test was meant to be per-element, in which case every element that differs from the fixed one is handled wrongly and all in the same direction, or it really is one answer for the whole collection, in which case it is being re-asked on every pass and belongs above the loop. The `if` is in the wrong place under both readings. Give the test the loop variable, or hoist it out.
Minor — 680 finding(s)
D24 · Comment Value · redundant comment · ×508
  • redundant comment sources/assets/Stride.AssetCompiler/BundlePacker.cs:433 — "Add asset to index map" repeats the code it sits on: 4 of its 4 words (add, asset, index, map) are already in `resolvedBundle.IndexMap.Add(assetUrl, objectId);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.AssetCompiler/PackageBuilder.cs:177 — "Add build steps generated by AssetBuilder" repeats the code it sits on: 5 of its 6 words (add, build, steps, asset, builder) are already in `builder.Root.Add(assetBuildResult.BuildSteps);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.AssetCompiler/PackageBuilderApp.cs:523 — "Reset cache hold by YamlSerializer" repeats the code it sits on: 4 of its 5 words (reset, cache, yaml, serializer) are already in `YamlSerializer.Default.ResetCache();`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.AssetCompiler/Properties/AssemblyInfo.cs:7 — "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.AssetCompiler/Properties/AssemblyInfo.cs:29 — "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.AssetCompiler/Properties/AssemblyInfo.cs:34 — "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Quantum.Tests/Properties/AssemblyInfo.cs:6 — "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Quantum.Tests/Properties/AssemblyInfo.cs:10 — "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Quantum.Tests/Properties/AssemblyInfo.cs:15 — "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Quantum.Tests/TestAssetBaseNodeLinking.cs:22 — "The derived root node is linked to the base root node." repeats the code it sits on: 4 of its 5 words (derived, root, node, base) are already in `Assert.Same(context.BaseGraph.RootNode, context.DerivedGraph.RootNode.BaseNode);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/AssetObjectTest.cs:94 — "Create asset with new base" repeats the code it sits on: 4 of its 4 words (create, asset, new, base) are already in `var assetRef = new AssetReference(Id, baseLocation);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/Properties/AssemblyInfo.cs:6 — "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/Properties/AssemblyInfo.cs:10 — "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/Properties/AssemblyInfo.cs:15 — "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/TestAssetCompositeHierarchyExtensions.cs:104 — "Test implementation of AssetCompositeHierarchy" repeats the code it sits on: 4 of its 5 words (test, asset, composite, hierarchy) are already in `public class TestHierarchy : AssetCompositeHierarchy<TestPartDesign, TestPart>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/TestAssetItemExtensions.cs:68 — "GetProjectInclude throws NullReferenceException when Package is null" repeats the code it sits on: 7 of its 8 words (get, project, include, throws, null, reference, exception) are already in `Assert.Throws<NullReferenceException>(() => assetItem.GetProjectInclude());`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/TestAssetItemExtensions.cs:89 — "GetGeneratedInclude calls GetProjectInclude which throws NullReferenceException" repeats the code it sits on: 8 of its 9 words (get, generated, include, calls, throws, null, reference, exception) are already in `Assert.Throws<NullReferenceException>(() => assetItem.GetGeneratedInclude());`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Tests/TestPackage.cs:322 — "A "replacing" asset references the asset it replaces (Asset.Replaces)." repeats the code it sits on: 4 of its 4 words (replacing, asset, references, replaces) are already in `var replacement = new AssetObjectTest { Replaces = target.ToReference() };`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets.Yaml/DynamicYaml/DynamicYamlMapping.cs:256 — "New member name" repeats the code it sits on: 3 of its 3 words (new, member, name) are already in `var newMemberName = type == OverrideType.Base`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets/Analysis/AssetBaseAnalysis.cs:161 — "Set the member to Base." repeats the code it sits on: 3 of its 3 words (set, member, base) are already in `error.Member = TypeDescriptorFactory.Default.Find(typeof(Asset)).TryGetMember("Base")!;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets/Analysis/AssetDependencyManager.cs:449 — "Update missing dependencies" repeats the code it sits on: 3 of its 3 words (update, missing, dependencies) are already in `UpdateMissingDependencies(dependencies);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets/Asset.cs:155 — "Create the base of this asset" repeats the code it sits on: 3 of its 3 words (create, base, asset) are already in `newAsset.Archetype = new AssetReference(Id, baseLocation);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets/AssetItem.cs:165 — "Root directory of package" repeats the code it sits on: 3 of its 3 words (root, directory, package) are already in `var rootDirectory = Package?.RootDirectory is not null ? Package.RootDirectory : null;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets/AssetRegistry.cs:644 — "Register the importer instance" repeats the code it sits on: 3 of its 3 words (register, importer, instance) are already in `RegisterImporter((IAssetImporter)instance);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment sources/assets/Stride.Core.Assets/Compiler/AssetDependenciesCompiler.cs:122 — "Add the resulting build steps to the final" repeats the code it sits on: 5 of its 5 words (add, resulting, build, steps, final) are already in `finalResult.BuildSteps.Add(assetBuildSteps);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • + 483 more in this group — see findings.md.
X7 · Silent fallback defaults · Silent fallback default in catch · ×35
  • Silent fallback default in catch sources/engine/Stride.Engine/Updater/BlittableHelper.cs:44 — `IsBlittable` swallows every exception and sets `blittable = false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/shaders/Stride.Shaders.Compilers/FileShaderCache.cs:45 — `Exists` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/shared/NativeCrashHandler.cs:328 — `ComputeNativeSignature` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/core/Stride.Core.Design/Settings/AppSettingsProvider.cs:30 — `LoadAppSettings` swallows `FileNotFoundException` into `return new AppSettings();` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/core/Stride.Core.Tasks/LocateDevenv.cs:40 — `TryGet` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/core/Stride.Core.Tasks/LocateDevenv.cs:51 — `DevenvFrom` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/core/Stride.Core.Tasks/LocateDevenv.cs:77 — `EnumerateNewestDevenv` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:277 — `TryMoveDump` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/assets/Stride.AssetCompiler/CompilerCrashCapture.cs:467 — `DescribeNativeModules` swallows every exception into `return string.Empty;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/assets/Stride.AssetCompiler/Program.cs:27 — `Main` swallows every exception into `return 1;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/assets/Stride.Core.Assets/Package.cs:795 — `TryGetPackageVersion` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/assets/Stride.Core.Assets/PackageSession.CompanionPackages.cs:277 — `LoadDevRedirectDeclarations` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/assets/Stride.Core.Assets/PackageSession.DependencyVersions.cs:221 — `IsSameFile` swallows `IOException` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/assets/Stride.Core.Assets/TextAccessors/DefaultTextAccessor.cs:58 — `LoadFromFile` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/shared/Stride.NuGetResolver/ProjectVersionReader.cs:126 — `ReadDeclaredVersion` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/shared/Stride.NuGetResolver/ProjectVersionReader.cs:145 — `TryLoad` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/presentation/Stride.Core.Presentation.Wpf/Interop/SafeClipboard.cs:32 — `ContainsText` swallows `COMException` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/presentation/Stride.Core.Presentation.Wpf/ValueConverters/UFileToUri.cs:26 — `Convert` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/crashreport/Stride.CrashReport/CompilerCrashRouting.cs:71 — `CreateDirectory` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/crashreport/Stride.CrashReport/CompilerCrashRouting.cs:121 — `IsFinished` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/crashreport/Stride.CrashReport/DumpStackWalk.cs:140 — `HasInFlightException` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/crashreport/Stride.CrashReport/MinidumpWriter.cs:50 — `TryWrite` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/crashreport/Stride.CrashReport/MinidumpWriter.cs:161 — `TryWriteFile` swallows every exception into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/crashreport/Stride.CrashReporter/CrashSession.cs:118 — `BuildAssetDefinitionAttachment` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch sources/crashreport/Stride.CrashReporter/NativeCapture.cs:88 — `TryMoveDump` swallows `IOException` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • + 10 more in this group — see findings.md.
D17 · Explicit Debt · ObsoleteWithoutCallers · ×32
  • ObsoleteWithoutCallers sources/assets/Stride.Core.Assets/Package.cs:194 — [Obsolete] AssetAssemblies
  • ObsoleteWithoutCallers sources/core/Stride.Core.Design.Tests/TestUPath.cs:179 — [Obsolete] TestUPathGetDirectory
  • ObsoleteWithoutCallers sources/core/Stride.Core.Design/Threading/Internal/ExceptionHelpers.cs:39 — [Obsolete] ExceptionHelpers
  • ObsoleteWithoutCallers sources/core/Stride.Core/Annotations/DataMemberRangeAttribute.cs:22 — [Obsolete] .ctor
  • ObsoleteWithoutCallers sources/core/Stride.Core/Collections/FastListStruct.cs:152 — [Obsolete] op_Implicit
  • ObsoleteWithoutCallers sources/core/Stride.Core/Serialization/SerializerExtensions.cs:282 — [Obsolete] ReadBytes
  • ObsoleteWithoutCallers sources/core/Stride.Core/Utilities.cs:50 — [Obsolete] ReadStream
  • ObsoleteWithoutCallers sources/editor/Stride.Assets.Editor/Thumbnails/PrecompiledFontThumbnailCompiler.cs:14 — [Obsolete] PrecompiledFontThumbnailCompiler
  • ObsoleteWithoutCallers sources/editor/Stride.Core.Assets.Presentation/Quantum/ViewModels/AssetNodeViewModel.cs:63 — [Obsolete] IsObjectReference
  • ObsoleteWithoutCallers sources/engine/Stride.Assets/SpriteFont/PrecompiledSpriteFontAssetCompiler.cs:18 — [Obsolete] PrecompiledSpriteFontAssetCompiler
  • ObsoleteWithoutCallers sources/engine/Stride.Engine/Updater/UpdateEngineHelper.cs:37 — [Obsolete] RefBoxedStruct
  • ObsoleteWithoutCallers sources/engine/Stride.Foundation/Effects/AssemblyEffectKeysAttribute.cs:11 — [Obsolete] AssemblyEffectKeysAttribute
  • ObsoleteWithoutCallers sources/engine/Stride.Graphics/AppContextType.cs:40 — [Obsolete] Desktop
  • ObsoleteWithoutCallers sources/engine/Stride.Graphics/AppContextType.cs:56 — [Obsolete] DesktopWpf
  • ObsoleteWithoutCallers sources/engine/Stride.Graphics/Buffer.cs:375 — [Obsolete] GetData
  • ObsoleteWithoutCallers sources/engine/Stride.Graphics/Texture.cs:1195 — [Obsolete] GetData
  • ObsoleteWithoutCallers sources/engine/Stride.Graphics/Buffer.cs:468 — [Obsolete] SetData
  • ObsoleteWithoutCallers sources/engine/Stride.Graphics/Texture.cs:1400 — [Obsolete] SetData
  • ObsoleteWithoutCallers sources/engine/Stride.Input/InputManager.cs:514 — [Obsolete] GetVirtualButton
  • ObsoleteWithoutCallers sources/engine/Stride.Input/Keys.cs:909 — [Obsolete] NumPadDecimal
  • ObsoleteWithoutCallers sources/engine/Stride.Rendering/Extensions/VertexExtensions.cs:20 — [Obsolete] GetVertexBufferData
  • ObsoleteWithoutCallers sources/plugins/BepuPhysics/Stride.BepuPhysics/BodyComponent.cs:477 — [Obsolete] SetPose
  • ObsoleteWithoutCallers sources/plugins/BepuPhysics/Stride.BepuPhysics/CharacterComponent.cs:59 — [Obsolete] Velocity
  • ObsoleteWithoutCallers sources/plugins/BepuPhysics/Stride.BepuPhysics/CharacterComponent.cs:248 — [Obsolete] GroundTest
  • ObsoleteWithoutCallers sources/plugins/BepuPhysics/Stride.BepuPhysics/CharacterComponent.cs:271 — [Obsolete] NoContactResponse
  • + 7 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×25
  • Duplicated predicate sources/assets/Stride.Core.Assets/Analysis/CollectionItemIdsAnalysis.cs:40 — `!AssetRegistry.IsExactContentType(obj.GetType()) && base.CanVisit(obj)` appears character-identically in 2 files — sources/assets/Stride.Core.Assets/Analysis/CollectionItemIdsAnalysis.cs, sources/assets/Stride.Core.Assets/CollectionIdGenerator.cs. 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 sources/core/Stride.Core.Reflection/TypeDescriptors/ListDescriptor.cs:237 — `!IsCompilerGenerated && base.PrepareMember(member, metadataClassMemberInfo)` appears character-identically in 2 files — sources/core/Stride.Core.Reflection/TypeDescriptors/ListDescriptor.cs, sources/core/Stride.Core.Reflection/TypeDescriptors/OldCollectionDescriptor.cs. 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 sources/presentation/Stride.Core.Presentation.Wpf/Controls/FilteringComboBox.cs:384 — `!IsDropDownOpen && !clearing && IsKeyboardFocusWithin` appears character-identically in 2 files — sources/presentation/Stride.Core.Presentation.Wpf/Controls/FilteringComboBox.cs, sources/presentation/Stride.Core.Presentation.Wpf/Controls/SearchComboBox.cs. 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 sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml.cs:60 — `!IsKeyboardFocusWithin && !(e.OriginalSource is GameEngineHost)` appears character-identically in 2 files — sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/EntityHierarchyEditor/Views/EntityHierarchyEditorView.xaml.cs, sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/SpriteEditor/Views/SpriteEditorView.xaml.cs. 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 sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/ScriptEditorView.xaml.cs:87 — `!IsKeyboardFocusWithin && !(e.OriginalSource is HwndHost)` appears character-identically in 4 files — sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/ScriptEditorView.xaml.cs, sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/VisualScriptEditor/Views/VisualScriptEditorView.xaml.cs, sources/editor/Stride.Assets.Editor.Wpf/CurveEditor/Views/CurveEditorView.xaml.cs, sources/plugins/UI/Stride.UI.Editor.Wpf/Views/UIEditorView.xaml.cs. 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 sources/presentation/Stride.Core.Presentation.Avalonia/Controls/MatrixEditor.cs:202 — `!Value.HasValue || !((float?)GetValue(property)).HasValue` appears character-identically in 2 files — sources/presentation/Stride.Core.Presentation.Avalonia/Controls/MatrixEditor.cs, sources/presentation/Stride.Core.Presentation.Wpf/Controls/MatrixEditor.cs. 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 samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Gameplay/CoinScript.cs:36 — `!activated && (triggeredEvent?.TryReceive(out triggered) ?? false)` appears character-identically in 3 files — samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Gameplay/CoinScript.cs, samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Gameplay/CrateScript.cs, samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Game/Gameplay/LootCoinScript.cs. 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 sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ExpandableItemsControl.cs:86 — `!e.Handled && IsEnabled && e.ClickCount % 2 == 0` appears character-identically in 2 files — sources/presentation/Stride.Core.Presentation.Avalonia/Controls/ExpandableItemsControl.cs, sources/presentation/Stride.Core.Presentation.Wpf/Controls/ExpandableItemsControl.cs. 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 sources/plugins/Particles/Stride.Particles/Initializers/InitialPositionArc.cs:117 — `!pool.FieldExists(ParticleFields.Position) || !pool.FieldExists(ParticleFields.RandomSeed)` appears character-identically in 3 files — sources/plugins/Particles/Stride.Particles/Initializers/InitialPositionArc.cs, sources/plugins/Particles/Stride.Particles/Initializers/InitialPositionParent.cs, sources/plugins/Particles/Stride.Particles/Initializers/InitialPositionSeed.cs. 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 sources/plugins/Particles/Stride.Particles/Updaters/UpdaterForceField.cs:117 — `!pool.FieldExists(ParticleFields.Position) || !pool.FieldExists(ParticleFields.Velocity)` appears character-identically in 2 files — sources/plugins/Particles/Stride.Particles/Updaters/UpdaterForceField.cs, sources/plugins/Particles/Stride.Particles/Updaters/UpdaterGravity.cs. 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 sources/plugins/Particles/Stride.Particles/Initializers/InitialSizeParent.cs:54 — `!pool.FieldExists(ParticleFields.Size) || !pool.FieldExists(ParticleFields.RandomSeed)` appears character-identically in 2 files — sources/plugins/Particles/Stride.Particles/Initializers/InitialSizeParent.cs, sources/plugins/Particles/Stride.Particles/Initializers/InitialSizeSeed.cs. 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 sources/plugins/Particles/Stride.Particles/Initializers/InitialVelocityParent.cs:75 — `!pool.FieldExists(ParticleFields.Velocity) || !pool.FieldExists(ParticleFields.RandomSeed)` appears character-identically in 2 files — sources/plugins/Particles/Stride.Particles/Initializers/InitialVelocityParent.cs, sources/plugins/Particles/Stride.Particles/Initializers/InitialVelocitySeed.cs. 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 sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderBufferParsers.cs:74 — `!scanner.IsEof && !Tokens.Char('}', ref scanner, advance: true)` appears character-identically in 5 files — sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderBufferParsers.cs, sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderClassParser.cs, sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/ShaderParsers/ShaderFileParsers.cs, sources/shaders/Stride.Shaders.Parsers/Parsing/SDSL/Parsers/StatementParsers/StatementParsers.Switch.cs. 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 sources/presentation/Stride.Core.Presentation.Avalonia/Controls/VectorEditorBase.cs:130 — `!templateApplied && initializingProperty == null` appears character-identically in 5 files — sources/presentation/Stride.Core.Presentation.Avalonia/Controls/VectorEditorBase.cs, sources/presentation/Stride.Core.Presentation.Wpf/Controls/ColorPicker.cs, sources/presentation/Stride.Core.Presentation.Wpf/Controls/DateTimeEditor.cs, sources/presentation/Stride.Core.Presentation.Wpf/Controls/TimeSpanEditor.cs. 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 sources/presentation/Stride.Core.Presentation.Avalonia/Controls/DateTimeEditor.cs:189 — `!templateApplied && initializingProperty is null` appears character-identically in 3 files — sources/presentation/Stride.Core.Presentation.Avalonia/Controls/DateTimeEditor.cs, sources/presentation/Stride.Core.Presentation.Avalonia/Controls/TimeSpanEditor.cs, sources/presentation/Stride.Core.Presentation.Avalonia/Controls/VectorEditorBase.cs. 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 sources/core/Stride.Core/Settings/AppSettingsManager.cs:56 — `!type.IsAbstract && !type.IsGenericTypeDefinition && type.GetConstructor(Type.EmptyTypes) != null` appears character-identically in 2 files — sources/assets/Stride.Core.Assets/AssetRegistry.cs, sources/core/Stride.Core/Settings/AppSettingsManager.cs. 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 sources/editor/Stride.Editor.Avalonia/Preview/GameStudioPreviewService.cs:422 — `!typeof(IAssetPreview).IsAssignableFrom(type) || type.GetCustomAttribute<AssetPreviewAttribute>() is not { } previewAttribute` appears character-identically in 2 files — sources/editor/Stride.Editor.Avalonia/Preview/GameStudioPreviewService.cs, sources/editor/Stride.Editor.Wpf/Preview/GameStudioPreviewService.cs. 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 sources/editor/Stride.Assets.Editor/Quantum/NodePresenters/Updaters/ModelComponentNodeUpdater.cs:196 — `!weightsNode.Indices.Contains(index) || (float)weightsNode.Retrieve(index) != value` appears character-identically in 2 files — sources/editor/Stride.Assets.Editor.Wpf/ViewModel/ModelComponentViewModel.cs, sources/editor/Stride.Assets.Editor/Quantum/NodePresenters/Updaters/ModelComponentNodeUpdater.cs. 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 sources/core/Stride.Core.Mathematics/Rectangle.cs:283 — `(X <= value.X) && (value.Right <= Right) && (Y <= value.Y) && (value.Bottom <= Bottom)` appears character-identically in 2 files — sources/core/Stride.Core.Mathematics/Rectangle.cs, sources/core/Stride.Core.Mathematics/RectangleF.cs. 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 sources/engine/Stride.Assets/Sprite/SpriteSheetAsset.cs:93 — `(colorSpaceReference == ColorSpace.Linear) && UseSRgbSampling` appears character-identically in 3 files — sources/engine/Stride.Assets/Sprite/SpriteSheetAsset.cs, sources/engine/Stride.Assets/Textures/ColorTextureType.cs, sources/engine/Stride.Assets/Textures/RenderTextureAsset.cs. 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 sources/core/Stride.Core.Design/TypeConverters/Half2Converter.cs:99 — `(destinationType != typeof(string)) && (destinationType != typeof(InstanceDescriptor))` appears character-identically in 4 files — sources/core/Stride.Core.Design/TypeConverters/Half2Converter.cs, sources/core/Stride.Core.Design/TypeConverters/Half3Converter.cs, sources/core/Stride.Core.Design/TypeConverters/Half4Converter.cs, sources/core/Stride.Core.Design/TypeConverters/HalfConverter.cs. 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 sources/core/Stride.Core.Mathematics/Rectangle.cs:357 — `(newRight > newLeft) && (newBottom > newTop)` appears character-identically in 2 files — sources/core/Stride.Core.Mathematics/Rectangle.cs, sources/core/Stride.Core.Mathematics/RectangleF.cs. 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 sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/GraphSelectionBehavior.cs:60 — `(notifyChanged != null) && (newList != null)` appears character-identically in 2 files — sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/GraphSelectionBehavior.cs, sources/presentation/Stride.Core.Presentation.Wpf.Graph/Behaviors/NodeGraphSelectionBehavior.cs. 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 sources/core/Stride.Core.Design/TypeConverters/Half2Converter.cs:87 — `(sourceType == typeof(string)) || base.CanConvertFrom(context, sourceType)` appears character-identically in 4 files — sources/core/Stride.Core.Design/TypeConverters/Half2Converter.cs, sources/core/Stride.Core.Design/TypeConverters/Half3Converter.cs, sources/core/Stride.Core.Design/TypeConverters/Half4Converter.cs, sources/core/Stride.Core.Design/TypeConverters/HalfConverter.cs. 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 sources/core/Stride.Core.Mathematics/Rectangle.cs:332 — `(value.X < Right) && (X < value.Right) && (value.Y < Bottom) && (Y < value.Bottom)` appears character-identically in 2 files — sources/core/Stride.Core.Mathematics/Rectangle.cs, sources/core/Stride.Core.Mathematics/RectangleF.cs. 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.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×16
  • Projects may be oversized for their cohesion sources/engine/Stride.Graphics/Stride.Graphics.csproj:1 — `Stride.Graphics` overshoots its size bounds (59185 LoC, 322 public types across 9 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/engine/Stride.Rendering/Stride.Rendering.csproj:1 — `Stride.Rendering` overshoots its size bounds (40936 LoC, 558 public types across 26 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/shaders/Stride.Shaders.Parsers/Stride.Shaders.Parsers.csproj:1 — `Stride.Shaders.Parsers` overshoots its size bounds (31046 LoC, 430 public types across 14 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/editor/Stride.Assets.Editor/Stride.Assets.Editor.csproj:1 — `Stride.Assets.Editor` overshoots its size bounds (26401 LoC, 289 public types across 34 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/assets/Stride.Core.Assets/Stride.Core.Assets.csproj:1 — `Stride.Core.Assets` overshoots its size bounds (25246 LoC, 295 public types across 16 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/presentation/Stride.Core.Presentation.Wpf/Stride.Core.Presentation.Wpf.csproj:1 — `Stride.Core.Presentation.Wpf` overshoots its size bounds (23716 LoC, 287 public types across 19 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/core/Stride.Core/Stride.Core.csproj:1 — `Stride.Core` overshoots its size bounds (23469 LoC, 281 public types across 12 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/editor/Stride.Assets.Editor.Wpf/Stride.Assets.Editor.Wpf.csproj:1 — `Stride.Assets.Editor.Wpf` overshoots its size bounds (19089 LoC, 230 public types across 38 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/engine/Stride.Engine/Stride.Engine.csproj:1 — `Stride.Engine` overshoots its size bounds (22115 LoC, 273 public types across 19 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/editor/Stride.Core.Assets.Editor/Stride.Core.Assets.Editor.csproj:1 — `Stride.Core.Assets.Editor` overshoots its size bounds (21496 LoC, 245 public types across 23 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/engine/Stride.Assets/Stride.Assets.csproj:1 — `Stride.Assets` overshoots its size bounds (17932 LoC, 194 public types across 16 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/core/Stride.Core.Design/Stride.Core.Design.csproj:1 — `Stride.Core.Design` overshoots its size bounds (12662 LoC, 106 public types across 17 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/engine/Stride.VirtualReality/Stride.VirtualReality.csproj:1 — `Stride.VirtualReality` overshoots its size bounds (11969 LoC, 249 public types across 2 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/editor/Stride.Core.Assets.Editor.Wpf/Stride.Core.Assets.Editor.Wpf.csproj:1 — `Stride.Core.Assets.Editor.Wpf` overshoots its size bounds (8874 LoC, 144 public types across 19 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/plugins/Particles/Stride.Particles/Stride.Particles.csproj:1 — `Stride.Particles` overshoots its size bounds (11145 LoC, 128 public types across 16 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
  • Projects may be oversized for their cohesion sources/presentation/Stride.Core.Presentation.Avalonia/Stride.Core.Presentation.Avalonia.csproj:1 — `Stride.Core.Presentation.Avalonia` overshoots its size bounds (8344 LoC, 123 public types across 9 namespaces). 16 of 245 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
AX6 · Interface segregation · Fat interface · ×11
  • Fat interface: IGame (22 members) sources/engine/Stride.Games/IGame.cs:12 — `IGame` declares 22 members: `Activated`, `Deactivated`, `Exiting`, `WindowCreated`, `UpdateTime`, `DrawTime`, `DrawInterpolationFactor`, `Content`, `GameSystems`, `Context`, `GraphicsDevice`, `GraphicsContext`, `InactiveSleepTime`, `IsActive`, `IsFixedTimeStep`, `IsDrawDesynchronized`, `IsMouseVisible`, `LaunchParameters`, `IsRunning`, `Services`, `TargetElapsedTime`, `Window`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: IScanner (16 members) sources/shaders/Stride.Shaders.Parsers/Parsing/Scanners/IScanner.cs:11 — `IScanner` declares 16 members under just 14 distinct name(s): `Span`, `Memory`, `Position`, `Line`, `Column`, `this[]`, `this[]`, `End`, `IsEof`, `ReadChar`, `Peek`, `Peek`, `Advance`, `ReadString`, `Slice`, `LineAtIndex`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
  • Fat interface: ITransactionStack (19 members) sources/core/Stride.Core.Design/Transactions/ITransactionStack.cs:22 — `ITransactionStack` declares 19 members: `TransactionInProgress`, `RollInProgress`, `Capacity`, `IsEmpty`, `IsFull`, `CanRollback`, `CanRollforward`, `TransactionCompleted`, `TransactionRollbacked`, `TransactionRollforwarded`, `TransactionDiscarded`, `Cleared`, `CreateTransaction`, `Clear`, `RetrieveAllTransactions`, `PushOperation`, `Rollback`, `Rollforward`, `Resize`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: IMemberDescriptor (22 members) sources/core/Stride.Core.Reflection/MemberDescriptors/IMemberDescriptor.cs:13 — `IMemberDescriptor` declares 22 members: `Name`, `OriginalName`, `DefaultNameComparer`, `Type`, `DeclaringType`, `TypeDescriptor`, `Order`, `Mode`, `IsPublic`, `HasSet`, `GetCustomAttributes`, `ShouldSerialize`, `HasDefaultValue`, `DefaultValue`, `AlternativeNames`, `Tag`, `Mask`, `Style`, `ScalarStyle`, `MemberInfo`, `Get`, `Set`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: IAssetObjectNode (22 members) sources/assets/Stride.Core.Assets.Quantum/IAssetObjectNode.cs:9 — `IAssetObjectNode` declares 22 members: `this[]`, `IndexedTarget`, `OverrideItem`, `OverrideKey`, `OverrideDeletedItem`, `IsItemDeleted`, `Restore`, `Restore`, `RemoveAndDiscard`, `IsItemInherited`, `IsKeyInherited`, `IsItemOverridden`, `IsItemOverriddenDeleted`, `IsKeyOverridden`, `IndexToId`, `TryIndexToId`, `HasId`, `IdToIndex`, `TryIdToIndex`, `ResetOverrideRecursively`, `GetOverriddenItemIndices`, `GetOverriddenKeyIndices`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 22 declarations carry 21 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 21 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: INodePresenter (30 members) sources/presentation/Stride.Core.Presentation.Quantum/Presenters/INodePresenter.cs:9 — `INodePresenter` declares 30 members: `this[]`, `DisplayName`, `Name`, `Root`, `Parent`, `Children`, `Commands`, `AttachedProperties`, `Type`, `IsEnumerable`, `IsReadOnly`, `IsVisible`, `Index`, `Descriptor`, `Order`, `Value`, `CombineKey`, `PropertyProvider`, `Factory`, `ValueChanging`, `ValueChanged`, `UpdateValue`, `AddItem`, `AddItem`, `RemoveItem`, `GetNodeAccessor`, `AddDependency`, `ChangeParent`, `Rename`, `TryGetChild`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 30 declarations carry 29 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 29 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: IDialogService (16 members) sources/presentation/Stride.Core.Presentation/Services/IDialogService.cs:13 — `IDialogService` declares 16 members under just 13 distinct name(s): `HasMainWindow`, `Exit`, `ButtonCancel`, `ButtonOK`, `ButtonNo`, `ButtonYes`, `GetButtons`, `CheckedMessageBoxAsync`, `CheckedMessageBoxAsync`, `CheckedMessageBoxAsync`, `MessageBoxAsync`, `MessageBoxAsync`, `OpenFilePickerAsync`, `OpenMultipleFilesPickerAsync`, `OpenFolderPickerAsync`, `SaveFilePickerAsync`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 13 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
  • Fat interface: IUndoRedoService (25 members) sources/presentation/Stride.Core.Presentation/Services/IUndoRedoService.cs:11 — `IUndoRedoService` declares 25 members: `Capacity`, `CanUndo`, `CanRedo`, `TransactionInProgress`, `UndoRedoInProgress`, `TransactionCompletion`, `UndoRedoCompletion`, `Done`, `Undone`, `Redone`, `TransactionDiscarded`, `Cleared`, `CreateTransaction`, `RetrieveAllTransactions`, `SetName`, `SetName`, `GetName`, `GetName`, `GetName`, `PushOperation`, `Undo`, `Redo`, `NotifySave`, `NotifySave`, `Resize`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 25 declarations carry 21 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 21 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: IEditorPluginContext (18 members) sources/editor/Stride.Core.Assets.Editor/Services/IEditorPluginContext.cs:20 — `IEditorPluginContext` declares 18 members: `Plugin`, `Session`, `Logger`, `AssetViewModelTypes`, `AssetEditorViewModelTypes`, `AssetEditorViewTypes`, `AssetPreviewViewModelTypes`, `AssetPreviewViewTypes`, `PrimitiveTypes`, `EnumImages`, `TypeImages`, `TemplateProviders`, `CopyProcessors`, `PasteProcessors`, `PostPasteProcessors`, `EditorViewToolTypes`, `SettingsKeys`, `ProfileSettings`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: ISessionViewModel (29 members) sources/editor/Stride.Core.Assets.Presentation/ViewModels/ISessionViewModel.cs:26 — `ISessionViewModel` declares 29 members: `Dirtiables`, `ServiceProvider`, `Dispatcher`, `SolutionPath`, `CurrentProject`, `PackageCategories`, `StorePackages`, `LocalPackages`, `AllPackages`, `AllAssets`, `DependencyManager`, `GraphContainer`, `AssetNodeContainer`, `ActiveAssetView`, `AssetViewProperties`, `SourceTracker`, `AssetLog`, `HasAssetReplacements`, `AssetPropertiesChanged`, `DeletedAssetsChanged`, `SessionStateChanged`, `GetAssetById`, `GetAssetViewModelType`, `FindTemplates`, `NotifyAssetPropertiesChanged`, `NotifyAssetPropertiesChangedAsync`, `TrackBackgroundWork`, `GetDefaultRootAssetTarget`, `ToggleRootAsset`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: IUITestContext (26 members) sources/editor/Stride.GameStudio.AutoTesting/IUITestContext.cs:9 — `IUITestContext` declares 26 members: `OpenProject`, `WaitForAssetBuild`, `WaitForShaders`, `WaitDispatcherIdle`, `WaitFrames`, `WaitIdle`, `WaitForRendering`, `Screenshot`, `SetWindowSize`, `CapturePanel`, `WaitForWindow`, `WaitForAnyWindow`, `SelectTemplate`, `CloseModalWithOk`, `RunProject`, `WaitForGameWindow`, `WaitForGameFrames`, `ScreenshotHwnd`, `CloseGameWindow`, `AddAssetFromTemplate`, `OpenAssetEditor`, `WaitForSyntaxHighlighting`, `QueueAssetPickerResponse`, `AddEntityToScene`, `CountUnloadable`, `Exit`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D18 · Solution Shape · Shell project · ×7
  • Shell project: MaterialShader.Game samples/Graphics/MaterialShader/MaterialShader.Game/MaterialShader.Game.csproj — `MaterialShader.Game` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: VFXPackage samples/Templates/Packs/VFXPackage/VFXPackage.csproj — `VFXPackage` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: PrototypingBlocks samples/Templates/Packs/PrototypingBlocks/PrototypingBlocks.csproj — `PrototypingBlocks` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: mannequinModel samples/Templates/Packs/mannequinModel/mannequinModel.csproj — `mannequinModel` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: SamplesAssetPackage samples/Templates/Packs/SamplesAssetPackage/SamplesAssetPackage.csproj — `SamplesAssetPackage` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: MaterialPackage samples/Templates/Packs/MaterialPackage/MaterialPackage.csproj — `MaterialPackage` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: MyTemplate samples/Library/Library/MyTemplate/MyTemplate.csproj — `MyTemplate` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
D27 · Navigability · Pass-through layer · ×7
  • Pass-through layer sources/core/Stride.Core/Collections/ReadOnlySet.cs:10 — ReadOnlySet: all 3 public methods forward their arguments unchanged to innerSet and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call innerSet directly, or give the layer a job.
  • Pass-through layer sources/core/Stride.Core/Serialization/Binary/BinarySerializationWriter.cs:9 — BinarySerializationWriter: all 16 public methods forward their arguments unchanged to Writer and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call Writer directly, or give the layer a job.
  • Pass-through layer sources/shaders/Stride.Shaders.Effects/Compiler/EffectCompilerChain.cs:15 — EffectCompilerChain: all 3 public methods forward their arguments unchanged to compiler and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call compiler directly, or give the layer a job.
  • Pass-through layer sources/editor/Stride.GameStudio.Avalonia/Services/ClipboardService.cs:9 — ClipboardService: all 3 public methods forward their arguments unchanged to clipboard and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call clipboard directly, or give the layer a job.
  • Pass-through layer sources/plugins/Audio/Stride.Audio/SoundInstanceStreamedBuffer.cs:9 — SoundInstanceStreamedBuffer: all 3 public methods forward their arguments unchanged to streamedSource and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call streamedSource directly, or give the layer a job.
  • Pass-through layer sources/plugins/BulletPhysics/Stride.Physics/Constraints/Generic6DoFSpringConstraint.cs:6 — Generic6DoFSpringConstraint: all 4 public methods forward their arguments unchanged to InternalGeneric6DofSpringConstraint and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call InternalGeneric6DofSpringConstraint directly, or give the layer a job.
  • Pass-through layer sources/tools/Stride.Importer.3D/Material/MaterialStack.cs:11 — MaterialStack: all 4 public methods forward their arguments unchanged to stack and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call stack directly, or give the layer a job.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×5
  • Hand-rolled JSON/XML parsing via regex REDACTED:1205 — 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. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex REDACTED:1211 — 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. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex REDACTED:1233 — 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. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex sources/shared/Stride.NuGetResolver/DotNetHostSelector.cs:169 — 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. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex sources/launcher/Stride.Launcher/ViewModels/ReleaseNotesViewModel.cs:116 — 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. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
D34 · Knowledge Freshness · Orphaned file · ×4
  • Orphaned file sources/shared/ConsoleProgram.cs: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 sources/shared/Process/AndroidDeviceEnumerator.cs: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 sources/tools/Stride.PublicApiCheck/ApiCheck.cs: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 sources/shared/AttachedChildProcessJob.cs: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.
X7 · Silent fallback defaults · Silent fallback default on parse failure · ×4
  • Silent fallback default on parse failure sources/core/Stride.Core/Native/NativeLibraryHelper.cs:393 — `ProbeDirectory` falls back to `new Version()` when `Version.TryParse(s, out var v)` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
  • Silent fallback default on parse failure sources/engine/Stride.Graphics.Regression/GoldVariant.cs:37 — `Index` falls back to `1` when `match.Success` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
  • Silent fallback default on parse failure sources/editor/Stride.Core.Assets.Editor/Quantum/NodePresenters/Updaters/PackageSettingsNodeUpdater.cs:31 — `UpdateNode` falls back to `GameGraphicsApi.Default` when `Enum.TryParse<GameGraphicsApi>(raw, ignoreCase: true, out var api) && Enum.IsDef…` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
  • Silent fallback default on parse failure sources/editor/Stride.GameStudio.Avalonia/Helpers/StrideGameStudio.cs:22 — `RuntimeLabel` falls back to `RuntimeInformation.FrameworkDescription` when `match.Success` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
D19 · Documentation Quality · Documentation · ×2
  • Documentation: no build, run or usage example sources/editor/Stride.GameStudio.Avalonia.Desktop/README.md:1 — `Stride.GameStudio.Avalonia.Desktop` is an executable (`OutputType WinExe`) and neither `sources/editor/Stride.GameStudio.Avalonia.Desktop/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example sources/tools/Stride.StorageTool/README.md:1 — `Stride.StorageTool` is an executable (`OutputType WinExe`) and neither `sources/tools/Stride.StorageTool/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
M4 · Documentation accuracy · README/code drift · ×2
  • README/code drift docs/debugging/crash-reporting.md:73 — docs/debugging/crash-reporting.md names .NET 12, but the projects target .NET 8, 10. 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 docs/launcher/README.md:41 — docs/launcher/README.md links to `../../sources/launcher/Prerequisites/`, but `sources/launcher/Prerequisites` 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.
C4 · Data Retention · Partial data-retention evidence · ×1
  • Partial data-retention evidence — A retention mechanism is present, but the data-lifecycle is not yet complete — missing: a scheduled purge / cleanup job (PurgeOlderThan / CleanupJob).
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 59 significant file(s) lose their only recent owner: sources/tools/Stride.TemplateGenerator/TemplatePreprocessor.cs, sources/launcher/Stride.Launcher/ViewModels/MainViewModel.cs, sources/launcher/Stride.Cli/Core/StrideVersionManager.cs, sources/core/Stride.Core.AssemblyProcessor/SerializationProcessor.cs, sources/shaders/Stride.Shaders.Generators/EffectCodeWriter.cs, sources/shared/Stride.NuGetResolver/DotNetHostSelector.cs, sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs, sources/core/Stride.Core.AssemblyProcessor/Serializers/CecilSerializerContext.cs (+51 more). Pair on, review, or document these before any departure.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (61 single-owned of 91 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; 91 of the 142 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: sources/core/Stride.Core.AssemblyProcessor/AssemblyProcessorApp.cs, sources/core/Stride.Core.AssemblyProcessor/AssemblyProcessorProgram.cs.
D18 · Solution Shape · Thin analysable surface across projects · ×1
  • Thin analysable surface across projects: Stride.FontCompiler sources/engine/Stride.FontCompiler/Stride.FontCompiler.csproj — 1 project(s) carry only a thin slice of real code; `Stride.FontCompiler` has 31 significant line(s). The mean analysable-surface weight is 97 %; this project lowers Solution Shape by about 0.02 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — 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/`.
D26 · Project Cohesion · Split Stride.Core · ×1
  • Split Stride.Core sources/core/Stride.Core/Stride.Core.csproj:1 — `Stride.Core` overshoots its size bounds (23469 LoC, 281 public types across 12 namespaces). These parts reach the rest of the project only through its shared core (`(root)`), so they are the cleanest seams: `Stride.Core.Threading` (30 types in 9 files): 18 of 322 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 18 times. Extract each into its own project.
D26 · Project Cohesion · Split Stride.Graphics · ×1
  • Split Stride.Graphics sources/engine/Stride.Graphics/Stride.Graphics.csproj:1 — `Stride.Graphics` overshoots its size bounds (59185 LoC, 322 public types across 9 namespaces). These parts reach the rest of the project only through its shared core (`(root)`, `Interop`, `SDL`), so they are the cleanest seams: `Stride.Graphics.GeometricPrimitives` (16 types in 11 files): 0 of 243 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 155 times. Extract each into its own project.
D26 · Project Cohesion · Split Stride.Rendering · ×1
  • Split Stride.Rendering sources/engine/Stride.Rendering/Stride.Rendering.csproj:1 — `Stride.Rendering` overshoots its size bounds (40936 LoC, 558 public types across 26 namespaces). These parts reach the rest of the project only through its shared core (`(root)`, `Colors`, `Skyboxes`), so they are the cleanest seams: `Stride.Rendering.LightProbes` (13 types in 6 files): 21 of 183 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 27 times; `Stride.Rendering.ProceduralModels` (13 types in 13 files): 0 of 72 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 35 times; `Stride.Rendering.Sprites` (12 types in 8 files): 0 of 128 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 58 times. Extract each into its own project.
D26 · Project Cohesion · Split Stride.Core.Design · ×1
  • Split Stride.Core.Design sources/core/Stride.Core.Design/Stride.Core.Design.csproj:1 — `Stride.Core.Design` overshoots its size bounds (12662 LoC, 106 public types across 17 namespaces). These parts reach the rest of the project only through its shared core (`(root)`, `Extensions`, `Reflection`, `Transactions`, `TypeConverters`), so they are the cleanest seams: `Stride.Core.Threading` (12 types in 7 files): 0 of 43 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 0 times; `Stride.Core.Solutions` (11 types in 11 files): 0 of 153 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 0 times; `Stride.Core.CodeEditorSupport` (7 types in 7 files): 0 of 32 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 0 times. Extract each into its own project.
D26 · Project Cohesion · Split Stride.Assets.Editor · ×1
  • Split Stride.Assets.Editor sources/editor/Stride.Assets.Editor/Stride.Assets.Editor.csproj:1 — `Stride.Assets.Editor` overshoots its size bounds (26401 LoC, 289 public types across 34 namespaces). These parts reach the rest of the project only through its shared core (`(root)`, `AssetEditors`, `EntityFactories`, `Preview`, `SceneEditor`), so they are the cleanest seams: `Stride.Assets.Editor.Templates` (26 types in 25 files): 0 of 142 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 0 times; `Stride.Assets.Editor.DebugShapes` (9 types in 7 files): 0 of 22 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 0 times. Extract each into its own project.
D26 · Project Cohesion · Split Stride.Assets.Editor.Wpf · ×1
  • Split Stride.Assets.Editor.Wpf sources/editor/Stride.Assets.Editor.Wpf/Stride.Assets.Editor.Wpf.csproj:1 — `Stride.Assets.Editor.Wpf` overshoots its size bounds (19089 LoC, 230 public types across 38 namespaces). These parts reach the rest of the project only through its shared core (`(root)`, `SceneEditor`), so they are the cleanest seams: `Stride.Assets.Presentation.CurveEditor` (55 types in 32 files): 0 of 946 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 0 times; `Stride.Assets.Presentation.Templates` (14 types in 13 files): 0 of 36 of its type references cross into a sibling namespace, and the rest of the project uses it 1 times and it uses the rest 0 times; `Stride.Assets.Presentation.AssemblyReloading` (9 types in 3 files): 2 of 106 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 2 times. Extract each into its own project.
D26 · Project Cohesion · Split Stride.Assets · ×1
  • Split Stride.Assets sources/engine/Stride.Assets/Stride.Assets.csproj:1 — `Stride.Assets` overshoots its size bounds (17932 LoC, 194 public types across 16 namespaces). These parts reach the rest of the project only through its shared core (`(root)`), so they are the cleanest seams: `Stride.Assets.SpriteFont` (42 types in 30 files): 0 of 468 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 6 times; `Stride.Assets.Templates` (25 types in 17 files): 0 of 184 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 5 times. Extract each into its own project.
D34 · Knowledge Freshness · Orphaned files with no living knowledge · ×1
  • Orphaned files with no living knowledge — 4 of 91 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (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; 91 of the 142 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: sources/shared/ConsoleProgram.cs, sources/shared/Process/AndroidDeviceEnumerator.cs, sources/tools/Stride.PublicApiCheck/ApiCheck.cs, sources/shared/AttachedChildProcessJob.cs. 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
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
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.
P12 · CI test-gate honesty · Sleep-based test synchronization · ×1
  • Sleep-based test synchronization — 34 Task.Delay/Thread.Sleep call(s) in test code synchronize with background work by sleeping — a known flakiness precursor on slow runners. Prefer polling with a deadline or completion signals.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation sources/Directory.Packages.props:11 — `sources/Directory.Packages.props` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
P6 · Release Hygiene · No changelog · ×1
  • No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
X2 · Cancellation propagation · Not all async methods take a CancellationToken · ×1
  • Not all async methods take a CancellationToken — Only 56/612 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
X7 · Silent fallback defaults · Silent fallback default on lookup miss · ×1
  • Silent fallback default on lookup miss sources/editor/Stride.Core.Assets.Editor/Panels/SessionPanelLayoutStore.cs:130 — `Update` answers a miss of `Find(list, sessionPath)` with `new SessionPanelLayouts { FilePath = sessionPath }` — an entity fabricated around `sessionPath`, which the caller cannot tell from a stored one. Return null or a not-found result, or throw.
Minor — 159 finding(s)
D24 · Comment Value · doc comments repeat the names · ×89
  • doc comments repeat the names sources/assets/Stride.AssetCompiler/BundlePacker.cs:28 — 2 of 10 documented parameters and 2 of 36 summaries in `Stride.AssetCompiler` only repeat the member or parameter name (e.g. "The root package." for `rootPackage`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/engine/Stride.Assets/CodeUpgrade/CodeUpgradeApi.cs:21 — 12 of 144 documented parameters and 23 of 484 summaries in `Stride.Assets` only repeat the member or parameter name (e.g. "The cancellation token." for `cancellationToken`). 22 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Assets.Editor/AssetEditors/EntityHierarchyEditor/Tools/EditorViewClick.cs:30 — 16 of 226 documented parameters and 35 of 938 summaries in `Stride.Assets.Editor` only repeat the member or parameter name (e.g. "Gets whether Ctrl was down." for `IsCtrlDown`). 3 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Assets.Editor.Tests/Helpers/FakeTemplateInfo.cs:85 — 0 of 4 documented parameters and 1 of 110 summaries in `Stride.Assets.Editor.Tests` only repeat the member or parameter name (e.g. "A parameter of a ." for `FakeTemplateParameter`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/EntityHierarchyEditor/EditorRenderMode.cs:33 — 43 of 158 documented parameters and 57 of 523 summaries in `Stride.Assets.Editor.Wpf` only repeat the member or parameter name (e.g. "Gets the name." for `Name`). 32 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/engine/Stride.Assets.Models/AnimationAsset.cs:126 — 8 of 28 documented parameters and 8 of 73 summaries in `Stride.Assets.Models` only repeat the member or parameter name (e.g. "Gets or sets the Skeleton." for `Skeleton`). 2 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Assets.Presentation/AssetEditors/EntityHierarchyEditor/ViewModels/AddAssetPolicies/IAddAssetPolicy.cs:30 — 2 of 48 documented parameters and 21 of 141 summaries in `Stride.Assets.Presentation` only repeat the member or parameter name (e.g. "The asset." for `asset`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/engine/Stride.Assets.Tests/TestMaterialGenerator.cs:920 — 0 of 3 documented parameters and 2 of 35 summaries in `Stride.Assets.Tests` only repeat the member or parameter name (e.g. "The generator on its own leaves texture references as proxies." for `TestGeneratorLeavesTextureReferencesAsProxies`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/plugins/Audio/Stride.Audio/AudioEngine.cs:67 — 4 of 69 documented parameters and 8 of 199 summaries in `Stride.Audio` only repeat the member or parameter name (e.g. "Initialize audio engine" for `InitializeAudioEngine`). 3 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names REDACTED:19 — 0 of 0 documented parameters and 1 of 4 summaries in `Stride.Audio.Assets` only repeat the member or parameter name (e.g. "Asset compiler for ." for `SoundAssetCompiler`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/plugins/Audio/Stride.Audio.Tests/Engine/TestAudioEmitterProcessor.cs:76 — 3 of 27 documented parameters and 7 of 67 summaries in `Stride.Audio.Tests` only repeat the member or parameter name (e.g. "Add the root entity to the entity system" for `AddRootEntityToEntitySystem`). 11 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/plugins/BepuPhysics/Stride.BepuPhysics/Definitions/Colliders/HeightfieldShape.cs:79 — 0 of 156 documented parameters and 2 of 310 summaries in `Stride.BepuPhysics` only repeat the member or parameter name (e.g. "The GCHandle of" for `CoarseBlocksGCHandle`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/plugins/BepuPhysics/Stride.BepuPhysics.Navigation/Components/RecastNavigationComponent.cs:52 — 0 of 11 documented parameters and 0 of 21 summaries in `Stride.BepuPhysics.Navigation` only repeat the member or parameter name (e.g. "" for `target`). 11 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/shared/AttachedChildProcessJob.cs:20 — 10 of 17 documented parameters and 0 of 14 summaries in `Stride.ConnectionRouter` only repeat the member or parameter name (e.g. "The process." for `process`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/core/Stride.Core/AccessorMetadata.cs:11 — 168 of 612 documented parameters and 70 of 959 summaries in `Stride.Core` only repeat the member or parameter name (e.g. "Setter delegate." for `SetterDelegate`). 11 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/core/Stride.Core.AssemblyProcessor/CecilExtensions.cs:465 — 4 of 16 documented parameters and 6 of 88 summaries in `Stride.Core.AssemblyProcessor(netstandard2.0)` only repeat the member or parameter name (e.g. "The type." for `type`). 6 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/assets/Stride.Core.Assets/Analysis/AssetAnalysis.cs:12 — 212 of 655 documented parameters and 94 of 1224 summaries in `Stride.Core.Assets` only repeat the member or parameter name (e.g. "Analysis for ." for `AssetAnalysis`). 38 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Core.Assets.Editor/Extensions/NodePresenterExtensions.cs:52 — 20 of 312 documented parameters and 43 of 887 summaries in `Stride.Core.Assets.Editor` only repeat the member or parameter name (e.g. "The name of the category." for `categoryName`). 48 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Core.Assets.Editor.Tests/Helpers/FakeGameProjectBuilder.cs:89 — 0 of 0 documented parameters and 1 of 146 summaries in `Stride.Core.Assets.Editor.Tests` only repeat the member or parameter name (e.g. "A build of ." for `FakeGameProjectBuild`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Core.Assets.Editor.Wpf/Components/Status/Views/ToolTipHelper.cs:96 — 2 of 70 documented parameters and 13 of 224 summaries in `Stride.Core.Assets.Editor.Wpf` only repeat the member or parameter name (e.g. "Gets the text of the tooltip." for `GetTooltipText`). 4 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/editor/Stride.Core.Assets.Presentation/Annotations/AssetViewModelAttribute.cs:14 — 4 of 121 documented parameters and 10 of 307 summaries in `Stride.Core.Assets.Presentation` only repeat the member or parameter name (e.g. "The type of the asset." for `AssetType`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/assets/Stride.Core.Assets.Quantum/AssetCompositeHierarchyPropertyGraph.cs:356 — 2 of 83 documented parameters and 6 of 102 summaries in `Stride.Core.Assets.Quantum` only repeat the member or parameter name (e.g. "Tracks the given deleted instance parts." for `TrackDeletedInstanceParts`). 5 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/assets/Stride.Core.Assets.Tests/TestDynamicYaml.cs:10 — 0 of 0 documented parameters and 9 of 30 summaries in `Stride.Core.Assets.Tests` only repeat the member or parameter name (e.g. "Tests for and" for `TestDynamicYaml`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/buildengine/Stride.Core.BuildEngine.Common/AssemblyHash.cs:19 — 19 of 39 documented parameters and 6 of 132 summaries in `Stride.Core.BuildEngine.Common` only repeat the member or parameter name (e.g. "The assembly." for `assembly`). 2 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names sources/core/Stride.Core.CompilerServices/Analyzers/STRDIAG000AttributeContradiction.cs:49 — 3 of 24 documented parameters and 1 of 33 summaries in `Stride.Core.CompilerServices` only repeat the member or parameter name (e.g. "The DataMember Attribute of the" for `dataMemberAttribute`). 1 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • + 64 more in this group — see findings.md.
D10 · Test Quality · Skipped (documented) · ×70
  • Skipped (documented): TrimExcess_ReducesCapacity sources/core/Stride.Core.Tests/Collections/SortedListTests.cs:320 — Skipped with a documented reason — a deferral, not lazy debt: TrimExcess implementation may not reduce capacity as expected
  • Skipped (documented): Benchmark sources/engine/Stride.Engine.Tests/TestEntityManager.Benchmark.cs:16 — Skipped with a documented reason — a deferral, not lazy debt: Benchmark with hardcoded timeout is unreliable on CI runners
  • Skipped (documented): MaterialLayerABB sources/engine/Stride.Graphics.Tests.10_0/MaterialTests.cs:202 — Skipped with a documented reason — a deferral, not lazy debt: Disabled until XK-3123 is fixed (material blending SM flush results in layer masks applied improperly)
  • Skipped (documented): MaterialLayerBAA sources/engine/Stride.Graphics.Tests.10_0/MaterialTests.cs:220 — Skipped with a documented reason — a deferral, not lazy debt: Disabled until XK-3123 is fixed (material blending SM flush results in layer masks applied improperly)
  • Skipped (documented): MaterialLayerABBWithAPI sources/engine/Stride.Graphics.Tests.10_0/MaterialTests.cs:232 — Skipped with a documented reason — a deferral, not lazy debt: Similar to MaterialLayerABB but using API for easier debugging
  • Skipped (documented): TestBlockingCommands sources/buildengine/Stride.Core.BuildEngine.Tests/TestBuilder.cs:14 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestAwaitingCommands sources/buildengine/Stride.Core.BuildEngine.Tests/TestBuilder.cs:31 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestSpawnAndAwaitCommands sources/buildengine/Stride.Core.BuildEngine.Tests/TestBuilder.cs:48 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestRetrievingResultFromCache sources/buildengine/Stride.Core.BuildEngine.Tests/TestBuilder.cs:55 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestSameCommandParallelExecution sources/buildengine/Stride.Core.BuildEngine.Tests/TestBuilder.cs:64 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestCancellationToken sources/buildengine/Stride.Core.BuildEngine.Tests/TestCancellation.cs:13 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestCancelCallback sources/buildengine/Stride.Core.BuildEngine.Tests/TestCancellation.cs:39 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestCancelPrerequisites sources/buildengine/Stride.Core.BuildEngine.Tests/TestCancellation.cs:63 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestCommandDependencies sources/buildengine/Stride.Core.BuildEngine.Tests/TestDependencies.cs:13 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestFailedDependencies sources/buildengine/Stride.Core.BuildEngine.Tests/TestDependencies.cs:20 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestCancelledDependencies sources/buildengine/Stride.Core.BuildEngine.Tests/TestDependencies.cs:27 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestExceptionDependencies sources/buildengine/Stride.Core.BuildEngine.Tests/TestDependencies.cs:34 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestMultipleDependencies sources/buildengine/Stride.Core.BuildEngine.Tests/TestDependencies.cs:41 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestSingleOutput sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:48 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestTwoCommandsSameOutput sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:64 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestSingleCommandTwiceWithInputChange sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:90 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestUseBuildCacheOutput sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:125 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestSpawnCommandOutput sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:153 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestInputFromPreviousOutput sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:176 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • Skipped (documented): TestInputFromPreviousOutputWithCache sources/buildengine/Stride.Core.BuildEngine.Tests/TestIO.cs:202 — Skipped with a documented reason — a deferral, not lazy debt: BuildEngine tests are deprecated
  • + 45 more in this group — see findings.md.

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-1a68a49038504909afdf0ddef220acff/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-1a68a49038504909afdf0ddef220acff/tree.json --exit-code 0 --source .0—
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 sources/engine/Stride.Engine/Engine/Network/Sockets.Plugin.Abstractions/Enums --exclude sources/engine/Stride.Engine/Engine/Network/Sockets.Plugin.Abstractions/EventArgs --exclude sources/plugins/BulletPhysics/Stride.Physics/Shaders.Bytecode --exclude sources/shaders/Stride.Shaders.Spirv/Generated .489artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnuget—nuget: not applicable — nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan0—
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-d6f683334c734605826ba5774cf00ffe0artifacts/raw/osv-scanner.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 287 file(s) — `REDACTED`, `sources/assets/Stride.Core.Assets/Compiler/AssetCompilationContext.cs`, `sources/assets/Stride.Core.Assets/Compiler/ICompilationContext.cs`, `sources/assets/Stride.Core.Assets/IProjectAsset.cs`, `sources/assets/Stride.Core.Assets/PackageSession.cs`, … (+282 more) — 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 . /tmp/codehealth-osv-sbom-d6f683334c734605826ba5774cf00ffe0artifacts/raw/osv-scanner.json

Run 01a1cd9a-e04d-7c7a-b8b7-30d480dbd521 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Appendix C — Personal-data map

Every field, property and record parameter whose name is conventional personal data — 20 field(s) across 2 categories, each with an exact repo-relative file:line. This is the data inventory a compliance review starts from — right-to-erasure, retention, minimisation. Detected by NAME, from the C# syntax tree, with a deliberately specific identifier classifier — the same one the C1–C5 compliance cards use to decide whether personal data is present, so CardDefinition or FileName don't trip. Two caveats stated rather than glossed: those cards additionally require corroboration (a persistence/account signal, or two distinct PII categories) that this inventory deliberately does not, so it lists more than they gate on; and D32 Data Compliance shares nothing with it — that dimension is a separate semgrep ruleset for personal data leaking into logs, URLs and browser storage, and a clean D32 result says nothing about this list. Informational — it feeds no score.

Name — 16 field(s)
  • AssemblyDefinition.FullName sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.AssemblyDefinition.cs:9
  • BaseDefinition.FullName sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.BaseDefinition.cs:9
  • NamespaceDefinition.FullName sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.NamespaceDefinition.cs:7
  • TypeDefinition.FullName sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.TypeDefinition.cs:13
  • TypeDefinition.UnboundFullName sources/core/Stride.Core.CompilerServices/Generators/UnifiedGenerator.TypeDefinition.cs:22
  • ExceptionInfo.TypeFullName sources/core/Stride.Core/Diagnostics/ExceptionInfo.cs:63
  • TypeInfo._fullName sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/MetadataUtil.cs:47
  • TypeInfo.FullName sources/editor/Stride.Assets.Editor.Wpf/AssetEditors/ScriptEditor/MetadataUtil.cs:49
  • GamePlatform.FullName sources/engine/Stride.Games/GamePlatform.cs:59
  • FT_FaceRec.family_name sources/engine/Stride.Graphics/Font/FreeTypeNative.cs:175
  • PackageVersionViewModel.FullName sources/launcher/Stride.Launcher/ViewModels/PackageVersionViewModel.cs:57
  • StrideDevVersionViewModel.FullName sources/launcher/Stride.Launcher/ViewModels/StrideDevVersionViewModel.cs:206
  • StrideStoreAlternateVersionViewModel.FullName sources/launcher/Stride.Launcher/ViewModels/StrideStoreAlternateVersionViewModel.cs:42
  • StrideStoreVersionViewModel.FullName sources/launcher/Stride.Launcher/ViewModels/StrideStoreVersionViewModel.cs:136
  • StrideStoreVersionViewModel.ServerVersionFullName sources/launcher/Stride.Launcher/ViewModels/StrideStoreVersionViewModel.cs:150
  • VsixVersionViewModel.FullName sources/launcher/Stride.Launcher/ViewModels/VsixVersionViewModel.cs:34
Email — 4 field(s)
  • CrashReporterViewModel.feedbackEmail sources/crashreport/Stride.CrashReporter/CrashReporterViewModel.cs:36
  • CrashReporterViewModel.FeedbackEmail sources/crashreport/Stride.CrashReporter/CrashReporterViewModel.cs:99
  • CrashReportViewModel.feedbackEmail sources/launcher/Stride.Launcher/Crash/CrashReportViewModel.cs:34
  • CrashReportViewModel.FeedbackEmail sources/launcher/Stride.Launcher/Crash/CrashReportViewModel.cs:109

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