aws-samples / aws-modernization-with-snyk-security
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 23 files with 1,676 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (474 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (566 lines of code)
    • 16 very small files (636 lines of code)
0% | 0% | 28% | 33% | 37%
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% | 0% | 52% | 0% | 47%
yaml0% | 0% | 23% | 50% | 26%
css0% | 0% | 0% | 81% | 18%
toml0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy0% | 0% | 87% | 0% | 12%
pipeline/webhosting0% | 0% | 64% | 35% | 0%
templates0% | 0% | 0% | 58% | 41%
static/css0% | 0% | 0% | 81% | 18%
ROOT0% | 0% | 0% | 0% | 100%
workshop-resources/cdk/snyk-codesuite-cdk/cdk_snyk_construct0% | 0% | 0% | 0% | 100%
workshop-resources/scripts0% | 0% | 0% | 0% | 100%
workshop-resources/cdk/snyk-codesuite-cdk0% | 0% | 0% | 0% | 100%
layouts/partials0% | 0% | 0% | 0% | 100%
Longest Files (Top 23)
File# lines# units
cdk_snyk_codeartifact_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy
268 1
pipeline.yaml
in pipeline/webhosting
206 -
theme-mine.css
in static/css
127 -
cloudfront-s3-website.yaml
in pipeline/webhosting
114 -
snyk-full.template.yaml
in templates
109 -
snyk-full.yaml
in templates
109 -
snyk-ecr.yaml
in templates
107 -
cdk_snyk_construct_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_snyk_construct
100 1
snyk-lambda.yaml
in templates
97 -
config.toml
in root
78 -
snyk-ecr.template.yaml
in templates
71 -
snyk-lambda.template.yaml
in templates
61 -
list_repos.py
in workshop-resources/scripts
40 2
cdk_snyk_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy
39 1
webspec.yml
in root
32 -
setup.py
in workshop-resources/cdk/snyk-codesuite-cdk
30 -
mp-devops-series.css
in static/css
28 -
custom-header.html
in layouts/partials
24 -
pip_install.py
in workshop-resources/scripts
22 1
app.py
in workshop-resources/cdk/snyk-codesuite-cdk
7 -
menu-footer.html
in layouts/partials
5 -
__init__.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy
1 -
__init__.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_snyk_construct
1 -
Files With Most Units (Top 5)
File# lines# units
list_repos.py
in workshop-resources/scripts
40 2
cdk_snyk_codeartifact_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy
268 1
cdk_snyk_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy
39 1
cdk_snyk_construct_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_snyk_construct
100 1
pip_install.py
in workshop-resources/scripts
22 1
Files With Long Lines (Top 9)

There are 9 files with lines longer than 120 characters. In total, there are 14 long lines.

File# lines# units# long lines
snyk-full.template.yaml
in templates
109 - 3
cdk_snyk_codeartifact_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy
268 1 3
cdk_snyk_construct_stack.py
in workshop-resources/cdk/snyk-codesuite-cdk/cdk_snyk_construct
100 1 2
cloudfront-s3-website.yaml
in pipeline/webhosting
114 - 1
snyk-lambda.yaml
in templates
97 - 1
snyk-ecr.yaml
in templates
107 - 1
snyk-full.yaml
in templates
109 - 1
theme-mine.css
in static/css
127 - 1
webspec.yml
in root
32 - 1