microsoft / azure-maven-plugins
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 2,692 units with 16,969 lines of code in units (59.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (42 lines of code)
    • 15 medium complex units (456 lines of code)
    • 75 simple units (1,837 lines of code)
    • 2,601 very simple units (14,634 lines of code)
0% | <1% | 2% | 10% | 86%
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
java0% | <1% | 2% | 10% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
azure-functions-maven-plugin/src0% | 4% | 3% | 4% | 87%
azure-spring-cloud-maven-plugin/src0% | 0% | 22% | 29% | 48%
azure-maven-plugin-lib/src0% | 0% | 6% | 18% | 75%
azure-toolkit-libs/azure-toolkit-appservice-lib0% | 0% | 2% | 8% | 88%
azure-toolkit-libs/azure-toolkit-auth-lib0% | 0% | 3% | 8% | 88%
azure-toolkit-libs/azure-toolkit-sqlserver-lib0% | 0% | 2% | 4% | 92%
azure-toolkit-libs/azure-toolkit-mysql-lib0% | 0% | 2% | 0% | 97%
azure-toolkit-libs/azure-toolkit-postgre-lib0% | 0% | 2% | 0% | 97%
azure-toolkit-libs/azure-toolkit-springcloud-lib0% | 0% | 1% | 12% | 86%
azure-toolkit-libs/azure-toolkit-storage-lib0% | 0% | 3% | 0% | 96%
azure-webapp-maven-plugin/src0% | 0% | 0% | 25% | 74%
azure-toolkit-libs/azure-toolkit-common-lib0% | 0% | 0% | 8% | 91%
azure-sfmesh-maven-plugin/src0% | 0% | 0% | 15% | 84%
azure-toolkit-libs/azure-toolkit-compute-lib0% | 0% | 0% | 10% | 89%
azure-toolkit-libs/azure-toolkit-redis-lib0% | 0% | 0% | 0% | 100%
azure-toolkit-libs/azure-toolkit-database-lib0% | 0% | 0% | 0% | 100%
azure-toolkit-libs/azure-toolkit-applicationinsights-lib0% | 0% | 0% | 0% | 100%
azure-toolkit-libs/azure-toolkit-resource-lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected void validateParameters()
in azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/DeployMojo.java
42 26 0
protected void printPrompt()
in azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/utils/CustomTextIoStringListReader.java
57 20 2
public String handle()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/config/ConfigurationPrompter.java
65 16 3
public boolean isModified()
in azure-toolkit-libs/azure-toolkit-springcloud-lib/src/main/java/com/microsoft/azure/toolkit/lib/springcloud/SpringCloudDeploymentDraft.java
10 14 0
public List promoteMultipleEntities()
in azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/prompt/DefaultPrompter.java
42 13 8
public FunctionApp commit()
in azure-toolkit-libs/azure-toolkit-appservice-lib/src/main/java/com/microsoft/azure/toolkit/lib/appservice/service/impl/FunctionApp.java
31 13 0
public WebApp commit()
in azure-toolkit-libs/azure-toolkit-appservice-lib/src/main/java/com/microsoft/azure/toolkit/lib/appservice/service/impl/WebApp.java
32 13 0
protected void doExecute()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/ConfigMojo.java
44 12 0
public List handleMultipleCase()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/config/ConfigurationPrompter.java
43 12 3
public static AuthType parseAuthType()
in azure-toolkit-libs/azure-toolkit-auth-lib/src/main/java/com/microsoft/azure/toolkit/lib/auth/model/AuthType.java
30 12 1
public boolean isModified()
in azure-toolkit-libs/azure-toolkit-mysql-lib/src/main/java/com/microsoft/azure/toolkit/lib/mysql/MySqlServerDraft.java
12 12 0
public boolean isModified()
in azure-toolkit-libs/azure-toolkit-postgre-lib/src/main/java/com/microsoft/azure/toolkit/lib/postgre/PostgreSqlServerDraft.java
12 12 0
public boolean isModified()
in azure-toolkit-libs/azure-toolkit-sqlserver-lib/src/main/java/com/microsoft/azure/toolkit/lib/sqlserver/MicrosoftSqlServerDraft.java
12 12 0
protected Map prepareTemplateParameters()
in azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java
30 11 3
public static DeploymentType fromString()
in azure-toolkit-libs/azure-toolkit-appservice-lib/src/main/java/com/microsoft/azure/toolkit/lib/legacy/appservice/DeploymentType.java
27 11 1
public boolean isModified()
in azure-toolkit-libs/azure-toolkit-storage-lib/src/main/java/com/microsoft/azure/toolkit/lib/storage/StorageAccountDraft.java
9 11 0
public T handleSelectOne()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/config/ConfigurationPrompter.java
35 10 4
protected boolean confirmConfiguration()
in azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/ConfigMojo.java
44 10 1
public static Object injectCommandLineParameter()
in azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/utils/SystemPropertyUtils.java
27 9 3
public FunctionApp commit()
in azure-toolkit-libs/azure-toolkit-appservice-lib/src/main/java/com/microsoft/azure/toolkit/lib/appservice/service/impl/FunctionApp.java
34 9 0