aws / aws-tools-for-powershell
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 35,629 units with 1,163,723 lines of code in units (49.3% of code).
    • 141 very complex units (74,703 lines of code)
    • 346 complex units (60,535 lines of code)
    • 4,516 medium complex units (317,898 lines of code)
    • 10,498 simple units (430,030 lines of code)
    • 20,128 very simple units (280,557 lines of code)
6% | 5% | 27% | 36% | 24%
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
cs6% | 5% | 27% | 36% | 24%
js0% | 0% | 0% | 23% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
modules/AWSPowerShell/Cmdlets6% | 5% | 27% | 37% | 23%
generator/AWSPSGeneratorLib/Generators6% | 0% | 7% | 32% | 53%
generator/AWSPSGeneratorLib/Writers0% | 12% | 19% | 10% | 58%
generator/AWSPSGeneratorLib/ConfigModel0% | 25% | 7% | 3% | 64%
modules/AWSPowerShell/Common0% | 5% | 21% | 20% | 53%
generator/ReleaseNotesGenerator0% | 10% | 24% | 7% | 57%
generator/AWSPSGeneratorLib/Analysis0% | 0% | 33% | 23% | 43%
generator/AWSPSGeneratorLib0% | 0% | 36% | 0% | 63%
generator/AWSPSGeneratorLib/Utils0% | 0% | 0% | 19% | 80%
generator/AWSPSGenerator0% | 0% | 0% | 55% | 44%
generator/AWSPSGeneratorLib/HelpMaterials0% | 0% | 0% | 23% | 76%
modules/AWSPowerShell/Utils0% | 0% | 0% | 0% | 100%
generator/AWSPSGeneratorLibTests0% | 0% | 0% | 0% | 100%
generator/ReleaseNotesGeneratorTests0% | 0% | 0% | 0% | 100%
generator/AWSPSGeneratorLib/FormatConfig0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public object Execute()
in modules/AWSPowerShell/Cmdlets/DatabaseMigrationService/Basic/New-DMSEndpoint-Cmdlet.cs
2785 554 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/DatabaseMigrationService/Basic/Edit-DMSEndpoint-Cmdlet.cs
2781 553 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/Pinpoint/Basic/Update-PINCampaign-Cmdlet.cs
1473 283 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/Pinpoint/Basic/New-PINCampaign-Cmdlet.cs
1469 282 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/Pinpoint/Basic/Send-PINMessage-Cmdlet.cs
1405 269 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/Pinpoint/Basic/Send-PINUserMessageBatch-Cmdlet.cs
1395 267 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/IoT/Basic/New-IOTTopicRule-Cmdlet.cs
1281 243 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/IoT/Basic/Set-IOTTopicRule-Cmdlet.cs
1277 242 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/SageMaker/Basic/New-SMModelPackage-Cmdlet.cs
1037 196 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/CloudFront/Basic/New-CFDistributionWithTag-Cmdlet.cs
987 183 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/CloudFront/Basic/Update-CFDistribution-Cmdlet.cs
961 179 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/CloudFront/Basic/New-CFDistribution-Cmdlet.cs
953 177 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/AppMesh/Basic/New-AMSHRoute-Cmdlet.cs
933 173 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/QuickSight/Basic/New-QSDataSource-Cmdlet.cs
919 172 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/AppMesh/Basic/Update-AMSHRoute-Cmdlet.cs
929 172 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/QuickSight/Basic/Update-QSDataSource-Cmdlet.cs
907 169 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/KinesisFirehose/Basic/New-KINFDeliveryStream-Cmdlet.cs
855 162 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/CloudSearch/Basic/Set-CSIndexField-Cmdlet.cs
795 152 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/S3Control/Basic/New-S3CJob-Cmdlet.cs
749 142 1
public object Execute()
in modules/AWSPowerShell/Cmdlets/CodeBuild/Basic/Update-CBProject-Cmdlet.cs
705 137 1