freertos / CI-CD-Github-Actions
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 26 units with 520 lines of code in units (42.4% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (83 lines of code)
    • 5 medium complex units (165 lines of code)
    • 3 simple units (65 lines of code)
    • 17 very simple units (207 lines of code)
0% | 15% | 31% | 12% | 39%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 15% | 31% | 12% | 39%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
link-verifier0% | 30% | 36% | 21% | 10%
doxygen0% | 0% | 63% | 10% | 25%
memory_statistics0% | 0% | 15% | 0% | 84%
manifest-verifier0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def main()
in link-verifier/verify-links.py
83 28 0
def test_url()
in link-verifier/verify-links.py
38 23 1
def main()
in doxygen/generate_doxygen.py
42 16 0
def main()
in memory_statistics/memory_statistics.py
25 11 0
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 identify_broken_links()
in link-verifier/verify-links.py
38 9 3
def fetch_issues()
in link-verifier/verify-links.py
20 7 3
def get_lib_paths()
in doxygen/generate_doxygen.py
7 6 2
def validate_library_config()
in memory_statistics/memory_statistics.py
19 5 1
def parse_src_input_to_file_name_map()
in memory_statistics/memory_statistics.py
11 5 1
def read_manifest()
in manifest-verifier/verify_manifest.py
13 5 0
def parse_make_output()
in memory_statistics/memory_statistics.py
23 4 3
def parse_to_object()
in memory_statistics/memory_statistics.py
25 4 4
def make()
in memory_statistics/memory_statistics.py
16 3 4
def get_all_submodules()
in manifest-verifier/verify_manifest.py
8 3 0
def increment_gh_link_count()
in link-verifier/verify-links.py
8 3 5
def convert_size_to_kb()
in memory_statistics/memory_statistics.py
6 2 1
def generate_table_from_object()
in memory_statistics/memory_statistics.py
23 2 1
def run_cmd()
in doxygen/generate_doxygen.py
17 2 1