microsoft / vsts-work-item-migrator
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 358 units with 4,049 lines of code in units (66.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (206 lines of code)
    • 21 simple units (867 lines of code)
    • 333 very simple units (2,976 lines of code)
0% | 0% | 5% | 21% | 73%
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% | 5% | 21% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Common/Validation/WorkItem0% | 0% | 31% | 52% | 15%
Common/Migration/Phase10% | 0% | 10% | 22% | 67%
Common/Validation0% | 0% | 20% | 0% | 79%
Common0% | 0% | 0% | 20% | 79%
Common/Migration0% | 0% | 0% | 32% | 67%
Common/Migration/Phase20% | 0% | 0% | 29% | 70%
WiMigrator0% | 0% | 0% | 58% | 41%
Logging0% | 0% | 0% | 11% | 88%
Common/ApiWrappers0% | 0% | 0% | 23% | 76%
Common/Validation/Target0% | 0% | 0% | 0% | 100%
Common/Validation/Configuration0% | 0% | 0% | 0% | 100%
Common/Extensions0% | 0% | 0% | 0% | 100%
Common/Config0% | 0% | 0% | 0% | 100%
Common/Migration/Phase30% | 0% | 0% | 0% | 100%
Common/Migration/Contexts0% | 0% | 0% | 0% | 100%
Common/Migration/ErrorHandling0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async Task Validate()
in Common/Validation/WorkItem/ValidateClassificationNodes.cs
46 15 2
public async Task Process()
in Common/Migration/Phase1/PreProcessors/IdentityPreProcessor.cs
65 14 1
public async Task Validate()
in Common/Validation/Validator.cs
59 12 0
public void ValidateFieldsMapping()
in Common/Validation/WorkItem/ValidateWorkItemTypes.cs
36 12 1
public void SendEmail()
in Common/Emailer.cs
48 10 2
private void LogFinalStatus()
in Common/Migration/Migrator.cs
45 10 0
private async Task UploadAttachmentFromSourceRelation()
in Common/Migration/Phase2/Processors/AttachmentsProcessor.cs
82 10 5
private void HandleBatchResponses()
in Common/ApiWrappers/BaseBatchApiWrapper.cs
51 9 4
private async Task MigratePhase3()
in Common/Migration/Migrator.cs
37 9 0
51 9 4
public async Task Prepare()
in Common/Validation/WorkItem/ValidateWorkItemTypes.cs
53 9 1
private void ValidateWorkItemTypeFidelity()
in Common/Validation/WorkItem/ValidateWorkItemTypes.cs
43 9 2
private async Task UploadInlineImageAttachmentFromSourceWorkItemToTarget()
in Common/Migration/Phase1/PreProcessors/InlineImagesPreProcessor.cs
69 8 4
protected JsonPatchDocument CreateJsonPatchDocumentFromWorkItemFields()
in Common/Migration/Phase1/WitBatchRequestGenerators/BaseWitBatchRequestGenerator.cs
36 8 1
protected KeyValuePair CreateTargetField()
in Common/Migration/Phase1/WitBatchRequestGenerators/BaseWitBatchRequestGenerator.cs
41 8 2
24 8 3
31 8 2
private static IEnumerable GetGitLinksRelationsFromWorkItem()
in Common/Migration/Phase2/Processors/GitCommitLinksProcessor.cs
18 7 3
public bool CompareWorkItemType()
in Common/Validation/WorkItem/ValidateWorkItemTypes.cs
25 7 4
public static string Get()
in Logging/LogLevelOutputMapping.cs
20 7 1