aws-samples / automate-amazon-quicksight-user-and-group-management
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 9 units with 69 lines of code in units (15.8% 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)
    • 1 small units (13 lines of code)
    • 8 very small units (56 lines of code)
0% | 0% | 0% | 18% | 81%
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% | 18% | 81%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts0% | 0% | 0% | 18% | 81%
Alternative Visuals
Longest Units
Top 9 longest units
Unit# linesMcCabe index# params
13 4 2
def lambda_handler()
in scripts/qs-users.py
10 4 2
9 3 2
def get_existing_groups()
in scripts/qs-users.py
8 2 0
def create_quick_sight_group()
in scripts/qs-users.py
6 1 1
def add_user_to_group()
in scripts/qs-users.py
6 1 2
def remove_user_membership()
in scripts/qs-users.py
6 1 2
def remove_users_from_group()
in scripts/qs-users.py
6 2 2
def get_file_contents()
in scripts/qs-users.py
5 1 2