aws-samples / s3-glacier-bulk-retrieval
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 18 units with 309 lines of code in units (49.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (163 lines of code)
    • 8 small units (115 lines of code)
    • 5 very small units (31 lines of code)
0% | 0% | 52% | 37% | 10%
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% | 52% | 37% | 10%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/api0% | 0% | 60% | 39% | 0%
src/timetriggerSNS0% | 0% | 44% | 35% | 20%
src/s3restore0% | 0% | 60% | 39% | 0%
Alternative Visuals
Longest Units
Top 18 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in src/timetriggerSNS/app.py
47 35 2
def create_job()
in src/api/app.py
39 1 3
def lambda_handler()
in src/api/app.py
32 2 2
def lambda_handler()
in src/s3restore/app.py
23 7 2
def getJobStatusAndUpdateTable()
in src/timetriggerSNS/app.py
22 7 3
17 3 1
def UpdateJobItemBatchStatus()
in src/timetriggerSNS/app.py
17 2 5
def dynamodb_insert()
in src/api/app.py
16 2 3
def UpdateItem()
in src/s3restore/app.py
15 2 3
def updateJobProgress()
in src/timetriggerSNS/app.py
15 2 3
def get_item_mapper()
in src/api/app.py
13 1 1
def getFilesPerJob()
in src/timetriggerSNS/app.py
11 2 3
def getAllJobIds()
in src/timetriggerSNS/app.py
11 3 1
def cleanDynamoDBtables()
in src/timetriggerSNS/app.py
10 2 2
def PublishEvent()
in src/timetriggerSNS/app.py
8 1 5
def publishToSNSevent()
in src/timetriggerSNS/app.py
7 2 2
def print_jobs()
in src/timetriggerSNS/app.py
3 2 1
def print_files()
in src/timetriggerSNS/app.py
3 2 1