microsoft / Docker-Provider
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 192 files with 26,787 lines of code.
    • 1 very long files (1,417 lines of code)
    • 12 long files (7,564 lines of code)
    • 35 medium size files (9,935 lines of codeclsfd_ftr_w_mp_ins)
    • 29 small files (4,108 lines of code)
    • 115 very small files (3,763 lines of code)
5% | 28% | 37% | 15% | 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
go52% | 0% | 37% | 0% | 9%
rb0% | 26% | 38% | 16% | 18%
yaml0% | 59% | 15% | 14% | 10%
ps10% | 39% | 48% | 6% | 5%
cs0% | 0% | 100% | 0% | 0%
py0% | 0% | 27% | 59% | 12%
y0% | 0% | 0% | 100% | 0%
cpp0% | 0% | 0% | 100% | 0%
tpl0% | 0% | 0% | 0% | 100%
MD0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/plugins9% | 25% | 37% | 12% | 16%
scripts/preview0% | 74% | 25% | 0% | 0%
kubernetes0% | 91% | 0% | 0% | 8%
scripts/troubleshoot0% | 47% | 52% | 0% | 0%
kubernetes/windows0% | 70% | 0% | 0% | 29%
scripts/onboarding0% | 33% | 64% | 0% | 1%
build/common0% | 0% | 72% | 14% | 13%
charts/azuremonitor-containers0% | 0% | 40% | 38% | 20%
build/windows0% | 0% | 34% | 45% | 20%
build/linux0% | 0% | 22% | 64% | 13%
scripts/build0% | 0% | 0% | 100% | 0%
source/toml-parser0% | 0% | 0% | 42% | 57%
Kubecon0% | 0% | 0% | 0% | 100%
kubernetes/linux0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
oms.go
in source/plugins/go/src
1417 14
omsagent.yaml
in kubernetes
805 -
TroubleshootError.ps1
in scripts/troubleshoot
800 -
CAdvisorMetricsAPIClient.rb
in source/plugins/ruby
797 22
KubernetesApiClient.rb
in source/plugins/ruby
661 21
out_health_forward.rb
in source/plugins/ruby
654 43
in_kube_podinventory.rb
in source/plugins/ruby
597 9
MdmMetricsGenerator.rb
in source/plugins/ruby
560 18
in_kube_nodes.rb
in source/plugins/ruby
552 15
main.ps1
in kubernetes/windows
547 -
omsagent-template.yaml
in scripts/preview/health
545 -
omsagent-template-aks-engine.yaml
in scripts/preview/health
541 -
enable-monitoring.ps1
in scripts/onboarding/managed
505 -
ingestion_token_utils.go
in source/plugins/go/src
455 6
TroubleshootError_nonAzureK8s.ps1
in scripts/troubleshoot
449 -
TroubleshootError_AcsEngine.ps1
in scripts/troubleshoot
434 -
HealthAgentOnboarding.ps1
in scripts/preview/health
371 -
filter_cadvisor2mdm.rb
in source/plugins/ruby
357 9
Program.cs
in build/windows/installer/certificategenerator
350 7
telemetry.go
in source/plugins/go/src
346 5
tomlparser-prom-customconfig.rb
in build/common/installer/scripts
341 6
kubernetes_container_inventory.rb
in source/plugins/ruby
339 6
datafileparser.py
in build/linux/installer/InstallBuilder
335 35
disable-monitoring.ps1
in scripts/onboarding/managed
334 -
out_mdm.rb
in source/plugins/ruby
316 10
in_kube_health.rb
in source/plugins/ruby
313 12
health_container_cpu_memory_aggregator.rb
in source/plugins/ruby/health
305 7
podinventory_to_mdm.rb
in source/plugins/ruby
279 8
ApplicationInsightsUtility.rb
in source/plugins/ruby
275 11
health_monitor_utils.rb
in source/plugins/ruby/health
274 15
health_kubernetes_resources.rb
in source/plugins/ruby/health
260 13
MdmAlertTemplates.rb
in source/plugins/ruby
254 -
omsagent-rs-configmap.yaml
in charts/azuremonitor-containers/templates
248 -
filter_inventory2mdm.rb
in source/plugins/ruby
248 7
tomlparser.rb
in build/common/installer/scripts
245 3
omsagent-daemonset.yaml
in charts/azuremonitor-containers/templates
243 -
AddMonitoringWorkspaceTags.ps1
in scripts/onboarding/aksengine/kubernetes
227 -
arc_k8s_cluster_identity.rb
in source/plugins/ruby
226 8
filter_health_model_builder.rb
in source/plugins/ruby
222 5
in_kube_events.rb
in source/plugins/ruby
218 8
utils.go
in source/plugins/go/src
215 9
in_kube_pvinventory.rb
in source/plugins/ruby
214 8
mdm_onboarding_atscale.ps1
in scripts/onboarding/aks/mdmonboarding
213 -
mdm_onboarding.ps1
in scripts/onboarding/aks/mdmonboarding
209 -
tomlparser-agent-config.rb
in build/common/installer/scripts
206 4
health_monitor_state.rb
in source/plugins/ruby/health
206 8
in_kubestate_deployments.rb
in source/plugins/ruby
204 6
in_kubestate_hpa.rb
in source/plugins/ruby
204 6
kubelet_utils.rb
in source/plugins/ruby
190 3
omsagenthelper.rb
in build/windows/installer/scripts/rubyKeepCertificateAlive
185 10
Files With Most Units (Top 20)
File# lines# units
out_health_forward.rb
in source/plugins/ruby
654 43
datafileparser.py
in build/linux/installer/InstallBuilder
335 35
CAdvisorMetricsAPIClient.rb
in source/plugins/ruby
797 22
KubernetesApiClient.rb
in source/plugins/ruby
661 21
MdmMetricsGenerator.rb
in source/plugins/ruby
560 18
health_monitor_utils.rb
in source/plugins/ruby/health
274 15
in_kube_nodes.rb
in source/plugins/ruby
552 15
aixlpp.py
in build/linux/installer/InstallBuilder
158 14
oms.go
in source/plugins/go/src
1417 14
health_kubernetes_resources.rb
in source/plugins/ruby/health
260 13
in_kube_health.rb
in source/plugins/ruby
313 12
sunospkg.py
in build/linux/installer/InstallBuilder
140 11
ApplicationInsightsUtility.rb
in source/plugins/ruby
275 11
track_request.rb
in source/plugins/ruby/lib/application_insights/rack
110 11
scxutil.py
in build/linux/installer/InstallBuilder
55 10
omsagenthelper.rb
in build/windows/installer/scripts/rubyKeepCertificateAlive
185 10
aggregate_monitor.rb
in source/plugins/ruby/health
179 10
oms_common.rb
in source/plugins/ruby
98 10
out_mdm.rb
in source/plugins/ruby
316 10
utils.go
in source/plugins/go/src
215 9
Files With Long Lines (Top 20)

