elastic / enterprise-search-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
npmignore
mjs
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.

main5562 LOC (64%) 18 files
test2663 LOC (30%) 38 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other380 LOC (4%) 15 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 ".*".
  • 18 files match defined criteria (5,562 LOC, 100.0% vs. main code):
    • 16 *.ts files (5,510 LOC)
    • 1 *.yaml files (41 LOC)
    • 1 *.js files (11 LOC)
  • " *.ts" is biggest, containing 99.07% of LOC.
  • " *.js" is smallest, containing 0.2% of LOC.


*.ts5510 LOC (99%) 16 files
*.yaml41 LOC (<1%) 1 file
*.js11 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 ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 38 files match defined criteria (2,663 LOC, 47.9% vs. main code):
    • 36 *.ts files (2,490 LOC)
    • 2 *.js files (173 LOC)
  • " *.ts" is biggest, containing 93.5% of LOC.
  • " *.js" is smallest, containing 6.5% of LOC.


*.ts2490 LOC (93%) 36 files
*.js173 LOC (6%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
  • 15 files match defined criteria (380 LOC, 6.8% vs. main code):
    • 6 *.json files (214 LOC)
    • 6 *.md files (160 LOC)
    • 3 *.txt files (6 LOC)
  • " *.json" is biggest, containing 56.32% of LOC.
  • " *.txt" is smallest, containing 1.58% of LOC.


*.json214 LOC (56%) 6 files
*.md160 LOC (42%) 6 files
*.txt6 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:54