aws-samples / aws-cloud-compliance-assurance
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 36 files with 7,626 lines of code.
    • 1 very long files (1,336 lines of code)
    • 2 long files (1,389 lines of code)
    • 9 medium size files (2,762 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,798 lines of code)
    • 12 very small files (341 lines of code)
17% | 18% | 36% | 23% | 4%
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
yml18% | 19% | 38% | 17% | 4%
yaml0% | 0% | 0% | 100% | 0%
py0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
aws-org-conformancepack/cft87% | 0% | 0% | 11% | 1%
aws-servicecatalog-prescriptivecompliance/cft0% | 64% | 24% | 9% | 1%
aws-remediate-cis-securityhub/cft0% | 0% | 89% | 10% | 0%
aws-devsecops-conformancepack-pci/cft0% | 0% | 51% | 44% | 3%
aws-enable-config/cft0% | 0% | 76% | 0% | 23%
aws-config-aggregator/cft0% | 0% | 0% | 100% | 0%
aws-auditmanager-conformancepack/lambda0% | 0% | 0% | 100% | 0%
aws-auditmanager-securityhub/lambda0% | 0% | 0% | 100% | 0%
aws-auditmanager-securityhub/cft0% | 0% | 0% | 72% | 27%
aws-auditmanager-conformancepack/cft0% | 0% | 0% | 0% | 100%
Longest Files (Top 36)
File# lines# units
org-confpack-pci.yml
in aws-org-conformancepack/cft
1336 -
aws-servicecatalog-prescriptivecompliance-v1.yml
in aws-servicecatalog-prescriptivecompliance/cft
702 -
aws-servicecatalog-prescriptivecompliance.yml
in aws-servicecatalog-prescriptivecompliance/cft
687 -
aws-cis-cloudwatchlogmetricfilters-v2.yml
in aws-remediate-cis-securityhub/cft
498 -
aws-cis-cloudwatchlogmetricfilters.yml
in aws-remediate-cis-securityhub/cft
455 -
aws-cis-systemsmanagerautomations.yml
in aws-remediate-cis-securityhub/cft
319 -
aws-pci-confpack-codepipeline.yml
in aws-devsecops-conformancepack-pci/cft
303 -
aws-servicecatalog-codepipeline.yml
in aws-servicecatalog-prescriptivecompliance/cft
274 -
aws-servicecatalog-configremediations-v2.yml
in aws-servicecatalog-prescriptivecompliance/cft
244 -
aws-pci-conformancepack-v1-3.yml
in aws-devsecops-conformancepack-pci/cft
231 -
EnableAWSConfig.yml
in aws-enable-config/cft
219 -
aws-pci-conformancepack-v1-1.yml
in aws-devsecops-conformancepack-pci/cft
219 -
aws-servicecatalog-configremediations.yml
in aws-servicecatalog-prescriptivecompliance/cft
199 -
aws-pci-confpack-ssmautomation-reinvent.yml
in aws-devsecops-conformancepack-pci/cft
195 -
AccountEnableConformancePack.yml
in aws-org-conformancepack/cft
176 -
AccountEnableRecorderAndAggregator.yaml
in aws-config-aggregator/cft
169 -
aws-pci-conformancepack-v1-2.yml
in aws-devsecops-conformancepack-pci/cft
164 -
aws-pci-conformancepack-update-v1.yml
in aws-devsecops-conformancepack-pci/cft
161 -
aws-cis-securityhubactions.yml
in aws-remediate-cis-securityhub/cft
150 -
OrganizationEnableRecorderAndAggregator.yaml
in aws-config-aggregator/cft
131 -
aws-pci-conformancepack-v1.yml
in aws-devsecops-conformancepack-pci/cft
125 -
CustomAuditManagerFramework_Lambda.py
in aws-auditmanager-conformancepack/lambda
115 4
CustomAuditManagerFramework_Lambda.py
in aws-auditmanager-securityhub/lambda
108 3
aws-auditmanager-securityhub.yml
in aws-auditmanager-securityhub/cft
105 -
aws-auditmanager-confpack.yml
in aws-auditmanager-conformancepack/cft
94 -
aws-auditmanager-customassessment.yml
in aws-auditmanager-conformancepack/cft
40 -
aws-auditmanager-customassessment.yml
in aws-auditmanager-securityhub/cft
40 -
AWSCloudFormationStackSetAdministrationRole.yml
in aws-enable-config/cft
26 -
AWSCloudFormationStackSetExecutionRole.yml
in aws-enable-config/cft
25 -
buildspec.yml
in aws-devsecops-conformancepack-pci/cft
18 -
buildspec.yml
in aws-servicecatalog-prescriptivecompliance/cft
17 -
OrgEnableConformancePack.yml
in aws-org-conformancepack/cft
17 -
buildspec-reinvent.yml
in aws-devsecops-conformancepack-pci/cft
17 -
buildspec-update.yml
in aws-servicecatalog-prescriptivecompliance/cft
16 -
buildspec-update-reinvent.yml
in aws-devsecops-conformancepack-pci/cft
16 -
OrgEnableAWSConfigRule.yml
in aws-enable-config/cft
15 -
Files With Most Units (Top 2)
File# lines# units
CustomAuditManagerFramework_Lambda.py
in aws-auditmanager-conformancepack/lambda
115 4
CustomAuditManagerFramework_Lambda.py
in aws-auditmanager-securityhub/lambda
108 3
Files With Long Lines (Top 13)

There are 13 files with lines longer than 120 characters. In total, there are 43 long lines.

File# lines# units# long lines
aws-servicecatalog-prescriptivecompliance.yml
in aws-servicecatalog-prescriptivecompliance/cft
687 - 5
aws-servicecatalog-prescriptivecompliance-v1.yml
in aws-servicecatalog-prescriptivecompliance/cft
702 - 5
AccountEnableConformancePack.yml
in aws-org-conformancepack/cft
176 - 5
buildspec.yml
in aws-devsecops-conformancepack-pci/cft
18 - 5
buildspec.yml
in aws-servicecatalog-prescriptivecompliance/cft
17 - 4
buildspec-reinvent.yml
in aws-devsecops-conformancepack-pci/cft
17 - 4
buildspec-update.yml
in aws-servicecatalog-prescriptivecompliance/cft
16 - 3
aws-pci-confpack-ssmautomation-reinvent.yml
in aws-devsecops-conformancepack-pci/cft
195 - 3
buildspec-update-reinvent.yml
in aws-devsecops-conformancepack-pci/cft
16 - 3
EnableAWSConfig.yml
in aws-enable-config/cft
219 - 2
aws-cis-systemsmanagerautomations.yml
in aws-remediate-cis-securityhub/cft
319 - 2
AWSCloudFormationStackSetExecutionRole.yml
in aws-enable-config/cft
25 - 1
aws-pci-conformancepack-v1-3.yml
in aws-devsecops-conformancepack-pci/cft
231 - 1