microsoft / azure-tools-for-java
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 11,807 units with 93,587 lines of code in units (63.4% of code).
    • 0 very complex units (0 lines of code)
    • 7 complex units (679 lines of code)
    • 101 medium complex units (6,322 lines of code)
    • 426 simple units (12,619 lines of code)
    • 11,273 very simple units (73,967 lines of code)
0% | <1% | 6% | 13% | 79%
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% | 6% | 13% | 79%
js0% | 0% | 12% | 17% | 69%
scala0% | 0% | 11% | 21% | 66%
kt0% | 0% | 0% | 10% | 89%
groovy0% | 0% | 0% | 13% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
PluginsAndFeatures/azure-toolkit-for-intellij0% | <1% | 6% | 13% | 79%
PluginsAndFeatures/azure-toolkit-for-eclipse0% | 1% | 9% | 15% | 73%
Utils/AzureAuthenticationFilter0% | 2% | 11% | 20% | 66%
Utils/hdinsight-node-common0% | 0% | 4% | 8% | 86%
Utils/azuretools-core0% | 0% | 8% | 14% | 76%
Utils/azure-explorer-common0% | 0% | 5% | 11% | 83%
Utils/spark-tools0% | 0% | 22% | 16% | 60%
PluginsAndFeatures/AddLibrary0% | 0% | 2% | 16% | 80%
Utils/azure-toolkit-ide-libs0% | 0% | 1% | 13% | 85%
Utils/spark-localrun-mock0% | 0% | 0% | 35% | 64%
tools0% | 0% | 0% | 100% | 0%
Utils/AzureWebApplication0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public Deployable buildSparkBatchJobDeploy()
in PluginsAndFeatures/azure-toolkit-for-intellij/src/main/java/com/microsoft/azure/hdinsight/spark/run/SparkBatchJobDeployFactory.java
189 47 2
protected void okPressed()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azuretools/core/ui/commoncontrols/NewCertificateDialog.java
136 32 0
public boolean equals()
in Utils/AzureAuthenticationFilter/src/main/java/com/microsoft/azure/oidc/token/impl/SimpleToken.java
55 31 1
private void validate()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/main/java/com/microsoft/azuretools/container/ui/PublishWebAppOnLinuxDialog.java
84 29 0
protected boolean validated()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.appservice/src/com/microsoft/azuretools/appservice/ui/AppServiceCreateDialog.java
68 27 0
public void validate()
in PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/webapp/runner/webappconfig/WebAppConfiguration.java
68 27 0
public void validate()
in PluginsAndFeatures/azure-toolkit-for-intellij/src/main/java/com/microsoft/azure/toolkit/intellij/docker/webapponlinux/WebAppOnLinuxDeployConfiguration.java
79 27 0
public void initialize()
in PluginsAndFeatures/azure-toolkit-for-intellij/src/main/java/com/microsoft/azure/hdinsight/common/SparkSubmissionToolWindowProcessor.java
148 25 0
public boolean equals()
in Utils/AzureAuthenticationFilter/src/main/java/com/microsoft/azure/oidc/application/settings/impl/SimpleApplicationSettings.java
45 25 1
public Observable validateAndAdd()
in Utils/hdinsight-node-common/src/com/microsoft/azure/hdinsight/serverexplore/AddNewClusterCtrlProvider.java
122 25 0
private void validate()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/main/java/com/microsoft/azuretools/container/ui/PushImageDialog.java
60 21 0
protected Control createContents()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.hdinsight/src/com/microsoft/azuretools/hdinsight/spark/ui/SparkSubmissionExDialog.java
228 21 1
public void validate()
in PluginsAndFeatures/azure-toolkit-for-intellij/src/main/java/com/microsoft/azure/toolkit/intellij/docker/pushimage/PushImageRunConfiguration.java
57 20 0
public BlobExplorerFileEditor()
in PluginsAndFeatures/azure-toolkit-for-intellij/src/main/java/com/microsoft/intellij/helpers/storage/BlobExplorerFileEditor.java
165 20 1
private void deploy()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.appservice/src/com/microsoft/azuretools/appservice/ui/WebAppDeployDialog.java
124 19 2
private void uploadFile()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.azureexplorer/src/com/microsoft/azuretools/azureexplorer/editors/BlobExplorerFileEditor.java
87 19 2
private void validate()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/main/java/com/microsoft/azuretools/container/ui/DockerRunDialog.java
51 19 0
private void uploadFile()
in PluginsAndFeatures/azure-toolkit-for-intellij/src/main/java/com/microsoft/intellij/helpers/storage/BlobExplorerFileEditor.java
87 19 2
private HttpServletRequest clearSessionCoookie()
in Utils/AzureAuthenticationFilter/src/main/java/com/microsoft/azure/oidc/filter/helper/impl/SimpleAuthenticationHelper.java
49 19 4
public boolean performOk()
in PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azuretools/core/ui/WindowsAzurePreferencePage.java
74 18 0