aws / amazon-ecs-cli
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 7,344 units with 52,215 lines of code in units (86.9% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (254 lines of code)
    • 19 medium complex units (1,138 lines of code)
    • 83 simple units (2,387 lines of code)
    • 7,240 very simple units (48,436 lines of code)
0% | <1% | 2% | 4% | 92%
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
go0% | <1% | 2% | 4% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ecs-cli/modules/cli0% | 2% | 13% | 24% | 60%
ecs-cli/modules/utils0% | 11% | 22% | 22% | 42%
ecs-cli/modules/clients0% | 0% | 0% | <1% | 99%
ecs-cli/modules/config0% | 0% | 0% | 30% | 69%
ecs-cli/integ/cmd0% | 0% | 0% | 22% | 77%
ecs-cli/modules/commands0% | 0% | 0% | 0% | 100%
ecs-cli/integ0% | 0% | 0% | 0% | 100%
ecs-cli/integ/ecs0% | 0% | 0% | 0% | 100%
ecs-cli0% | 0% | 0% | 0% | 100%
ecs-cli/integ/cfn0% | 0% | 0% | 0% | 100%
ecs-cli/integ/stdout0% | 0% | 0% | 0% | 100%
ecs-cli/modules/version0% | 0% | 0% | 0% | 100%
ecs-cli/modules0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func createCluster()
in ecs-cli/modules/cli/cluster/cluster_app.go
137 40 3
func reconcileContainerDef()
in ecs-cli/modules/utils/compose/reconcile_container_def.go
117 28 3
func()
in ecs-cli/modules/cli/compose/entity/service/service.go
87 25 1
func()
in ecs-cli/modules/cli/compose/entity/service/service.go
63 24 1
func mergeVolumesWithoutHost()
in ecs-cli/modules/utils/compose/convert_task_definition.go
84 23 2
func convertToContainerConfig()
in ecs-cli/modules/cli/compose/project/project_parseV3.go
110 22 2
func()
in ecs-cli/modules/cli/compose/entity/task/task.go
70 19 1
func ConvertToTaskDefinition()
in ecs-cli/modules/utils/compose/convert_task_definition.go
78 16 1
func validateCredsInput()
in ecs-cli/modules/cli/regcreds/regcreds_app.go
46 16 2
func ParseLoadBalancers()
in ecs-cli/modules/utils/utils.go
61 15 1
func Migrate()
in ecs-cli/modules/cli/configure/configure.go
60 15 1
func pushImage()
in ecs-cli/modules/cli/image/image_app.go
58 14 6
func getContainersForTasksWithTaskNetworking()
in ecs-cli/modules/cli/compose/entity/entity_helper.go
44 14 2
func Up()
in ecs-cli/modules/cli/regcreds/regcreds_app.go
71 14 1
func()
in ecs-cli/modules/cli/compose/entity/task/task.go
54 13 1
func()
in ecs-cli/modules/cli/local/localproject/project.go
39 12 1
func createComposeServices()
in ecs-cli/modules/cli/local/converter/converter.go
47 12 2
func validateMergedSDInputFields()
in ecs-cli/modules/cli/servicediscovery/servicediscovery_helper.go
23 12 2
func convertV1V2ToContainerConfig()
in ecs-cli/modules/cli/compose/project/project_parseV1V2.go
80 12 4
func()
in ecs-cli/modules/cli/compose/project/project_version.go
27 11 1