microsoft / node-diagnostic-channel
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 22 files with 1,273 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (230 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (389 lines of code)
    • 18 very small files (654 lines of code)
0% | 0% | 18% | 30% | 51%
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
ts0% | 0% | 19% | 33% | 47%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/diagnostic-channel-publishers/src0% | 0% | 25% | 30% | 43%
src/diagnostic-channel/src0% | 0% | 0% | 70% | 29%
ROOT0% | 0% | 0% | 0% | 100%
src/diagnostic-channel-publishers0% | 0% | 0% | 0% | 100%
src/subs/mongodb-sub0% | 0% | 0% | 0% | 100%
src/subs/mysql-sub0% | 0% | 0% | 0% | 100%
src/subs/redis-sub0% | 0% | 0% | 0% | 100%
sample0% | 0% | 0% | 0% | 100%
src/subs/bunyan-sub0% | 0% | 0% | 0% | 100%
src/subs/console-sub0% | 0% | 0% | 0% | 100%
Longest Files (Top 22)
File# lines# units
pg.pub.ts
in src/diagnostic-channel-publishers/src
230 3
mongodb.pub.ts
in src/diagnostic-channel-publishers/src
161 6
winston.pub.ts
in src/diagnostic-channel-publishers/src
115 6
channel.ts
in src/diagnostic-channel/src
113 9
gulpfile.js
in root
82 4
mysql.pub.ts
in src/diagnostic-channel-publishers/src
78 -
azure-coretracing.pub.ts
in src/diagnostic-channel-publishers/src
72 8
tedious.pub.ts
in src/diagnostic-channel-publishers/src
52 -
console.pub.ts
in src/diagnostic-channel-publishers/src
51 4
patchRequire.ts
in src/diagnostic-channel/src
48 1
index.ts
in src/diagnostic-channel-publishers/src
40 1
mongodb-core.pub.ts
in src/diagnostic-channel-publishers/src
31 2
bunyan.pub.ts
in src/diagnostic-channel-publishers/src
27 2
copyTestAssets.js
in src/diagnostic-channel-publishers
23 -
mongodb.sub.ts
in src/subs/mongodb-sub
22 -
mysql.sub.ts
in src/subs/mysql-sub
22 -
redis.pub.ts
in src/diagnostic-channel-publishers/src
21 -
pg-pool.pub.ts
in src/diagnostic-channel-publishers/src
20 2
redis.sub.ts
in src/subs/redis-sub
19 -
index.ts
in sample
17 -
bunyan.sub.ts
in src/subs/bunyan-sub
17 -
console.sub.ts
in src/subs/console-sub
12 -
Files With Most Units (Top 12)
File# lines# units
channel.ts
in src/diagnostic-channel/src
113 9
azure-coretracing.pub.ts
in src/diagnostic-channel-publishers/src
72 8
mongodb.pub.ts
in src/diagnostic-channel-publishers/src
161 6
winston.pub.ts
in src/diagnostic-channel-publishers/src
115 6
gulpfile.js
in root
82 4
console.pub.ts
in src/diagnostic-channel-publishers/src
51 4
pg.pub.ts
in src/diagnostic-channel-publishers/src
230 3
bunyan.pub.ts
in src/diagnostic-channel-publishers/src
27 2
mongodb-core.pub.ts
in src/diagnostic-channel-publishers/src
31 2
pg-pool.pub.ts
in src/diagnostic-channel-publishers/src
20 2
index.ts
in src/diagnostic-channel-publishers/src
40 1
patchRequire.ts
in src/diagnostic-channel/src
48 1
Files With Long Lines (Top 4)

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

File# lines# units# long lines
mongodb.pub.ts
in src/diagnostic-channel-publishers/src
161 6 4
azure-coretracing.pub.ts
in src/diagnostic-channel-publishers/src
72 8 2
mysql.pub.ts
in src/diagnostic-channel-publishers/src
78 - 1
mysql.sub.ts
in src/subs/mysql-sub
22 - 1