microsoft / azure-maven-plugins
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 2,692 units with 16,969 lines of code in units (59.6% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (122 lines of code)
    • 104 medium size units (2,941 lines of code)
    • 306 small units (4,343 lines of code)
    • 2,280 very small units (9,563 lines of code)
0% | <1% | 17% | 25% | 56%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | <1% | 17% | 25% | 56%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
azure-spring-cloud-maven-plugin/src0% | 9% | 36% | 22% | 30%
azure-maven-plugin-lib/src0% | 3% | 16% | 33% | 46%
azure-toolkit-libs/azure-toolkit-appservice-lib0% | 0% | 14% | 31% | 53%
azure-webapp-maven-plugin/src0% | 0% | 34% | 25% | 39%
azure-toolkit-libs/azure-toolkit-common-lib0% | 0% | 12% | 20% | 67%
azure-sfmesh-maven-plugin/src0% | 0% | 71% | 4% | 23%
azure-functions-maven-plugin/src0% | 0% | 22% | 32% | 44%
azure-toolkit-libs/azure-toolkit-auth-lib0% | 0% | 18% | 26% | 54%
azure-toolkit-libs/azure-toolkit-springcloud-lib0% | 0% | 9% | 31% | 58%
azure-toolkit-libs/azure-toolkit-compute-lib0% | 0% | 7% | 17% | 75%
azure-toolkit-libs/azure-toolkit-postgre-lib0% | 0% | 5% | 23% | 71%
azure-toolkit-libs/azure-toolkit-mysql-lib0% | 0% | 5% | 23% | 71%
azure-toolkit-libs/azure-toolkit-applicationinsights-lib0% | 0% | 19% | 26% | 54%
azure-toolkit-libs/azure-toolkit-sqlserver-lib0% | 0% | 0% | 31% | 68%
azure-toolkit-libs/azure-toolkit-redis-lib0% | 0% | 0% | 13% | 86%
azure-toolkit-libs/azure-toolkit-resource-lib0% | 0% | 0% | 20% | 79%
azure-toolkit-libs/azure-toolkit-storage-lib0% | 0% | 0% | 4% | 95%
azure-toolkit-libs/azure-toolkit-database-lib0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public String handle()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/config/ConfigurationPrompter.java
65 16 3
protected void printPrompt()
in azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/utils/CustomTextIoStringListReader.java
57 20 2
public void applyProxy()
in azure-toolkit-libs/azure-toolkit-common-lib/src/main/java/com/microsoft/azure/toolkit/lib/common/proxy/ProxyManager.java
47 9 0
VirtualMachine create()
in azure-toolkit-libs/azure-toolkit-compute-lib/src/main/java/com/microsoft/azure/toolkit/lib/compute/vm/DraftVirtualMachine.java
47 9 1
public void addService()
in azure-sfmesh-maven-plugin/src/main/java/com/microsoft/azure/maven/servicefabric/AddServiceMojo.java
45 6 0
protected void doExecute()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/ConfigMojo.java
44 12 0
protected boolean confirmConfiguration()
in azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/ConfigMojo.java
44 10 1
public List handleMultipleCase()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/config/ConfigurationPrompter.java
43 12 3
protected void validateParameters()
in azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/DeployMojo.java
42 26 0
public List promoteMultipleEntities()
in azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/prompt/DefaultPrompter.java
42 13 8
private WebAppConfiguration getWebAppConfiguration()
in azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/ConfigMojo.java
40 6 1
public WebAppConfiguration getWebAppConfiguration()
in azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/parser/ConfigParser.java
38 5 0
public void execute()
in azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/AbstractAzureMojo.java
36 5 0
private WebAppConfiguration chooseExistingWebappForConfiguration()
in azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/ConfigMojo.java
36 8 0
public String addEnvironmentVariables()
in azure-sfmesh-maven-plugin/src/main/java/com/microsoft/azure/maven/servicefabric/AddServiceMojo.java
35 2 3
public static String executeCommand()
in azure-sfmesh-maven-plugin/src/main/java/com/microsoft/azure/maven/servicefabric/Utils.java
35 7 2
public T handleSelectOne()
in azure-spring-cloud-maven-plugin/src/main/java/com/microsoft/azure/maven/springcloud/config/ConfigurationPrompter.java
35 10 4
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
public FunctionAppDeploymentSlot commit()
in azure-toolkit-libs/azure-toolkit-appservice-lib/src/main/java/com/microsoft/azure/toolkit/lib/appservice/service/impl/FunctionAppDeploymentSlot.java
34 7 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
34 9 0