aws / amazon-chime-sdk-js
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
proto
eslintignore
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.

main35193 LOC (22%) 546 files
test57887 LOC (37%) 174 files
generated20595 LOC (13%) 6 files
build and deployment39 LOC (<1%) 1 file
other39463 LOC (25%) 128 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 546 files match defined criteria (35,193 LOC, 100.0% vs. main code):
    • 368 *.ts files (25,986 LOC)
    • 177 *.js files (8,764 LOC)
    • 1 *.proto files (443 LOC)
  • " *.ts" is biggest, containing 73.84% of LOC.
  • " *.proto" is smallest, containing 1.26% of LOC.


*.ts25986 LOC (73%) 368 files
*.js8764 LOC (24%) 177 files
*.proto443 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[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 174 files match defined criteria (57,887 LOC, 164.5% vs. main code):
    • 173 *.ts files (57,741 LOC)
    • 1 *.html files (146 LOC)
  • " *.ts" is biggest, containing 99.75% of LOC.
  • " *.html" is smallest, containing 0.25% of LOC.


*.ts57741 LOC (99%) 173 files
*.html146 LOC (<1%) 1 file
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".
    • files with any line of content like "//[ ]*Generated by .*".
  • 6 files match defined criteria (20,595 LOC, 58.5% vs. main code):
    • 5 *.json files (20,397 LOC)
    • 1 *.ts files (198 LOC)
  • " *.json" is biggest, containing 99.04% of LOC.
  • " *.ts" is smallest, containing 0.96% of LOC.


*.json20397 LOC (99%) 5 files
*.ts198 LOC (<1%) 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[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 1 file matches defined criteria (39 LOC, 0.1% vs. main code). All matches are in *.js files.


*.js39 LOC (100%) 1 file
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]eslintignore".
  • 128 files match defined criteria (39,463 LOC, 112.1% vs. main code):
    • 67 *.json files (22,578 LOC)
    • 28 *.md files (6,498 LOC)
    • 19 *.ts files (6,140 LOC)
    • 8 *.js files (1,717 LOC)
    • 4 *.html files (1,295 LOC)
    • 2 *.scss files (1,235 LOC)
  • " *.json" is biggest, containing 57.21% of LOC.
  • " *.scss" is smallest, containing 3.13% of LOC.


*.json22578 LOC (57%) 67 files
*.md6498 LOC (16%) 28 files
*.ts6140 LOC (15%) 19 files
*.js1717 LOC (4%) 8 files
*.html1295 LOC (3%) 4 files
*.scss1235 LOC (3%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:08