golang / vscode-go
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 84 files with 18,164 lines of code.
    • 2 very long files (3,564 lines of code)
    • 7 long files (4,640 lines of code)
    • 16 medium size files (4,963 lines of codeclsfd_ftr_w_mp_ins)
    • 22 small files (3,116 lines of code)
    • 37 very small files (1,881 lines of code)
19% | 25% | 27% | 17% | 10%
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
ts21% | 24% | 25% | 18% | 10%
go0% | 45% | 44% | 10% | 0%
in0% | 0% | 100% | 0% | 0%
bash0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/debugAdapter100% | 0% | 0% | 0% | 0%
src10% | 28% | 26% | 22% | 10%
tools0% | 71% | 28% | 0% | 0%
src/goTest0% | 36% | 56% | 0% | 7%
tools/goplssetting0% | 0% | 100% | 0% | 0%
tools/relnotes0% | 0% | 100% | 0% | 0%
src/utils0% | 0% | 0% | 43% | 56%
tools/installtools0% | 0% | 0% | 100% | 0%
build0% | 0% | 0% | 0% | 100%
media0% | 0% | 0% | 0% | 100%
build/nightly0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
goDebug.ts
in src/debugAdapter
2293 67
goLanguageServer.ts
in src
1271 45
goMain.ts
in src
901 17
util.ts
in src
895 49
goSuggest.ts
in src
602 15
generate.go
in tools
576 15
goInstallTools.ts
in src
572 21
run.ts
in src/goTest
571 13
goDebugFactory.ts
in src
523 23
goEnvironmentStatus.ts
in src
488 23
testUtils.ts
in src
432 17
goCover.ts
in src
426 18
goDebugConfiguration.ts
in src
395 7
resolve.ts
in src/goTest
384 22
goDeclaration.ts
in src
359 8
goplssetting.go
in tools/goplssetting
346 13
goTest.ts
in src
289 14
explore.ts
in src/goTest
258 9
profile.ts
in src/goTest
256 21
in
allTools.ts.in
in tools
234 -
goToolsInformation.ts
in src
234 3
goPackages.ts
in src
219 8
relnotes.go
in tools/relnotes
216 7
goSurvey.ts
in src
215 12
goImport.ts
in src
212 7
pathUtils.ts
in src/utils
198 16
goModules.ts
in src
189 6
goGenerateTests.ts
in src
179 7
goOutline.ts
in src
172 4
welcome.ts
in src
169 8
goModifytags.ts
in src
167 5
goStatus.ts
in src
160 8
goTools.ts
in src
159 11
pickProcess.ts
in src
159 9
goBuild.ts
in src
147 2
avlTree.ts
in src
129 10
main.go
in tools/installtools
128 6
goDeveloperSurvey.ts
in src
128 5
goSignature.ts
in src
125 3
goSymbol.ts
in src
118 3
goLint.ts
in src
117 2
goCheck.ts
in src
117 4
goImplementations.ts
in src
114 1
goRunTestCodelens.ts
in src
113 3
goFormat.ts
in src
112 4
goTypeDefinition.ts
in src
111 1
diffUtils.ts
in src
105 7
goLiveErrors.ts
in src
98 3
goVet.ts
in src
97 2
goReferencesCodelens.ts
in src
95 4
Files With Most Units (Top 20)
File# lines# units
goDebug.ts
in src/debugAdapter
2293 67
util.ts
in src
895 49
goLanguageServer.ts
in src
1271 45
goEnvironmentStatus.ts
in src
488 23
goDebugFactory.ts
in src
523 23
resolve.ts
in src/goTest
384 22
goInstallTools.ts
in src
572 21
profile.ts
in src/goTest
256 21
goCover.ts
in src
426 18
testUtils.ts
in src
432 17
goMain.ts
in src
901 17
pathUtils.ts
in src/utils
198 16
generate.go
in tools
576 15
goLogging.ts
in src
94 15
goSuggest.ts
in src
602 15
goTest.ts
in src
289 14
goplssetting.go
in tools/goplssetting
346 13
run.ts
in src/goTest
571 13
stateUtils.ts
in src
68 13
goSurvey.ts
in src
215 12
Files With Long Lines (Top 20)

There are 26 files with lines longer than 120 characters. In total, there are 71 long lines.

File# lines# units# long lines
welcome.ts
in src
169 8 8
goDebug.ts
in src/debugAdapter
2293 67 8
goDebugConfiguration.ts
in src
395 7 7
generate.go
in tools
576 15 5
goDebugFactory.ts
in src
523 23 5
goLanguageServer.ts
in src
1271 45 4
goMain.ts
in src
901 17 4
relnotes.go
in tools/relnotes
216 7 3
goModules.ts
in src
189 6 3
all.bash
in build
92 - 2
goplssetting.go
in tools/goplssetting
346 13 2
goInstallTools.ts
in src
572 21 2
goPackages.ts
in src
219 8 2
pickProcess.ts
in src
159 9 2
goDeclaration.ts
in src
359 8 2
goSuggest.ts
in src
602 15 2
goTools.ts
in src
159 11 1
goImplementations.ts
in src
114 1 1
goBuild.ts
in src
147 2 1
goBrowsePackage.ts
in src
90 3 1