elastic / request-converter
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
tpl
gitattributes
txt
csproj
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.

main1221 LOC (25%) 16 files
test2465 LOC (52%) 19 files
generated0 LOC (0%) 0 files
build and deployment62 LOC (1%) 4 files
other949 LOC (20%) 21 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 16 files match defined criteria (1,221 LOC, 100.0% vs. main code):
    • 8 *.ts files (1,032 LOC)
    • 2 *.tpl files (101 LOC)
    • 5 *.mjs files (86 LOC)
    • 1 *.js files (2 LOC)
  • " *.ts" is biggest, containing 84.52% of LOC.
  • " *.js" is smallest, containing 0.16% of LOC.


*.ts1032 LOC (84%) 8 files
*.tpl101 LOC (8%) 2 files
*.mjs86 LOC (7%) 5 files
*.js2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 19 files match defined criteria (2,465 LOC, 201.9% vs. main code):
    • 5 *.ts files (1,230 LOC)
    • 2 *.py files (792 LOC)
    • 1 *.cs files (145 LOC)
    • 2 *.js files (122 LOC)
    • 3 *.rs files (74 LOC)
    • 3 *.sh files (46 LOC)
    • 1 *.toml files (23 LOC)
    • 1 *.mjs files (20 LOC)
    • 1 *.csproj files (13 LOC)
  • " *.ts" is biggest, containing 49.9% of LOC.
  • " *.csproj" is smallest, containing 0.53% of LOC.


*.ts1230 LOC (49%) 5 files
*.py792 LOC (32%) 2 files
*.cs145 LOC (5%) 1 file
*.js122 LOC (4%) 2 files
*.rs74 LOC (3%) 3 files
*.sh46 LOC (1%) 3 files
*.toml23 LOC (<1%) 1 file
*.mjs20 LOC (<1%) 1 file
*.csproj13 LOC (<1%) 1 file
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 4 files match defined criteria (62 LOC, 5.1% vs. main code). All matches are in *.sh files.


*.sh62 LOC (100%) 4 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]prettierignore".
  • 21 files match defined criteria (949 LOC, 77.7% vs. main code):
    • 3 *.tsx files (329 LOC)
    • 5 *.md files (261 LOC)
    • 8 *.json files (211 LOC)
    • 1 *.css files (52 LOC)
    • 2 *.ts files (45 LOC)
    • 1 *.js files (36 LOC)
    • 1 *.html files (15 LOC)
  • " *.tsx" is biggest, containing 34.67% of LOC.
  • " *.html" is smallest, containing 1.58% of LOC.


*.tsx329 LOC (34%) 3 files
*.md261 LOC (27%) 5 files
*.json211 LOC (22%) 8 files
*.css52 LOC (5%) 1 file
*.ts45 LOC (4%) 2 files
*.js36 LOC (3%) 1 file
*.html15 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:06