aws-samples / aws-container-devsecops-workshop
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 22 files with 4,193 lines of code.
    • 2 very long files (2,109 lines of code)
    • 2 long files (1,257 lines of code)
    • 1 medium size files (209 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (412 lines of code)
    • 14 very small files (206 lines of code)
50% | 29% | 4% | 9% | 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
yml56% | 33% | 5% | 0% | 5%
py0% | 0% | 0% | 94% | 5%
yaml0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
supplemental100% | 0% | 0% | 0% | 0%
initial-pipeline100% | 0% | 0% | 0% | 0%
anchore0% | 80% | 13% | 6% | 0%
initial-pipeline/initial-commit0% | 0% | 0% | 81% | 18%
supplemental/initial-commit0% | 0% | 0% | 59% | 40%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 22)
File# lines# units
pipeline-setup-final.yml
in supplemental
1103 -
pipeline-setup.yml
in initial-pipeline
1006 -
anchore-fargate-ee.yml
in anchore
629 -
anchore-fargate.yml
in anchore
628 -
anchore-vpc.yml
in anchore
209 -
initial-commit.py
in initial-pipeline/initial-commit
158 2
initial-commit.py
in supplemental/initial-commit
149 2
config.yaml
in anchore
105 -
mkdocs.yml
in root
37 -
container-devsecops-workshop.yml
in root
31 -
buildspec_vuln.yml
in supplemental/initial-commit
26 -
buildspec_secrets.yml
in supplemental/initial-commit
25 -
buildspec_push.yml
in initial-pipeline/initial-commit
21 -
buildspec_push.yml
in supplemental/initial-commit
21 -
buildspec_dockerfile.yml
in supplemental/initial-commit
20 -
index.py
in initial-pipeline/initial-commit
10 1
index.py
in supplemental/initial-commit
7 1
hadolint.yml
in supplemental/initial-commit
4 -
buildspec_secrets.yml
in initial-pipeline/initial-commit
1 -
buildspec_dockerfile.yml
in initial-pipeline/initial-commit
1 -
buildspec_vuln.yml
in initial-pipeline/initial-commit
1 -
hadolint.yml
in initial-pipeline/initial-commit
1 -
Files With Most Units (Top 4)
File# lines# units
initial-commit.py
in initial-pipeline/initial-commit
158 2
initial-commit.py
in supplemental/initial-commit
149 2
index.py
in initial-pipeline/initial-commit
10 1
index.py
in supplemental/initial-commit
7 1
Files With Long Lines (Top 12)

There are 12 files with lines longer than 120 characters. In total, there are 68 long lines.

File# lines# units# long lines
pipeline-setup-final.yml
in supplemental
1103 - 29
pipeline-setup.yml
in initial-pipeline
1006 - 23
buildspec_vuln.yml
in supplemental/initial-commit
26 - 5
container-devsecops-workshop.yml
in root
31 - 2
mkdocs.yml
in root
37 - 2
initial-commit.py
in initial-pipeline/initial-commit
158 2 1
buildspec_push.yml
in initial-pipeline/initial-commit
21 - 1
buildspec_dockerfile.yml
in supplemental/initial-commit
20 - 1
initial-commit.py
in supplemental/initial-commit
149 2 1
buildspec_push.yml
in supplemental/initial-commit
21 - 1
anchore-fargate-ee.yml
in anchore
629 - 1
anchore-fargate.yml
in anchore
628 - 1