aws-samples / amazon-aurora-global-database-endpoint-automation
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 16 units with 425 lines of code in units (59.6% of code).
    • 1 very long units (115 lines of code)
    • 1 long units (73 lines of code)
    • 3 medium size units (72 lines of code)
    • 10 small units (155 lines of code)
    • 1 very small units (10 lines of code)
27% | 17% | 16% | 36% | 2%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py27% | 17% | 16% | 36% | 2%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT27% | 17% | 16% | 36% | 2%
Alternative Visuals
Longest Units
Top 16 longest units
Unit# linesMcCabe index# params
def main()
in create_managed_endpoint.py
115 45 0
def main()
in buildstack.py
73 25 0
def create_hosted_zone_record()
in create_managed_endpoint.py
27 4 3
def make_ddb_entry()
in create_managed_endpoint.py
24 2 4
def checkstackstatus()
in buildstack.py
21 7 1
def exists_hz_record()
in create_managed_endpoint.py
20 9 2
def create_hosted_zone()
in create_managed_endpoint.py
20 2 3
def buildstack()
in buildstack.py
19 3 1
def exists_hz_vpc()
in create_managed_endpoint.py
16 8 3
def exists_hz()
in create_managed_endpoint.py
14 13 1
def update_hosted_zone()
in create_managed_endpoint.py
14 2 3
def checkstackname()
in buildstack.py
14 8 1
def validateregion()
in create_managed_endpoint.py
13 5 1
def validateregion()
in buildstack.py
13 5 1
def hosted_zone_id()
in create_managed_endpoint.py
12 4 1
def get_writer_endpoint()
in create_managed_endpoint.py
10 7 1