aws / aws-dotnet-trace-listener
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 42 units with 497 lines of code in units (46.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 7 medium size units (210 lines of code)
    • 12 small units (162 lines of code)
    • 23 very small units (125 lines of code)
0% | 0% | 42% | 32% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 42% | 32% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 43% | 33% | 23%
SampleTraceListenerUsage0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public override void Flush()
in src/DynamoDBTraceListener.cs
36 7 0
private Configs GetConfigFromAttributes()
in src/DynamoDBTraceListener.cs
35 1 0
private void Log()
in src/DynamoDBTraceListener.cs
34 6 5
private Table CreateTable()
in src/DynamoDBTraceListener.cs
28 2 0
private IEnumerable GetDocuments()
in src/DynamoDBTraceListener.cs
27 7 1
private string ComposeMessage()
in src/DynamoDBTraceListener.cs
25 7 1
private void AppendDocument()
in src/DynamoDBTraceListener.cs
25 5 1
private void DeleteLogFile()
in src/DynamoDBTraceListener.cs
16 4 1
private bool EnsureWriter()
in src/DynamoDBTraceListener.cs
15 3 0
public void FlushLog()
in src/DynamoDBTraceListener.cs
15 2 1
private string ExpandVariables()
in src/DynamoDBTraceListener.cs
14 2 2
private DateTime GetCurrentTimestamp()
in src/DynamoDBTraceListener.cs
14 2 0
private void DisposeWriter()
in src/DynamoDBTraceListener.cs
13 3 0
private void TimedWriter()
in src/DynamoDBTraceListener.cs
13 3 2
private void WriteLogMessage()
in src/DynamoDBTraceListener.cs
13 4 2
private void ConfigureEventLog()
in src/DynamoDBTraceListener.cs
13 3 0
protected override void Dispose()
in src/DynamoDBTraceListener.cs
13 3 1
private void WriteToEventFile()
in src/DynamoDBTraceListener.cs
12 2 2
private void WriteToEventLog()
in src/DynamoDBTraceListener.cs
11 2 2
static void Main()
in SampleTraceListenerUsage/Program.cs
9 2 1