aws / copilot-cli
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 388 files with 60,527 lines of code.
    • 2 very long files (5,843 lines of code)
    • 16 long files (10,789 lines of code)
    • 76 medium size files (23,424 lines of codeclsfd_ftr_w_mp_ins)
    • 79 small files (11,393 lines of code)
    • 215 very small files (9,078 lines of code)
9% | 17% | 38% | 18% | 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
go11% | 16% | 38% | 19% | 14%
js0% | 38% | 49% | 8% | 3%
html0% | 92% | 0% | 0% | 7%
yml0% | 0% | 46% | 27% | 26%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
internal/pkg/cli21% | 30% | 33% | 10% | 4%
internal/pkg/manifest33% | 0% | 38% | 25% | 2%
internal/pkg/term0% | 40% | 16% | 13% | 29%
cf-custom-resources/lib0% | 38% | 49% | 8% | 3%
site/overrides/layouts0% | 100% | 0% | 0% | 0%
internal/pkg/deploy0% | 12% | 50% | 22% | 14%
internal/pkg/template0% | 0% | 49% | 24% | 25%
internal/pkg/aws0% | 0% | 39% | 23% | 36%
internal/pkg/describe0% | 0% | 63% | 22% | 14%
internal/pkg/ecs0% | 0% | 61% | 37% | <1%
internal/pkg/docker0% | 0% | 64% | 26% | 9%
internal/pkg/workspace0% | 0% | 91% | 0% | 8%
internal/pkg/initialize0% | 0% | 64% | 35% | 0%
internal/pkg/addon0% | 0% | 26% | 56% | 16%
internal/pkg/config0% | 0% | 32% | 38% | 29%
internal/pkg/stream0% | 0% | 0% | 85% | 14%
internal/pkg/logging0% | 0% | 0% | 71% | 28%
ROOT0% | 0% | 0% | 100% | 0%
internal/pkg/task0% | 0% | 0% | 36% | 63%
internal/pkg/repository0% | 0% | 0% | 65% | 34%
internal/pkg/exec0% | 0% | 0% | 0% | 100%
internal/pkg/apprunner0% | 0% | 0% | 0% | 100%
cmd/copilot/template0% | 0% | 0% | 0% | 100%
site/overrides/partials0% | 0% | 0% | 0% | 100%
internal/pkg/graph0% | 0% | 0% | 0% | 100%
cmd/copilot0% | 0% | 0% | 0% | 100%
internal/pkg/ini0% | 0% | 0% | 0% | 100%
site/content/stylesheets0% | 0% | 0% | 0% | 100%
cf-custom-resources0% | 0% | 0% | 0% | 100%
internal/pkg/version0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
mock_interfaces.go
in internal/pkg/cli/mocks
4594 744
validate.go
in internal/pkg/manifest
1249 86
svc_deploy.go
in internal/pkg/cli
975 39
selector.go
in internal/pkg/term/selector
916 45
task_run.go
in internal/pkg/cli
859 33
env_init.go
in internal/pkg/cli
770 29
storage_init.go
in internal/pkg/cli
767 26
deploy.go
in internal/pkg/cli/deploy
720 22
validate.go
in internal/pkg/cli
679 47
transformers.go
in internal/pkg/deploy/cloudformation/stack
678 40
pipeline_init.go
in internal/pkg/cli
597 25
nlb-cert-validator.js
in cf-custom-resources/lib
596 30
dns-cert-validator.js
in cf-custom-resources/lib
575 20
svc_init.go
in internal/pkg/cli
557 17
mock_deploy.go
in internal/pkg/cli/deploy/mocks
534 82
home.html
in site/overrides/layouts
523 -
mock_selector.go
in internal/pkg/term/selector/mocks
523 82
home.ja.html
in site/overrides/layouts
520 -
svc_package.go
in internal/pkg/cli
498 15
interfaces.go
in internal/pkg/cli
485 -
mock_cloudformation.go
in internal/pkg/deploy/cloudformation/mocks
478 80
status.go
in internal/pkg/describe
473 20
job_deploy.go
in internal/pkg/cli
472 22
workload.go
in internal/pkg/template
463 26
cf.yml
in internal/pkg/template/templates/workloads/services/lb-web
444 -
init.go
in internal/pkg/cli
438 13
pipeline_cfn.yml
in internal/pkg/template/templates/cicd
426 -
secret_init.go
in internal/pkg/cli
421 17
workload.go
in internal/pkg/manifest
402 37
workspace.go
in internal/pkg/workspace
400 30
cloudformation.go
in internal/pkg/deploy/cloudformation
399 16
cf.yml
in internal/pkg/template/templates/environment
399 -
nlb-custom-domain.js
in cf-custom-resources/lib
388 22
task_delete.go
in internal/pkg/cli
386 17
app.go
in internal/pkg/deploy/cloudformation
385 20
mock_service.go
in internal/pkg/describe/mocks
367 60
job_init.go
in internal/pkg/cli
365 13
ecs.go
in internal/pkg/ecs
364 22
ecs.go
in internal/pkg/aws/ecs
363 26
env_upgrade.go
in internal/pkg/cli
353 15
cloudformation.go
in internal/pkg/aws/cloudformation
351 28
workload.go
in internal/pkg/initialize
347 17
workload.go
in internal/pkg/deploy/cloudformation/stack
336 13
pipeline.go
in internal/pkg/deploy
330 22
app_delete.go
in internal/pkg/cli
326 13
lb_web_service.go
in internal/pkg/describe
323 10
env_delete.go
in internal/pkg/cli
321 15
job_delete.go
in internal/pkg/cli
319 18
stackset.go
in internal/pkg/aws/cloudformation/stackset
318 20
custom-domain.js
in cf-custom-resources/lib
311 18
Files With Most Units (Top 20)
File# lines# units
mock_interfaces.go
in internal/pkg/cli/mocks
4594 744
validate.go
in internal/pkg/manifest
1249 86
mock_deploy.go
in internal/pkg/cli/deploy/mocks
534 82
mock_selector.go
in internal/pkg/term/selector/mocks
523 82
mock_cloudformation.go
in internal/pkg/deploy/cloudformation/mocks
478 80
mock_service.go
in internal/pkg/describe/mocks
367 60
validate.go
in internal/pkg/cli
679 47
selector.go
in internal/pkg/term/selector
916 45
mock_cloudformation.go
in internal/pkg/aws/cloudformation/mocks
267 42
transformers.go
in internal/pkg/deploy/cloudformation/stack
678 40
svc_deploy.go
in internal/pkg/cli
975 39
workload.go
in internal/pkg/manifest
402 37
task_run.go
in internal/pkg/cli
859 33
mock_status_describe.go
in internal/pkg/describe/mocks
215 32
mock_workload.go
in internal/pkg/initialize/mocks
189 32
nlb-cert-validator.js
in cf-custom-resources/lib
596 30
workspace.go
in internal/pkg/workspace
400 30
mock_ecs.go
in internal/pkg/ecs/mocks
192 30
env_init.go
in internal/pkg/cli
770 29
cloudformation.go
in internal/pkg/aws/cloudformation
351 28
Files With Long Lines (Top 20)

