microsoft / Oryx
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 495 files with 26,777 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,069 lines of code)
    • 30 medium size files (7,969 lines of codeclsfd_ftr_w_mp_ins)
    • 44 small files (6,008 lines of code)
    • 419 very small files (11,731 lines of code)
0% | 3% | 29% | 22% | 43%
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
cs0% | 7% | 21% | 20% | 50%
Dockerfile0% | 0% | 45% | 28% | 26%
go0% | 0% | 30% | 25% | 44%
tpl0% | 0% | 55% | 22% | 22%
yml0% | 0% | 19% | 21% | 59%
yaml0% | 0% | 100% | 0% | 0%
toml0% | 0% | 0% | 0% | 100%
targets0% | 0% | 0% | 0% | 100%
proj0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/BuildScriptGenerator0% | 12% | 28% | 12% | 47%
images/runtime0% | 0% | 46% | 25% | 28%
src/BuildScriptGeneratorCli0% | 0% | 27% | 23% | 48%
src/startupscriptgenerator0% | 0% | 28% | 24% | 47%
images/build0% | 0% | 42% | 41% | 16%
src/Detector0% | 0% | 20% | 26% | 52%
vsts/pipelines0% | 0% | 19% | 21% | 59%
build0% | 0% | 100% | 0% | 0%
build/tools0% | 0% | 0% | 58% | 41%
src/BuildScriptGenerator.Common0% | 0% | 0% | 42% | 57%
src/Oryx.Common0% | 0% | 0% | 0% | 100%
src/CommonFiles0% | 0% | 0% | 0% | 100%
actions/oryx-dockerfile0% | 0% | 0% | 0% | 100%
build/detector0% | 0% | 0% | 0% | 100%
images/pack-builder0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
NodePlatform.cs
in src/BuildScriptGenerator/Node
545 20
PythonPlatform.cs
in src/BuildScriptGenerator/Python
524 23
BuildCommand.cs
in src/BuildScriptGeneratorCli/Commands
404 7
scriptgenerator.go
in src/startupscriptgenerator/src/node
371 17
DotnetCorePlatform.cs
in src/BuildScriptGenerator/DotNetCore
333 18
PrepareEnvironmentCommand.cs
in src/BuildScriptGeneratorCli/Commands
328 7
constants.yaml
in build
318 -
JavaPlatform.cs
in src/BuildScriptGenerator/Java
314 17
PhpPlatform.cs
in src/BuildScriptGenerator/Php
311 17
DefaultBuildScriptGenerator.cs
in src/BuildScriptGenerator
302 6
GlobalJsonSdkResolver.cs
in src/BuildScriptGenerator/DotNetCore
298 12
vso.focal.Dockerfile
in images/build/Dockerfiles
274 -
scriptgenerator.go
in src/startupscriptgenerator/src/python
270 9
7.2.Dockerfile
in images/runtime/php/7.2
255 -
7.3.Dockerfile
in images/runtime/php/7.3
255 -
vso.slim.Dockerfile
in images/build/Dockerfiles
253 -
NodeDetector.cs
in src/Detector/Node
248 9
7.4.Dockerfile
in images/runtime/php/7.4
242 -
8.0.Dockerfile
in images/runtime/php/8.0
242 -
8.1.Dockerfile
in images/runtime/php/8.1
242 -
7.3.Dockerfile
in images/runtime/php-fpm/7.3
234 -
tpl
PythonBashBuildSnippet.sh.tpl
in src/BuildScriptGenerator/Python
234 -
7.4.Dockerfile
in images/runtime/php-fpm/7.4
233 -
8.0.Dockerfile
in images/runtime/php-fpm/8.0
233 -
7.2.Dockerfile
in images/runtime/php-fpm/7.2
232 -
RubyPlatform.cs
in src/BuildScriptGenerator/Ruby
230 15
_buildTemplate.yml
in vsts/pipelines/templates
224 -
GolangPlatform.cs
in src/BuildScriptGenerator/Golang
221 15
PythonDetector.cs
in src/Detector/Python
221 4
7.0.Dockerfile
in images/runtime/php/7.0
219 -
tpl
NodeBashBuildSnippet.sh.tpl
in src/BuildScriptGenerator/Node
219 -
_integrationJobTemplate.yml
in vsts/pipelines/templates
209 -
tpl
BaseBashBuildScript.sh.tpl
in src/BuildScriptGenerator
187 -
RubyDetector.cs
in src/Detector/Ruby
187 6
ltsVersions.Dockerfile
in images/build/Dockerfiles
183 -
ScriptBuilderExtensions.cs
in src/BuildScriptGenerator/DotNetCore
182 8
HugoDetector.cs
in src/Detector/Hugo
182 6
ltsVersions.buster.Dockerfile
in images/build/Dockerfiles
178 -
PlatformInstallerBase.cs
in src/BuildScriptGenerator
168 4
scriptgenerator.go
in src/startupscriptgenerator/src/dotnetcore
166 3
HugoPlatform.cs
in src/BuildScriptGenerator/Hugo
159 14
DefaultCompatiblePlatformDetector.cs
in src/BuildScriptGenerator
158 6
gitHubActions.Dockerfile
in images/build/Dockerfiles
149 -
ProcessHelper.cs
in src/BuildScriptGenerator.Common
148 4
ProcessHelper.cs
in build/tools/AutoUpdater
147 4
ProbeAndFindProjectFileProvider.cs
in src/Detector/DotNetCore/ProjectFileProviders
147 4
_releaseStepTemplate.yml
in vsts/pipelines/templates
147 -
CommandBase.cs
in src/BuildScriptGeneratorCli/Commands
142 7
ShellScriptBuilder.cs
in src/BuildScriptGenerator.Common
139 21
Program.cs
in build/tools/SharedCodeGenerator
136 6
Files With Most Units (Top 20)
File# lines# units
PythonPlatform.cs
in src/BuildScriptGenerator/Python
524 23
ShellScriptBuilder.cs
in src/BuildScriptGenerator.Common
139 21
NodePlatform.cs
in src/BuildScriptGenerator/Node
545 20
ShellScriptBuilder.cs
in build/tools/AutoUpdater
125 19
DotnetCorePlatform.cs
in src/BuildScriptGenerator/DotNetCore
333 18
JavaPlatform.cs
in src/BuildScriptGenerator/Java
314 17
PhpPlatform.cs
in src/BuildScriptGenerator/Php
311 17
scriptgenerator.go
in src/startupscriptgenerator/src/node
371 17
GolangPlatform.cs
in src/BuildScriptGenerator/Golang
221 15
RubyPlatform.cs
in src/BuildScriptGenerator/Ruby
230 15
HugoPlatform.cs
in src/BuildScriptGenerator/Hugo
159 14
GlobalJsonSdkResolver.cs
in src/BuildScriptGenerator/DotNetCore
298 12
logging.go
in src/startupscriptgenerator/src/common
94 12
ProjectFileHelpers.cs
in src/Detector/DotNetCore/ProjectFileProviders
110 10
NodeDetector.cs
in src/Detector/Node
248 9
frameworks.go
in src/startupscriptgenerator/src/python
98 9
scriptgenerator.go
in src/startupscriptgenerator/src/python
270 9
ScriptBuilderExtensions.cs
in src/BuildScriptGenerator/DotNetCore
182 8
LocalSourceRepo.cs
in src/BuildScriptGenerator/SourceRepo
91 8
fsvalidation.go
in src/startupscriptgenerator/src/common
71 8
Files With Long Lines (Top 20)

