microsoft / tsdoc
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 96 files with 20,132 lines of code.
    • 3 very long files (12,567 lines of code)
    • 0 long files (0 lines of code)
    • 8 medium size files (2,606 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,180 lines of code)
    • 68 very small files (2,779 lines of code)
62% | 0% | 12% | 10% | 13%
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
yaml95% | 0% | 3% | 0% | <1%
ts37% | 0% | 12% | 24% | 25%
tsx0% | 0% | 75% | 0% | 24%
js0% | 0% | 82% | 0% | 17%
hbs0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
common/config99% | 0% | 0% | 0% | <1%
tsdoc/src44% | 0% | 5% | 23% | 27%
playground/src0% | 0% | 74% | 0% | 25%
tsdoc-config/src0% | 0% | 99% | 0% | <1%
common/scripts0% | 0% | 84% | 0% | 15%
common/autoinstallers0% | 0% | 100% | 0% | 0%
api-demo/src0% | 0% | 0% | 64% | 35%
eslint-plugin/src0% | 0% | 0% | 66% | 33%
spec/code-snippets0% | 0% | 0% | 100% | 0%
playground/public0% | 0% | 0% | 0% | 100%
api-demo/assets0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
pnpm-lock.yaml
in common/config/rush
9285 -
NodeParser.ts
in tsdoc/src/parser
2085 40
DeclarationReference.ts
in tsdoc/src/beta
1197 116
TSDocConfigFile.ts
in tsdoc-config/src
466 34
install-run.js
in common/scripts
381 19
TSDocEmitter.ts
in tsdoc/src/emitters
375 12
pnpm-lock.yaml
in common/autoinstallers/rush-prettier
330 -
CodeEditor.tsx
in playground/src
284 13
DocNodeSyntaxStyler.ts
in playground/src/SyntaxStyler
282 6
PlaygroundView.tsx
in playground/src
266 14
DocHtmlView.tsx
in playground/src
222 5
advancedDemo.ts
in api-demo/src
189 6
StandardTags.ts
in tsdoc/src/details
169 1
DocMemberReference.ts
in tsdoc/src/nodes
156 7
TSDocMessageId.ts
in tsdoc/src/parser
150 -
LineExtractor.ts
in tsdoc/src/parser
132 1
DocParamBlock.ts
in tsdoc/src/nodes
129 4
DocHtmlAttribute.ts
in tsdoc/src/nodes
127 8
DocLinkTag.ts
in tsdoc/src/nodes
127 6
DocFencedCode.ts
in tsdoc/src/nodes
120 5
Tokenizer.ts
in tsdoc/src/parser
119 5
StringChecks.ts
in tsdoc/src/parser
116 10
TokenReader.ts
in tsdoc/src/parser
115 13
index.ts
in eslint-plugin/src
112 1
TSDocConfiguration.ts
in tsdoc/src/configuration
109 16
DocDeclarationReference.ts
in tsdoc/src/nodes
106 7
DocHtmlStartTag.ts
in tsdoc/src/nodes
103 8
DeclarationReferences.ts
in spec/code-snippets
101 14
TabPane.tsx
in playground/src
93 3
hbs
index.hbs
in playground/public
92 -
PlainTextEmitter.ts
in tsdoc/src/emitters
89 3
DocNodeManager.ts
in tsdoc/src/configuration
87 5
ParagraphSplitter.ts
in tsdoc/src/parser
85 4
DocExcerpt.ts
in tsdoc/src/nodes
84 4
DocMemberSelector.ts
in tsdoc/src/nodes
84 6
TextRange.ts
in tsdoc/src/parser
82 10
DocDomView.tsx
in playground/src
80 2
TrimSpacesTransform.ts
in tsdoc/src/transforms
74 1
DocHtmlEndTag.ts
in tsdoc/src/nodes
73 5
DocComment.ts
in tsdoc/src/nodes
71 8
TokenSequence.ts
in tsdoc/src/parser
70 10
install-run-rush.js
in common/scripts
69 3
DocInlineTagBase.ts
in tsdoc/src/nodes
68 4
DocMemberIdentifier.ts
in tsdoc/src/nodes
66 6
ParserMessageLog.ts
in tsdoc/src/parser
57 5
DocErrorText.ts
in tsdoc/src/nodes
56 8
DocMemberSymbol.ts
in tsdoc/src/nodes
56 4
simpleDemo.ts
in api-demo/src
54 1
BuiltInDocNodes.ts
in tsdoc/src/nodes
54 1
DocNode.ts
in tsdoc/src/nodes
54 4
Files With Most Units (Top 20)
File# lines# units
DeclarationReference.ts
in tsdoc/src/beta
1197 116
NodeParser.ts
in tsdoc/src/parser
2085 40
TSDocConfigFile.ts
in tsdoc-config/src
466 34
install-run.js
in common/scripts
381 19
TSDocConfiguration.ts
in tsdoc/src/configuration
109 16
PlaygroundView.tsx
in playground/src
266 14
DeclarationReferences.ts
in spec/code-snippets
101 14
CodeEditor.tsx
in playground/src
284 13
TokenReader.ts
in tsdoc/src/parser
115 13
TSDocEmitter.ts
in tsdoc/src/emitters
375 12
StandardModifierTagSet.ts
in tsdoc/src/details
37 11
StringChecks.ts
in tsdoc/src/parser
116 10
TextRange.ts
in tsdoc/src/parser
82 10
TokenSequence.ts
in tsdoc/src/parser
70 10
DocComment.ts
in tsdoc/src/nodes
71 8
DocErrorText.ts
in tsdoc/src/nodes
56 8
DocHtmlAttribute.ts
in tsdoc/src/nodes
127 8
DocHtmlStartTag.ts
in tsdoc/src/nodes
103 8
DocParamCollection.ts
in tsdoc/src/nodes
44 8
DocDeclarationReference.ts
in tsdoc/src/nodes
106 7
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 12 long lines.

File# lines# units# long lines
pnpm-lock.yaml
in common/config/rush
9285 - 3
install-run.js
in common/scripts
381 19 3
npm-publish.yaml
in common/config/azure-pipelines
13 - 2
hbs
index.hbs
in playground/public
92 - 2
npm-republish.yaml
in common/config/azure-pipelines
11 - 1
install-run-rush.js
in common/scripts
69 3 1