kubernetes / git-sync
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 10 files with 1,550 lines of code.
    • 1 very long files (1,045 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (112 lines of code)
    • 8 very small files (393 lines of code)
67% | 0% | 0% | 7% | 25%
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
go71% | 0% | 0% | 7% | 20%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cmd/git-sync100% | 0% | 0% | 0% | 0%
pkg/hook0% | 0% | 0% | 57% | 42%
pkg/logging0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
pkg/pid10% | 0% | 0% | 0% | 100%
pkg/cmd0% | 0% | 0% | 0% | 100%
pkg/version0% | 0% | 0% | 0% | 100%
Longest Files (Top 10)
File# lines# units
main.go
in cmd/git-sync
1045 35
hook.go
in pkg/hook
112 12
logging.go
in pkg/logging
100 5
in
Dockerfile.in
in root
87 -
pid1.go
in pkg/pid1
63 3
cmd.go
in pkg/cmd
55 4
webhook.go
in pkg/hook
47 3
exechook.go
in pkg/hook
37 3
version.go
in pkg/version
2 -
tools.go
in root
2 -
Files With Most Units (Top 7)
File# lines# units
main.go
in cmd/git-sync
1045 35
hook.go
in pkg/hook
112 12
logging.go
in pkg/logging
100 5
cmd.go
in pkg/cmd
55 4
exechook.go
in pkg/hook
37 3
webhook.go
in pkg/hook
47 3
pid1.go
in pkg/pid1
63 3
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 16 long lines.

File# lines# units# long lines
main.go
in cmd/git-sync
1045 35 15
exechook.go
in pkg/hook
37 3 1