aws / aws-for-fluent-bit
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 19 units with 251 lines of code in units (23.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (109 lines of code)
    • 6 small units (77 lines of code)
    • 10 very small units (65 lines of code)
0% | 0% | 43% | 30% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 0% | 67% | 9% | 23%
py0% | 0% | 18% | 52% | 28%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
integ/s30% | 0% | 67% | 9% | 23%
integ/validate_cloudwatch0% | 0% | 38% | 38% | 23%
troubleshooting/tools/color-logger0% | 0% | 0% | 66% | 33%
Alternative Visuals
Longest Units
Top 19 longest 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 sig_handler()
in troubleshooting/tools/color-logger/large.py
13 3 1
def sig_handler()
in troubleshooting/tools/color-logger/main.py
13 3 1
func getS3Objects()
in integ/s3/validate-and-clean.go
12 2 3
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
func deleteS3Objects()
in integ/s3/validate-and-clean.go
10 2 3
func getS3Client()
in integ/s3/validate-and-clean.go
9 2 1
def print_log()
in troubleshooting/tools/color-logger/large.py
8 3 1
def print_log()
in troubleshooting/tools/color-logger/main.py
8 3 1
func getS3Object()
in integ/s3/validate-and-clean.go
7 2 2
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