microsoft / Vipr
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 260 units with 2,603 lines of code in units (48.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (338 lines of code)
    • 11 simple units (349 lines of code)
    • 243 very simple units (1,916 lines of code)
0% | 0% | 12% | 13% | 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
cs0% | 0% | 12% | 13% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Readers/Vipr.Reader.OData.v40% | 0% | 24% | 19% | 56%
src/Readers/Vipr.Reader.OData.v4/Capabilities0% | 0% | 15% | 12% | 71%
src/Core/Vipr0% | 0% | 5% | 15% | 78%
src/Core/Vipr.Core/CodeModel0% | 0% | 0% | 0% | 100%
src/Core/Vipr.Core0% | 0% | 0% | 0% | 100%
src/Core/Vipr.Core/CodeModel/Vocabularies0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void WriteNamespaceDeep()
in src/Readers/Vipr.Reader.OData.v4/OdcmReader.cs
110 19 2
internal static object MapToClr()
in src/Readers/Vipr.Reader.OData.v4/ODataVocabularyReader.cs
28 17 2
private bool CheckForDeprecationOnType()
in src/Readers/Vipr.Reader.OData.v4/OdcmReader.cs
66 14 2
private OdcmMethod WriteMethod()
in src/Readers/Vipr.Reader.OData.v4/OdcmReader.cs
48 12 2
public static void WriteAsync()
in src/Core/Vipr/FileWriter.cs
42 11 2
private void TryParseCapability()
in src/Readers/Vipr.Reader.OData.v4/Capabilities/CapabilityAnnotationParser.cs
44 11 3
private void CheckForDeprecation()
in src/Readers/Vipr.Reader.OData.v4/OdcmReader.cs
23 9 2
private static Type CreateConcreteType()
in src/Core/Vipr/odataDemo.cs
43 8 1
public static IEnumerable GetOdcmAnnotations()
in src/Readers/Vipr.Reader.OData.v4/ODataVocabularyReader.cs
43 8 2
private void GetCommandLineConfiguration()
in src/Core/Vipr/Bootstrapper.cs
21 7 1
public IReadOnlyQueryableSet Where()
in src/Core/Vipr/odataDemo.cs
30 7 1
private void ParseCollection()
in src/Readers/Vipr.Reader.OData.v4/Capabilities/CapabilityAnnotationParser.cs
37 7 3
private void WriteNamespaceShallow()
in src/Readers/Vipr.Reader.OData.v4/OdcmReader.cs
33 7 2
20 6 1
private static object FetchNewInstanceOfAnnotationComplexType()
in src/Readers/Vipr.Reader.OData.v4/ODataVocabularyReader.cs
34 6 1
private void WriteNamespaceMethods()
in src/Readers/Vipr.Reader.OData.v4/OdcmReader.cs
22 6 3
private void WriteProperty()
in src/Readers/Vipr.Reader.OData.v4/OdcmReader.cs
43 6 2
public DataServiceContextWrapper()
in src/Core/Vipr/odataDemo.cs
37 5 3
internal static object MapToClr()
in src/Readers/Vipr.Reader.OData.v4/ODataVocabularyReader.cs
19 5 2
private static object FetchNewInstanceOfAmbiguousBinding()
in src/Readers/Vipr.Reader.OData.v4/ODataVocabularyReader.cs
31 5 1