elastic / apm-aws-lambda
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
mod
npmignore
tpl
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.

main3510 LOC (42%) 55 files
test1124 LOC (13%) 11 files
generated0 LOC (0%) 0 files
build and deployment136 LOC (1%) 10 files
other3576 LOC (42%) 21 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 55 files match defined criteria (3,510 LOC, 100.0% vs. main code):
    • 30 *.go files (2,495 LOC)
    • 14 *.tf files (736 LOC)
    • 2 *.asciidoc files (149 LOC)
    • 4 *.py files (42 LOC)
    • 1 *.java files (41 LOC)
    • 3 *.js files (35 LOC)
    • 1 *.tpl files (12 LOC)
  • " *.go" is biggest, containing 71.08% of LOC.
  • " *.tpl" is smallest, containing 0.34% of LOC.


*.go2495 LOC (71%) 30 files
*.tf736 LOC (20%) 14 files
*.asciidoc149 LOC (4%) 2 files
*.py42 LOC (1%) 4 files
*.java41 LOC (1%) 1 file
*.js35 LOC (<1%) 3 files
*.tpl12 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[.].*".
  • 11 files match defined criteria (1,124 LOC, 32.0% vs. main code):
    • 10 *.go files (1,078 LOC)
    • 1 *.sh files (46 LOC)
  • " *.go" is biggest, containing 95.91% of LOC.
  • " *.sh" is smallest, containing 4.09% of LOC.


*.go1078 LOC (95%) 10 files
*.sh46 LOC (4%) 1 file
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 ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]gradle".
  • 10 files match defined criteria (136 LOC, 3.9% vs. main code):
    • 1 *.bat files (68 LOC)
    • 8 *.sh files (56 LOC)
    • 1 *.gradle files (12 LOC)
  • " *.bat" is biggest, containing 50% of LOC.
  • " *.gradle" is smallest, containing 8.82% of LOC.


*.bat68 LOC (50%) 1 file
*.sh56 LOC (41%) 8 files
*.gradle12 LOC (8%) 1 file
Other Code
txt
mod
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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 21 files match defined criteria (3,576 LOC, 101.9% vs. main code):
    • 3 *.txt files (3,142 LOC)
    • 13 *.md files (291 LOC)
    • 2 *.mod files (118 LOC)
    • 3 *.json files (25 LOC)
  • " *.txt" is biggest, containing 87.86% of LOC.
  • " *.json" is smallest, containing 0.7% of LOC.


*.txt3142 LOC (87%) 3 files
*.md291 LOC (8%) 13 files
*.mod118 LOC (3%) 2 files
*.json25 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:56