aws-quickstart / quickstart-fortinet-fortigate
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 64 files with 25,724 lines of code.
    • 7 very long files (14,921 lines of code)
    • 4 long files (2,903 lines of code)
    • 15 medium size files (4,936 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,480 lines of code)
    • 29 very small files (1,484 lines of code)
58% | 11% | 19% | 5% | 5%
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
js73% | 0% | 12% | 6% | 7%
yaml17% | 42% | 35% | 5% | 0%
yml0% | 0% | 100% | 0% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
functions/source/fgt-asg-handler/lib/aws100% | 0% | 0% | 0% | 0%
functions/source/nic-attachment/lib/aws100% | 0% | 0% | 0% | 0%
functions/source/faz-handler/lib/aws100% | 0% | 0% | 0% | 0%
functions/source/fgt-asg-handler/lib/core53% | 0% | 23% | 7% | 15%
functions/source/nic-attachment/lib/core53% | 0% | 23% | 7% | 15%
functions/source/faz-handler/lib/core53% | 0% | 23% | 7% | 15%
templates17% | 42% | 35% | 5% | 0%
functions/source/faz-handler0% | 0% | 64% | 25% | 10%
ci/taskcat0% | 0% | 100% | 0% | 0%
functions/source/fgt-asg-handler0% | 0% | 0% | 100% | 0%
functions/source/nic-attachment0% | 0% | 0% | 70% | 29%
functions/source/fgt-asg-handler/lib/aws_cfn_response0% | 0% | 0% | 0% | 100%
functions/source/nic-attachment/lib/aws_cfn_response0% | 0% | 0% | 0% | 100%
functions/source/faz-handler/lib/aws_cfn_response0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
index.js
in functions/source/fgt-asg-handler/lib/aws
3103 91
index.js
in functions/source/nic-attachment/lib/aws
3103 91
index.js
in functions/source/faz-handler/lib/aws
3103 91
autoscale-handler.js
in functions/source/fgt-asg-handler/lib/core
1469 49
autoscale-handler.js
in functions/source/nic-attachment/lib/core
1469 49
autoscale-handler.js
in functions/source/faz-handler/lib/core
1469 49
autoscale-main.template.yaml
in templates
1205 -
autoscale-new-vpc.template.yaml
in templates
853 -
autoscale-existing-vpc.template.yaml
in templates
788 -
create-hybrid-auto-scaling-group.template.yaml
in templates
694 -
create-autoscale-handler.template.yaml
in templates
568 -
create-db-table.template.yaml
in templates
475 -
db-definitions.js
in functions/source/fgt-asg-handler/lib/core
452 -
db-definitions.js
in functions/source/nic-attachment/lib/core
452 -
db-definitions.js
in functions/source/faz-handler/lib/core
452 -
create-fortianalyzer.template.yaml
in templates
431 -
create-auto-scaling-group.template.yaml
in templates
387 -
create-new-vpc.template.yaml
in templates
320 -
create-load-balancer.template.yaml
in templates
310 -
index.js
in functions/source/faz-handler
285 10
copy-objects.template.yaml
in templates
275 -
compatibility-check.yml
in ci/taskcat
258 -
create-nat-fgt-master.template.yaml
in templates
233 -
core-functions.js
in functions/source/fgt-asg-handler/lib/core
202 10
core-functions.js
in functions/source/nic-attachment/lib/core
202 10
core-functions.js
in functions/source/faz-handler/lib/core
202 10
cloud-platform.js
in functions/source/fgt-asg-handler/lib/core
192 56
cloud-platform.js
in functions/source/nic-attachment/lib/core
192 56
cloud-platform.js
in functions/source/faz-handler/lib/core
192 56
index.js
in functions/source/fgt-asg-handler
188 11
add-nic-attachment-service.template.yaml
in templates
183 -
create-fortigate.template.yaml
in templates
173 -
cfn-service.js
in functions/source/fgt-asg-handler
145 1
api-client.js
in functions/source/faz-handler
113 5
index.js
in functions/source/nic-attachment
102 3
logger.js
in functions/source/fgt-asg-handler/lib/core
94 17
logger.js
in functions/source/nic-attachment/lib/core
94 17
logger.js
in functions/source/faz-handler/lib/core
94 17
virtual-machine.js
in functions/source/fgt-asg-handler/lib/core
89 12
virtual-machine.js
in functions/source/nic-attachment/lib/core
89 12
virtual-machine.js
in functions/source/faz-handler/lib/core
89 12
license-record.js
in functions/source/fgt-asg-handler/lib/core
73 12
license-record.js
in functions/source/nic-attachment/lib/core
73 12
license-record.js
in functions/source/faz-handler/lib/core
73 12
license-item.js
in functions/source/fgt-asg-handler/lib/core
64 12
license-item.js
in functions/source/nic-attachment/lib/core
64 12
license-item.js
in functions/source/faz-handler/lib/core
64 12
lifecycle-item.js
in functions/source/fgt-asg-handler/lib/core
46 7
index.js
in functions/source/fgt-asg-handler/lib/aws_cfn_response
46 2
lifecycle-item.js
in functions/source/nic-attachment/lib/core
46 7
Files With Most Units (Top 20)
File# lines# units
index.js
in functions/source/fgt-asg-handler/lib/aws
3103 91
index.js
in functions/source/nic-attachment/lib/aws
3103 91
index.js
in functions/source/faz-handler/lib/aws
3103 91
cloud-platform.js
in functions/source/fgt-asg-handler/lib/core
192 56
cloud-platform.js
in functions/source/nic-attachment/lib/core
192 56
cloud-platform.js
in functions/source/faz-handler/lib/core
192 56
autoscale-handler.js
in functions/source/fgt-asg-handler/lib/core
1469 49
autoscale-handler.js
in functions/source/nic-attachment/lib/core
1469 49
autoscale-handler.js
in functions/source/faz-handler/lib/core
1469 49
logger.js
in functions/source/fgt-asg-handler/lib/core
94 17
logger.js
in functions/source/nic-attachment/lib/core
94 17
logger.js
in functions/source/faz-handler/lib/core
94 17
virtual-machine.js
in functions/source/fgt-asg-handler/lib/core
89 12
license-item.js
in functions/source/fgt-asg-handler/lib/core
64 12
license-record.js
in functions/source/fgt-asg-handler/lib/core
73 12
virtual-machine.js
in functions/source/nic-attachment/lib/core
89 12
license-item.js
in functions/source/nic-attachment/lib/core
64 12
license-record.js
in functions/source/nic-attachment/lib/core
73 12
virtual-machine.js
in functions/source/faz-handler/lib/core
89 12
license-item.js
in functions/source/faz-handler/lib/core
64 12
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 44 long lines.

File# lines# units# long lines
autoscale-new-vpc.template.yaml
in templates
853 - 10
autoscale-existing-vpc.template.yaml
in templates
788 - 7
autoscale-main.template.yaml
in templates
1205 - 7
create-new-vpc.template.yaml
in templates
320 - 5
create-autoscale-handler.template.yaml
in templates
568 - 5
create-nat-fgt-master.template.yaml
in templates
233 - 4
create-fortianalyzer.template.yaml
in templates
431 - 2
create-db-table.template.yaml
in templates
475 - 2
add-nic-attachment-service.template.yaml
in templates
183 - 1
copy-objects.template.yaml
in templates
275 - 1