microsoft / vscode-cosmosdb
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 148 files with 16,034 lines of code.
    • 2 very long files (7,471 lines of code)
    • 1 long files (577 lines of code)
    • 7 medium size files (2,063 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,698 lines of code)
    • 125 very small files (4,225 lines of code)
46% | 3% | 12% | 10% | 26%
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
html100% | 0% | 0% | 0% | 0%
ts14% | 5% | 21% | 17% | 41%
g40% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT98% | 0% | 0% | 0% | 1%
src/mongo31% | 12% | 33% | 9% | 13%
src/tree0% | 0% | 51% | 18% | 30%
src/postgres0% | 0% | 11% | 14% | 74%
src/commands0% | 0% | 0% | 66% | 33%
src0% | 0% | 0% | 55% | 44%
src/utils0% | 0% | 0% | 32% | 67%
src/docdb0% | 0% | 0% | 14% | 85%
src/graph0% | 0% | 0% | 0% | 100%
grammar0% | 0% | 0% | 0% | 100%
build0% | 0% | 0% | 0% | 100%
src/table0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
NOTICE.html
in root
6088 -
mongoParser.ts
in src/mongo/grammar
1383 114
schemaService.ts
in src/mongo/services
577 16
MongoScrapbook.ts
in src/mongo
411 28
completionItemProvider.ts
in src/mongo/services
388 32
AttachedAccountsTreeItem.ts
in src/tree
358 30
MongoCollectionTreeItem.ts
in src/mongo/tree
248 27
PostgresServerSkuStep.ts
in src/postgres/commands/createPostgresServer/steps
236 5
mongoLexer.ts
in src/mongo/grammar
217 8
MongoDatabaseTreeItem.ts
in src/mongo/tree
205 19
PostgresServerTreeItem.ts
in src/postgres/tree
191 14
registerMongoCommands.ts
in src/mongo
178 11
extension.ts
in src
138 3
importDocuments.ts
in src/commands
136 5
InteractiveChildProcess.ts
in src/utils
136 12
MongoShell.ts
in src/mongo
129 9
SubscriptionTreeItem.ts
in src/tree
126 7
DatabasesFileSystem.ts
in src
117 11
findTreeItem.ts
in src/commands/api
116 2
DocDBDatabaseTreeItemBase.ts
in src/docdb/tree
115 13
getClientConfig.ts
in src/postgres
108 1
pickTreeItem.ts
in src/commands/api
105 3
MongoAccountTreeItem.ts
in src/mongo/tree
103 7
DocDBDocumentsTreeItem.ts
in src/docdb/tree
100 14
DocDBDocumentTreeItem.ts
in src/docdb/tree
99 14
validateIdentifier.ts
in src/postgres/commands/createPostgresQuery
98 1
PostgresDatabaseTreeItem.ts
in src/postgres/tree
92 10
DatabaseAccountTreeItemInternal.ts
in src/commands/api
88 9
PostgresServerCreateStep.ts
in src/postgres/commands/createPostgresServer/steps
86 7
AzureDBExperiences.ts
in src
85 7
registerDocDBCommands.ts
in src/docdb
83 5
vscodeUtils.ts
in src/utils
82 9
mongoScript.ts
in src/mongo/services
81 5
DocDBAccountTreeItemBase.ts
in src/docdb/tree
74 8
DocDBStoredProceduresTreeItem.ts
in src/docdb/tree
73 10
g4
mongo.g4
in grammar
72 -
MongoDocumentTreeItem.ts
in src/mongo/tree
71 10
DocDBCollectionTreeItem.ts
in src/docdb/tree
69 12
GraphTreeItem.ts
in src/graph/tree
68 7
GraphCollectionTreeItem.ts
in src/graph/tree
65 11
languageService.ts
in src/mongo/services
65 5
AzureDBAPIStep.ts
in src/tree
65 4
constants.ts
in src
64 4
postgresConnectionStrings.ts
in src/postgres
63 5
mongoConnectionStrings.ts
in src/mongo
62 5
registerPostgresCommands.ts
in src/postgres/commands
62 3
visitors.ts
in src/mongo/grammar
60 2
configurePostgresFirewall.ts
in src/postgres/commands
58 4
MongoCodeLensProvider.ts
in src/mongo/services
57 3
DocDBStoredProcedureTreeItem.ts
in src/docdb/tree
55 11
Files With Most Units (Top 20)
File# lines# units
mongoParser.ts
in src/mongo/grammar
1383 114
completionItemProvider.ts
in src/mongo/services
388 32
AttachedAccountsTreeItem.ts
in src/tree
358 30
MongoScrapbook.ts
in src/mongo
411 28
MongoCollectionTreeItem.ts
in src/mongo/tree
248 27
MongoDatabaseTreeItem.ts
in src/mongo/tree
205 19
schemaService.ts
in src/mongo/services
577 16
DocDBDocumentTreeItem.ts
in src/docdb/tree
99 14
DocDBDocumentsTreeItem.ts
in src/docdb/tree
100 14
PostgresServerTreeItem.ts
in src/postgres/tree
191 14
DocDBDatabaseTreeItemBase.ts
in src/docdb/tree
115 13
DocDBCollectionTreeItem.ts
in src/docdb/tree
69 12
InteractiveChildProcess.ts
in src/utils
136 12
DatabasesFileSystem.ts
in src
117 11
DocDBStoredProcedureTreeItem.ts
in src/docdb/tree
55 11
GraphCollectionTreeItem.ts
in src/graph/tree
65 11
registerMongoCommands.ts
in src/mongo
178 11
DocDBStoredProceduresTreeItem.ts
in src/docdb/tree
73 10
MongoDocumentTreeItem.ts
in src/mongo/tree
71 10
PostgresDatabaseTreeItem.ts
in src/postgres/tree
92 10
Files With Long Lines (Top 20)

There are 103 files with lines longer than 120 characters. In total, there are 716 long lines.

File# lines# units# long lines
NOTICE.html
in root
6088 - 306
schemaService.ts
in src/mongo/services
577 16 36
MongoScrapbook.ts
in src/mongo
411 28 25
extension.ts
in src
138 3 18
AttachedAccountsTreeItem.ts
in src/tree
358 30 17
SubscriptionTreeItem.ts
in src/tree
126 7 17
MongoDatabaseTreeItem.ts
in src/mongo/tree
205 19 13
completionItemProvider.ts
in src/mongo/services
388 32 12
registerMongoCommands.ts
in src/mongo
178 11 11
registerDocDBCommands.ts
in src/docdb
83 5 10
MongoCollectionTreeItem.ts
in src/mongo/tree
248 27 10
AzureDBExperiences.ts
in src
85 7 9
PostgresServerTreeItem.ts
in src/postgres/tree
191 14 8
findTreeItem.ts
in src/commands/api
116 2 7
pickTreeItem.ts
in src/commands/api
105 3 7
importDocuments.ts
in src/commands
136 5 6
mongoScript.ts
in src/mongo/services
81 5 6
configurePostgresFirewall.ts
in src/postgres/commands
58 4 6
enterPostgresCredentials.ts
in src/postgres/commands
43 3 6
PostgresDatabaseTreeItem.ts
in src/postgres/tree
92 10 6