microsoft / azure-pipelines-agent
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 473 files with 64,003 lines of code.
    • 3 very long files (3,454 lines of code)
    • 23 long files (14,660 lines of code)
    • 69 medium size files (22,982 lines of codeclsfd_ftr_w_mp_ins)
    • 76 small files (11,212 lines of code)
    • 302 very small files (11,695 lines of code)
5% | 22% | 35% | 17% | 18%
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
cs3% | 24% | 37% | 17% | 17%
ps143% | 0% | 7% | 14% | 34%
js0% | 0% | 35% | 23% | 40%
proj0% | 0% | 0% | 100% | 0%
html0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
psm10% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
ch0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/Misc43% | 0% | 7% | 14% | 35%
src/Agent.Listener9% | 38% | 25% | 8% | 17%
src/Agent.Plugins10% | 17% | 44% | 11% | 15%
src/Agent.Worker0% | 26% | 40% | 18% | 13%
src/Microsoft.VisualStudio.Services.Agent0% | 14% | 31% | 31% | 21%
src/Agent.Sdk0% | 10% | 43% | 21% | 24%
src/Agent.Service0% | 0% | 64% | 0% | 35%
release0% | 0% | 40% | 26% | 33%
src/Agent.PluginHost0% | 0% | 0% | 100% | 0%
src0% | 0% | 0% | 60% | 39%
tools/CredScanRegexes0% | 0% | 0% | 0% | 100%
tools/FindPipelinesUsingRetiredImages0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
dotnet-install.ps1
in src/Misc
1270 -
NativeWindowsServiceHelper.cs
in src/Agent.Listener/Configuration.Windows
1120 37
GitSourceProvider.cs
in src/Agent.Plugins
1064 24
GitSourceProvider.cs
in src/Agent.Worker/Build
997 15
JobDispatcher.cs
in src/Agent.Listener
797 18
ExecutionContext.cs
in src/Agent.Worker
754 35
SvnCommandManager.cs
in src/Agent.Worker/Build
713 23
TaskCommandExtension.cs
in src/Agent.Worker
710 18
TaskResources.g.cs
in src/Agent.Listener/DistributedTask.Pipelines
692 76
CommandSettings.cs
in src/Agent.Listener
683 67
SvnCliManager.cs
in src/Agent.Plugins
676 21
ConfigurationManager.cs
in src/Agent.Listener/Configuration
661 9
ContainerOperationProvider.cs
in src/Agent.Worker
645 10
TaskManager.cs
in src/Agent.Worker
640 13
TfsVCSourceProvider.cs
in src/Agent.Worker/Build
604 6
HostContext.cs
in src/Microsoft.VisualStudio.Services.Agent
604 17
TfsVCSourceProvider.cs
in src/Agent.Plugins
600 5
ConverterUtil.phases.cs
in src/Agent.Listener/DistributedTask.Pipelines/Yaml/TypeConverters
594 10
JobServerQueue.cs
in src/Microsoft.VisualStudio.Services.Agent
575 12
ConverterUtil.steps.cs
in src/Agent.Listener/DistributedTask.Pipelines/Yaml/TypeConverters
561 10
TrxResultReader.cs
in src/Agent.Worker/TestResults/Legacy
550 10
GitCliManager.cs
in src/Agent.Plugins
534 34
GitCommandManager.cs
in src/Agent.Worker/Build
525 33
DiagnosticLogManager.cs
in src/Agent.Worker
521 16
SelfUpdater.cs
in src/Agent.Listener
520 11
ProcessInvoker.cs
in src/Agent.Sdk
504 23
PipelineParser.cs
in src/Agent.Listener/DistributedTask.Pipelines/Yaml
498 15
TestRunPublisher.cs
in src/Agent.Worker/TestResults/Legacy
498 25
Constants.cs
in src/Microsoft.VisualStudio.Services.Agent
491 -
Variables.cs
in src/Agent.Worker
488 24
ConfigurationProvider.cs
in src/Agent.Listener/Configuration
486 34
JobExtension.cs
in src/Agent.Worker
483 3
TrackingManager.cs
in src/Agent.Worker/Build
476 20
Agent.cs
in src/Agent.Listener
472 8
TaskRunner.cs
in src/Agent.Worker
459 5
ReleaseJobExtension.cs
in src/Agent.Worker/Release
452 18
JobRunner.cs
in src/Agent.Worker
442 7
FileContainerServer.cs
in src/Agent.Worker/Build
429 10
LogPlugin.cs
in src/Agent.Sdk
427 15
BuildArtifactPluginV1.cs
in src/Agent.Plugins/BuildArtifact
419 9
NunitResultReader.cs
in src/Agent.Worker/TestResults/Legacy
419 10
LegacyPowerShellHandler.cs
in src/Agent.Worker/Handlers
415 12
IOUtil.cs
in src/Agent.Sdk/Util
411 17
FileContainerProvider.cs
in src/Agent.Plugins/Artifact
405 11
PipelineArtifactPluginV2.cs
in src/Agent.Plugins/PipelineArtifact
405 9
JenkinsArtifact.cs
in src/Agent.Worker/Release/Artifacts
399 12
MacOSAgentCredentialStore.cs
in src/Microsoft.VisualStudio.Services.Agent/AgentCredentialStore
384 6
TFCliManager.cs
in src/Agent.Plugins
380 21
TFCommandManager.cs
in src/Agent.Worker/Build
378 21
TeeCliManager.cs
in src/Agent.Plugins
376 23
Files With Most Units (Top 20)
File# lines# units
TaskResources.g.cs
in src/Agent.Listener/DistributedTask.Pipelines
692 76
CommandSettings.cs
in src/Agent.Listener
683 67
NativeWindowsServiceHelper.cs
in src/Agent.Listener/Configuration.Windows
1120 37
ExecutionContext.cs
in src/Agent.Worker
754 35
ConfigurationProvider.cs
in src/Agent.Listener/Configuration
486 34
GitCliManager.cs
in src/Agent.Plugins
534 34
GitCommandManager.cs
in src/Agent.Worker/Build
525 33
TestRunPublisher.cs
in src/Agent.Worker/TestResults/Legacy
498 25
GitSourceProvider.cs
in src/Agent.Plugins
1064 24
Variables.cs
in src/Agent.Worker
488 24
TeeCliManager.cs
in src/Agent.Plugins
376 23
ProcessInvoker.cs
in src/Agent.Sdk
504 23
TaskPlugin.cs
in src/Agent.Sdk
321 23
SvnCommandManager.cs
in src/Agent.Worker/Build
713 23
TeeCommandManager.cs
in src/Agent.Worker/Build
374 23
SvnCliManager.cs
in src/Agent.Plugins
676 21
TFCliManager.cs
in src/Agent.Plugins
380 21
TFCommandManager.cs
in src/Agent.Worker/Build
378 21
TrackingManager.cs
in src/Agent.Worker/Build
476 20
JobDispatcher.cs
in src/Agent.Listener
797 18
Files With Long Lines (Top 20)

