facebookincubator / prometheus-edge-hub
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 11 files with 767 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (352 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (155 lines of code)
    • 9 very small files (260 lines of code)
0% | 0% | 45% | 20% | 33%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go0% | 0% | 60% | 26% | 12%
yaml0% | 0% | 0% | 0% | 100%
proto0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
hub0% | 0% | 100% | 0% | 0%
grpc0% | 0% | 0% | 84% | 15%
ROOT0% | 0% | 0% | 0% | 100%
helm/prometheus-edge-hub/templates0% | 0% | 0% | 0% | 100%
helm/prometheus-edge-hub0% | 0% | 0% | 0% | 100%
Longest Files (Top 11)
File# lines# units
hub.go
in hub
352 20
155 26
main.go
in root
58 3
prometheus-edge-hub.deployment.yaml
in helm/prometheus-edge-hub/templates
54 -
49 -
prometheus-edge-hub.service.yaml
in helm/prometheus-edge-hub/templates
39 -
values.yaml
in helm/prometheus-edge-hub
21 -
proto
16 -
12 1
Chart.yaml
in helm/prometheus-edge-hub
10 -
gen.go
in grpc
1 -
Files With Most Units (Top 4)
File# lines# units
155 26
hub.go
in hub
352 20
main.go
in root
58 3
12 1
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 19 long lines.

File# lines# units# long lines
hub.go
in hub
352 20 13
main.go
in root
58 3 3
155 26 2
49 - 1
Correlations

File Size vs. Commits (all time): 6 points

hub/hub.go x: 6 commits (all time) y: 352 lines of code grpc/gen.go x: 1 commits (all time) y: 1 lines of code grpc/server_impl.go x: 1 commits (all time) y: 12 lines of code grpc/service.pb.go x: 1 commits (all time) y: 155 lines of code grpc/service.proto x: 1 commits (all time) y: 16 lines of code main.go x: 3 commits (all time) y: 58 lines of code
352.0
lines of code
  min: 1.0
  average: 99.0
  25th percentile: 9.25
  median: 37.0
  75th percentile: 204.25
  max: 352.0
0 6.0
commits (all time)
min: 1.0 | average: 2.17 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 3.75 | max: 6.0

File Size vs. Contributors (all time): 6 points

hub/hub.go x: 2 contributors (all time) y: 352 lines of code grpc/gen.go x: 1 contributors (all time) y: 1 lines of code grpc/server_impl.go x: 1 contributors (all time) y: 12 lines of code grpc/service.pb.go x: 1 contributors (all time) y: 155 lines of code grpc/service.proto x: 1 contributors (all time) y: 16 lines of code main.go x: 2 contributors (all time) y: 58 lines of code
352.0
lines of code
  min: 1.0
  average: 99.0
  25th percentile: 9.25
  median: 37.0
  75th percentile: 204.25
  max: 352.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.33 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".