freertos / CI-CD-Github-Actions
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 26 units with 520 lines of code in units (42.4% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (83 lines of code)
    • 9 medium size units (274 lines of code)
    • 7 small units (108 lines of code)
    • 9 very small units (55 lines of code)
0% | 15% | 52% | 20% | 10%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 15% | 52% | 20% | 10%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
link-verifier0% | 30% | 50% | 11% | 6%
memory_statistics0% | 0% | 58% | 27% | 13%
doxygen0% | 0% | 63% | 25% | 10%
manifest-verifier0% | 0% | 0% | 61% | 38%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def main()
in link-verifier/verify-links.py
83 28 0
def main()
in doxygen/generate_doxygen.py
42 16 0
def identify_broken_links()
in link-verifier/verify-links.py
38 9 3
def test_url()
in link-verifier/verify-links.py
38 23 1
def __init__()
in link-verifier/verify-links.py
32 11 2
def consolidate_repo_list()
in link-verifier/verify-links.py
28 11 1
def parse_to_object()
in memory_statistics/memory_statistics.py
25 4 4
def main()
in memory_statistics/memory_statistics.py
25 11 0
def parse_make_output()
in memory_statistics/memory_statistics.py
23 4 3
def generate_table_from_object()
in memory_statistics/memory_statistics.py
23 2 1
def fetch_issues()
in link-verifier/verify-links.py
20 7 3
def validate_library_config()
in memory_statistics/memory_statistics.py
19 5 1
def run_cmd()
in doxygen/generate_doxygen.py
17 2 1
def make()
in memory_statistics/memory_statistics.py
16 3 4
def read_manifest()
in manifest-verifier/verify_manifest.py
13 5 0
def create_html()
in link-verifier/verify-links.py
12 1 1
def parse_src_input_to_file_name_map()
in memory_statistics/memory_statistics.py
11 5 1
def generate_library_estimates()
in memory_statistics/memory_statistics.py
9 1 1
def parse_arguments()
in memory_statistics/memory_statistics.py
8 1 0
def get_all_submodules()
in manifest-verifier/verify_manifest.py
8 3 0