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).
public boolean equals() in sources/coffeeshop/ddd-commons/src/main/java/solid/humank/ddd/commons/baseclasses/Enumeration.java
7
5
1
public void when() in sources/coffeeshop/orders-domain/src/main/java/solid/humank/coffeeshop/order/models/Order.java
18
5
1
public static void Verify() in sources/coffeeshop/orders-domain/src/main/java/solid/humank/coffeeshop/order/policies/OrderPolicy.java
11
5
1
public Response createOrder() in sources/coffeeshop/orders-web/src/main/java/solid/humank/coffeeshop/order/controllers/OrderResource.java
15
3
1
public void changeItem() in sources/coffeeshop/orders-domain/src/main/java/solid/humank/coffeeshop/order/models/Order.java
9
3
1
private void verifyStatus() in sources/coffeeshop/orders-domain/src/main/java/solid/humank/coffeeshop/order/models/Order.java
8
3
2
private Properties getCWEParameters() in sources/coffeeshop/infrastructure/src/main/java/solid/humank/coffeeshop/infra/adapters/CloudWatchEventAdapter.java
static in sources/coffeeshop/coffee-domain/src/main/java/solid/humank/coffeeshop/coffee/models/CoffeeStatus.java
5
2
0
protected EntityId() in sources/coffeeshop/ddd-commons/src/main/java/solid/humank/ddd/commons/baseclasses/EntityId.java
7
2
2
protected void applyEvent() in sources/coffeeshop/ddd-commons/src/main/java/solid/humank/ddd/commons/baseclasses/Entity.java
4
2
1
public LocalDateTime deserialize() in sources/coffeeshop/ddd-commons/src/main/java/solid/humank/ddd/commons/utilities/MillisOrLocalDateTimeDeserializer.java
8
2
2
public String writeToJsonString() in sources/coffeeshop/ddd-commons/src/main/java/solid/humank/ddd/commons/utilities/DomainModelMapper.java
9
2
1
public T readValue() in sources/coffeeshop/ddd-commons/src/main/java/solid/humank/ddd/commons/utilities/DomainModelMapper.java
9
2
2
public T readValue() in sources/coffeeshop/ddd-commons/src/main/java/solid/humank/ddd/commons/utilities/DomainModelMapper.java
9
2
2
static in sources/coffeeshop/orders-domain/src/main/java/solid/humank/coffeeshop/order/OrderErrorCode.java
5
2
0
public StatusTransitionSpec() in sources/coffeeshop/orders-domain/src/main/java/solid/humank/coffeeshop/order/specifications/StatusTransitionSpec.java