There are 286 files with lines longer than 120 characters. In total, there are 3247 long lines.

File# lines# units# long lines
GitSourceProvider.cs
in src/Agent.Plugins
1064 24 152
GitSourceProvider.cs
in src/Agent.Worker/Build
997 15 118
dotnet-install.ps1
in src/Misc
1270 - 64
JobDispatcher.cs
in src/Agent.Listener
797 18 62
ContainerOperationProvider.cs
in src/Agent.Worker
645 10 59
AutoLogonRegistryManager.cs
in src/Agent.Listener/Configuration.Windows
371 15 55
GitCommandManager.cs
in src/Agent.Worker/Build
525 33 51
TrxResultReader.cs
in src/Agent.Worker/TestResults/Legacy
550 10 51
ExtensionManager.cs
in src/Microsoft.VisualStudio.Services.Agent
123 3 50
GitCliManager.cs
in src/Agent.Plugins
534 34 49
BuildJobExtension.cs
in src/Agent.Worker/Build
320 13 46
TestRunPublisher.cs
in src/Agent.Worker/TestResults/Legacy
498 25 45
SelfUpdater.cs
in src/Agent.Listener
520 11 43
NativeWindowsServiceHelper.cs
in src/Agent.Listener/Configuration.Windows
1120 37 42
PipelineArtifactServer.cs
in src/Agent.Plugins/Artifact
315 5 39
TfsVCSourceProvider.cs
in src/Agent.Plugins
600 5 39
JobRunner.cs
in src/Agent.Worker
442 7 39
JobServerQueue.cs
in src/Microsoft.VisualStudio.Services.Agent
575 12 39
JobServer.cs
in src/Microsoft.VisualStudio.Services.Agent
159 14 38
ConfigurationProvider.cs
in src/Agent.Listener/Configuration
486 34 37