microsoft / azure-app-service-plugin
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 170 units with 1,403 lines of code in units (64.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 16 medium size units (490 lines of code)
    • 29 small units (429 lines of code)
    • 125 very small units (484 lines of code)
0% | 0% | 34% | 30% | 34%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 34% | 30% | 34%
js0% | 0% | 37% | 31% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
java/com/microsoft/jenkins/appservice/commands0% | 0% | 37% | 32% | 30%
java/com/microsoft/jenkins/appservice0% | 0% | 32% | 21% | 45%
webapp/scripts0% | 0% | 37% | 31% | 31%
java/com/microsoft/jenkins/services0% | 0% | 92% | 0% | 7%
java/com/microsoft/jenkins/appservice/util0% | 0% | 0% | 66% | 33%
java/com/microsoft/jenkins/exceptions0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public void execute()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerDeployCommand.java
50 5 1
public void execute()
in src/main/java/com/microsoft/jenkins/appservice/commands/GitDeployCommand.java
46 6 1
public String call()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerBuildCommand.java
41 7 0
public void perform()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
39 8 4
public Void call()
in src/main/java/com/microsoft/jenkins/appservice/commands/FTPDeployCommand.java
38 9 0
public void configure()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentCommandContext.java
33 7 4
public void execute()
in src/main/java/com/microsoft/jenkins/appservice/commands/FTPDeployCommand.java
33 6 1
protected String getFullImageName()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerCommand.java
25 5 1
private void removeFtpDirectory()
in src/main/java/com/microsoft/jenkins/appservice/commands/FTPDeployCommand.java
25 8 2
public Void invoke()
in src/main/java/com/microsoft/jenkins/appservice/commands/GitDeployCommand.java
25 4 2
public static boolean executeCommands()
in src/main/java/com/microsoft/jenkins/services/CommandService.java
25 9 1
public FormValidation doVerifyConfiguration()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
23 5 3
private DockerBuildInfo validateDockerBuildInfo()
in src/main/java/com/microsoft/jenkins/appservice/WebAppDeploymentRecorder.java
22 8 3
public DeploymentState call()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerPushCommand.java
22 1 0
app.onclick = app.onchange = function()
in src/main/webapp/scripts/webapp.js
22 5 0
$()
in src/main/webapp/scripts/webapp.js
21 4 1
public void execute()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerBuildCommand.java
20 3 1
public FormValidation ping()
in src/main/java/com/microsoft/jenkins/appservice/commands/DockerPingCommand.java
20 4 1
public static String getUserAgent()
in src/main/java/com/microsoft/jenkins/appservice/util/TokenCache.java
19 5 0
(function ()()
in src/main/webapp/scripts/webapp.js
19 4 1