microsoft / cobalt
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 188 files with 6,895 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (573 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,216 lines of code)
    • 177 very small files (5,106 lines of code)
0% | 0% | 8% | 17% | 74%
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
go0% | 0% | 29% | 28% | 42%
tf0% | 0% | 5% | 19% | 75%
yml0% | 0% | 0% | 0% | 100%
tfvars0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
test-harness/terratest-extensions/modules0% | 0% | 31% | 30% | 37%
infra/modules/providers0% | 0% | 8% | 11% | 80%
infra/templates/az-isolated-service-single-region0% | 0% | 0% | 56% | 43%
infra/templates/az-service-single-region0% | 0% | 0% | 34% | 65%
infra/templates/ado-bootstrap-iac-pipeline0% | 0% | 0% | 59% | 40%
devops/providers/azure-devops0% | 0% | 0% | 0% | 100%
infra/templates/gitlab-bootstrap-iac-cicd0% | 0% | 0% | 0% | 100%
infra/templates/az-hello-world0% | 0% | 0% | 0% | 100%
test-harness0% | 0% | 0% | 0% | 100%
devops/providers/gitlab0% | 0% | 0% | 0% | 100%
infra/templates/backend-state-setup0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
servicebus.go
in test-harness/terratest-extensions/modules/azure
310 26
main.tf
in infra/modules/providers/azure/api-mgmt
263 -
datafactory.go
in test-harness/terratest-extensions/modules/azure
197 16
ase.tf
in infra/templates/az-isolated-service-single-region
158 -
variables.tf
in infra/modules/providers/azure/api-mgmt
149 -
variables.tf
in infra/templates/az-isolated-service-single-region
148 -
variables.tf
in infra/templates/az-service-single-region
124 -
variables.tf
in infra/modules/providers/azure/app-gateway
123 -
azdo.tf
in infra/templates/ado-bootstrap-iac-pipeline
113 -
variables.tf
in infra/modules/providers/azure/service-plan
103 -
webapp.go
in test-harness/terratest-extensions/modules/azure
101 8
main.tf
in infra/modules/providers/azure/keyvault-cert
100 -
main.tf
in infra/modules/providers/azure/service-bus
99 -
variables.tf
in infra/modules/providers/azure/app-service
97 -
appdev.tf
in infra/templates/az-service-single-region
96 -
main.tf
in infra/modules/providers/azure/app-gateway
94 -
magefile.go
in test-harness
92 10
variables.tf
in infra/modules/providers/elastic/elastic-search-service
91 -
acr.go
in test-harness/terratest-extensions/modules/azure
89 9
variables.tf
in infra/modules/providers/azure/data-factory
84 -
variables.tf
in infra/modules/providers/azure/function-app
79 -
app.tf
in infra/templates/az-isolated-service-single-region
79 -
network.go
in test-harness/terratest-extensions/modules/azure
77 6
output.tf
in infra/modules/providers/azure/api-mgmt
76 -
main.tf
in infra/modules/providers/azure/function-app
70 -
azure-pipeline-all-templates.yml
in devops/providers/azure-devops/templates
68 -
build-stage.yml
in devops/providers/azure-devops/templates/infrastructure
67 -
gitlab.tf
in infra/templates/gitlab-bootstrap-iac-cicd
66 -
variables.tf
in infra/modules/providers/azure/app-monitoring
65 -
commons.tf
in infra/templates/az-isolated-service-single-region
64 -
azure-pipelines.yml
in devops/providers/azure-devops/templates
62 -
azure.tf
in infra/templates/ado-bootstrap-iac-pipeline
62 -
deploy-stage.yml
in devops/providers/azure-devops/templates/infrastructure
60 -
build-stage.yml
in devops/providers/azure-devops/templates/app_service_maven
59 -
main.tf
in infra/modules/providers/azure/service-plan
59 -
variables.tf
in infra/modules/providers/azure/redis-cache
56 -
output.tf
in infra/modules/providers/azure/service-bus
55 -
gitlab.tf
in infra/templates/gitlab-bootstrap-iac-cicd/environment
55 -
azure.tf
in infra/templates/gitlab-bootstrap-iac-cicd
54 -
admin.tf
in infra/templates/az-service-single-region
51 -
prepare-stage.yml
in devops/providers/azure-devops/templates/infrastructure
50 -
variables.tf
in infra/modules/providers/azure/service-bus
50 -
variables.tf
in infra/modules/providers/azure/cosmosdb
49 -
stages.yml
in devops/providers/azure-devops/templates/function_app_maven
48 -
main.tf
in infra/modules/providers/azure/cosmosdb
48 -
mlworkspace.go
in test-harness/terratest-extensions/modules/azure
46 3
app-service-deployment-steps.yml
in devops/providers/azure-devops/templates/app_service_maven/tasks
45 -
validate-job.yml
in devops/providers/azure-devops/templates/infrastructure
44 -
variables.tf
in infra/modules/providers/azure/keyvault
44 -
variables.tf
in infra/modules/providers/azure/keyvault-cert
43 -
Files With Most Units (Top 12)
File# lines# units
servicebus.go
in test-harness/terratest-extensions/modules/azure
310 26
datafactory.go
in test-harness/terratest-extensions/modules/azure
197 16
magefile.go
in test-harness
92 10
acr.go
in test-harness/terratest-extensions/modules/azure
89 9
webapp.go
in test-harness/terratest-extensions/modules/azure
101 8
network.go
in test-harness/terratest-extensions/modules/azure
77 6
appgateway.go
in test-harness/terratest-extensions/modules/azure
33 3
cosmos.go
in test-harness/terratest-extensions/modules/azure
35 3
keyvault.go
in test-harness/terratest-extensions/modules/azure
33 3
mlworkspace.go
in test-harness/terratest-extensions/modules/azure
46 3
authorizer.go
in test-harness/terratest-extensions/modules/azure
24 2
cli.go
in test-harness/terratest-extensions/modules/azure
23 2
Files With Long Lines (Top 20)

