microsoft / sql-server-language-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 484 units with 9,913 lines of code in units (63.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (1,069 lines of code)
    • 33 simple units (1,466 lines of code)
    • 440 very simple units (7,378 lines of code)
0% | 0% | 10% | 14% | 74%
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
cpp0% | 0% | 10% | 16% | 72%
cs0% | 0% | 26% | 3% | 70%
inl0% | 0% | 0% | 19% | 80%
h0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
language-extensions/java/src0% | 0% | 25% | 9% | 64%
language-extensions/dotnet-core-CSharp/src0% | 0% | 20% | 2% | 76%
language-extensions/python/src0% | 0% | 4% | 33% | 62%
language-extensions/R/common0% | 0% | 22% | 0% | 77%
language-extensions/R/src0% | 0% | 0% | 11% | 88%
language-extensions/java/include0% | 0% | 0% | 18% | 81%
language-extensions/java/sdk0% | 0% | 0% | 0% | 100%
language-extensions/R/include0% | 0% | 0% | 0% | 100%
language-extensions/python/include0% | 0% | 0% | 0% | 100%
language-extensions/dotnet-core-CSharp/include0% | 0% | 0% | 0% | 100%
language-extensions/dotnet-core-CSharp/sample0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void JavaArgContainer::CreateOdbcArgObject()
in language-extensions/java/src/JavaArgContainer.cpp
294 19 3
public unsafe void AddParam()
in language-extensions/dotnet-core-CSharp/src/managed/CSharpParamContainer.cs
78 18 8
public unsafe void ReplaceParam()
in language-extensions/dotnet-core-CSharp/src/managed/CSharpParamContainer.cs
66 17 3
void JavaArg::Cleanup()
in language-extensions/java/src/JavaArgContainer.cpp
90 16 0
void JavaSession::CleanupOutputDataBuffers()
in language-extensions/java/src/JavaSession.cpp
54 16 0
private unsafe void ExtractColumn()
in language-extensions/dotnet-core-CSharp/src/managed/CSharpOutputDataSet.cs
61 15 2
void JavaArg::DeepCopyValue()
in language-extensions/java/src/JavaArgContainer.cpp
98 15 3
jobject JavaArgContainer::CreateJavaArgObject()
in language-extensions/java/src/JavaArgContainer.cpp
143 15 2
private unsafe void AddColumn()
in language-extensions/dotnet-core-CSharp/src/managed/CSharpInputDataSet.cs
54 14 4
void PythonOutputDataSet::RetrieveStringColumnFromDataFrame()
in language-extensions/python/src/PythonDataSet.cpp
90 13 4
bool IsValidUTF8()
in language-extensions/R/common/src/Unicode.cpp
41 11 2
void PythonOutputDataSet::RetrieveColumnFromDataFrame()
in language-extensions/python/src/PythonDataSet.cpp
49 9 4
SQLRETURN PythonLibrarySession::UninstallLibrary()
in language-extensions/python/src/PythonLibrarySession.cpp
68 9 4
void PythonStringParam::RetrieveValueAndStrLenInd()
in language-extensions/python/src/PythonParam.cpp
53 9 1
SQLRETURN RLibrarySession::UninstallLibrary()
in language-extensions/R/src/RLibrarySession.cpp
64 8 2
void JavaSession::InitUserClassObject()
in language-extensions/java/src/JavaSession.cpp
43 8 0
void PythonOutputDataSet::RetrieveDateTimeColumnFromDataFrame()
in language-extensions/python/src/PythonDataSet.cpp
56 8 4
vector PythonLibrarySession::GetTopLevel()
in language-extensions/python/src/PythonLibrarySession.cpp
39 8 2
RVectorType RTypeUtils::CreateVector()
in language-extensions/R/src/RTypeUtils.cpp
33 7 4
RVectorType RTypeUtils::CreateDateTimeVector()
in language-extensions/R/src/RTypeUtils.cpp
52 7 4