Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
This report summarizes scanner evidence for OpenRA/OpenRA, a C# project with 17,698 GitHub stars. SynthScan examined 658,238 lines of code across 2550 source files, recording 129 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 0.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 101 finding(s).
Are imports declared and package/API names verified? 20 finding(s).
Are wrappers, guards, and repeated structures necessary? 14 finding(s).
Which changes need focused human review? 129 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 129 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | OpenRA.Mods.Cnc/Traits/World/JumpjetActorLayer.cs | 43 | terrainIndex = self.World.Map.Rules.TerrainInfo.GetTerrainIndex(info.TerrainType); | CODE |
| CRITICAL | OpenRA.Mods.Cnc/Traits/SupportPowers/DropPodsPower.cs | 98 | if (!self.World.Map.Rules.Actors.TryGetValue(unitType, out var actorInfo)) | CODE |
| CRITICAL | …A.Mods.Common/Scripting/Properties/PlayerProperties.cs | 93 | if (!Context.World.Map.Rules.Actors.TryGetValue(type, out var ai)) | CODE |
| CRITICAL | …A.Mods.Common/Scripting/Properties/PlayerProperties.cs | 108 | if (!Context.World.Map.Rules.Actors.ContainsKey(type)) | CODE |
| CRITICAL | …ds.Common/Scripting/Properties/ProductionProperties.cs | 41 | if (!Self.World.Map.Rules.Actors.TryGetValue(actorType, out var actorInfo)) | CODE |
| CRITICAL | OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs | 125 | if (!Context.World.Map.Rules.Actors.TryGetValue(type, out var ai)) | CODE |
| CRITICAL | OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs | 146 | var pqueue = Context.World.Map.Rules.Actors.Values.SelectMany(a => a.TraitInfos<ProductionQueueInfo>() | CODE |
| CRITICAL | OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs | 156 | var pqueue = Context.World.Map.Rules.Actors.Values.SelectMany(a => a.TraitInfos<ProductionQueueInfo>() | CODE |
| CRITICAL | OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs | 172 | if (!Context.World.Map.Rules.Actors.TryGetValue(type, out var ai)) | CODE |
| CRITICAL | OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs | 182 | if (!Context.World.Map.Rules.Actors.TryGetValue(type, out var ai)) | CODE |
| CRITICAL | …A.Mods.Common/Scripting/Global/ReinforcementsGlobal.cs | 35 | if (!Context.World.Map.Rules.Actors.TryGetValue(actorType, out var ai)) | CODE |
| CRITICAL | OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs | 540 | .Concat(server.Map.Players.Players.Values.Select(p => p.Color)).ToList(); | CODE |
| CRITICAL | OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs | 1440 | .Concat(server.Map.Players.Players.Values.Select(p => p.Color)).ToList(); | CODE |
| CRITICAL | …enRA.Mods.Common/Traits/Buildings/GroundLevelBridge.cs | 79 | var terrainIndex = self.World.Map.Rules.TerrainInfo.GetTerrainIndex(Info.TerrainType); | CODE |
| CRITICAL | OpenRA.Mods.Common/Traits/Render/RenderSprites.cs | 293 | .Select(a => int2.FromVector(a.Animation.Animation.Image.Size.AsVector2() * a.Animation.Animation.CurrentSequence.S | CODE |
| CRITICAL | …nRA.Mods.Common/Traits/World/SubterraneanActorLayer.cs | 42 | terrainIndex = self.World.Map.Rules.TerrainInfo.GetTerrainIndex(info.TerrainType); | CODE |
| CRITICAL | …RA.Mods.Common/Traits/BotModules/HarvesterBotModule.cs | 387 | var minCellCost = harv.Mobile.Locomotor.Info.TerrainSpeeds.Values.Min(ti => ti.Cost); | CODE |
| CRITICAL | ….Mods.Common/Traits/SupportPowers/ParatroopersPower.cs | 96 | if (!self.World.Map.Rules.Actors.TryGetValue(utLower, out var unitType)) | CODE |
| CRITICAL | …Commands/Documentation/ExtractZeroBraneStudioLuaAPI.cs | 132 | Console.WriteLine($" version = \"{utility.ModData.Manifest.Metadata.Version.Split('-').LastOrDefault()}\","); | CODE |
| CRITICAL | OpenRA.Mods.Common/Widgets/ProductionTabsWidget.cs | 116 | Groups = world.Map.Rules.Actors.Values.SelectMany(a => a.TraitInfos<ProductionQueueInfo>()) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/functions.sh | 1 | #!/bin/sh | COMMENT |
| LOW | packaging/functions.sh | 41 | -p:CopyCncDll="${COPY_CNC_DLL}" -p:CopyD2kDll="${COPY_D2K_DLL}" \ | COMMENT |
| LOW | packaging/functions.sh | 121 | COMMENT | |
| LOW | packaging/functions.sh | 141 | # Linux AppImage packaging | COMMENT |
| LOW | packaging/functions.sh | 181 | # Copy launch wrappers, application icons, desktop, and MIME files to the target directory | COMMENT |
| LOW | packaging/macos/apphost.c | 1 | /* | COMMENT |
| LOW | packaging/macos/buildpackage.sh | 1 | #!/bin/bash | COMMENT |
| LOW | OpenRA.Mods.Common/WorldExtensions.cs | 201 | COMMENT | |
| LOW | OpenRA.Mods.Common/TraitsInterfaces.cs | 221 | /// <summary>When null, the client should act as if it can dock but never do.</summary> | COMMENT |
| LOW | OpenRA.Mods.Common/TraitsInterfaces.cs | 861 | /// Actors on the map are ignored, as if they were not present. | COMMENT |
| LOW | OpenRA.Mods.Common/TraitsInterfaces.cs | 881 | /// blocking by the blocking rules. | COMMENT |
| LOW | OpenRA.Mods.Common/TraitsInterfaces.cs | 961 | /// Calculates a path for the actor from multiple possible sources, whilst searching for an acceptable target. | COMMENT |
| LOW | OpenRA.Mods.Common/TraitsInterfaces.cs | 981 | /// Determines if a path exists between source and target. | COMMENT |
| LOW | OpenRA.Mods.Common/Traits/World/PathFinder.cs | 81 | /// Returned path is *reversed* and given target to source. | COMMENT |
| LOW | OpenRA.Mods.Common/Traits/World/PathFinder.cs | 101 | bool laneBias = true) | COMMENT |
| LOW | OpenRA.Mods.Common/Traits/World/PathFinder.cs | 241 | bool laneBias = true) | COMMENT |
| LOW | OpenRA.Mods.Common/Traits/World/PathFinder.cs | 261 | /// </remarks> | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 21 | /// <summary> | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 41 | /// prioritize exploring nodes that lie closer to the target, rather than exploring nodes that take us away from | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 61 | /// grid. Every region will be represented by one node in the abstract graph (an abstract node, for short).</para> | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 81 | /// <see cref="Locomotor.CanMoveFreelyInto(Actor, CPos, SubCell, BlockedByActor, Actor, bool)"/>. It will be aware | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 121 | /// A lookup will fail, rather than return an empty list. | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 641 | /// <para> | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 1221 | /// of the original node to provide a better cost estimate. | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/Grid.cs | 21 | /// <remarks> | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/PathSearch.cs | 121 | return search; | COMMENT |
| LOW | OpenRA.Mods.Common/Pathfinder/PathSearch.cs | 161 | } | COMMENT |
| LOW | OpenRA.Mods.Common/EditorBrushes/EditorBlit.cs | 141 | // - Its a sparse blit; and | COMMENT |
| LOW | OpenRA.Mods.Common/UpdateRules/UpdatePath.cs | 21 | // | COMMENT |
| LOW | OpenRA.Mods.Common/Activities/Enter.cs | 41 | moveCooldownHelper = new MoveCooldownHelper(self.World, move as Mobile) { RetryIfDestinationBlocked = true }; | COMMENT |
| LOW | …enRA.Mods.Common/Activities/Move/MoveCooldownHelper.cs | 1 | using OpenRA.Activities; | COMMENT |
| LOW | …enRA.Mods.Common/Activities/Move/MoveCooldownHelper.cs | 41 | /// <summary> | COMMENT |
| LOW | …/UtilityCommands/Documentation/DocumentationHelpers.cs | 141 | typesPerFile[filePath] = list = []; | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 41 | public enum GraphMode | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 301 | GraphMode mode = GraphMode.Identifier) | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 321 | /// filler should capture and manipulate any necessary input and output | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 421 | return output; | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 741 | COMMENT | |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 1041 | /// counter-clockwise (as defined in MapGenerator.Direction). | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 1121 | /// Trace the borders between true and false regions of an input matrix, returning an array | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 1261 | /// <para> | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 1361 | return changesAcc; | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 1621 | links[point] = 0; | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs | 1681 | while (i != startAt); | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Direction.cs | 261 | return best; | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Direction.cs | 281 | /// Supplying a zero-offset will throw. Assumes that CVec(1, 0) | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Terraformer.cs | 661 | outside: false, | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Terraformer.cs | 741 | random, | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Terraformer.cs | 901 | /// <param name="random">Random source for locations and actor type selection.</param> | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Terraformer.cs | 1141 | /// <summary> | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Terraformer.cs | 1221 | } | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Terraformer.cs | 1241 | Matrix<PathPartitionZone> zoneMask, | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/Terraformer.cs | 2241 | /// <summary> | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/NoiseUtils.cs | 41 | /// <summary> | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/LatTiler.cs | 61 | COMMENT | |
| LOW | OpenRA.Mods.Common/MapGenerator/TilingPath.cs | 161 | } | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/TilingPath.cs | 181 | /// </summary> | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/TilingPath.cs | 201 | /// <summary> | COMMENT |
| LOW | OpenRA.Mods.Common/MapGenerator/TilingPath.cs | 321 | COMMENT | |
| LOW | OpenRA.Mods.Common/MapGenerator/TilingPath.cs | 341 | // There is a matrix for each possible connection type, and each matrix stores the | COMMENT |
| 28 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | mods/ts/chrome.yaml | 49 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | mods/ts/chrome.yaml | 51 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | mods/ts/chrome.yaml | 251 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | mods/ts/chrome.yaml | 253 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | mods/ts/chrome.yaml | 454 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | mods/ts/chrome.yaml | 456 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | mods/ts/chrome.yaml | 521 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | mods/ts/chrome.yaml | 523 | # ---------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | OpenRA.Mods.D2k/UtilityCommands/D2kMapImporter.cs | 511 | // Just get a template that contains a tile with the same ID as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packaging/format-docs.py | 3 | # This file is part of OpenRA, which is free software. It is made | COMMENT |
| MEDIUM | packaging/windows/fixlauncher.py | 2 | # This file is part of OpenRA, which is free software. It is made | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/cnc/maps/the-tiberium-strain/the-tiberium-strain.lua | 228 | local function ReinforceVillageFlameTank() | CODE |
| LOW | …s/cnc/maps/the-tiberium-strain/the-tiberium-strain.lua | 283 | local function ReinforceVillageHelicopter() | CODE |
| LOW | mods/ra/maps/proving-grounds/proving-grounds.lua | 495 | local function ReinforceCrateParatroopers() | CODE |
| LOW | mods/ra/maps/allies-07/allies07.lua | 66 | local function CompleteObjectiveWithSpeech(objective, speech, markDelay, speechDelay) | CODE |
| LOW | mods/ra/maps/allies-07/allies07.lua | 87 | local function InitialAlliedReinforcements() | CODE |
| LOW | mods/ra/maps/allies-07/allies07.lua | 317 | local function ClearSubActivityCompleted() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | launch-dedicated.sh | 4 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | launch-dedicated.sh | 7 | # Read the file to see which settings you can override | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | OpenRA.Game/Server/OrderBuffer.cs | 99 | // We need to check if we have a connection slower than our baseline and then use that as our offset. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/format-docs.py | 29 | CODE |