aws / aws-lambda-builders
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 315 units with 2,053 lines of code in units (70.0% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (56 lines of code)
    • 15 medium size units (415 lines of code)
    • 38 small units (515 lines of code)
    • 261 very small units (1,067 lines of code)
0% | 2% | 20% | 25% | 51%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 2% | 20% | 25% | 51%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws_lambda_builders0% | 13% | 24% | 20% | 42%
aws_lambda_builders/workflows/python_pip0% | 0% | 21% | 31% | 46%
aws_lambda_builders/workflows/nodejs_npm0% | 0% | 22% | 25% | 51%
aws_lambda_builders/workflows/dotnet_clipackage0% | 0% | 36% | 23% | 40%
aws_lambda_builders/workflows/custom_make0% | 0% | 40% | 10% | 49%
aws_lambda_builders/workflows/ruby_bundler0% | 0% | 25% | 18% | 56%
aws_lambda_builders/workflows/go_dep0% | 0% | 26% | 15% | 58%
aws_lambda_builders/workflows/java_gradle0% | 0% | 0% | 33% | 66%
aws_lambda_builders/workflows/java_maven0% | 0% | 0% | 29% | 70%
aws_lambda_builders/workflows/go_modules0% | 0% | 0% | 40% | 59%
aws_lambda_builders/workflows/java0% | 0% | 0% | 18% | 81%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def main()
in aws_lambda_builders/__main__.py
56 6 0
def sanitize()
in aws_lambda_builders/workflow.py
47 14 1
def which()
in aws_lambda_builders/utils.py
34 7 3
def __init__()
in aws_lambda_builders/workflows/python_pip/workflow.py
33 11 8
def _download_dependencies()
in aws_lambda_builders/workflows/python_pip/packager.py
33 17 3
def actions_without_bundler()
in aws_lambda_builders/workflows/nodejs_npm/workflow.py
33 15 7
def execute()
in aws_lambda_builders/workflows/nodejs_npm/actions.py
27 10 1
def execute()
in aws_lambda_builders/workflows/dotnet_clipackage/actions.py
25 9 1
def execute()
in aws_lambda_builders/workflows/python_pip/actions.py
25 5 1
def copytree()
in aws_lambda_builders/utils.py
24 7 3
def __init__()
in aws_lambda_builders/workflows/ruby_bundler/workflow.py
24 8 8
def __init__()
in aws_lambda_builders/workflows/custom_make/workflow.py
23 3 8
def __init__()
in aws_lambda_builders/workflows/go_dep/workflow.py
23 4 8
def execute()
in aws_lambda_builders/workflows/custom_make/actions.py
22 7 1
def execute()
in aws_lambda_builders/workflows/dotnet_clipackage/actions.py
21 5 1
def _get_pkg_info_filepath()
in aws_lambda_builders/workflows/python_pip/packager.py
21 4 2
def __init__()
in aws_lambda_builders/workflows/nodejs_npm/workflow.py
20 5 8
def download_all_dependencies()
in aws_lambda_builders/workflows/python_pip/packager.py
19 10 3
def run()
in aws_lambda_builders/workflow.py
18 5 1
def run()
in aws_lambda_builders/workflows/ruby_bundler/bundler.py
18 6 3