microsoft / lsif-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 249 units with 1,824 lines of code in units (70.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (126 lines of code)
    • 15 simple units (359 lines of code)
    • 232 very simple units (1,339 lines of code)
0% | 0% | 6% | 19% | 73%
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% | 6% | 19% | 73%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/indexer0% | 0% | 11% | 8% | 80%
com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors0% | 0% | 8% | 30% | 61%
com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal0% | 0% | 0% | 35% | 64%
com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/protocol0% | 0% | 0% | 10% | 89%
com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/emitter0% | 0% | 0% | 0% | 100%
cmd/scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private boolean generateExportPackageInformation()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/indexer/Indexer.java
69 15 4
private ImportPackageMetaData generateImportMonikerData()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/SymbolData.java
57 14 4
public static CompilationUnit createAST()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/indexer/ASTUtil.java
30 10 2
public boolean equals()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/protocol/Range.java
27 10 1
private List getAllSourceFiles()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/indexer/Indexer.java
22 9 1
synchronized public void resolveMoniker()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/SymbolData.java
32 9 4
private String resolveManager()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/SymbolData.java
34 9 4
public static File findPomFromFolder()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/VisitorUtils.java
21 9 2
public static ISourceRange getNameRange()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/JdtlsUtils.java
18 8 1
public static boolean isEmptyHover()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/VisitorUtils.java
19 8 1
public final static Location getElementLocation()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/JdtlsUtils.java
16 7 1
public final static Location fixLocation()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/JdtlsUtils.java
17 7 3
public static Location toLocation()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/JdtlsUtils.java
18 6 2
public final static String normalizeUri()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/LsifUtils.java
9 6 1
public void enlist()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/DiagnosticVisitor.java
38 6 0
private void resolve()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/LsifVisitor.java
42 6 4
private String getJDTMonikerIdentifier()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/visitors/SymbolData.java
16 6 1
private void buildIndex()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/indexer/Indexer.java
38 5 3
public static String getDocumentContent()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/JdtlsUtils.java
15 4 1
public void start()
in com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/LanguageServerIndexerPlugin.java
21 4 1