aws / amazon-kinesis-streams-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 73 units with 1,031 lines of code in units (80.4% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (267 lines of code)
    • 11 medium size units (396 lines of code)
    • 9 small units (120 lines of code)
    • 49 very small units (248 lines of code)
0% | 25% | 38% | 11% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 25% | 38% | 11% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
kinesis0% | 22% | 56% | 14% | 6%
ROOT0% | 54% | 20% | 8% | 17%
aggregate0% | 19% | 23% | 10% | 47%
kinesis/mock_kinesis0% | 0% | 0% | 0% | 100%
util0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func newKinesisOutput()
in fluent-bit-kinesis.go
94 21 2
func file_aggregate_aggregate_proto_init()
in aggregate/aggregate.pb.go
61 12 0
func compressThenTruncate()
in kinesis/kinesis.go
59 10 5
func newPutRecordsClient()
in kinesis/kinesis.go
53 10 5
func()
in aggregate/aggregator.go
49 11 1
func NewOutputPlugin()
in kinesis/kinesis.go
49 7 17
func()
in kinesis/kinesis.go
49 12 1
func()
in kinesis/kinesis.go
41 9 1
func()
in kinesis/kinesis.go
36 8 1
func unpackRecords()
in fluent-bit-kinesis.go
35 8 3
func()
in kinesis/kinesis.go
33 9 1
func()
in kinesis/kinesis.go
29 8 1
func()
in kinesis/kinesis.go
27 7 1
func()
in aggregate/aggregator.go
26 3 1
func()
in kinesis/kinesis.go
22 5 1
func replaceDots()
in kinesis/kinesis.go
16 4 2
func zlibCompress()
in kinesis/kinesis.go
16 4 1
func gzipCompress()
in kinesis/kinesis.go
16 4 1
func()
in kinesis/kinesis.go
14 3 1
func FLBPluginFlushCtx()
in fluent-bit-kinesis.go
14 3 4