aws / aws-connected-device-framework
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
properties
snap
gitattributes
editorconfig
npmrc
io
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.

main80606 LOC (63%) 893 files
test19182 LOC (14%) 149 files
generated0 LOC (0%) 0 files
build and deployment455 LOC (<1%) 8 files
other27691 LOC (21%) 393 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 ".*".
  • 893 files match defined criteria (80,606 LOC, 100.0% vs. main code):
    • 802 *.ts files (72,043 LOC)
    • 54 *.yaml files (6,321 LOC)
    • 29 *.bash files (1,546 LOC)
    • 8 *.js files (696 LOC)
  • " *.ts" is biggest, containing 89.38% of LOC.
  • " *.js" is smallest, containing 0.86% of LOC.


*.ts72043 LOC (89%) 802 files
*.yaml6321 LOC (7%) 54 files
*.bash1546 LOC (1%) 29 files
*.js696 LOC (<1%) 8 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 149 files match defined criteria (19,182 LOC, 23.8% vs. main code):
    • 102 *.ts files (14,960 LOC)
    • 41 *.feature files (4,027 LOC)
    • 2 *.snap files (136 LOC)
    • 2 *.yaml files (51 LOC)
    • 2 *.js files (8 LOC)
  • " *.ts" is biggest, containing 77.99% of LOC.
  • " *.js" is smallest, containing 0.04% of LOC.


*.ts14960 LOC (77%) 102 files
*.feature4027 LOC (20%) 41 files
*.snap136 LOC (<1%) 2 files
*.yaml51 LOC (<1%) 2 files
*.js8 LOC (<1%) 2 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/[.]gitattributes".
  • 8 files match defined criteria (455 LOC, 0.6% vs. main code):
    • 7 *.sh files (438 LOC)
    • 1 *.yaml files (17 LOC)
  • " *.sh" is biggest, containing 96.26% of LOC.
  • " *.yaml" is smallest, containing 3.74% of LOC.


*.sh438 LOC (96%) 7 files
*.yaml17 LOC (3%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 393 files match defined criteria (27,691 LOC, 34.4% vs. main code):
    • 233 *.json files (18,197 LOC)
    • 149 *.md files (7,932 LOC)
    • 9 *.txt files (1,515 LOC)
    • 2 *.properties files (47 LOC)
  • " *.json" is biggest, containing 65.71% of LOC.
  • " *.properties" is smallest, containing 0.17% of LOC.


*.json18197 LOC (65%) 233 files
*.md7932 LOC (28%) 149 files
*.txt1515 LOC (5%) 9 files
*.properties47 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:37