aws-quickstart / connect-integration-aspect-wfm
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 52 units with 576 lines of code in units (19.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 5 simple units (142 lines of code)
    • 47 very simple units (434 lines of code)
0% | 0% | 0% | 24% | 75%
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% | 0% | 26% | 73%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
functions/source/real-time-adherence/AspectKinesisLamda0% | 0% | 0% | 33% | 66%
functions/source/real-time-adherence/AspectAwsNLogger0% | 0% | 0% | 0% | 100%
functions/source/real-time-adherence/AspectAwsLambdaLogger0% | 0% | 0% | 0% | 100%
functions/source/agent-productivity0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProcessKinesisEvents()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
46 9 0
private bool MatchFilter()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
20 7 1
private async Task ProcessEventRecord()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
29 7 2
public static string ShrinkEvent()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
20 6 1
public AwsSqsFacade()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsSQSFacade.cs
27 6 1
def lambda_handler()
in functions/source/agent-productivity/update.py
30 4 2
public async Task AspectKinesisHandler()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
21 4 2
private async Task ReadWriteEventsToQueueFlag()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
24 3 0
private async Task ProcessEventToTable()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
16 3 1
private LogLevel GetLogLevel()
in functions/source/real-time-adherence/AspectKinesisLamda/NLoggerFacade.cs
16 3 0
private string AgentArnToSqsQueueUrl()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsSQSFacade.cs
22 3 1
private LogLevel GetLogLevel()
in functions/source/real-time-adherence/AspectAwsNLogger/AspectAwsNLogger.cs
16 3 0
private EventRecordData ParseEvent()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
16 2 1
private ConnectKinesisEventRecord ConvertRecordData()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
22 2 2
private string ParseQueue()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsSQSFacade.cs
10 2 1
public void Fatal()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsLoggerFacade.cs
8 2 1
public void Error()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsLoggerFacade.cs
7 2 1
public void Warn()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsLoggerFacade.cs
7 2 1
public void Info()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsLoggerFacade.cs
7 2 1
public void Debug()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsLoggerFacade.cs
7 2 1