aws-quickstart / quickstart-xebialabs-devops-platform
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 224 units with 1,530 lines of code in units (49.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 11 medium size units (347 lines of code)
    • 27 small units (398 lines of code)
    • 186 very small units (785 lines of code)
0% | 0% | 22% | 26% | 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% | 0% | 22% | 26% | 51%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/create-db/psycopg20% | 0% | 18% | 28% | 53%
functions/source/create-db0% | 0% | 70% | 0% | 29%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def execute_values()
in functions/source/create-db/psycopg2/extras.py
48 5 5
def wrap_user_handler()
in functions/source/create-db/cfn_resource.py
43 6 2
def create_database()
in functions/source/create-db/createdb.py
42 7 2
def start_replication()
in functions/source/create-db/psycopg2/extras.py
41 6 7
def register_hstore()
in functions/source/create-db/psycopg2/extras.py
29 17 5
def format()
in functions/source/create-db/psycopg2/sql.py
27 10 3
def _create_ranges()
in functions/source/create-db/psycopg2/_range.py
26 14 3
def getquoted()
in functions/source/create-db/psycopg2/_range.py
24 7 1
def parse()
in functions/source/create-db/psycopg2/_range.py
23 9 3
def _putconn()
in functions/source/create-db/psycopg2/pool.py
22 13 4
def _split_sql()
in functions/source/create-db/psycopg2/extras.py
22 8 1
def make_dsn()
in functions/source/create-db/psycopg2/extensions.py
20 7 2
def create_replication_slot()
in functions/source/create-db/psycopg2/extras.py
20 6 4
def register_inet()
in functions/source/create-db/psycopg2/extras.py
19 5 2
def parse()
in functions/source/create-db/psycopg2/extras.py
19 7 4
def __contains__()
in functions/source/create-db/psycopg2/_range.py
18 10 2
def register_uuid()
in functions/source/create-db/psycopg2/extras.py
17 5 2
def wait_select()
in functions/source/create-db/psycopg2/extras.py
17 6 1
def _getquoted_8()
in functions/source/create-db/psycopg2/extras.py
17 4 1
def _create_json_typecasters()
in functions/source/create-db/psycopg2/_json.py
16 5 4