bazelbuild / remote-apis
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 613 units with 4,255 lines of code in units (47.6% of code).
    • 2 very long units (771 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (86 lines of code)
    • 77 small units (922 lines of code)
    • 532 very small units (2,476 lines of code)
18% | 0% | 2% | 21% | 58%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go18% | 0% | 2% | 21% | 58%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
build/bazel/remote/execution/v219% | 0% | 0% | 21% | 59%
build/bazel/remote/asset/v118% | 0% | 0% | 23% | 57%
build/bazel/remote/logstream/v10% | 0% | 30% | 24% | 45%
build/bazel/semver0% | 0% | 39% | 11% | 48%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func file_build_bazel_remote_execution_v2_remote_execution_proto_init()
in build/bazel/remote/execution/v2/remote_execution.pb.go
638 156 0
func file_build_bazel_remote_asset_v1_remote_asset_proto_init()
in build/bazel/remote/asset/v1/remote_asset.pb.go
133 30 0
func file_build_bazel_remote_logstream_v1_remote_logstream_proto_init()
in build/bazel/remote/logstream/v1/remote_logstream.pb.go
49 9 0
func file_build_bazel_semver_semver_proto_init()
in build/bazel/semver/semver.pb.go
37 6 0
func _ActionCache_GetActionResult_Handler()
in build/bazel/remote/execution/v2/remote_execution.pb.go
17 3 3
func _ActionCache_UpdateActionResult_Handler()
in build/bazel/remote/execution/v2/remote_execution.pb.go
17 3 3
func _ContentAddressableStorage_FindMissingBlobs_Handler()
in build/bazel/remote/execution/v2/remote_execution.pb.go
17 3 3
func _ContentAddressableStorage_BatchUpdateBlobs_Handler()
in build/bazel/remote/execution/v2/remote_execution.pb.go
17 3 3
func _ContentAddressableStorage_BatchReadBlobs_Handler()
in build/bazel/remote/execution/v2/remote_execution.pb.go
17 3 3
func _Capabilities_GetCapabilities_Handler()
in build/bazel/remote/execution/v2/remote_execution.pb.go
17 3 3
func _Fetch_FetchBlob_Handler()
in build/bazel/remote/asset/v1/remote_asset.pb.go
17 3 3
func _Fetch_FetchDirectory_Handler()
in build/bazel/remote/asset/v1/remote_asset.pb.go
17 3 3
func _Push_PushBlob_Handler()
in build/bazel/remote/asset/v1/remote_asset.pb.go
17 3 3
func _Push_PushDirectory_Handler()
in build/bazel/remote/asset/v1/remote_asset.pb.go
17 3 3
func _LogStreamService_CreateLogStream_Handler()
in build/bazel/remote/logstream/v1/remote_logstream.pb.go
17 3 3
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
14 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
14 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
14 4 1
func()
in build/bazel/semver/semver.pb.go
11 4 1
func()
in build/bazel/remote/execution/v2/remote_execution.pb.go
11 4 1