aws / aws-dotnet-session-provider
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 590 lines of code in units (77.0% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (206 lines of code)
    • 4 medium size units (117 lines of code)
    • 8 small units (120 lines of code)
    • 27 very small units (147 lines of code)
0% | 34% | 19% | 20% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 34% | 19% | 20% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 35% | 19% | 20% | 24%
SampleWebApp0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private SessionStateStoreData GetSessionStoreItem()
in src/DynamoDBSessionStateStore.cs
97 18 7
private Table CreateTable()
in src/DynamoDBSessionStateStore.cs
55 4 0
private void GetConfigSettings()
in src/DynamoDBSessionStateStore.cs
54 12 1
public override void Initialize()
in src/DynamoDBSessionStateStore.cs
38 9 2
public override void SetAndReleaseItemExclusive()
in src/DynamoDBSessionStateStore.cs
35 3 5
public static void DeleteExpiredSessions()
in src/DynamoDBSessionStateStore.cs
23 3 2
public override void ReleaseItemExclusive()
in src/DynamoDBSessionStateStore.cs
21 3 3
private void SetupTable()
in src/DynamoDBSessionStateStore.cs
20 4 0
public override void RemoveItem()
in src/DynamoDBSessionStateStore.cs
20 4 4
private SessionStateStoreData deserialize()
in src/DynamoDBSessionStateStore.cs
18 4 3
public override void CreateUninitializedItem()
in src/DynamoDBSessionStateStore.cs
14 1 3
public override void ResetItemTimeout()
in src/DynamoDBSessionStateStore.cs
14 3 2
private void ValidateTable()
in src/DynamoDBSessionStateStore.cs
12 4 0
public override SessionStateStoreData GetItem()
in src/DynamoDBSessionStateStore.cs
11 1 6
11 1 6
private TableConfig CreateTableConfig()
in src/DynamoDBSessionStateStore.cs
9 2 0
private string serialize()
in src/DynamoDBSessionStateStore.cs
9 2 1
8 2 2
private static TableConfig CreateTableConfig()
in src/DynamoDBSessionStateStore.cs
8 1 1
static DynamoDBSessionStateStore()
in src/DynamoDBSessionStateStore.cs
7 1 0