aws / amazon-cognito-sync-manager-net
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 176 units with 2,173 lines of code in units (65.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (210 lines of code)
    • 1 medium complex units (18 lines of code)
    • 3 simple units (138 lines of code)
    • 171 very simple units (1,807 lines of code)
0% | 9% | <1% | 6% | 83%
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% | 9% | <1% | 6% | 83%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 45% | 3% | 0% | 50%
src/Storage0% | 0% | 0% | 7% | 92%
src/_bcl450% | 0% | 0% | 45% | 54%
src/Exceptions0% | 0% | 0% | 0% | 100%
src/Model0% | 0% | 0% | 0% | 100%
src/_bcl350% | 0% | 0% | 0% | 100%
src/Util0% | 0% | 0% | 0% | 100%
src/_bcl0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
210 33 1
18 11 0
private static SyncManagerException HandleException()
in src/Storage/CognitoSyncStorage.cs
32 10 2
public void ConditionallyPutRecords()
in src/Storage/SQLiteLocalStorage.cs
67 9 4
internal async Task SynchronizeHelperAsync()
in src/_bcl45/Dataset.bcl45.cs
39 6 1
41 5 0
internal void UpdateOrInsertRecord()
in src/Storage/_bcl/SQLiteLocalStorage.bcl.cs
53 5 3
private HashSet GetCommonDatasetNames()
in src/Storage/SQLiteLocalStorage.cs
20 5 2
17 4 1
public SyncConflict()
in src/Model/SyncConflict.cs
14 4 2
public Record()
in src/Model/Record.cs
14 4 7
public static string BuildUpdate()
in src/Storage/SQLiteLocalStorage.cs
13 4 2
public static string BuildUpdate()
in src/Storage/SQLiteLocalStorage.cs
13 4 2
public void ChangeIdentityId()
in src/Storage/SQLiteLocalStorage.cs
131 4 2
private bool PutValueHelper()
in src/Storage/SQLiteLocalStorage.cs
39 4 4
protected virtual void Dispose()
in src/CognitoSyncManager.cs
12 3 1
protected void IdentityChanged()
in src/CognitoSyncManager.cs
11 3 2
protected virtual void Dispose()
in src/_bcl45/Dataset.bcl45.cs
11 3 1
private async void HandleNetworkChange()
in src/_bcl45/Dataset.bcl45.cs
11 3 2
protected virtual void Dispose()
in src/_bcl35/Dataset.bcl35.cs
11 3 1