mapillary / mapillary_tools
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 212 units with 2,450 lines of code in units (40.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (389 lines of code)
    • 13 simple units (394 lines of code)
    • 191 very simple units (1,667 lines of code)
0% | 0% | 15% | 16% | 68%
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% | 15% | 16% | 68%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
mapillary_tools/geotag0% | 0% | 37% | 27% | 35%
mapillary_tools0% | 0% | 10% | 15% | 74%
mapillary_tools/commands0% | 0% | 9% | 7% | 83%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
55 17 2
89 15 1
45 15 1
28 13 1
41 12 2
64 12 1
32 11 2
35 11 1
57 10 1
42 9 0
51 8 1
21 7 1
46 7 1
32 7 1
36 7 1
23 6 1
21 6 1
23 6 1
15 6 1
19 6 1
8 6 2
12 5 2
8 5 1
24 5 1
10 5 1
13 5 1
22 5 2
7 4 2
33 4 1
20 4 2
16 4 1
13 4 2
17 4 1
13 4 1
21 4 1
17 4 1
36 4 2
3 3 0
5 3 2
14 3 1
10 3 2
20 3 4
8 3 2
7 3 1
16 3 1
25 3 1
19 3 2
21 3 3
5 3 1
15 3 1