aws-samples / query-data-in-s3-with-amazon-athena-and-aws-sdk-for-dotnet
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 60 units with 741 lines of code in units (50.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (44 lines of code)
    • 1 simple units (20 lines of code)
    • 58 very simple units (677 lines of code)
0% | 0% | 5% | 2% | 91%
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
cs0% | 0% | 16% | 7% | 76%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions0% | 0% | 38% | 17% | 44%
app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.WebApp0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.BusinessLogicTests/Repositories0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.WebApp/Controllers0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Repositories0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.WebApp/Pages0% | 0% | 0% | 0% | 100%
app/AthenaNetCore/AthenaNetCore.BusinessLogic/Entities0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static T ProcessRow()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
44 13 2
private static async Task WaitForQueryToComplete()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
20 6 3
export default function register()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/registerServiceWorker.js
16 5 0
render()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/HospitalsRunAndGo.js
15 4 0
public static async Task IsTheQueryStillRunning()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
21 4 2
private static IReadOnlyDictionary MapColumnsPositions()
in src/app/AthenaNetCore/AthenaNetCore.BusinessLogic/Extentions/AmazonAthenaClientExtentions.cs
18 4 2
render()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/Hospitals.js
12 3 0
render()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByState.js
22 3 0
render()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
18 3 0
function registerValidSW()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/registerServiceWorker.js
21 3 1
function checkValidServiceWorker()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/registerServiceWorker.js
22 3 1
public void Configure()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/Startup.cs
28 3 2
stateSelectChange()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByState.js
9 2 1
async checkQueryStatus()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByState.js
18 2 1
async checkQueryStatus()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/HospitalsRunAndGo.js
18 2 1
scheduleStatusCheck()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/HospitalsRunAndGo.js
9 2 1
stateSelectChange()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
9 2 1
async checkQueryStatus()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
18 2 1
scheduleStatusCheck()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/components/CovidTestingByDate.js
9 2 1
export function unregister()
in src/app/AthenaNetCore/AthenaNetCore.WebApp/ClientApp/src/registerServiceWorker.js
7 2 0