aws / serverless-application-model
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
in
cfg
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.

main27224 LOC (6%) 380 files
test46373 LOC (11%) 894 files
generated975 LOC (<1%) 16 files
build and deployment0 LOC (0%) 0 files
other343660 LOC (82%) 1,924 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 380 files match defined criteria (27,224 LOC, 100.0% vs. main code):
    • 185 *.py files (16,785 LOC)
    • 190 *.yaml files (10,327 LOC)
    • 3 *.toml files (92 LOC)
    • 1 *.in files (14 LOC)
    • 1 *.cfg files (6 LOC)
  • " *.py" is biggest, containing 61.66% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.py16785 LOC (61%) 185 files
*.yaml10327 LOC (37%) 190 files
*.toml92 LOC (<1%) 3 files
*.in14 LOC (<1%) 1 file
*.cfg6 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 ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 894 files match defined criteria (46,373 LOC, 170.3% vs. main code):
    • 729 *.yaml files (28,730 LOC)
    • 164 *.py files (17,619 LOC)
    • 1 *.toml files (24 LOC)
  • " *.yaml" is biggest, containing 61.95% of LOC.
  • " *.toml" is smallest, containing 0.05% of LOC.


*.yaml28730 LOC (61%) 729 files
*.py17619 LOC (37%) 164 files
*.toml24 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_generated[.][a-z]+".
  • 16 files match defined criteria (975 LOC, 3.6% vs. main code):
    • 7 *.json files (503 LOC)
    • 4 *.py files (253 LOC)
    • 5 *.yaml files (219 LOC)
  • " *.json" is biggest, containing 51.59% of LOC.
  • " *.yaml" is smallest, containing 22.46% of LOC.


*.json503 LOC (51%) 7 files
*.py253 LOC (25%) 4 files
*.yaml219 LOC (22%) 5 files
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
  • 1924 files match defined criteria (343,660 LOC, 1262.3% vs. main code):
    • 1,911 *.json files (342,978 LOC)
    • 8 *.md files (599 LOC)
    • 2 *.ini files (34 LOC)
    • 2 *.txt files (31 LOC)
    • 1 *.yaml files (18 LOC)
  • " *.json" is biggest, containing 99.8% of LOC.
  • " *.yaml" is smallest, containing 0.01% of LOC.


*.json342978 LOC (99%) 1,911 files
*.md599 LOC (<1%) 8 files
*.ini34 LOC (<1%) 2 files
*.txt31 LOC (<1%) 2 files
*.yaml18 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 22:06