microsoft / generator-azuresfjava
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 42 units with 975 lines of code in units (81.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (636 lines of code)
    • 0 simple units (0 lines of code)
    • 39 very simple units (339 lines of code)
0% | 0% | 65% | 0% | 34%
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
js0% | 0% | 71% | 0% | 28%
java0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
generators/StatefulActor0% | 0% | 85% | 0% | 14%
generators/ReliableStatefulService0% | 0% | 81% | 0% | 18%
generators/ReliableStatelessService0% | 0% | 80% | 0% | 19%
generators/app0% | 0% | 0% | 0% | 100%
generators/AddService0% | 0% | 0% | 0% | 100%
generators/ReliableStatefulService/templates/class0% | 0% | 0% | 0% | 100%
generators/StatefulActor/templates/service0% | 0% | 0% | 0% | 100%
generators/ReliableStatelessService/templates/class0% | 0% | 0% | 0% | 100%
generators0% | 0% | 0% | 0% | 100%
generators/StatefulActor/templates/testclient0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
writing()
in generators/StatefulActor/index.js
263 20 0
writing()
in generators/ReliableStatefulService/index.js
192 15 0
writing()
in generators/ReliableStatelessService/index.js
181 13 0
writing: function()
in generators/AddService/index.js
17 4 0
writing()
in generators/app/index.js
17 4 0
async prompting()
in generators/ReliableStatefulService/index.js
22 3 0
async prompting()
in generators/ReliableStatelessService/index.js
22 3 0
async prompting()
in generators/StatefulActor/index.js
22 3 0
constructor: function()
in generators/AddService/index.js
11 2 0
, validate: function()
in generators/ReliableStatefulService/index.js
3 2 1
private static CompletableFuture computeValueAsync()
in generators/ReliableStatefulService/templates/class/Service.java
9 2 3
private static void closeTransaction()
in generators/ReliableStatefulService/templates/class/Service.java
7 2 1
public static void main()
in generators/ReliableStatefulService/templates/class/ServiceRunner.java
10 2 1
, validate: function()
in generators/ReliableStatelessService/index.js
3 2 1
public static void main()
in generators/ReliableStatelessService/templates/class/ServiceRunner.java
10 2 1
, validate: function()
in generators/StatefulActor/index.js
3 2 1
public CompletableFuture setCountAsync()
in generators/StatefulActor/templates/service/class/ActorImpl.java
4 2 1
public static void main()
in generators/StatefulActor/templates/service/class/Service.java
9 2 1
, validate: function()
in generators/app/index.js
3 2 1
end()
in generators/app/index.js
7 2 0