aws-samples / aws-serverless-connect-wallboard
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 27 units with 574 lines of code in units (52.6% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (68 lines of code)
    • 10 medium size units (302 lines of code)
    • 11 small units (165 lines of code)
    • 5 very small units (39 lines of code)
0% | 11% | 52% | 28% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 11% | 52% | 28% | 6%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 11% | 52% | 28% | 6%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def GetConfiguration()
in render-wallboard.py
68 22 1
def RenderCell()
in render-wallboard.py
49 28 3
def GetRealtimeData()
in render-wallboard.py
35 14 0
def GetHistoricalData()
in get-historical-metrics.py
34 12 0
def GetDataSources()
in wallboard-import.py
31 12 1
def GetCells()
in wallboard-import.py
31 18 1
def lambda_handler()
in process-agent-event.py
28 8 2
def CheckThreshold()
in render-wallboard.py
25 19 2
def GetConfiguration()
in get-historical-metrics.py
25 9 0
def GetNextAgent()
in render-wallboard.py
22 10 1
def lambda_handler()
in render-wallboard.py
22 6 2
def DoCalculation()
in render-wallboard.py
20 7 2
def GetThresholds()
in wallboard-import.py
19 11 1
def GetData()
in render-wallboard.py
19 8 0
def RenderHTML()
in render-wallboard.py
18 5 1
def SaveToDynamoDB()
in wallboard-import.py
14 4 3
def CreateDDBTable()
in wallboard-import.py
14 2 0
def UpdateSettings()
in wallboard-import.py
13 12 2
def SaveStateToDDB()
in process-agent-event.py
13 2 4
def SaveStateUsingARN()
in process-agent-event.py
12 3 2