microsoft / AppCenter-Test-Appium-Java-Extensions
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 91 units with 463 lines of code in units (63.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (26 lines of code)
    • 90 very simple units (437 lines of code)
0% | 0% | 0% | 5% | 94%
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% | 0% | 0% | 5% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
appium/javassist0% | 0% | 0% | 100% | 0%
appium0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static void main()
in src/main/java/com/microsoft/appcenter/appium/javassist/GenericsRewrite.java
26 8 1
static boolean pathIsWritable()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
16 5 1
static X getScreenshotToWorkspace()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
19 4 3
static
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
13 4 0
void reportJunit()
in src/main/java/com/microsoft/appcenter/appium/EventReporter.java
21 4 3
protected void commit()
in src/main/java/com/microsoft/appcenter/appium/StdOutEventReporter.java
16 4 1
public static Event createLabel()
in src/main/java/com/microsoft/appcenter/appium/Event.java
11 3 8
private int getRun()
in src/main/java/com/microsoft/appcenter/appium/EventReporter.java
9 3 1
public ShortIdentifier()
in src/main/java/com/microsoft/appcenter/appium/ShortIdentifier.java
6 3 1
static String sanitize()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
6 2 1
private static Path copyToWorkspace()
in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java
9 2 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 static Provider createProvider()
in src/main/java/com/microsoft/appcenter/appium/Factory.java
7 2 0
private String shortId()
in src/main/java/com/microsoft/appcenter/appium/ShortIdentifier.java
11 2 1
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 EnhancedAndroidDriver()
in src/main/java/com/microsoft/appcenter/appium/EnhancedAndroidDriver.java
4 1 3
public EnhancedAndroidDriver()
in src/main/java/com/microsoft/appcenter/appium/EnhancedAndroidDriver.java
4 1 4
public EnhancedAndroidDriver()
in src/main/java/com/microsoft/appcenter/appium/EnhancedAndroidDriver.java
4 1 3