microsoft / data-accelerator
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 1,809 units with 22,417 lines of code in units (44.0% of code).
    • 1 very complex units (264 lines of code)
    • 5 complex units (860 lines of code)
    • 40 medium complex units (2,101 lines of code)
    • 126 simple units (3,636 lines of code)
    • 1,637 very simple units (15,556 lines of code)
1% | 3% | 9% | 16% | 69%
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
js6% | 0% | 7% | 18% | 66%
scala0% | 14% | 5% | 13% | 65%
cs0% | 1% | 10% | 16% | 71%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Website/Packages10% | 0% | 8% | 14% | 65%
DataProcessing/datax-host0% | 14% | 6% | 15% | 63%
DataProcessing/datax-utility0% | 24% | 0% | 7% | 68%
Services/DataX.Flow0% | 2% | 18% | 19% | 60%
Services/DataX.SimulatedData0% | 17% | 25% | 17% | 39%
Services/DataX.Config0% | 0% | 4% | 13% | 81%
Services/DataX.Utilities0% | 0% | 6% | 19% | 74%
Website/Website0% | 0% | 5% | 25% | 68%
Services/DataX.Gateway0% | 0% | 13% | 16% | 70%
Services/DataX.Metrics0% | 0% | 15% | 0% | 84%
Services/JobRunner0% | 0% | 0% | 25% | 74%
Services/DataX.ServiceHost0% | 0% | 0% | 0% | 100%
DataProcessing/datax-core0% | 0% | 0% | 0% | 100%
Services/AspnetCore0% | 0% | 0% | 0% | 100%
Services/DataX.Contract0% | 0% | 0% | 0% | 100%
DeploymentCloud/Deployment.Common0% | 0% | 0% | 0% | 100%
DataProcessing/datax-udf-samples0% | 0% | 0% | 0% | 100%
DataProcessing/datax-keyvault0% | 0% | 0% | 0% | 100%
Services/JobRunnerWebJob0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export default()
in Website/Packages/datax-pipeline/src/modules/flowDefinition/flowReducer.js
264 62 2
def createProcessor()
in DataProcessing/datax-host/src/main/scala/datax/processor/CommonProcessorFactory.scala
453 48 1
private def getRandomJsonInternal()
in DataProcessing/datax-utility/src/main/scala/datax/utility/DataGenerator.scala
126 46 2
public string GeneratePropertyString()
in Services/DataX.SimulatedData/DataX.SimulatedData.DataGenService/DataGen.cs
107 38 2
def registerJavaUDF()
in DataProcessing/datax-host/src/main/scala/datax/host/SparkJarLoader.scala
51 33 4
public async Task DeleteFlow()
in Services/DataX.Flow/DataX.Flow.DeleteHelper/ConfigDeleter.cs
123 33 1
public JObject GenerateRulesData()
in Services/DataX.SimulatedData/DataX.SimulatedData.DataGenService/DataGen.cs
77 24 2
public override async Task Process()
in Services/DataX.Config/DataX.Config.Input.EventHub/Processor/CreateEventHubConsumerGroup.cs
84 22 1
public string Perform()
in Services/DataX.Flow/DataX.Flow.CodegenRules/Formatter.cs
83 22 0
protected override async Task RunAsync()
in Services/DataX.SimulatedData/DataX.SimulatedData.DataGenService/DataGenService.cs
81 21 1
private void GetSchemaArray()
in Services/DataX.Flow/DataX.Flow.SchemaInference/Engine.cs
69 20 3
function isSinkerSettingsComplete()
in Website/Packages/datax-pipeline/src/modules/flowDefinition/flowSelectors.js
34 19 1
function isBatchListSettingsComplete()
in Website/Packages/datax-pipeline/src/modules/flowDefinition/flowSelectors.js
35 19 1
private string GenerateCodeHelper()
in Services/DataX.Flow/DataX.Flow.CodegenRules/Engine.cs
89 18 3
private void GetSchemaStruct()
in Services/DataX.Flow/DataX.Flow.SchemaInference/Engine.cs
74 17 3
def parse()
in DataProcessing/datax-host/src/main/scala/datax/sql/TransformSqlParser.scala
57 15 1
private void AutoCodegenAlerts()
in Services/DataX.Flow/DataX.Flow.CodegenRules/Engine.cs
52 15 1
public string ExecuteCode()
in Services/DataX.Flow/DataX.Flow.InteractiveQuery/HDInsight/HDInsightKernel.cs
74 15 4
private async Task ProcessOutputs()
in Services/DataX.Config/DataX.Config/ConfigGeneration/Processor/S500_ResolveOutputs.cs
93 14 4
public List Analyze()
in Services/DataX.Flow/DataX.Flow.SqlParser/SqlParser.cs
75 14 4