microsoft / inno-updater
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 50 units with 755 lines of code in units (46.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (150 lines of code)
    • 0 simple units (0 lines of code)
    • 48 very simple units (605 lines of code)
0% | 0% | 19% | 0% | 80%
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
rs0% | 0% | 20% | 0% | 79%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 27% | 0% | 72%
src/model0% | 0% | 0% | 0% | 100%
tools/legal0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
fn main()
in src/main.rs
58 16 0
92 14 3
fn _main()
in src/main.rs
27 5 2
fn kill_process_if()
in src/process.rs
72 5 3
async function main()
in tools/legal/main.js
23 5 1
fn fill_buffer()
in src/blockio.rs
32 4 1
fn decode_strings>()
in src/model/filerec.rs
35 4 1
fn read()
in src/blockio.rs
18 3 2
fn write()
in src/blockio.rs
20 3 2
fn move_update()
in src/main.rs
44 3 3
fn parse()
in src/main.rs
14 3 1
fn flush_buffer()
in src/blockio.rs
15 2 1
fn read_file()
in src/main.rs
11 2 1
fn write_file()
in src/main.rs
26 2 3
fn update()
in src/main.rs
20 2 4
fn encode_strings>()
in src/model/filerec.rs
21 2 1
fn main()
in build.rs
16 1 0
fn flush()
in src/blockio.rs
4 1 1
fn patch_uninstdat()
in src/main.rs
27 1 3
fn do_update()
in src/main.rs
19 1 3