aws-quickstart / eventbridge-integration-solution-zendesk-attachment-processing
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 11 units with 111 lines of code in units (29.0% 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)
    • 3 small units (45 lines of code)
    • 7 very small units (45 lines of code)
0% | 0% | 18% | 40% | 40%
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% | 18% | 40% | 40%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/get_text0% | 0% | 84% | 0% | 16%
src/detect_images0% | 0% | 0% | 83% | 16%
src/get_attachment0% | 0% | 0% | 45% | 54%
src/post_comment0% | 0% | 0% | 35% | 64%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in src/get_text/app.py
21 4 2
def lambda_handler()
in src/detect_images/app.py
20 3 2
def lambda_handler()
in src/get_attachment/app.py
14 2 2
def zenpy_update_ticket()
in src/post_comment/app.py
11 1 3
def assemble_message_body()
in src/post_comment/app.py
10 3 1
def extract_attachment_data()
in src/get_attachment/app.py
9 1 1
def upload_to_s3()
in src/get_attachment/app.py
8 2 1
def lambda_handler()
in src/post_comment/app.py
5 1 2
def merge_branch_output()
in src/post_comment/app.py
5 1 1
def textract_detect_text()
in src/get_text/app.py
4 1 1
def rekognition_detect_labels()
in src/detect_images/app.py
4 1 1