aws / amazon-ssm-agent
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
mod
spec
plist
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.

main677525 LOC (75%) 2,851 files
test216714 LOC (24%) 924 files
generated0 LOC (0%) 0 files
build and deployment1579 LOC (<1%) 31 files
other4225 LOC (<1%) 42 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 ".*".
  • 2851 files match defined criteria (677,525 LOC, 100.0% vs. main code):
    • 2,844 *.go files (676,885 LOC)
    • 3 *.ps1 files (228 LOC)
    • 1 *.yaml files (205 LOC)
    • 2 *.spec files (190 LOC)
    • 1 *.xml files (17 LOC)
  • " *.go" is biggest, containing 99.91% of LOC.
  • " *.xml" is smallest, containing 0% of LOC.


*.go676885 LOC (99%) 2,844 files
*.ps1228 LOC (<1%) 3 files
*.yaml205 LOC (<1%) 1 file
*.spec190 LOC (<1%) 2 files
*.xml17 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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 924 files match defined criteria (216,714 LOC, 32.0% vs. main code). All matches are in *.go files.


*.go216714 LOC (100%) 924 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 31 files match defined criteria (1,579 LOC, 0.2% vs. main code):
    • 29 *.sh files (1,443 LOC)
    • 2 *.bat files (136 LOC)
  • " *.sh" is biggest, containing 91.39% of LOC.
  • " *.bat" is smallest, containing 8.61% of LOC.


*.sh1443 LOC (91%) 29 files
*.bat136 LOC (8%) 2 files
Other Code
txt
mod
plist
ini
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 ".*/checkstyle.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]plist".
  • 42 files match defined criteria (4,225 LOC, 0.6% vs. main code):
    • 16 *.md files (2,397 LOC)
    • 18 *.json files (1,496 LOC)
    • 2 *.txt files (172 LOC)
    • 3 *.mod files (71 LOC)
    • 1 *.sh files (61 LOC)
    • 1 *.plist files (18 LOC)
    • 1 *.ini files (10 LOC)
  • " *.md" is biggest, containing 56.73% of LOC.
  • " *.ini" is smallest, containing 0.24% of LOC.


*.md2397 LOC (56%) 16 files
*.json1496 LOC (35%) 18 files
*.txt172 LOC (4%) 2 files
*.mod71 LOC (1%) 3 files
*.sh61 LOC (1%) 1 file
*.plist18 LOC (<1%) 1 file
*.ini10 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 22:05