aws / aws-sam-cli-app-templates
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
cfg
txt
mjs
csproj
properties
npmignore
mod
eslintignore
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.

main24106 LOC (30%) 1,016 files
test13895 LOC (17%) 553 files
generated0 LOC (0%) 0 files
build and deployment5171 LOC (6%) 132 files
other36372 LOC (45%) 1,076 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1016 files match defined criteria (24,106 LOC, 100.0% vs. main code):
    • 198 *.yaml files (11,107 LOC)
    • 91 *.java files (3,916 LOC)
    • 413 *.py files (3,882 LOC)
    • 51 *.mjs files (1,464 LOC)
    • 33 *.cs files (1,240 LOC)
    • 12 *.vue files (603 LOC)
    • 6 *.ts files (327 LOC)
    • 13 *.go files (326 LOC)
    • 27 *.js files (285 LOC)
    • 135 *.cfg files (270 LOC)
    • 3 *.rs files (155 LOC)
    • 5 *.ps1 files (145 LOC)
    • 10 *.rb files (139 LOC)
    • 5 *.xml files (80 LOC)
    • 3 *.graphql files (63 LOC)
    • 8 *.toml files (56 LOC)
    • 3 *.html files (48 LOC)
  • " *.yaml" is biggest, containing 46.08% of LOC.
  • " *.html" is smallest, containing 0.2% of LOC.


*.yaml11107 LOC (46%) 198 files
*.java3916 LOC (16%) 91 files
*.py3882 LOC (16%) 413 files
*.mjs1464 LOC (6%) 51 files
*.cs1240 LOC (5%) 33 files
*.vue603 LOC (2%) 12 files
*.ts327 LOC (1%) 6 files
*.go326 LOC (1%) 13 files
*.js285 LOC (1%) 27 files
*.cfg270 LOC (1%) 135 files
*.rs155 LOC (<1%) 3 files
*.ps1145 LOC (<1%) 5 files
*.rb139 LOC (<1%) 10 files
*.xml80 LOC (<1%) 5 files
*.graphql63 LOC (<1%) 3 files
*.toml56 LOC (<1%) 8 files
*.html48 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 553 files match defined criteria (13,895 LOC, 57.6% vs. main code):
    • 340 *.py files (8,063 LOC)
    • 65 *.java files (1,667 LOC)
    • 51 *.mjs files (1,298 LOC)
    • 27 *.cs files (1,000 LOC)
    • 12 *.ts files (504 LOC)
    • 25 *.csproj files (412 LOC)
    • 10 *.go files (350 LOC)
    • 10 *.rb files (332 LOC)
    • 12 *.js files (249 LOC)
    • 1 *.ps1 files (20 LOC)
  • " *.py" is biggest, containing 58.03% of LOC.
  • " *.ps1" is smallest, containing 0.14% of LOC.


*.py8063 LOC (58%) 340 files
*.java1667 LOC (11%) 65 files
*.mjs1298 LOC (9%) 51 files
*.cs1000 LOC (7%) 27 files
*.ts504 LOC (3%) 12 files
*.csproj412 LOC (2%) 25 files
*.go350 LOC (2%) 10 files
*.rb332 LOC (2%) 10 files
*.js249 LOC (1%) 12 files
*.ps120 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 132 files match defined criteria (5,171 LOC, 21.5% vs. main code):
    • 33 *.xml files (1,950 LOC)
    • 29 *.bat files (1,909 LOC)
    • 38 *.gradle files (845 LOC)
    • 25 *.csproj files (403 LOC)
    • 7 *.sh files (64 LOC)
  • " *.xml" is biggest, containing 37.71% of LOC.
  • " *.sh" is smallest, containing 1.24% of LOC.


*.xml1950 LOC (37%) 33 files
*.bat1909 LOC (36%) 29 files
*.gradle845 LOC (16%) 38 files
*.csproj403 LOC (7%) 25 files
*.sh64 LOC (1%) 7 files
Other Code
txt
mod
properties
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 ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]eslintignore".
  • 1076 files match defined criteria (36,372 LOC, 150.9% vs. main code):
    • 399 *.md files (19,982 LOC)
    • 524 *.json files (15,980 LOC)
    • 133 *.txt files (337 LOC)
    • 10 *.mod files (59 LOC)
    • 10 *.properties files (14 LOC)
  • " *.md" is biggest, containing 54.94% of LOC.
  • " *.properties" is smallest, containing 0.04% of LOC.


*.md19982 LOC (54%) 399 files
*.json15980 LOC (43%) 524 files
*.txt337 LOC (<1%) 133 files
*.mod59 LOC (<1%) 10 files
*.properties14 LOC (<1%) 10 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:07