microsoft / opensource-management-portal
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 533 files with 54,605 lines of code.
    • 3 very long files (3,315 lines of code)
    • 11 long files (6,671 lines of code)
    • 60 medium size files (18,900 lines of codeclsfd_ftr_w_mp_ins)
    • 82 small files (11,557 lines of code)
    • 377 very small files (14,162 lines of code)
6% | 12% | 34% | 21% | 25%
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
ts7% | 14% | 33% | 21% | 22%
pug0% | 0% | 35% | 21% | 43%
css0% | 0% | 77% | 22% | 0%
less0% | 0% | 99% | 0% | <1%
js0% | 0% | 34% | 0% | 65%
scss0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
business42% | 17% | 18% | 12% | 10%
lib0% | 17% | 44% | 21% | 16%
routes0% | 27% | 25% | 24% | 22%
jobs0% | 16% | 52% | 25% | 6%
features0% | 53% | 0% | 25% | 21%
api0% | 13% | 21% | 27% | 38%
views0% | 0% | 34% | 21% | 43%
entities0% | 0% | 53% | 17% | 29%
default-assets-package0% | 0% | 99% | 0% | <1%
middleware0% | 0% | 22% | 31% | 45%
user0% | 0% | 98% | 0% | 1%
ROOT0% | 0% | 81% | 17% | 1%
webhooks0% | 0% | 30% | 26% | 43%
interfaces0% | 0% | 0% | 22% | 77%
github0% | 0% | 0% | 82% | 17%
config0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
repository.ts
in business
1245 74
index.ts
in business/operations
1046 49
organization.ts
in business
1024 86
queryCache.ts
in business
810 47
repositories.ts
in jobs/reports
707 33
table.ts
in lib/entityMetadataProvider
664 49
newRepositoryLockdown.ts
in features
590 12
index.ts
in routes/org/team
588 5
repos.ts
in routes/org
579 27
orgAdmin.ts
in routes
565 10
microsoftGraphProvider.ts
in lib/graphProvider
552 26
postgres.ts
in lib/entityMetadataProvider
545 45
createRepo.ts
in api
536 6
team.ts
in business
535 46
organizations.ts
in jobs/reports
499 27
initialize.ts
in middleware
487 9
tableLinkProvider.ts
in lib/linkProviders/table
483 24
core.ts
in lib/github
461 27
repoWorkflowEngine.ts
in routes/org
461 20
task.ts
in jobs/refreshQueryCache
460 12
oss.css
in default-assets-package/resources/repos-css
441 -
account.ts
in business
439 34
teams.ts
in jobs/reports
425 15
task.ts
in jobs/reports
423 14
pug
index.pug
in views/org/team
423 -
restApi.ts
in lib/github
422 18
index.ts
in user
406 28
endpointEntities.ts
in lib/github
384 3
undo.ts
in routes
383 11
teamJoinApproval.ts
in entities/teamJoinApproval
373 6
postgresLinkProvider.ts
in lib/linkProviders/postgres
357 15
tableEncryption.ts
in lib/entityMetadataProvider
355 26
pug
index.pug
in views/contributions
350 -
yeti-fixed.less
in default-assets-package/resources/less
342 -
links.ts
in api/people
341 3
collections.ts
in lib/github
330 7
repositoryMetadata.ts
in entities/repositoryMetadata
329 2
newOrgRepo.ts
in api/client
328 5
app.ts
in routes/administration
325 4
utils.ts
in root
315 30
cosmosdb.ts
in lib/caching
311 14
organizationSetting.ts
in entities/organizationSettings
305 7
pug
repo.pug
in views/repos
302 -
pug
index.pug
in views/repos
293 -
encryption.ts
in lib
291 24
transitional.ts
in root
282 32
aggregate.ts
in user
282 23
pug
permissions.pug
in views/repos
281 -
blob.ts
in lib/caching
278 13
pug
index.pug
in views/people
275 -
Files With Most Units (Top 20)
File# lines# units
organization.ts
in business
1024 86
repository.ts
in business
1245 74
index.ts
in business/operations
1046 49
table.ts
in lib/entityMetadataProvider
664 49
queryCache.ts
in business
810 47
team.ts
in business
535 46
postgres.ts
in lib/entityMetadataProvider
545 45
account.ts
in business
439 34
repositories.ts
in jobs/reports
707 33
postgresLink.ts
in lib/linkProviders/postgres
161 33
tableLink.ts
in lib/linkProviders/table
155 32
transitional.ts
in root
282 32
memoryLink.ts
in lib/linkProviders/memory
154 31
utils.ts
in root
315 30
index.ts
in user
406 28
organizations.ts
in jobs/reports
499 27
core.ts
in lib/github
461 27
repos.ts
in routes/org
579 27
tableEncryption.ts
in lib/entityMetadataProvider
355 26
microsoftGraphProvider.ts
in lib/graphProvider
552 26
Files With Long Lines (Top 20)

There are 305 files with lines longer than 120 characters. In total, there are 1827 long lines.

File# lines# units# long lines
repository.ts
in business
1245 74 56
newRepositoryLockdown.ts
in features
590 12 54
table.ts
in lib/entityMetadataProvider
664 49 41
pug
index.pug
in views/repos
293 - 35
index.ts
in business/operations
1046 49 33
pug
index.pug
in views/org/team
423 - 33
task.ts
in jobs/refreshQueryCache
460 12 32
organization.ts
in business
1024 86 30
repos.ts
in routes/org
579 27 30
collections.ts
in lib/github
330 7 27
pug
index.pug
in views/people
275 - 26
initialize.ts
in middleware
487 9 25
tableEncryption.ts
in lib/entityMetadataProvider
355 26 24
queryCache.ts
in business
810 47 23
pug
collaborators.pug
in views/org/team/repos/repo
153 - 23
pug
index.pug
in views/contributions
350 - 21
pug
newrepolockdown.pug
in views/email
115 - 21
pug
requestRepo.pug
in views/org
194 - 21
repositories.ts
in jobs/reports
707 33 20
undo.ts
in routes
383 11 20