There are 187 files with lines longer than 120 characters. In total, there are 1115 long lines.

File# lines# units# long lines
mock_interfaces.go
in internal/pkg/cli/mocks
4594 744 268
mock_cloudformation.go
in internal/pkg/aws/cloudformation/mocks
267 42 41
mock_selector.go
in internal/pkg/term/selector/mocks
523 82 38
mock_cloudformation.go
in internal/pkg/deploy/cloudformation/mocks
478 80 34
mock_deploy.go
in internal/pkg/cli/deploy/mocks
534 82 24
env_init.go
in internal/pkg/cli
770 29 21
mock_service.go
in internal/pkg/describe/mocks
367 60 19
mock_stackset.go
in internal/pkg/aws/cloudformation/stackset/mocks
120 20 18
svc_deploy.go
in internal/pkg/cli
975 39 18
task_run.go
in internal/pkg/cli
859 33 16
prompt.go
in internal/pkg/term/prompt
279 18 15
storage_init.go
in internal/pkg/cli
767 26 14
mock_ecs.go
in internal/pkg/ecs/mocks
192 30 14
buildspec.yml
in internal/pkg/template/templates/cicd
161 - 14
deploy.go
in internal/pkg/cli/deploy
720 22 13
flag.go
in internal/pkg/cli
261 - 13
secret_init.go
in internal/pkg/cli
421 17 12
env_upgrade.go
in internal/pkg/cli
353 15 12
mock_prompter.go
in internal/pkg/cli/mocks
117 14 12
validate.go
in internal/pkg/cli
679 47 11