elastic / synthetics-recorder
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
npmrc
plist
editorconfig
eslintignore
prettierignore
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.

main4683 LOC (56%) 110 files
test3263 LOC (39%) 51 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other413 LOC (4%) 12 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 ".*".
  • 110 files match defined criteria (4,683 LOC, 100.0% vs. main code):
    • 41 *.tsx files (1,927 LOC)
    • 42 *.ts files (1,507 LOC)
    • 25 *.js files (1,196 LOC)
    • 1 *.yaml files (38 LOC)
    • 1 *.html files (15 LOC)
  • " *.tsx" is biggest, containing 41.15% of LOC.
  • " *.html" is smallest, containing 0.32% of LOC.


*.tsx1927 LOC (41%) 41 files
*.ts1507 LOC (32%) 42 files
*.js1196 LOC (25%) 25 files
*.yaml38 LOC (<1%) 1 file
*.html15 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]ests/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/e2e/.*".
  • 51 files match defined criteria (3,263 LOC, 69.7% vs. main code):
    • 23 *.ts files (1,927 LOC)
    • 20 *.tsx files (1,218 LOC)
    • 8 *.js files (118 LOC)
  • " *.ts" is biggest, containing 59.06% of LOC.
  • " *.js" is smallest, containing 3.62% of LOC.


*.ts1927 LOC (59%) 23 files
*.tsx1218 LOC (37%) 20 files
*.js118 LOC (3%) 8 files
Other Code
plist
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 ".*[.]npmrc".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]dockerignore".
  • 12 files match defined criteria (413 LOC, 8.8% vs. main code):
    • 4 *.md files (210 LOC)
    • 6 *.json files (180 LOC)
    • 1 *.plist files (14 LOC)
    • 1 *.txt files (9 LOC)
  • " *.md" is biggest, containing 50.85% of LOC.
  • " *.txt" is smallest, containing 2.18% of LOC.


*.md210 LOC (50%) 4 files
*.json180 LOC (43%) 6 files
*.plist14 LOC (3%) 1 file
*.txt9 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:55