aws-cloudformation / aws-cloudformation-resource-providers-aps
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 33 units with 793 lines of code in units (75.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (86 lines of code)
    • 8 simple units (274 lines of code)
    • 24 very simple units (433 lines of code)
0% | 0% | 10% | 34% | 54%
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% | 10% | 34% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-aps-workspace/cmd/resource0% | 0% | 18% | 25% | 56%
aws-aps-rulegroupsnamespace/cmd/resource0% | 0% | 0% | 40% | 59%
internal0% | 0% | 0% | 67% | 32%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func Update()
in aws-aps-workspace/cmd/resource/resource.go
86 15 3
func Update()
in aws-aps-rulegroupsnamespace/cmd/resource/resource.go
63 9 3
func manageAlertManagerDefinition()
in aws-aps-workspace/cmd/resource/resource.go
44 9 3
func Create()
in aws-aps-workspace/cmd/resource/resource.go
44 8 3
func Create()
in aws-aps-rulegroupsnamespace/cmd/resource/resource.go
41 7 3
func StringDiffers()
in internal/aps.go
9 7 2
func Read()
in aws-aps-workspace/cmd/resource/resource.go
27 6 3
func NewFailedEvent()
in internal/aps.go
30 6 1
func StringMapDifference()
in internal/aps.go
16 6 2
func Delete()
in aws-aps-rulegroupsnamespace/cmd/resource/resource.go
42 5 3
func Delete()
in aws-aps-workspace/cmd/resource/resource.go
39 5 3
func List()
in aws-aps-workspace/cmd/resource/resource.go
35 5 3
func validateAlertManagerState()
in aws-aps-workspace/cmd/resource/resource.go
35 5 4
func validateAlertManagerDeleted()
in aws-aps-workspace/cmd/resource/resource.go
26 5 3
func validateRuleGroupsNamespaceDeleted()
in aws-aps-rulegroupsnamespace/cmd/resource/resource.go
21 4 3
func validateWorkspaceDeleted()
in aws-aps-workspace/cmd/resource/resource.go
21 4 3
func Read()
in aws-aps-rulegroupsnamespace/cmd/resource/resource.go
19 3 3
func readRuleGroupsNamespaceDefinition()
in aws-aps-rulegroupsnamespace/cmd/resource/resource.go
23 3 2
func validateRuleGroupsNamespaceState()
in aws-aps-rulegroupsnamespace/cmd/resource/resource.go
20 3 4
func readWorkspace()
in aws-aps-workspace/cmd/resource/resource.go
18 3 2