There are 92 files with lines longer than 120 characters. In total, there are 347 long lines.

File# lines# units# long lines
constants.yaml
in build
318 - 15
tpl
PythonBashBuildSnippet.sh.tpl
in src/BuildScriptGenerator/Python
234 - 14
DotNetCoreRunTimeVersions.cs
in src/BuildScriptGenerator/DotNetCore
32 - 11
PhpVersions.cs
in src/BuildScriptGenerator
37 - 11
7.4.Dockerfile
in images/runtime/php-fpm/7.4
233 - 9
8.0.Dockerfile
in images/runtime/php-fpm/8.0
233 - 9
8.1.Dockerfile
in images/runtime/php/8.1
242 - 9
PlatformInstallerBase.cs
in src/BuildScriptGenerator
168 4 9
OptionsServiceCollectionExtensions.cs
in src/BuildScriptGeneratorCli/Options
44 1 9
vso.focal.Dockerfile
in images/build/Dockerfiles
274 - 8
7.2.Dockerfile
in images/runtime/php-fpm/7.2
232 - 8
7.3.Dockerfile
in images/runtime/php-fpm/7.3
234 - 8
7.4.Dockerfile
in images/runtime/php/7.4
242 - 8
8.0.Dockerfile
in images/runtime/php/8.0
242 - 8
main.go
in src/startupscriptgenerator/src/python
113 1 8
_buildTemplate.yml
in vsts/pipelines/templates
224 - 8
7.2.Dockerfile
in images/runtime/php/7.2
255 - 7
7.3.Dockerfile
in images/runtime/php/7.3
255 - 7
GitHubRunnersCachedImagesCheckCommand.cs
in build/tools/AutoUpdater
129 4 6
ltsVersions.Dockerfile
in images/build/Dockerfiles
183 - 6