aws-samples / amazon-quicksight-permission-file-and-random-ldap-data-generator
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 116 lines of code in units (76.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (30 lines of code)
    • 3 small units (49 lines of code)
    • 10 very small units (37 lines of code)
0% | 0% | 25% | 42% | 31%
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% | 25% | 42% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 25% | 42% | 31%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
def generate_data()
in src/LdapDataGenerator.py
30 4 1
def main()
in src/TicketingDataGenerator.py
19 2 1
def create_permissions_file()
in src/PermissionsFileGenerator.py
15 5 1
def main()
in src/LdapDataGenerator.py
15 2 1
def __init__()
in src/LdapDataGenerator.py
8 3 2
def random_dob()
in src/LdapDataGenerator.py
7 1 1
def random_name()
in src/LdapDataGenerator.py
5 2 1
def __init__()
in src/TicketingDataGenerator.py
4 1 2
def __init__()
in src/PermissionsFileGenerator.py
3 1 3
def random_date()
in src/TicketingDataGenerator.py
2 1 2
def random_status()
in src/TicketingDataGenerator.py
2 1 1
def random_category()
in src/TicketingDataGenerator.py
2 1 1
def random_FiledAgainst()
in src/TicketingDataGenerator.py
2 1 1
def random_department()
in src/LdapDataGenerator.py
2 1 1