microsoft / AppCenter-Test-Appium-Java-Extensions
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 91 units with 463 lines of code in units (63.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (47 lines of code)
    • 6 small units (86 lines of code)
    • 83 very small units (330 lines of code)
0% | 0% | 10% | 18% | 71%
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% | 10% | 18% | 71%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
appium/javassist0% | 0% | 100% | 0% | 0%
appium0% | 0% | 4% | 19% | 75%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static void main()
in src/main/java/com/microsoft/appcenter/appium/javassist/GenericsRewrite.java
26 8 1
void reportJunit()
in src/main/java/com/microsoft/appcenter/appium/EventReporter.java
21 4 3
static X getScreenshotToWorkspace()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
19 4 3
static boolean pathIsWritable()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
16 5 1
protected void commit()
in src/main/java/com/microsoft/appcenter/appium/StdOutEventReporter.java
16 4 1
static
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
13 4 0
public static Event createLabel()
in src/main/java/com/microsoft/appcenter/appium/Event.java
11 3 8
private String shortId()
in src/main/java/com/microsoft/appcenter/appium/ShortIdentifier.java
11 2 1
private static Path copyToWorkspace()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
9 2 1
private int getRun()
in src/main/java/com/microsoft/appcenter/appium/EventReporter.java
9 3 1
void reportLabel()
in src/main/java/com/microsoft/appcenter/appium/EventReporter.java
9 2 4
void reportScreenshot()
in src/main/java/com/microsoft/appcenter/appium/EventReporter.java
9 2 3
private String mostSignificantSubstring()
in src/main/java/com/microsoft/appcenter/appium/ShortIdentifier.java
9 2 2
private String filenameSafeHash()
in src/main/java/com/microsoft/appcenter/appium/ShortIdentifier.java
9 2 1
public static Event createScreenshot()
in src/main/java/com/microsoft/appcenter/appium/Event.java
7 1 7
private static Provider createProvider()
in src/main/java/com/microsoft/appcenter/appium/Factory.java
7 2 0
static String sanitize()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
6 2 1
public ShortIdentifier()
in src/main/java/com/microsoft/appcenter/appium/ShortIdentifier.java
6 3 1
public X getScreenshotAs()
in src/main/java/com/microsoft/appcenter/appium/EnhancedIOSDriver.java
5 1 1
public static Event createWithException()
in src/main/java/com/microsoft/appcenter/appium/Event.java
5 1 6