aws / aws-xray-daemon
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
spec
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.

main2387 LOC (39%) 31 files
test2541 LOC (42%) 15 files
generated0 LOC (0%) 0 files
build and deployment176 LOC (2%) 9 files
other920 LOC (15%) 8 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 31 files match defined criteria (2,387 LOC, 100.0% vs. main code):
    • 21 *.go files (2,001 LOC)
    • 3 *.tf files (287 LOC)
    • 1 *.spec files (57 LOC)
    • 5 *.tfvars files (25 LOC)
    • 1 *.yaml files (17 LOC)
  • " *.go" is biggest, containing 83.83% of LOC.
  • " *.yaml" is smallest, containing 0.71% of LOC.


*.go2001 LOC (83%) 21 files
*.tf287 LOC (12%) 3 files
*.spec57 LOC (2%) 1 file
*.tfvars25 LOC (1%) 5 files
*.yaml17 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 ".*/[Tt]est/.*".
  • 15 files match defined criteria (2,541 LOC, 106.5% vs. main code). All matches are in *.go files.


*.go2541 LOC (100%) 15 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".
  • 9 files match defined criteria (176 LOC, 7.4% vs. main code). All matches are in *.sh files.


*.sh176 LOC (100%) 9 files
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 8 files match defined criteria (920 LOC, 38.5% vs. main code):
    • 1 *.txt files (669 LOC)
    • 6 *.md files (230 LOC)
    • 1 *.mod files (21 LOC)
  • " *.txt" is biggest, containing 72.72% of LOC.
  • " *.mod" is smallest, containing 2.28% of LOC.


*.txt669 LOC (72%) 1 file
*.md230 LOC (25%) 6 files
*.mod21 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:53