awslabs / aws-codebuild-jenkins-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 230 units with 2,362 lines of code in units (57.8% of code).
    • 2 very long units (391 lines of code)
    • 4 long units (268 lines of code)
    • 15 medium size units (478 lines of code)
    • 24 small units (332 lines of code)
    • 185 very small units (893 lines of code)
16% | 11% | 20% | 14% | 37%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java16% | 11% | 20% | 14% | 37%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/main/java17% | 12% | 20% | 11% | 37%
src/main/java/com0% | 0% | 18% | 46% | 35%
src/main/java/enums0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public void perform()
in src/main/java/CodeBuilder.java
268 55 4
private void logStartBuildMessage()
in src/main/java/CodeBuilder.java
123 41 2
public static String checkStartBuildOverridesConfig()
in src/main/java/CodeBuilderValidation.java
97 26 1
public CodeBuilder()
in src/main/java/CodeBuilder.java
65 1 53
protected Object readResolve()
in src/main/java/CodeBuilder.java
55 1 0
public AWSClientFactory()
in src/main/java/AWSClientFactory.java
51 12 10
public static void zipSource()
in src/main/java/ZipSourceCallable.java
41 9 4
public UploadToS3Output uploadSourceToS3()
in src/main/java/S3DataManager.java
40 9 2
public String createProject()
in src/main/java/ProjectFactory.java
39 3 8
38 11 0
public FormValidation doCheckMaxSleepTime()
in src/main/java/CodeBuilder.java
38 14 3
37 10 0
private void updateDashboard()
in src/main/java/CodeBuilder.java
33 17 4
private void download()
in src/main/java/S3Downloader.java
30 10 3
public FormValidation doCheckIamRoleArn()
in src/main/java/com/amazonaws/codebuild/jenkinsplugin/CodeBuildBaseCredentials.java
29 6 1
public static Collection mapEnvVariables()
in src/main/java/CodeBuilder.java
29 11 2
protected CodeBuildResult run()
in src/main/java/CodeBuildStep.java
29 4 0
public ListBoxModel doFillCredentialsIdItems()
in src/main/java/CodeBuilder.java
26 8 0
public ListBoxModel doFillCredentialsIdItems()
in src/main/java/CodeBuildStep.java
26 8 0
public void pollForLogs()
in src/main/java/CloudWatchMonitor.java
22 6 1