microsoft / vcpkg
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 34 units with 449 lines of code in units (0.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (58 lines of code)
    • 4 simple units (93 lines of code)
    • 29 very simple units (298 lines of code)
0% | 0% | 12% | 20% | 66%
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% | 0% | 17% | 27% | 55%
pl0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
cc0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts/buildsystems0% | 0% | 28% | 28% | 43%
scripts0% | 0% | 0% | 26% | 73%
ports/qca0% | 0% | 0% | 0% | 100%
ports/alac-decoder0% | 0% | 0% | 0% | 100%
ports/breakpad0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def fix_dependency()
in scripts/buildsystems/osx/applocal.py
58 17 2
def fix_main_binaries()
in scripts/buildsystems/osx/applocal.py
11 7 0
def main()
in scripts/buildsystems/osx/applocal.py
38 7 0
def generate_baseline()
in scripts/generateBaseline.py
35 7 0
def get_dependencies()
in scripts/buildsystems/osx/applocal.py
9 6 1
def gen_all_file_strings()
in scripts/file_script.py
13 5 4
def get_version_tag()
in scripts/generateBaseline.py
10 5 1
sub parse_csv_param()
in ports/qca/mk-ca-bundle.pl
17 4 0
sub oldhash()
in ports/qca/mk-ca-bundle.pl
10 4 0
def generate_versions_db()
in scripts/generatePortVersionsDb.py
18 4 1
sub sha256()
in ports/qca/mk-ca-bundle.pl
13 3 0
sub should_output_cert()
in ports/qca/mk-ca-bundle.pl
7 3 0
def fix_binary()
in scripts/buildsystems/osx/applocal.py
7 3 1
def main()
in scripts/file_script.py
13 3 1
def generate_versions_file()
in scripts/generatePortVersionsDb.py
14 3 1
def main()
in scripts/generatePortVersionsDb.py
10 3 0
int set_endian()
in ports/alac-decoder/decomp.c
7 2 0
sub warning_message()
in ports/qca/mk-ca-bundle.pl
16 2 0
sub HELP_MESSAGE()
in ports/qca/mk-ca-bundle.pl
27 2 0
def run_and_get_output()
in scripts/buildsystems/osx/applocal.py
12 2 1