bazelbuild / rules_dotnet
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 267 units with 3,484 lines of code in units (9.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (97 lines of code)
    • 10 medium complex units (527 lines of code)
    • 23 simple units (757 lines of code)
    • 233 very simple units (2,103 lines of code)
0% | 2% | 15% | 21% | 60%
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% | 3% | 16% | 15% | 63%
c0% | 0% | 10% | 39% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tools/nuget2bazel0% | 9% | 15% | 7% | 66%
tools/simpleresgen/mono0% | 0% | 22% | 15% | 62%
dotnet/tools/common0% | 0% | 23% | 35% | 40%
tools/nuget2bazel/rules0% | 0% | 0% | 42% | 57%
dotnet/tools/launcher_core_xunit0% | 0% | 0% | 43% | 56%
dotnet/tools/launcher_core_nunit30% | 0% | 0% | 43% | 56%
dotnet/tools/launcher_core0% | 0% | 0% | 59% | 40%
dotnet/tools/md5sum0% | 0% | 0% | 76% | 23%
dotnet/tools/symlink0% | 0% | 0% | 45% | 54%
dotnet/tools/md50% | 0% | 0% | 0% | 100%
tools/simpleresgen0% | 0% | 0% | 0% | 100%
dotnet/tools/copy0% | 0% | 0% | 0% | 100%
dotnet/tools/empty0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private WorkspaceEntry ParseEntry()
in tools/nuget2bazel/WorkspaceParser.cs
97 27 0
public string Generate()
in tools/nuget2bazel/WorkspaceEntry.cs
67 24 1
public void AddMetadata()
in tools/simpleresgen/mono/ResXResourceWriter.cs
78 18 2
private void AddResource()
in tools/simpleresgen/mono/ResXResourceWriter.cs
51 17 3
unsafe static string AbsoluteToRelativePath()
in tools/simpleresgen/mono/ResXResourceWriter.cs
63 16 2
private void LoadData()
in tools/simpleresgen/mono/ResXResourceReader.cs
55 15 0
public WorkspaceEntry()
in tools/nuget2bazel/WorkspaceEntry.cs
77 13 12
void CreateLinkIfNeeded()
in dotnet/tools/common/manifest.c
48 12 2
void CreateLinkIfNeeded()
in dotnet/tools/common/manifest.c
45 12 2
private bool IsSeparator()
in tools/nuget2bazel/WorkspaceParser.cs
18 11 1
private string GetDataValue()
in tools/simpleresgen/mono/ResXResourceReader.cs
25 11 2
int cp()
in dotnet/tools/common/copyfile.c
55 10 2
private void ParseDataNode()
in tools/simpleresgen/mono/ResXResourceReader.cs
38 10 1
private async Task Handle()
in tools/nuget2bazel/rules/RuntimeCoreGenerator.cs
56 9 2
private async Task GenerateBazelFile()
in tools/nuget2bazel/rules/StdlibCoreGenerator3.cs
48 9 2
static void Execute()
in dotnet/tools/launcher_core/main.c
43 8 3
void CreateLink()
in dotnet/tools/symlink/main.c
33 8 2
public override object ConvertFrom()
in tools/simpleresgen/mono/ResXFileRef.cs
35 8 3
internal ResXDataNode()
in tools/simpleresgen/mono/ResXDataNode.cs
33 8 7
int main()
in dotnet/tools/md5sum/main.c
43 7 2