aws-samples / amazon-congnito-user-pool-exporter
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 10 units with 117 lines of code in units (84.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (43 lines of code)
    • 3 small units (50 lines of code)
    • 5 very small units (24 lines of code)
0% | 0% | 36% | 42% | 20%
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% | 36% | 42% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 37% | 59% | 3%
src/common0% | 0% | 36% | 25% | 37%
Alternative Visuals
Longest Units
Top 10 longest units
Unit# linesMcCabe index# params
def get_pool_data()
in src/pooltool.py
22 4 3
def write_to_file()
in src/common/utilities.py
21 10 3
def main()
in src/pooltool.py
20 3 0
def read_settings_file()
in src/common/utilities.py
15 6 1
def export_file()
in src/pooltool.py
15 3 1
def list_users_helper()
in src/common/utilities.py
10 2 3
def default()
in src/common/utilities.py
7 3 2
def datetime_converter()
in src/common/utilities.py
3 2 1
def read_setting_line()
in src/common/utilities.py
2 1 1
def import_file()
in src/pooltool.py
2 1 1