aws-solutions / simple-file-manager-for-amazon-efs
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 34 units with 584 lines of code in units (23.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 9 medium size units (282 lines of code)
    • 16 small units (245 lines of code)
    • 9 very small units (57 lines of code)
0% | 0% | 48% | 41% | 9%
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% | 48% | 43% | 8%
js0% | 0% | 48% | 32% | 19%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source/api0% | 0% | 41% | 46% | 11%
source/api/chalicelib0% | 0% | 67% | 30% | 1%
source/helper0% | 0% | 41% | 50% | 8%
source/web/src0% | 0% | 83% | 0% | 16%
source/web/src/common0% | 0% | 0% | 76% | 23%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def create_manager_stack()
in source/api/app.py
45 2 6
def copy_source()
in source/helper/website_helper.py
45 7 2
def download()
in source/api/chalicelib/efs_lambda.py
36 4 1
getRuntimeConfig()
in source/web/src/main.js
30 1 0
def upload()
in source/api/chalicelib/efs_lambda.py
28 6 1
27 4 1
def download()
in source/api/app.py
27 6 1
def lambda_handler()
in source/api/chalicelib/efs_lambda.py
23 8 2
21 6 1
def create_filesystem_lambda()
in source/api/app.py
20 3 1
def send_response()
in source/helper/website_helper.py
20 1 4
def lambda_handler()
in source/helper/website_helper.py
20 5 2
export function secondsToStr()
in source/web/src/common/utils.js
20 5 1
def list_filesystems()
in source/api/app.py
18 4 0
def list()
in source/api/chalicelib/efs_lambda.py
17 5 1
def describe_manager_stack()
in source/api/app.py
16 3 1
def upload()
in source/api/app.py
15 2 1
def make_dir()
in source/api/app.py
14 2 1
def read_from_s3()
in source/helper/website_helper.py
14 2 4
13 2 2