awslabs / aws-serverless-financial-functions
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 27 units with 179 lines of code in units (23.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 4 small units (49 lines of code)
    • 23 very small units (130 lines of code)
0% | 0% | 0% | 27% | 72%
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% | 0% | 27% | 72%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
financial_functions0% | 0% | 0% | 27% | 72%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def xirr_handler()
in financial_functions/lambda_handlers.py
14 6 2
def financial_functions_handler()
in financial_functions/wrapper_handler.py
13 3 2
def irr_handler()
in financial_functions/lambda_handlers.py
11 5 2
def mirr_handler()
in financial_functions/lambda_handlers.py
11 5 2
def xnpv_handler()
in financial_functions/lambda_handlers.py
10 3 2
def sln_handler()
in financial_functions/lambda_handlers.py
9 3 2
def getLogger()
in financial_functions/log_helper.py
8 3 1
def nper_handler()
in financial_functions/lambda_handlers.py
8 2 2
def xnpv()
in financial_functions/core.py
7 4 3
def __validate_arguments()
in financial_functions/lambda_handlers.py
7 2 3
def fv_handler()
in financial_functions/lambda_handlers.py
7 2 2
def fvschedule_handler()
in financial_functions/lambda_handlers.py
7 2 2
def pv_handler()
in financial_functions/lambda_handlers.py
7 2 2
def npv_handler()
in financial_functions/lambda_handlers.py
7 3 2
def pmt_handler()
in financial_functions/lambda_handlers.py
7 2 2
def ppmt_handler()
in financial_functions/lambda_handlers.py
7 2 2
def rate_handler()
in financial_functions/lambda_handlers.py
7 2 2
def effect_handler()
in financial_functions/lambda_handlers.py
7 2 2
def nominal_handler()
in financial_functions/lambda_handlers.py
7 2 2
def __call_numpy()
in financial_functions/lambda_handlers.py
3 1 2