awslabs / aws-groundstation-eos-pipeline
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 14 units with 213 lines of code in units (15.7% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (113 lines of code)
    • 0 medium size units (0 lines of code)
    • 3 small units (38 lines of code)
    • 9 very small units (62 lines of code)
0% | 53% | 0% | 17% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 53% | 0% | 17% | 29%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
python0% | 53% | 0% | 17% | 29%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
58 14 3
def startUdpListenerBin()
in python/awsgs.py
55 12 3
def RateLimited()
in python/awsgs.py
14 2 1
13 3 3
11 2 4
def appendToRawFile()
in python/awsgs.py
10 2 2
10 9 1
def getBytesFromFile()
in python/awsgs.py
9 4 2
def sendDataFromFile()
in python/awsgs.py
6 3 4
def sendUdpData()
in python/awsgs.py
6 1 3
def checkForStreamId()
in python/awsgs.py
6 5 1
def checkForClassId()
in python/awsgs.py
5 2 1
def checkForTrailer()
in python/awsgs.py
5 2 1
def checkForTimeStamp()
in python/awsgs.py
5 2 1