There are 95 files with lines longer than 120 characters. In total, there are 1068 long lines.

File# lines# units# long lines
TroubleshootError.ps1
in scripts/troubleshoot
800 - 75
tomlparser-prom-customconfig.rb
in build/common/installer/scripts
341 6 57
in_kube_podinventory.rb
in source/plugins/ruby
597 9 50
TroubleshootError_nonAzureK8s.ps1
in scripts/troubleshoot
449 - 43
oms.go
in source/plugins/go/src
1417 14 40
enable-monitoring.ps1
in scripts/onboarding/managed
505 - 39
CAdvisorMetricsAPIClient.rb
in source/plugins/ruby
797 22 39
KubernetesApiClient.rb
in source/plugins/ruby
661 21 39
TroubleshootError_AcsEngine.ps1
in scripts/troubleshoot
434 - 38
in_kube_nodes.rb
in source/plugins/ruby
552 15 37
main.ps1
in kubernetes/windows
547 - 30
AddMonitoringWorkspaceTags.ps1
in scripts/onboarding/aksengine/kubernetes
227 - 27
HealthAgentOnboarding.ps1
in scripts/preview/health
371 - 25
mdm_onboarding.ps1
in scripts/onboarding/aks/mdmonboarding
209 - 22
mdm_onboarding_atscale.ps1
in scripts/onboarding/aks/mdmonboarding
213 - 22
tomlparser.rb
in build/common/installer/scripts
245 3 21
disable-monitoring.ps1
in scripts/onboarding/managed
334 - 20
telemetry.go
in source/plugins/go/src
346 5 18
health_monitor_utils.rb
in source/plugins/ruby/health
274 15 18
health_container_cpu_memory_aggregator.rb
in source/plugins/ruby/health
305 7 17