aws / aws-for-fluent-bit
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 19 units with 251 lines of code in units (23.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (49 lines of code)
    • 1 simple units (37 lines of code)
    • 17 very simple units (165 lines of code)
0% | 0% | 19% | 14% | 65%
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% | 38% | 28% | 32%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
integ/s30% | 0% | 38% | 28% | 32%
troubleshooting/tools/color-logger0% | 0% | 0% | 0% | 100%
integ/validate_cloudwatch0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 19 most complex units
Unit# linesMcCabe index# params
func validate()
in integ/s3/validate-and-clean.go
49 12 5
func main()
in integ/s3/validate-and-clean.go
37 9 0
def metric_exists()
in integ/validate_cloudwatch/validator.py
23 4 4
def main()
in troubleshooting/tools/color-logger/main.py
16 4 0
def validate_test_case()
in integ/validate_cloudwatch/validator.py
12 3 4
def validate_metric()
in integ/validate_cloudwatch/validator.py
11 3 5
def print_log()
in troubleshooting/tools/color-logger/large.py
8 3 1
def sig_handler()
in troubleshooting/tools/color-logger/large.py
13 3 1
def print_log()
in troubleshooting/tools/color-logger/main.py
8 3 1
def sig_handler()
in troubleshooting/tools/color-logger/main.py
13 3 1
func getS3Client()
in integ/s3/validate-and-clean.go
9 2 1
func getS3Objects()
in integ/s3/validate-and-clean.go
12 2 3
func getS3Object()
in integ/s3/validate-and-clean.go
7 2 2
func deleteS3Objects()
in integ/s3/validate-and-clean.go
10 2 3
def vanilla_validator()
in integ/validate_cloudwatch/validator.py
6 2 2
def log_key_validator()
in integ/validate_cloudwatch/validator.py
5 2 2
def main()
in troubleshooting/tools/color-logger/large.py
5 2 0
func exitErrorf()
in integ/s3/validate-and-clean.go
4 1 2
def get_expected_metric_name()
in integ/validate_cloudwatch/validator.py
3 1 0