aws / aws-cli
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 2,296 units with 17,710 lines of code in units (70.6% of code).
    • 1 very long units (199 lines of code)
    • 9 long units (588 lines of code)
    • 129 medium size units (3,737 lines of code)
    • 373 small units (5,392 lines of code)
    • 1,784 very small units (7,794 lines of code)
1% | 3% | 21% | 30% | 44%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py1% | 3% | 21% | 30% | 44%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
awscli/customizations/emr9% | 5% | 25% | 30% | 28%
awscli/customizations/s30% | 6% | 11% | 32% | 49%
awscli0% | 1% | 17% | 30% | 49%
awscli/customizations0% | 3% | 20% | 29% | 46%
awscli/bcdoc0% | 5% | 6% | 7% | 80%
awscli/customizations/cloudtrail0% | 7% | 34% | 30% | 26%
awscli/customizations/gamelift0% | 45% | 17% | 19% | 16%
awscli/customizations/codedeploy0% | 0% | 44% | 38% | 16%
awscli/customizations/cloudformation0% | 0% | 36% | 37% | 25%
awscli/customizations/configure0% | 0% | 40% | 31% | 28%
awscli/customizations/codeartifact0% | 0% | 35% | 34% | 30%
awscli/customizations/datapipeline0% | 0% | 18% | 37% | 44%
awscli/customizations/eks0% | 0% | 25% | 39% | 35%
awscli/customizations/ecs0% | 0% | 20% | 40% | 38%
scripts/performance0% | 0% | 45% | 38% | 15%
awscli/customizations/configservice0% | 0% | 30% | 6% | 63%
awscli/customizations/ec20% | 0% | 12% | 45% | 41%
awscli/customizations/emrcontainers0% | 0% | 35% | 18% | 45%
awscli/customizations/dlm0% | 0% | 29% | 16% | 53%
awscli/customizations/servicecatalog0% | 0% | 18% | 46% | 34%
awscli/customizations/history0% | 0% | 0% | 31% | 68%
doc/source/guzzle_sphinx_theme0% | 0% | 0% | 39% | 60%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _run_main_command()
in awscli/customizations/emr/createcluster.py
199 47 3
def run()
in awscli/customizations/s3/subcommands.py
100 17 1
def awscli_initialize()
in awscli/handlers.py
79 3 1
def create_iam_entities()
in awscli/customizations/opsworks.py
77 11 2
def generate_events()
in awscli/bcdoc/docevents.py
62 3 2
def _build_ec2_attributes()
in awscli/customizations/emr/createcluster.py
55 11 3
def _call()
in awscli/customizations/cloudtrail/subscribe.py
55 8 3
def build_applications()
in awscli/customizations/emr/applicationutils.py
54 11 3
def _run_main()
in awscli/customizations/gamelift/uploadbuild.py
54 6 3
def call()
in awscli/customizations/s3/comparator.py
52 26 3
def install()
in awscli/customizations/codedeploy/systems.py
50 5 2
def traverse()
in awscli/customizations/cloudtrail/validation.py
48 10 3
def retrieve_stack()
in awscli/customizations/opsworks.py
48 22 2
def _update_role_trust_policy()
in awscli/customizations/emrcontainers/update_role_trust_policy.py
47 4 2
def depart_table()
in awscli/bcdoc/textwriter.py
46 1 2
def create_changeset()
in awscli/customizations/cloudformation/deployer.py
46 13 9
def _run_main()
in awscli/customizations/cloudformation/deploy.py
45 6 3
def _run_main()
in awscli/customizations/codedeploy/register.py
45 4 3
def unify_paging_params()
in awscli/customizations/paginate.py
44 4 5
def _linux_distribution()
in awscli/compat.py
43 6 5