aws-samples / aws-dms-sql-server
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 94 lines of code in units (46.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 2 small units (31 lines of code)
    • 14 very small units (63 lines of code)
0% | 0% | 0% | 32% | 67%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 0% | 32% | 67%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
custom-resource/dms_iam_roles0% | 0% | 0% | 42% | 57%
custom-resource/dms_task_conf0% | 0% | 0% | 36% | 63%
custom-resource/peering_dns_conf0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 16 longest units
Unit# linesMcCabe index# params
def create()
in custom-resource/dms_iam_roles/iam.py
18 3 2
def _create()
in custom-resource/dms_task_conf/task.py
13 3 1
def _create_role()
in custom-resource/dms_iam_roles/iam.py
10 1 3
def create()
in custom-resource/peering_dns_conf/peering.py
10 1 2
def _describe()
in custom-resource/dms_task_conf/task.py
8 2 1
def _check_role()
in custom-resource/dms_iam_roles/iam.py
8 2 1
def delete()
in custom-resource/dms_task_conf/task.py
6 2 2
def create()
in custom-resource/dms_task_conf/task.py
5 1 2
def update()
in custom-resource/dms_task_conf/task.py
2 1 2
def handler()
in custom-resource/dms_task_conf/task.py
2 1 2
def update()
in custom-resource/dms_iam_roles/iam.py
2 1 2
def delete()
in custom-resource/dms_iam_roles/iam.py
2 1 2
def handler()
in custom-resource/dms_iam_roles/iam.py
2 1 2
def update()
in custom-resource/peering_dns_conf/peering.py
2 1 2
def delete()
in custom-resource/peering_dns_conf/peering.py
2 1 2
def handler()
in custom-resource/peering_dns_conf/peering.py
2 1 2