elastic / elastic-otel-node
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
mjs
npmrc
proto
txt
editorconfig
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.

main2015 LOC (3%) 23 files
test9951 LOC (18%) 142 files
generated18836 LOC (35%) 4 files
build and deployment212 LOC (<1%) 4 files
other21540 LOC (40%) 73 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 23 files match defined criteria (2,015 LOC, 100.0% vs. main code):
    • 15 *.js files (1,241 LOC)
    • 6 *.ts files (737 LOC)
    • 2 *.mjs files (37 LOC)
  • " *.js" is biggest, containing 61.59% of LOC.
  • " *.mjs" is smallest, containing 1.84% of LOC.


*.js1241 LOC (61%) 15 files
*.ts737 LOC (36%) 6 files
*.mjs37 LOC (1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
mjs
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[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
  • 142 files match defined criteria (9,951 LOC, 493.8% vs. main code):
    • 108 *.js files (7,754 LOC)
    • 9 *.proto files (1,463 LOC)
    • 3 *.html files (218 LOC)
    • 7 *.yaml files (211 LOC)
    • 7 *.mjs files (167 LOC)
    • 3 *.ts files (61 LOC)
    • 1 *.sh files (40 LOC)
    • 2 *.xml files (32 LOC)
    • 1 *.css files (3 LOC)
    • 1 *.cjs files (2 LOC)
  • " *.js" is biggest, containing 77.92% of LOC.
  • " *.cjs" is smallest, containing 0.02% of LOC.


*.js7754 LOC (77%) 108 files
*.proto1463 LOC (14%) 9 files
*.html218 LOC (2%) 3 files
*.yaml211 LOC (2%) 7 files
*.mjs167 LOC (1%) 7 files
*.ts61 LOC (<1%) 3 files
*.sh40 LOC (<1%) 1 file
*.xml32 LOC (<1%) 2 files
*.css3 LOC (<1%) 1 file
*.cjs2 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".
  • 4 files match defined criteria (18,836 LOC, 934.8% vs. main code). All matches are in *.json files.


*.json18836 LOC (100%) 4 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 ".*/package[-]lock[.]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".
  • 4 files match defined criteria (212 LOC, 10.5% vs. main code). All matches are in *.sh files.


*.sh212 LOC (100%) 4 files
Other Code
mjs
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]npmrc".
    • 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 ".*[.]txt".
  • 73 files match defined criteria (21,540 LOC, 1069.0% vs. main code):
    • 25 *.json files (19,472 LOC)
    • 24 *.md files (1,451 LOC)
    • 13 *.js files (321 LOC)
    • 5 *.mjs files (200 LOC)
    • 4 *.txt files (55 LOC)
    • 2 *.yaml files (41 LOC)
  • " *.json" is biggest, containing 90.4% of LOC.
  • " *.yaml" is smallest, containing 0.19% of LOC.


*.json19472 LOC (90%) 25 files
*.md1451 LOC (6%) 24 files
*.js321 LOC (1%) 13 files
*.mjs200 LOC (<1%) 5 files
*.txt55 LOC (<1%) 4 files
*.yaml41 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:04