aws / firelens-datajet
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
ejs
txt
gitattributes
editorconfig
npmrc
lua
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.

main15683 LOC (34%) 186 files
test14 LOC (<1%) 1 file
generated11537 LOC (25%) 3 files
build and deployment131 LOC (<1%) 3 files
other17909 LOC (39%) 131 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ejs
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 186 files match defined criteria (15,683 LOC, 100.0% vs. main code):
    • 59 *.js files (5,770 LOC)
    • 62 *.ejs files (4,385 LOC)
    • 58 *.ts files (3,799 LOC)
    • 4 *.yaml files (830 LOC)
    • 1 *.lua files (707 LOC)
    • 1 *.cjs files (157 LOC)
    • 1 *.rs files (35 LOC)
  • " *.js" is biggest, containing 36.79% of LOC.
  • " *.rs" is smallest, containing 0.22% of LOC.


*.js5770 LOC (36%) 59 files
*.ejs4385 LOC (27%) 62 files
*.ts3799 LOC (24%) 58 files
*.yaml830 LOC (5%) 4 files
*.lua707 LOC (4%) 1 file
*.cjs157 LOC (1%) 1 file
*.rs35 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 ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
  • 1 file matches defined criteria (14 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh14 LOC (100%) 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".
  • 3 files match defined criteria (11,537 LOC, 73.6% vs. main code). All matches are in *.json files.


*.json11537 LOC (100%) 3 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 ".*[.]sh".
    • 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 ".*/[.]gitattributes".
  • 3 files match defined criteria (131 LOC, 0.8% vs. main code). All matches are in *.sh files.


*.sh131 LOC (100%) 3 files
Other Code
txt
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]dockerignore".
  • 131 files match defined criteria (17,909 LOC, 114.2% vs. main code):
    • 110 *.json files (16,070 LOC)
    • 18 *.md files (1,815 LOC)
    • 2 *.sh files (23 LOC)
    • 1 *.txt files (1 LOC)
  • " *.json" is biggest, containing 89.73% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.json16070 LOC (89%) 110 files
*.md1815 LOC (10%) 18 files
*.sh23 LOC (<1%) 2 files
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:39