microsoft / Atlas
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 303 units with 3,832 lines of code in units (62.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (224 lines of code)
    • 5 medium complex units (473 lines of code)
    • 12 simple units (416 lines of code)
    • 285 very simple units (2,719 lines of code)
0% | 5% | 12% | 10% | 70%
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% | 6% | 12% | 10% | 71%
ts0% | 0% | 0% | 33% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Microsoft.Atlas.CommandLine/Execution0% | 35% | 14% | 5% | 43%
src/Microsoft.Atlas.CommandLine/Commands0% | 0% | 30% | 0% | 69%
src/Microsoft.Atlas.CommandLine/JsonClient0% | 0% | 79% | 0% | 20%
src/Microsoft.Atlas.CommandLine/Swagger0% | 0% | 23% | 29% | 46%
src/Microsoft.Atlas.CommandLine/OAuth20% | 0% | 30% | 0% | 69%
src/Microsoft.Atlas.CommandLine/Blueprints0% | 0% | 0% | 16% | 83%
src/Microsoft.Atlas.CommandLine/ConsoleOutput0% | 0% | 0% | 50% | 50%
src/Tasks/AtlasInstallerV00% | 0% | 0% | 100% | 0%
src/Microsoft.Atlas.CommandLine0% | 0% | 0% | 8% | 91%
src/Microsoft.Atlas.CommandLine/Templates0% | 0% | 0% | 5% | 94%
src/Microsoft.Atlas.CommandLine/Targets0% | 0% | 0% | 37% | 62%
src/Microsoft.Atlas.CommandLine/Abstractions0% | 0% | 0% | 100% | 0%
src/Microsoft.Atlas.CommandLine/Serialization0% | 0% | 0% | 17% | 82%
src/Microsoft.Atlas.CommandLine/Queries0% | 0% | 0% | 0% | 100%
src/Microsoft.Atlas.CommandLine/Accounts0% | 0% | 0% | 0% | 100%
src/Microsoft.Atlas.CommandLine/Secrets0% | 0% | 0% | 0% | 100%
src/Tasks/AtlasV00% | 0% | 0% | 0% | 100%
src/Microsoft.Atlas.CommandLine/Factories0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private async Task ExecuteOperationInner()
in src/Microsoft.Atlas.CommandLine/Execution/WorkflowEngine.cs
224 31 1
public async Task ExecuteCore()
in src/Microsoft.Atlas.CommandLine/Commands/WorkflowCommands.cs
116 22 1
private object ProcessValuesRecursive()
in src/Microsoft.Atlas.CommandLine/Execution/ValuesEngine.cs
90 20 3
public void GenerateSingleRequestDefinition()
in src/Microsoft.Atlas.CommandLine/Swagger/RequestGenerator.cs
89 19 1
public async Task SendAsync()
in src/Microsoft.Atlas.CommandLine/JsonClient/JsonHttpClient.cs
114 18 1
public async Task AcquireTokenAsync()
in src/Microsoft.Atlas.CommandLine/OAuth2/TokenProvider.cs
64 15 1
public void Write()
in src/Microsoft.Atlas.CommandLine/ConsoleOutput/ColorConsole.cs
49 10 1
public async Task Initialize()
in src/Microsoft.Atlas.CommandLine/Swagger/SwaggerBlueprintDecorator.cs
61 9 1
public override void Emit()
in src/Microsoft.Atlas.CommandLine/Serialization/DoubleQuoteAmbiguousStringScalarEmitter.cs
17 8 2
public void Send()
in src/Microsoft.Atlas.CommandLine/Templates/TextWriters/IndentingTextWriter.cs
27 8 0
public IEnumerable GetProperties()
in src/Microsoft.Atlas.CommandLine/AnyMembersTypeInspector.cs
31 7 2
private async Task DecorateBlueprintPackage()
in src/Microsoft.Atlas.CommandLine/Blueprints/BlueprintManager.cs
34 7 1
public static object Merge()
in src/Microsoft.Atlas.CommandLine/Execution/MergeUtils.cs
36 7 2
async function run()
in src/Tasks/AtlasInstallerV0/src/index.ts
40 7 0
public string PathCombine()
in src/Microsoft.Atlas.CommandLine/Abstractions/FileSystem.cs
23 6 1
private IBlueprintPackage GetBlueprintPackageCore()
in src/Microsoft.Atlas.CommandLine/Blueprints/BlueprintManager.cs
26 6 2
private async Task LoadEntry()
in src/Microsoft.Atlas.CommandLine/Swagger/SwaggarDocumentLoader.cs
49 6 2
private IEnumerable CreateExpressions()
in src/Microsoft.Atlas.CommandLine/Targets/PatternMatcherFactory.cs
23 6 1
public bool RewriteGitHubUris()
in src/Microsoft.Atlas.CommandLine/Blueprints/Providers/UriParts.cs
20 5 0
public static void OnExecute()
in src/Microsoft.Atlas.CommandLine/CommandLineApplicationExtensions.cs
25 5 2