aws / porting-assistant-dotnet-ui
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 128 units with 1,963 lines of code in units (14.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (385 lines of code)
    • 7 simple units (402 lines of code)
    • 113 very simple units (1,176 lines of code)
0% | 0% | 19% | 20% | 59%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
ts0% | 0% | 28% | 7% | 64%
cs0% | 0% | 17% | 31% | 50%
tsx0% | 0% | 0% | 18% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
packages/react/src/store0% | 0% | 51% | 9% | 38%
packages/csharp/PortingAssistant/PortingAssistant.Telemetry0% | 0% | 58% | 10% | 30%
packages/csharp/PortingAssistant/PortingAssistant.VisualStudio0% | 0% | 53% | 0% | 46%
packages/csharp/PortingAssistant/PortingAssistant.Api0% | 0% | 0% | 62% | 37%
packages/csharp/PortingAssistant/PortingAssistant.Common0% | 0% | 0% | 29% | 70%
packages/react/src/components0% | 0% | 0% | 14% | 85%
packages/electron/src0% | 0% | 0% | 6% | 93%
packages/electron/src/telemetry0% | 0% | 0% | 0% | 100%
packages/integration-test/src0% | 0% | 0% | 0% | 100%
packages/react/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static void OnTimedEvent()
in packages/csharp/PortingAssistant/PortingAssistant.Telemetry/Utils/LogUploadUtils.cs
113 22 6
incompatiblePackages: getIncompatibleNugets()
in packages/react/src/store/selectors/tableSelectors.ts
42 14 2
private static ISetupInstance2 GetLatestPath()
in packages/csharp/PortingAssistant/PortingAssistant.VisualStudio/VisualStudioFinder.cs
52 14 0
portability: getPercent()
in packages/react/src/store/selectors/tableSelectors.ts
34 13 2
portabilityNumber: getPercentNumber()
in packages/react/src/store/selectors/tableSelectors.ts
33 13 2
buildErrors: getErrorCounts()
in packages/react/src/store/selectors/tableSelectors.ts
38 11 3
portingActions: getActionCounts()
in packages/react/src/store/selectors/tableSelectors.ts
37 11 3
ported: isPortingCompleted()
in packages/react/src/store/selectors/tableSelectors.ts
36 11 3
portedProjects: portedProjects()
in packages/react/src/store/selectors/tableSelectors.ts
42 9 3
public Response AnalyzeSolution()
in packages/csharp/PortingAssistant/PortingAssistant.Common/Services/AssesmentService.cs
117 9 1
public static string getUniqueIdentifier()
in packages/csharp/PortingAssistant/PortingAssistant.Telemetry/Utils/LogUploadUtils.cs
21 8 0
public void SetupConnection()
in packages/csharp/PortingAssistant/PortingAssistant.Api/Application.cs
104 8 1
the solution()
in packages/react/src/components/MainContent.tsx
45 7 1
function getHomeDir()
in packages/electron/src/setup.ts
14 7 0
static void Main()
in packages/csharp/PortingAssistant/PortingAssistant.Api/Program.cs
59 6 1
messageId: uuid()
in packages/react/src/components/AssessSolution/SolutionSummary.tsx
50 5 0
async getLatestVersion()
in packages/electron/src/LocalProvider.ts
31 5 0
public static string FindFiles()
in packages/csharp/PortingAssistant/PortingAssistant.Common/Utils/PortingAssistantUtils.cs
15 5 2
public static Response FeedbackUpload()
in packages/csharp/PortingAssistant/PortingAssistant.Common/Utils/CustomerContributionUtils.cs
37 4 3
project: exportCsv()
in packages/react/src/store/sagas/backendSaga.ts
13 3 1