aws-samples / amazon-lex-bot-deploy
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 7 units with 289 lines of code in units (75.3% of code).
    • 1 very long units (185 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (72 lines of code)
    • 1 small units (16 lines of code)
    • 2 very small units (16 lines of code)
64% | 0% | 24% | 5% | 5%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py64% | 0% | 24% | 5% | 5%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
amazon_lex_bot_deploy64% | 0% | 24% | 5% | 5%
Alternative Visuals
Longest Units
Top 7 longest units
Unit# linesMcCabe index# params
def lex_deploy()
in amazon_lex_bot_deploy/amazon_lex_bot_deploy.py
185 19 6
def create_lambda_permissions()
in amazon_lex_bot_deploy/amazon_lex_bot_deploy.py
26 5 4
def wait_async()
in amazon_lex_bot_deploy/amazon_lex_bot_deploy.py
24 6 5
def lex_export_bot()
in amazon_lex_bot_deploy/amazon_lex_bot_deploy.py
22 3 4
def setup_boto3_client()
in amazon_lex_bot_deploy/amazon_lex_bot_deploy.py
16 4 2
def get_lambda_endpoints()
in amazon_lex_bot_deploy/amazon_lex_bot_deploy.py
10 5 1
def retry_function()
in amazon_lex_bot_deploy/amazon_lex_bot_deploy.py
6 2 2