aws / aws-iot-device-sdk-js-v2
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
feature
npmignore
txt
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.

main7234 LOC (25%) 29 files
test1771 LOC (6%) 23 files
generated4727 LOC (16%) 1 file
build and deployment173 LOC (<1%) 5 files
other14747 LOC (51%) 166 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 ".*".
  • 29 files match defined criteria (7,234 LOC, 100.0% vs. main code):
    • 21 *.ts files (6,436 LOC)
    • 7 *.py files (785 LOC)
    • 1 *.html files (13 LOC)
  • " *.ts" is biggest, containing 88.97% of LOC.
  • " *.html" is smallest, containing 0.18% of LOC.


*.ts6436 LOC (88%) 21 files
*.py785 LOC (10%) 7 files
*.html13 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 23 files match defined criteria (1,771 LOC, 24.5% vs. main code):
    • 10 *.ts files (1,206 LOC)
    • 4 *.py files (249 LOC)
    • 2 *.xml files (112 LOC)
    • 2 *.feature files (92 LOC)
    • 2 *.yaml files (76 LOC)
    • 1 *.js files (26 LOC)
    • 2 *.sh files (10 LOC)
  • " *.ts" is biggest, containing 68.1% of LOC.
  • " *.sh" is smallest, containing 0.56% of LOC.


*.ts1206 LOC (68%) 10 files
*.py249 LOC (14%) 4 files
*.xml112 LOC (6%) 2 files
*.feature92 LOC (5%) 2 files
*.yaml76 LOC (4%) 2 files
*.js26 LOC (1%) 1 file
*.sh10 LOC (<1%) 2 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 (4,727 LOC, 65.3% vs. main code). All matches are in *.json files.


*.json4727 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/pom[.]xml".
  • 5 files match defined criteria (173 LOC, 2.4% vs. main code). All matches are in *.sh files.


*.sh173 LOC (100%) 5 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
  • 166 files match defined criteria (14,747 LOC, 203.9% vs. main code):
    • 85 *.json files (8,174 LOC)
    • 32 *.md files (2,982 LOC)
    • 23 *.ts files (2,498 LOC)
    • 12 *.js files (623 LOC)
    • 3 *.tsx files (345 LOC)
    • 6 *.html files (67 LOC)
    • 5 *.sh files (58 LOC)
  • " *.json" is biggest, containing 55.43% of LOC.
  • " *.sh" is smallest, containing 0.39% of LOC.


*.json8174 LOC (55%) 85 files
*.md2982 LOC (20%) 32 files
*.ts2498 LOC (16%) 23 files
*.js623 LOC (4%) 12 files
*.tsx345 LOC (2%) 3 files
*.html67 LOC (<1%) 6 files
*.sh58 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:56