aws / amazon-cognito-sync-manager-net
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 176 units with 2,173 lines of code in units (65.6% of code).
    • 2 very long units (341 lines of code)
    • 3 long units (173 lines of code)
    • 9 medium size units (298 lines of code)
    • 53 small units (732 lines of code)
    • 109 very small units (629 lines of code)
15% | 7% | 13% | 33% | 28%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs15% | 7% | 13% | 33% | 28%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src45% | 0% | 8% | 18% | 26%
src/Storage10% | 13% | 15% | 38% | 22%
src/_bcl450% | 0% | 45% | 38% | 15%
src/_bcl350% | 0% | 29% | 42% | 27%
src/Model0% | 0% | 0% | 78% | 21%
src/Exceptions0% | 0% | 0% | 0% | 100%
src/Util0% | 0% | 0% | 0% | 100%
src/_bcl0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
210 33 1
public void ChangeIdentityId()
in src/Storage/SQLiteLocalStorage.cs
131 4 2
public void ConditionallyPutRecords()
in src/Storage/SQLiteLocalStorage.cs
67 9 4
private void SetupDatabase()
in src/Storage/_bcl/SQLiteLocalStorage.bcl.cs
53 3 0
internal void UpdateOrInsertRecord()
in src/Storage/_bcl/SQLiteLocalStorage.bcl.cs
53 5 3
41 5 0
internal async Task SynchronizeHelperAsync()
in src/_bcl45/Dataset.bcl45.cs
39 6 1
private bool UpdateDatasetMetadataInternal()
in src/Storage/SQLiteLocalStorage.cs
39 2 2
private bool PutValueHelper()
in src/Storage/SQLiteLocalStorage.cs
39 4 4
private void DeleteDataset()
in src/Storage/SQLiteLocalStorage.cs
36 2 3
private static SyncManagerException HandleException()
in src/Storage/CognitoSyncStorage.cs
32 10 2
private async Task PopulateListUpdatesAsync()
in src/Storage/_async/CognitoSyncStorage.async.cs
28 3 5
private void SynchronizeHelper()
in src/_bcl35/Dataset.bcl35.cs
23 3 0
internal DatasetMetadata GetMetadataHelper()
in src/Storage/_bcl/SQLiteLocalStorage.bcl.cs
21 3 2
private HashSet GetCommonDatasetNames()
in src/Storage/SQLiteLocalStorage.cs
20 5 2
public void CreateDataset()
in src/Storage/SQLiteLocalStorage.cs
19 2 2
18 11 0
internal long GetLastSyncCountHelper()
in src/Storage/_bcl/SQLiteLocalStorage.bcl.cs
18 3 2
private static void BindData()
in src/Storage/_bcl/SQLiteLocalStorage.bcl.cs
18 3 2
17 4 1