microsoft / PowerShellForGitHub
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 50 files with 23,558 lines of code.
    • 6 very long files (9,788 lines of code)
    • 10 long files (6,654 lines of code)
    • 16 medium size files (5,614 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (947 lines of code)
    • 12 very small files (555 lines of code)
41% | 28% | 23% | 4% | 2%
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
ps144% | 30% | 22% | 3% | 0%
ps1xml0% | 0% | 56% | 16% | 27%
psd10% | 0% | 93% | 0% | 6%
yaml0% | 0% | 0% | 0% | 100%
psm10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT46% | 31% | 20% | 2% | <1%
build/scripts0% | 0% | 71% | 28% | 0%
Formatters0% | 0% | 56% | 16% | 27%
build/pipelines/templates0% | 0% | 0% | 0% | 100%
build/pipelines0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
GitHubRepositories.ps1
in root
3147 -
GitHubBranches.ps1
in root
1753 -
GitHubGists.ps1
in root
1467 -
GitHubReleases.ps1
in root
1191 -
GitHubLabels.ps1
in root
1175 -
GitHubCore.ps1
in root
1055 -
GitHubConfiguration.ps1
in root
920 -
GitHubIssues.ps1
in root
919 -
GitHubTeams.ps1
in root
809 -
GitHubMilestones.ps1
in root
634 -
GitHubIssueComments.ps1
in root
617 -
Helpers.ps1
in root
582 -
GitHubReactions.ps1
in root
571 -
GitHubProjects.ps1
in root
560 -
GitHubProjectCards.ps1
in root
530 -
GitHubMiscellaneous.ps1
in root
512 -
GitHubAssignees.ps1
in root
492 -
GitHubContents.ps1
in root
470 -
Build-Wiki.ps1
in build/scripts
431 -
GitHubProjectColumns.ps1
in root
406 -
Telemetry.ps1
in root
401 -
GitHubPullRequests.ps1
in root
398 -
ConvertTo-NUnitXml.ps1
in build/scripts
392 -
GitHubGistComments.ps1
in root
373 -
GitHubUsers.ps1
in root
359 -
GitHubRepositoryTraffic.ps1
in root
357 -
GitHubGraphQl.ps1
in root
289 -
PowerShellForGitHub.psd1
in root
281 -
GitHubEvents.ps1
in root
259 -
GitHubAnalytics.ps1
in root
245 -
GitHubGists.Format.ps1xml
in Formatters
237 -
GitHubRepositories.Format.ps1xml
in Formatters
224 -
Write-SignConfigXml.ps1
in build/scripts
195 -
GitHubRepositoryForks.ps1
in root
184 -
GitHubOrganizations.ps1
in root
151 -
UpdateCheck.ps1
in root
146 -
Wait-RunningBuild.ps1
in build/scripts
138 -
GitHubReleases.Format.ps1xml
in Formatters
133 -
GitHubTeams.Format.ps1xml
in Formatters
96 -
azure-pipelines.ci.yaml
in build/pipelines
78 -
GitHubBranches.Format.ps1xml
in Formatters
73 -
GitHubGistComments.Format.ps1xml
in Formatters
53 -
run-unitTests.yaml
in build/pipelines/templates
53 -
prepare-release-internalOnly.yaml
in build/pipelines/templates
51 -
verify-testConfigSettingsHash.yaml
in build/pipelines/templates
41 -
run-staticAnalysis.yaml
in build/pipelines/templates
34 -
azure-pipelines.release.yaml
in build/pipelines
29 -
wait-runningBuild.yaml
in build/pipelines/templates
25 -
PSScriptAnalyzerSettings.psd1
in root
18 -
PowerShellForGitHub.psm1
in root
4 -
Files With Most Units (Top 0)
File# lines# units
Files With Long Lines (Top 20)

There are 38 files with lines longer than 120 characters. In total, there are 316 long lines.

File# lines# units# long lines
GitHubBranches.ps1
in root
1753 - 37
GitHubRepositories.ps1
in root
3147 - 35
GitHubConfiguration.ps1
in root
920 - 22
GitHubGists.ps1
in root
1467 - 21
GitHubCore.ps1
in root
1055 - 17
GitHubLabels.ps1
in root
1175 - 17
Helpers.ps1
in root
582 - 14
Build-Wiki.ps1
in build/scripts
431 - 14
Telemetry.ps1
in root
401 - 13
GitHubEvents.ps1
in root
259 - 12
GitHubReleases.ps1
in root
1191 - 11
GitHubReactions.ps1
in root
571 - 8
ConvertTo-NUnitXml.ps1
in build/scripts
392 - 8
GitHubIssueComments.ps1
in root
617 - 7
Wait-RunningBuild.ps1
in build/scripts
138 - 7
GitHubIssues.ps1
in root
919 - 6
GitHubMilestones.ps1
in root
634 - 6
Write-SignConfigXml.ps1
in build/scripts
195 - 6
GitHubProjects.ps1
in root
560 - 5
GitHubPullRequests.ps1
in root
398 - 5