microsoft / VFSForGit
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 2,279 units with 36,013 lines of code in units (75.6% of code).
    • 1 very complex units (220 lines of code)
    • 4 complex units (538 lines of code)
    • 46 medium complex units (3,916 lines of code)
    • 169 simple units (7,294 lines of code)
    • 2,059 very simple units (24,045 lines of code)
<1% | 1% | 10% | 20% | 66%
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
cs<1% | 1% | 11% | 20% | 65%
cpp0% | 0% | 8% | 11% | 79%
h0% | 0% | 0% | 34% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
GVFS/GVFS.Virtualization5% | 0% | 11% | 17% | 66%
GVFS/GVFS.Platform.Windows0% | 5% | 5% | 36% | 52%
GVFS/GVFS0% | 3% | 29% | 25% | 41%
GVFS/FastFetch0% | 12% | 13% | 20% | 52%
GVFS/GVFS.Hooks0% | 16% | 0% | 36% | 47%
GVFS/GVFS.Common0% | 0% | 8% | 18% | 73%
GVFS/GVFS.FunctionalTests0% | 0% | 4% | 6% | 88%
GVFS/GVFS.Service0% | 0% | 9% | 9% | 80%
GVFS/GVFS.VirtualFileSystemHook0% | 0% | 100% | 0% | 0%
GVFS/GitHooksLoader0% | 0% | 58% | 41% | 0%
GVFS/GVFS.ReadObjectHook0% | 0% | 28% | 37% | 34%
GVFS/GVFS.PostIndexChangedHook0% | 0% | 100% | 0% | 0%
GVFS/GVFS.NativeHooks.Common0% | 0% | 33% | 0% | 66%
GVFS/GVFS.NativeTests0% | 0% | 0% | 13% | 86%
GVFS/GVFS.Mount0% | 0% | 0% | 39% | 60%
GVFS/GVFS.Service.UI0% | 0% | 0% | 28% | 71%
GVFS/GVFS.PerfProfiling0% | 0% | 0% | 27% | 72%
GVFS/GVFS.MSBuild0% | 0% | 0% | 0% | 100%
GVFS/GVFS.FunctionalTests.LockHolder0% | 0% | 0% | 0% | 100%
GVFS/GVFS.GVFlt0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private FileSystemTaskResult ExecuteBackgroundOperation()
in GVFS/GVFS.Virtualization/FileSystemCallbacks.cs
220 51 1
private static bool ShouldLock()
in GVFS/GVFS.Hooks/Program.cs
58 44 1
public static bool StrictMatchPattern()
in GVFS/GVFS.Platform.Windows/PatternMatcher.cs
191 42 2
protected override void Execute()
in GVFS/GVFS/CommandLine/SparseVerb.cs
151 31 1
private int ExecuteWithExitCode()
in GVFS/FastFetch/FastFetchVerb.cs
138 27 0
private void EnsureLocalCacheIsHealthy()
in GVFS/GVFS/CommandLine/GVFSVerb.cs
161 23 5
private Result CreateClone()
in GVFS/GVFS/CommandLine/CloneVerb.cs
130 21 5
public override void Execute()
in GVFS/GVFS/CommandLine/RepairVerb.cs
158 21 0
protected override void Execute()
in GVFS/GVFS/CommandLine/DehydrateVerb.cs
137 20 1
protected GitEndPointResponseData SendRequest()
in GVFS/GVFS.Common/Http/HttpRequestor.cs
153 19 6
private FileSystemTaskResult ParseIndex()
in GVFS/GVFS.Virtualization/Projection/GitIndexProjection.GitIndexParser.cs
99 19 4
public override void Execute()
in GVFS/GVFS/CommandLine/CloneVerb.cs
173 19 0
public override void Execute()
in GVFS/GVFS/CommandLine/ServiceVerb.cs
83 18 0
private void EnqueueOperationsFromDiffTreeLine()
in GVFS/GVFS.Common/Prefetch/Git/DiffHelper.cs
70 17 2
private void ProcessBackgroundTasks()
in GVFS/GVFS.Virtualization/Background/BackgroundFileSystemTaskRunner.cs
81 17 0
private void UpdatePlaceholders()
in GVFS/GVFS.Virtualization/Projection/GitIndexProjection.cs
105 17 0
protected void WriteAndReplaceDataFile()
in GVFS/GVFS.Common/FileBasedCollection.cs
73 15 1
public override bool TryUpgrade()
in GVFS/GVFS.Platform.Windows/DiskLayoutUpgrades/DiskLayout14to15Upgrade_ModifiedPaths.cs
91 15 2
public static bool TryEnablePrjFlt()
in GVFS/GVFS.Service/Handlers/EnableAndAttachProjFSHandler.cs
108 15 2
private void ReExpandFolder()
in GVFS/GVFS.Virtualization/Projection/GitIndexProjection.cs
81 15 2