aws / aws-encryption-sdk-javascript
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
gitmodules
prettierignore
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.

main14656 LOC (27%) 202 files
test26587 LOC (50%) 133 files
generated2628 LOC (5%) 1 file
build and deployment276 LOC (<1%) 8 files
other8334 LOC (15%) 168 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 202 files match defined criteria (14,656 LOC, 100.0% vs. main code):
    • 193 *.ts files (14,474 LOC)
    • 7 *.html files (98 LOC)
    • 1 *.js files (42 LOC)
    • 1 *.yaml files (42 LOC)
  • " *.ts" is biggest, containing 98.76% of LOC.
  • " *.yaml" is smallest, containing 0.29% of LOC.


*.ts14474 LOC (98%) 193 files
*.html98 LOC (<1%) 7 files
*.js42 LOC (<1%) 1 file
*.yaml42 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 ".*/karma[.]conf[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test[.].*".
  • 133 files match defined criteria (26,587 LOC, 181.4% vs. main code):
    • 122 *.ts files (25,594 LOC)
    • 11 *.js files (993 LOC)
  • " *.ts" is biggest, containing 96.27% of LOC.
  • " *.js" is smallest, containing 3.73% of LOC.


*.ts25594 LOC (96%) 122 files
*.js993 LOC (3%) 11 files
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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,628 LOC, 17.9% vs. main code). All matches are in *.json files.


*.json2628 LOC (100%) 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[-]lock[.]json".
  • 8 files match defined criteria (276 LOC, 1.9% vs. main code). All matches are in *.js files.


*.js276 LOC (100%) 8 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 168 files match defined criteria (8,334 LOC, 56.9% vs. main code):
    • 99 *.json files (4,731 LOC)
    • 68 *.md files (3,569 LOC)
    • 1 *.rst files (34 LOC)
  • " *.json" is biggest, containing 56.77% of LOC.
  • " *.rst" is smallest, containing 0.41% of LOC.


*.json4731 LOC (56%) 99 files
*.md3569 LOC (42%) 68 files
*.rst34 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:54