There are 53 files with lines longer than 120 characters. In total, there are 173 long lines.

File# lines# units# long lines
commons.tf
in infra/templates/az-isolated-service-single-region
64 - 12
servicebus.go
in test-harness/terratest-extensions/modules/azure
310 26 12
commons.tf
in infra/templates/az-service-single-region
43 - 10
datafactory.go
in test-harness/terratest-extensions/modules/azure
197 16 10
variables.tf
in infra/modules/providers/azure/data-factory
84 - 8
variables.tf
in infra/modules/providers/azure/redis-cache
56 - 7
commons.tf
in infra/templates/az-hello-world
41 - 7
acr.go
in test-harness/terratest-extensions/modules/azure
89 9 7
variables.tf
in infra/modules/providers/azure/keyvault-policy
27 - 5
variables.tf
in infra/modules/providers/azure/service-plan
103 - 5
tf-ws-create.yml
in devops/providers/azure-devops/templates/infrastructure/tasks
28 - 4
variables.tf
in infra/modules/providers/azure/ml-workspace
25 - 4
variables.tf
in infra/modules/providers/azure/storage-account
42 - 4
ase.tf
in infra/templates/az-isolated-service-single-region
158 - 4
variables.tf
in infra/templates/az-isolated-service-single-region
148 - 4
build-stage.yml
in devops/providers/azure-devops/templates/infrastructure
67 - 3
deploy-stage.yml
in devops/providers/azure-devops/templates/infrastructure
60 - 3
tf-apply.yml
in devops/providers/azure-devops/templates/infrastructure/tasks
40 - 3
tf-destroy.yml
in devops/providers/azure-devops/templates/infrastructure/tasks
36 - 3
tf-plan.yml
in devops/providers/azure-devops/templates/infrastructure/tasks
39 - 3