aws-quickstart / connect-integration-aspect-wfm
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 52 units with 576 lines of code in units (19.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 8 medium size units (221 lines of code)
    • 10 small units (154 lines of code)
    • 34 very small units (201 lines of code)
0% | 0% | 38% | 26% | 34%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 34% | 28% | 36%
py0% | 0% | 100% | 0% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/real-time-adherence/AspectKinesisLamda0% | 0% | 44% | 29% | 26%
functions/source/agent-productivity0% | 0% | 100% | 0% | 0%
functions/source/real-time-adherence/AspectAwsNLogger0% | 0% | 0% | 50% | 50%
functions/source/real-time-adherence/AspectAwsLambdaLogger0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public ProcessKinesisEvents()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
46 9 0
def lambda_handler()
in functions/source/agent-productivity/update.py
30 4 2
private async Task ProcessEventRecord()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
29 7 2
public AwsSqsFacade()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsSQSFacade.cs
27 6 1
private async Task ReadWriteEventsToQueueFlag()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
24 3 0
private ConnectKinesisEventRecord ConvertRecordData()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
22 2 2
private string AgentArnToSqsQueueUrl()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsSQSFacade.cs
22 3 1
public async Task AspectKinesisHandler()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
21 4 2
private bool MatchFilter()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
20 7 1
public static string ShrinkEvent()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
20 6 1
private EventRecordData ParseEvent()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
16 2 1
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 LogLevel GetLogLevel()
in functions/source/real-time-adherence/AspectAwsNLogger/AspectAwsNLogger.cs
16 3 0
private void ConfigureNLog()
in functions/source/real-time-adherence/AspectKinesisLamda/NLoggerFacade.cs
13 1 0
public async Task SendMessageToQueue()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsSQSFacade.cs
13 1 2
private void ConfigureNLog()
in functions/source/real-time-adherence/AspectAwsNLogger/AspectAwsNLogger.cs
13 1 0
private string GetRecordContents()
in functions/source/real-time-adherence/AspectKinesisLamda/ProcessKinesisEvents.cs
11 1 1
private string ParseQueue()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsSQSFacade.cs
10 2 1
private AwsLogLevel GetLogLevel()
in functions/source/real-time-adherence/AspectKinesisLamda/AwsLoggerFacade.cs
10 2 0