aws / chrony-candm
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 53 units with 470 lines of code in units (23.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (89 lines of code)
    • 51 very simple units (381 lines of code)
0% | 0% | 0% | 18% | 81%
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% | 0% | 18% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
chrony-candm/src0% | 0% | 0% | 26% | 73%
chrony-candm-derive/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
fn from()
in chrony-candm/src/common.rs
42 10 1
fn blocking_query_loop()
in chrony-candm/src/net.rs
47 6 3
fn derive_chrony_serialize_struct()
in chrony-candm-derive/src/lib.rs
46 5 2
fn parse_pad_attr()
in chrony-candm-derive/src/lib.rs
17 5 1
fn parse_cmd_attr()
in chrony-candm-derive/src/lib.rs
17 5 1
fn derive_chrony_serialize_enum()
in chrony-candm-derive/src/lib.rs
38 4 3
fn deserialize_unchecked()
in chrony-candm/src/common.rs
21 3 1
fn from()
in chrony-candm/src/common.rs
13 3 1
fn drop()
in chrony-candm/src/net.rs
8 3 1
fn drop()
in chrony-candm/src/async_net.rs
8 3 1
fn length()
in chrony-candm/src/common.rs
10 2 0
fn serialize()
in chrony-candm/src/common.rs
5 2 2
fn deserialize_unchecked()
in chrony-candm/src/common.rs
11 2 1
fn serialize()
in chrony-candm/src/common.rs
20 2 2
fn body_length()
in chrony-candm/src/common.rs
8 2 1
fn send()
in chrony-candm/src/net.rs
4 2 2
fn default()
in chrony-candm/src/reply.rs
8 1 0
fn fmt()
in chrony-candm/src/common.rs
6 1 2
fn length()
in chrony-candm/src/common.rs
3 1 0
fn length()
in chrony-candm/src/common.rs
3 1 0