aws-samples / aws-glue-tagger-sar
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 51 lines of code in units (47.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (21 lines of code)
    • 0 small units (0 lines of code)
    • 8 very small units (30 lines of code)
0% | 0% | 41% | 0% | 58%
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% | 41% | 0% | 58%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
infrastructure/glue_tagger_cr0% | 0% | 41% | 0% | 58%
Alternative Visuals
Longest Units
Top 9 longest units
Unit# linesMcCabe index# params
def create_or_update()
in infrastructure/glue_tagger_cr/handler.py
21 6 1
def get_tags()
in infrastructure/glue_tagger_cr/handler.py
8 3 2
def get_tags_from_stack()
in infrastructure/glue_tagger_cr/handler.py
5 1 1
def create()
in infrastructure/glue_tagger_cr/handler.py
4 1 2
def update()
in infrastructure/glue_tagger_cr/handler.py
4 1 2
def get_tags_from_props()
in infrastructure/glue_tagger_cr/handler.py
3 1 1
def delete()
in infrastructure/glue_tagger_cr/handler.py
2 1 2
def get_resource_arns()
in infrastructure/glue_tagger_cr/handler.py
2 2 1
def lambda_handler()
in infrastructure/glue_tagger_cr/handler.py
2 1 2