microsoft / tsyringe
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 40 files with 1,100 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (448 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 39 very small files (652 lines of code)
0% | 0% | 40% | 0% | 59%
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% | 40% | 0% | 59%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 69% | 0% | 30%
src/decorators0% | 0% | 0% | 0% | 100%
src/providers0% | 0% | 0% | 0% | 100%
src/types0% | 0% | 0% | 0% | 100%
src/factories0% | 0% | 0% | 0% | 100%
Longest Files (Top 40)
File# lines# units
dependency-container.ts
in src
448 25
dependency-container.ts
in src/types
73 -
auto-injectable.ts
in src/decorators
58 2
lazy-helpers.ts
in src
52 4
injection-token.ts
in src/providers
46 4
reflection-helpers.ts
in src
36 2
registry-base.ts
in src
35 8
error-helpers.ts
in src
24 3
interceptors.ts
in src
24 -
predicate-aware-class-factory.ts
in src/factories
23 1
inject-all-with-transform.ts
in src/decorators
20 1
registry.ts
in src/decorators
18 1
provider.ts
in src/providers
18 1
scoped.ts
in src/decorators
16 1
index.ts
in src
16 -
instance-per-container-caching-factory.ts
in src/factories
15 1
inject-with-transform.ts
in src/decorators
14 1
instance-caching-factory.ts
in src/factories
13 1
class-provider.ts
in src/providers
11 1
singleton.ts
in src/decorators
10 1
factory-provider.ts
in src/providers
10 1
token-provider.ts
in src/providers
10 1
index.ts
in src/decorators
9 -
inject-all.ts
in src/decorators
9 1
injectable.ts
in src/decorators
9 1
index.ts
in src/providers
9 -
value-provider.ts
in src/providers
9 1
inject.ts
in src/decorators
8 1
index.ts
in src/factories
8 -
index.ts
in src/types
8 -
lifecycle.ts
in src/types
7 -
interceptor-options.ts
in src/types
5 -
registration-options.ts
in src/types
5 -
resolution-context.ts
in src
4 -
constructor.ts
in src/types
4 -
dictionary.ts
in src/types
4 -
transform.ts
in src/types
4 -
factory-function.ts
in src/factories
3 -
registry.ts
in src
3 -
frequency.ts
in src/types
2 -
Files With Most Units (Top 20)
File# lines# units
dependency-container.ts
in src
448 25
registry-base.ts
in src
35 8
lazy-helpers.ts
in src
52 4
injection-token.ts
in src/providers
46 4
error-helpers.ts
in src
24 3
auto-injectable.ts
in src/decorators
58 2
reflection-helpers.ts
in src
36 2
inject-all-with-transform.ts
in src/decorators
20 1
inject-all.ts
in src/decorators
9 1
inject-with-transform.ts
in src/decorators
14 1
inject.ts
in src/decorators
8 1
injectable.ts
in src/decorators
9 1
registry.ts
in src/decorators
18 1
scoped.ts
in src/decorators
16 1
singleton.ts
in src/decorators
10 1
instance-caching-factory.ts
in src/factories
13 1
instance-per-container-caching-factory.ts
in src/factories
15 1
predicate-aware-class-factory.ts
in src/factories
23 1
class-provider.ts
in src/providers
11 1
factory-provider.ts
in src/providers
10 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
dependency-container.ts
in src
448 25 1