microsoft / lsif-node
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 49 files with 11,983 lines of code.
    • 2 very long files (4,737 lines of code)
    • 3 long files (2,405 lines of code)
    • 8 medium size files (2,760 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (715 lines of code)
    • 31 very small files (1,366 lines of code)
39% | 20% | 23% | 5% | 11%
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
ts39% | 20% | 23% | 6% | 10%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tsc/src68% | 14% | 12% | 3% | 0%
protocol/src99% | 0% | 0% | 0% | <1%
sqlite/src0% | 70% | 11% | 9% | 8%
tsc/src/common0% | 0% | 66% | 19% | 13%
npm/src0% | 0% | 68% | 0% | 31%
tsc/src/emitters0% | 0% | 62% | 0% | 37%
tooling/src0% | 0% | 60% | 0% | 39%
tsc/src/npm0% | 0% | 0% | 0% | 100%
npm/src/common0% | 0% | 0% | 0% | 100%
lsif/src0% | 0% | 0% | 0% | 100%
build/azure-pipelines0% | 0% | 0% | 0% | 100%
build/azure-pipelines/win320% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
build/azure-pipelines/linux0% | 0% | 0% | 0% | 100%
build/azure-pipelines/index0% | 0% | 0% | 0% | 100%
Longest Files (Top 49)
File# lines# units
lsif.ts
in tsc/src
3404 349
protocol.ts
in protocol/src
1333 111
blobStore.ts
in sqlite/src
908 63
compress.ts
in sqlite/src
780 61
main.ts
in tsc/src
717 41
graph.ts
in tsc/src/common
489 46
linkedMap.ts
in tsc/src/common
489 20
typescripts.ts
in tsc/src
385 39
main.ts
in npm/src
367 19
graphStore.ts
in sqlite/src
284 19
graphSON.ts
in tsc/src/emitters
261 2
args.ts
in tsc/src
253 8
validate.ts
in tooling/src
232 5
typings.ts
in tsc/src
194 9
connection.ts
in tsc/src/common
180 11
store.ts
in sqlite/src
121 8
writer.ts
in tsc/src/common
112 6
main.ts
in sqlite/src
108 5
vis.ts
in tsc/src/emitters
100 2
writerWorker.ts
in tsc/src/common
90 7
main.ts
in lsif/src
85 5
args.ts
in sqlite/src
82 1
compressStore.ts
in sqlite/src
70 5
package.ts
in tsc/src/npm
64 5
exportMonikers.ts
in tsc/src/npm
61 5
args.ts
in npm/src
59 1
package.ts
in npm/src
59 5
main.ts
in tooling/src
59 2
writer.ts
in npm/src/common
58 3
importMonikers.ts
in tsc/src/npm
58 1
command.ts
in tooling/src
56 3
paths.ts
in npm/src
48 5
paths.ts
in tsc/src/common
48 5
args.ts
in tooling/src
38 1
moniker.ts
in npm/src/common
37 5
moniker.ts
in tsc/src/common
37 5
protocol.compress.ts
in sqlite/src
31 -
json.ts
in tsc/src/emitters
28 -
lsif-repository-tests.yml
in build/azure-pipelines
26 -
build.yml
in build/azure-pipelines/win32
25 -
azure-pipelines.yml
in root
24 -
inserter.ts
in sqlite/src
23 2
build.yml
in build/azure-pipelines/linux
21 -
writerMessages.ts
in tsc/src/common
21 -
build.yml
in build/azure-pipelines/index
18 -
emitter.ts
in tsc/src/emitters
14 -
line.ts
in tsc/src/emitters
13 -
main.ts
in protocol/src
7 1
is.ts
in tsc/src/common
6 2
Files With Most Units (Top 20)
File# lines# units
lsif.ts
in tsc/src
3404 349
protocol.ts
in protocol/src
1333 111
blobStore.ts
in sqlite/src
908 63
compress.ts
in sqlite/src
780 61
graph.ts
in tsc/src/common
489 46
main.ts
in tsc/src
717 41
typescripts.ts
in tsc/src
385 39
linkedMap.ts
in tsc/src/common
489 20
main.ts
in npm/src
367 19
graphStore.ts
in sqlite/src
284 19
connection.ts
in tsc/src/common
180 11
typings.ts
in tsc/src
194 9
store.ts
in sqlite/src
121 8
args.ts
in tsc/src
253 8
writerWorker.ts
in tsc/src/common
90 7
writer.ts
in tsc/src/common
112 6
main.ts
in lsif/src
85 5
moniker.ts
in npm/src/common
37 5
package.ts
in npm/src
59 5
paths.ts
in npm/src
48 5
Files With Long Lines (Top 20)

There are 24 files with lines longer than 120 characters. In total, there are 357 long lines.

File# lines# units# long lines
lsif.ts
in tsc/src
3404 349 137
compress.ts
in sqlite/src
780 61 50
protocol.ts
in protocol/src
1333 111 36
blobStore.ts
in sqlite/src
908 63 30
main.ts
in tsc/src
717 41 22
connection.ts
in tsc/src/common
180 11 15
graphStore.ts
in sqlite/src
284 19 12
typescripts.ts
in tsc/src
385 39 9
graph.ts
in tsc/src/common
489 46 8
validate.ts
in tooling/src
232 5 7
args.ts
in tsc/src
253 8 7
main.ts
in npm/src
367 19 6
importMonikers.ts
in tsc/src/npm
58 1 3
graphSON.ts
in tsc/src/emitters
261 2 2
vis.ts
in tsc/src/emitters
100 2 2
package.ts
in tsc/src/npm
64 5 2
typings.ts
in tsc/src
194 9 2
args.ts
in npm/src
59 1 1
package.ts
in npm/src
59 5 1
inserter.ts
in sqlite/src
23 2 1