aws / aws-logging-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 81 units with 1,091 lines of code in units (65.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (252 lines of code)
    • 2 simple units (71 lines of code)
    • 75 very simple units (768 lines of code)
0% | 0% | 23% | 6% | 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% | 0% | 23% | 6% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/AWS.Logger.AspNetCore0% | 0% | 32% | 0% | 67%
src/AWS.Logger.Core/Core0% | 0% | 13% | 15% | 70%
src/AWS.Logger.SeriLog0% | 0% | 47% | 0% | 52%
src/NLog.AWS.Logger0% | 0% | 0% | 0% | 100%
src/AWS.Logger.Log4net0% | 0% | 0% | 0% | 100%
src/AWS.Logger.Core0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private async Task Monitor()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
62 21 1
public AWSLoggerConfigSection()
in src/AWS.Logger.AspNetCore/AWSLoggerConfigSection.cs
78 19 1
public void Log()
in src/AWS.Logger.AspNetCore/AWSLogger.cs
53 15 5
public static LoggerConfiguration AWSSeriLog()
in src/AWS.Logger.SeriLog/AWSLoggerSeriLogExtension.cs
59 13 5
public void Flush()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
36 8 0
private async Task LogEventTransmissionSetup()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
35 6 1
private void GetScopeInformation()
in src/AWS.Logger.AspNetCore/AWSLogger.cs
20 5 1
private async Task SendMessages()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
33 5 1
protected virtual void Dispose()
in src/AWS.Logger.SeriLog/AWSSink.cs
17 4 1
public ILogger CreateLogger()
in src/AWS.Logger.AspNetCore/AWSLoggerProvider.cs
19 4 1
public static bool TryGetSwitch()
in src/AWS.Logger.AspNetCore/AWSLoggerProvider.cs
24 4 3
private static IConfiguration GetConfiguration()
in src/AWS.Logger.AspNetCore/AWSLoggerBuilderExtensions.cs
15 4 1
public static AWSLoggerConfigSection GetAWSLoggingConfigSection()
in src/AWS.Logger.AspNetCore/AWSLoggerConfigSection.cs
18 4 2
public AWSLoggerCore()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
28 4 2
private static AWSCredentials DetermineCredentials()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
14 4 1
private void AddSingleMessage()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
28 4 1
public void AddMessage()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
19 4 1
public static IList BreakupMessage()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
25 4 1
public bool ShouldSendRequest()
in src/AWS.Logger.Core/Core/AWSLoggerCore.cs
10 4 1
private string RenderSimpleLayout()
in src/NLog.AWS.Logger/AWSTarget.cs
12 3 2