aws / aws-dotnet-trace-listener
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 42 units with 497 lines of code in units (46.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (122 lines of code)
    • 38 very simple units (375 lines of code)
0% | 0% | 0% | 24% | 75%
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% | 0% | 24% | 75%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 25% | 75%
SampleTraceListenerUsage0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private string ComposeMessage()
in src/DynamoDBTraceListener.cs
25 7 1
private IEnumerable GetDocuments()
in src/DynamoDBTraceListener.cs
27 7 1
public override void Flush()
in src/DynamoDBTraceListener.cs
36 7 0
private void Log()
in src/DynamoDBTraceListener.cs
34 6 5
private void AppendDocument()
in src/DynamoDBTraceListener.cs
25 5 1
private void DeleteLogFile()
in src/DynamoDBTraceListener.cs
16 4 1
private void WriteLogMessage()
in src/DynamoDBTraceListener.cs
13 4 2
private string GetEventLogsFileLocation()
in src/DynamoDBTraceListener.cs
9 3 0
private void DisposeWriter()
in src/DynamoDBTraceListener.cs
13 3 0
private string LimitLength()
in src/DynamoDBTraceListener.cs
6 3 1
private bool EnsureWriter()
in src/DynamoDBTraceListener.cs
15 3 0
private void TimedWriter()
in src/DynamoDBTraceListener.cs
13 3 2
private void ConfigureEventLog()
in src/DynamoDBTraceListener.cs
13 3 0
protected override void Dispose()
in src/DynamoDBTraceListener.cs
13 3 1
private bool GetAttributeAsBool()
in src/DynamoDBTraceListener.cs
8 3 2
private int GetAttributeAsInt()
in src/DynamoDBTraceListener.cs
8 3 2
static void Main()
in SampleTraceListenerUsage/Program.cs
9 2 1
private Table CreateTable()
in src/DynamoDBTraceListener.cs
28 2 0
private string ExpandVariables()
in src/DynamoDBTraceListener.cs
14 2 2
private DateTime GetCurrentTimestamp()
in src/DynamoDBTraceListener.cs
14 2 0