aws-observability / aws-otel-collector
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 70 units with 1,103 lines of code in units (20.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (204 lines of code)
    • 11 simple units (402 lines of code)
    • 55 very simple units (497 lines of code)
0% | 0% | 18% | 36% | 45%
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% | 0% | 19% | 35% | 44%
py0% | 0% | 0% | 43% | 56%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tools/workflow0% | 0% | 40% | 54% | 5%
tools/release0% | 0% | 18% | 29% | 51%
pkg/extraconfig0% | 0% | 82% | 0% | 18%
pkg/defaultcomponents0% | 0% | 0% | 100% | 0%
tools/ssm0% | 0% | 0% | 100% | 0%
pkg/userutils0% | 0% | 0% | 28% | 71%
cmd/awscollector0% | 0% | 0% | 29% | 70%
pkg/logger0% | 0% | 0% | 0% | 100%
e2etest0% | 0% | 0% | 0% | 100%
pkg/config0% | 0% | 0% | 0% | 100%
pkg/lambdacomponents0% | 0% | 0% | 0% | 100%
tools/version0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func destroyIamRoles()
in tools/workflow/clean_aws_resources.go
54 18 0
func GetExtraConfig()
in pkg/extraconfig/extraconfig.go
41 12 0
func destroyECSLaunchConfiguration()
in tools/workflow/clean_aws_resources.go
53 12 0
func main()
in tools/release/adot-operator-images-mirror/main.go
56 11 0
func chownRecursive()
in pkg/userutils/userutil_linux.go
30 10 3
func Components()
in pkg/defaultcomponents/defaults.go
75 10 0
func()
in tools/release/adot-operator-images-mirror/mirror.go
42 10 1
func terminateEc2Instances()
in tools/workflow/clean_aws_resources.go
39 10 0
func destroyECSAutoScaling()
in tools/workflow/clean_aws_resources.go
41 9 0
func destroyLoadBalancerResource()
in tools/workflow/clean_aws_resources.go
36 9 0
func destroyEfsResource()
in tools/workflow/clean_aws_resources.go
29 9 0
func()
in tools/release/adot-operator-images-mirror/ecr_manager.go
27 8 1
def buildssmpkg()
in tools/ssm/ssm_manifest.py
35 7 5
func()
in tools/release/adot-operator-images-mirror/mirror.go
19 6 1
func main()
in cmd/awscollector/main.go
29 6 0
func switchUser()
in pkg/userutils/userutil_linux.go
20 5 1
def flatten_performance_models()
in e2etest/get-performance-model-table.py
13 5 0
func ChangeUser()
in pkg/userutils/userutil_linux.go
18 4 0
func changeFileOwner()
in pkg/userutils/userutil_linux.go
12 4 2
func()
in tools/version/build.go
13 4 1