microsoft / vscode-pull-request-github
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 142 files with 24,795 lines of code.
    • 3 very long files (3,812 lines of code)
    • 11 long files (8,365 lines of code)
    • 17 medium size files (5,597 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,415 lines of code)
    • 88 very small files (3,606 lines of code)
15% | 33% | 22% | 13% | 14%
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
ts18% | 32% | 22% | 11% | 14%
gql0% | 100% | 0% | 0% | 0%
css0% | 71% | 0% | 23% | 5%
tsx0% | 0% | 48% | 39% | 12%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/github30% | 42% | 20% | 4% | 1%
src/issues31% | 20% | 21% | 10% | 16%
src/view0% | 33% | 33% | 12% | 20%
webviews/editorWebview0% | 94% | 0% | 0% | 5%
src0% | 61% | 20% | 0% | 17%
src/common0% | 35% | 13% | 21% | 30%
webviews/components0% | 0% | 63% | 28% | 7%
webviews/common0% | 0% | 0% | 75% | 24%
src/gitProviders0% | 0% | 0% | 57% | 42%
webviews/createPullRequestView0% | 0% | 0% | 68% | 31%
src/api0% | 0% | 0% | 100% | 0%
webviews/activityBarView0% | 0% | 0% | 62% | 37%
ROOT0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
src/env0% | 0% | 0% | 0% | 100%
src/authentication0% | 0% | 0% | 0% | 100%
src/integrations0% | 0% | 0% | 0% | 100%
common0% | 0% | 0% | 0% | 100%
scripts/ci0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
folderRepositoryManager.ts
in src/github
1701 76
pullRequestModel.ts
in src/github
1085 55
issueFeatureRegistrar.ts
in src/issues
1026 31
queries.gql
in src/github
940 -
utils.ts
in src/github
854 72
reviewManager.ts
in src/view
850 36
index.css
in webviews/editorWebview
821 -
githubRepository.ts
in src/github
777 33
pullRequestOverview.ts
in src/github
758 37
commands.ts
in src
748 9
utils.ts
in src/common
693 27
reviewCommentController.ts
in src/view
672 30
util.ts
in src/issues
666 25
graphql.ts
in src/github
586 1
stateManager.ts
in src/issues
479 22
pullRequestCommentController.ts
in src/view
470 29
fileChangeNode.ts
in src/view/treeNodes
469 19
activityBarViewProvider.ts
in src/github
434 16
comment.tsx
in webviews/components
367 5
merge.tsx
in webviews/components
366 5
pullRequestNode.ts
in src/view/treeNodes
352 9
createPRViewProvider.ts
in src/github
350 13
issueOverview.ts
in src/github
337 23
pullRequestGitHelper.ts
in src/github
300 15
diffHunk.ts
in src/common
264 8
credentials.ts
in src/github
259 21
extension.ts
in src
255 6
issueModel.ts
in src/github
239 19
categoryNode.ts
in src/view/treeNodes
228 3
timeline.tsx
in webviews/components
217 1
currentIssue.ts
in src/issues
211 17
context.tsx
in webviews/common
187 3
prsTreeDataProvider.ts
in src/view
186 11
issueCompletionProvider.ts
in src/issues
184 4
repositoriesManager.ts
in src/github
183 16
sidebar.tsx
in webviews/components
172 2
issuesView.ts
in src/issues
164 2
createContext.ts
in webviews/common
164 1
vslsguest.ts
in src/gitProviders
160 16
uri.ts
in src/common
157 10
protocol.ts
in src/common
154 8
app.tsx
in webviews/createPullRequestView
153 5
compareChangesTreeDataProvider.ts
in src/view
152 11
common.css
in webviews/common
147 -
header.tsx
in webviews/components
143 2
interface.ts
in src/github
141 -
api1.ts
in src/api
134 6
prChangesTreeDataProvider.ts
in src/view
128 12
createPullRequestHelper.ts
in src/view
124 4
index.css
in webviews/activityBarView
122 -
Files With Most Units (Top 20)
File# lines# units
folderRepositoryManager.ts
in src/github
1701 76
utils.ts
in src/github
854 72
pullRequestModel.ts
in src/github
1085 55
pullRequestOverview.ts
in src/github
758 37
reviewManager.ts
in src/view
850 36
githubRepository.ts
in src/github
777 33
issueFeatureRegistrar.ts
in src/issues
1026 31
reviewCommentController.ts
in src/view
672 30
pullRequestCommentController.ts
in src/view
470 29
utils.ts
in src/common
693 27
util.ts
in src/issues
666 25
issueOverview.ts
in src/github
337 23
stateManager.ts
in src/issues
479 22
credentials.ts
in src/github
259 21
issueModel.ts
in src/github
239 19
fileChangeNode.ts
in src/view/treeNodes
469 19
currentIssue.ts
in src/issues
211 17
vslsguest.ts
in src/gitProviders
160 16
activityBarViewProvider.ts
in src/github
434 16
repositoriesManager.ts
in src/github
183 16
Files With Long Lines (Top 20)

There are 50 files with lines longer than 120 characters. In total, there are 180 long lines.

File# lines# units# long lines
folderRepositoryManager.ts
in src/github
1701 76 20
common.ts
in src/github
43 - 13
createPRViewProvider.ts
in src/github
350 13 13
issueFeatureRegistrar.ts
in src/issues
1026 31 11
reviewManager.ts
in src/view
850 36 10
utils.ts
in src/github
854 72 8
fileChangeNode.ts
in src/view/treeNodes
469 19 7
extension.ts
in src
255 6 6
app.tsx
in webviews/createPullRequestView
153 5 6
commands.ts
in src
748 9 5
pullRequestModel.ts
in src/github
1085 55 5
util.ts
in src/issues
666 25 5
pullRequestCommentControllerRegistry.ts
in src/view
85 6 5
header.tsx
in webviews/components
143 2 5
activityBarViewProvider.ts
in src/github
434 16 4
credentials.ts
in src/github
259 21 4
githubRepository.ts
in src/github
777 33 4
pullRequestOverview.ts
in src/github
758 37 3
pullRequestCommentController.ts
in src/view
470 29 3
reviewCommentController.ts
in src/view
672 30 3