elastic / apm-agent-rum-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
ejs
mjs
editorconfig
eslintignore
npmrc
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.

main8058 LOC (33%) 98 files
test13251 LOC (55%) 153 files
generated0 LOC (0%) 0 files
build and deployment97 LOC (<1%) 4 files
other2406 LOC (10%) 39 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 ".*".
  • 98 files match defined criteria (8,058 LOC, 100.0% vs. main code):
    • 91 *.js files (7,503 LOC)
    • 3 *.mjs files (468 LOC)
    • 4 *.ts files (87 LOC)
  • " *.js" is biggest, containing 93.11% of LOC.
  • " *.ts" is smallest, containing 1.08% of LOC.


*.js7503 LOC (93%) 91 files
*.mjs468 LOC (5%) 3 files
*.ts87 LOC (1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
ejs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[-]tests/.*".
  • 153 files match defined criteria (13,251 LOC, 164.4% vs. main code):
    • 116 *.js files (12,408 LOC)
    • 17 *.ts files (554 LOC)
    • 9 *.html files (136 LOC)
    • 5 *.ejs files (77 LOC)
    • 4 *.vue files (74 LOC)
    • 2 *.sh files (2 LOC)
  • " *.js" is biggest, containing 93.64% of LOC.
  • " *.sh" is smallest, containing 0.02% of LOC.


*.js12408 LOC (93%) 116 files
*.ts554 LOC (4%) 17 files
*.html136 LOC (1%) 9 files
*.ejs77 LOC (<1%) 5 files
*.vue74 LOC (<1%) 4 files
*.sh2 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 4 files match defined criteria (97 LOC, 1.2% vs. main code):
    • 3 *.sh files (53 LOC)
    • 1 *.js files (44 LOC)
  • " *.sh" is biggest, containing 54.64% of LOC.
  • " *.js" is smallest, containing 45.36% of LOC.


*.sh53 LOC (54%) 3 files
*.js44 LOC (45%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 39 files match defined criteria (2,406 LOC, 29.9% vs. main code):
    • 15 *.md files (1,064 LOC)
    • 19 *.json files (703 LOC)
    • 5 *.txt files (639 LOC)
  • " *.md" is biggest, containing 44.22% of LOC.
  • " *.txt" is smallest, containing 26.56% of LOC.


*.md1064 LOC (44%) 15 files
*.json703 LOC (29%) 19 files
*.txt639 LOC (26%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:42