aws / aws-eks-best-practices
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
txt
ini
prettierignore
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main3575 LOC (14%) 79 files
test4147 LOC (16%) 81 files
generated0 LOC (0%) 0 files
build and deployment58 LOC (<1%) 2 files
other16729 LOC (68%) 115 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 79 files match defined criteria (3,575 LOC, 100.0% vs. main code):
    • 73 *.yaml files (3,204 LOC)
    • 2 *.py files (232 LOC)
    • 2 *.go files (90 LOC)
    • 1 *.xml files (38 LOC)
    • 1 *.html files (11 LOC)
  • " *.yaml" is biggest, containing 89.62% of LOC.
  • " *.html" is smallest, containing 0.31% of LOC.


*.yaml3204 LOC (89%) 73 files
*.py232 LOC (6%) 2 files
*.go90 LOC (2%) 2 files
*.xml38 LOC (1%) 1 file
*.html11 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[-]resources/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 81 files match defined criteria (4,147 LOC, 116.0% vs. main code). All matches are in *.yaml files.


*.yaml4147 LOC (100%) 81 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
  • 2 files match defined criteria (58 LOC, 1.6% vs. main code):
    • 1 *.sh files (52 LOC)
    • 1 *.xml files (6 LOC)
  • " *.sh" is biggest, containing 89.66% of LOC.
  • " *.xml" is smallest, containing 10.34% of LOC.


*.sh52 LOC (89%) 1 file
*.xml6 LOC (10%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
  • 115 files match defined criteria (16,729 LOC, 467.9% vs. main code):
    • 66 *.adoc files (12,545 LOC)
    • 48 *.md files (4,148 LOC)
    • 1 *.txt files (36 LOC)
  • " *.adoc" is biggest, containing 74.99% of LOC.
  • " *.txt" is smallest, containing 0.22% of LOC.


*.adoc12545 LOC (74%) 66 files
*.md4148 LOC (24%) 48 files
*.txt36 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:08