aws-samples / aws-continuous-compliance-for-terraform
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 21 files with 1,977 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (656 lines of code)
    • 1 medium size files (489 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (396 lines of code)
    • 16 very small files (436 lines of code)
0% | 33% | 24% | 20% | 22%
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
py0% | 48% | 36% | 0% | 15%
tf0% | 0% | 0% | 90% | 9%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
workload-account/stacks/pipeline_stack0% | 100% | 0% | 0% | 0%
security-and-compliance-account/stacks/pipeline_stack0% | 0% | 100% | 0% | 0%
workload-account/workload-code/src0% | 0% | 0% | 90% | 9%
security-and-compliance-account/security-and-compliance-code0% | 0% | 0% | 0% | 100%
workload-account/workload-code0% | 0% | 0% | 0% | 100%
security-and-compliance-account/stacks/cross_account_role_stack0% | 0% | 0% | 0% | 100%
workload-account/stacks/cross_account_role_stack0% | 0% | 0% | 0% | 100%
workload-account0% | 0% | 0% | 0% | 100%
security-and-compliance-account0% | 0% | 0% | 0% | 100%
workload-account/stacks0% | 0% | 0% | 0% | 100%
security-and-compliance-account/stacks0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
cdk_stack.py
in workload-account/stacks/pipeline_stack
656 1
cdk_stack.py
in security-and-compliance-account/stacks/pipeline_stack
489 1
test-monitoring.tf
in workload-account/workload-code/src
133 -
test-security.tf
in workload-account/workload-code/src
133 -
test-logging.tf
in workload-account/workload-code/src
130 -
cdk_stack.py
in security-and-compliance-account/stacks/cross_account_role_stack
54 1
cdk_stack.py
in workload-account/stacks/cross_account_role_stack
50 1
buildspec-compliance-check.yml
in security-and-compliance-account/security-and-compliance-code
46 -
buildspec-compliance.yml
in workload-account/workload-code
39 -
buildspec-code-merge.yml
in security-and-compliance-account/security-and-compliance-code
39 -
buildspec-code-pull.yml
in security-and-compliance-account/security-and-compliance-code
38 -
setup.py
in workload-account
30 -
setup.py
in security-and-compliance-account
30 -
buildspec-workload-deploy.yml
in workload-account/workload-code
27 -
test-architecture.tf
in workload-account/workload-code/src
27 -
app.py
in workload-account
19 -
app.py
in security-and-compliance-account
19 -
main.tf
in workload-account/workload-code/src
14 -
demo_lambda.py
in workload-account/workload-code/src/files
2 1
__init__.py
in workload-account/stacks
1 -
__init__.py
in security-and-compliance-account/stacks
1 -
Files With Most Units (Top 5)
File# lines# units
demo_lambda.py
in workload-account/workload-code/src/files
2 1
cdk_stack.py
in workload-account/stacks/cross_account_role_stack
50 1
cdk_stack.py
in workload-account/stacks/pipeline_stack
656 1
cdk_stack.py
in security-and-compliance-account/stacks/cross_account_role_stack
54 1
cdk_stack.py
in security-and-compliance-account/stacks/pipeline_stack
489 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
cdk_stack.py
in workload-account/stacks/pipeline_stack
656 1 4
cdk_stack.py
in security-and-compliance-account/stacks/pipeline_stack
489 1 4
test-logging.tf
in workload-account/workload-code/src
130 - 1
test-security.tf
in workload-account/workload-code/src
133 - 1
cdk_stack.py
in workload-account/stacks/cross_account_role_stack
50 1 1
buildspec-code-merge.yml
in security-and-compliance-account/security-and-compliance-code
39 - 1
cdk_stack.py
in security-and-compliance-account/stacks/cross_account_role_stack
54 1 1