elastic / search-ui
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
snap
txt
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.

main7456 LOC (23%) 139 files
test16524 LOC (52%) 131 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other7466 LOC (23%) 127 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 ".*".
  • 139 files match defined criteria (7,456 LOC, 100.0% vs. main code):
    • 89 *.ts files (4,901 LOC)
    • 31 *.tsx files (1,763 LOC)
    • 18 *.scss files (788 LOC)
    • 1 *.js files (4 LOC)
  • " *.ts" is biggest, containing 65.73% of LOC.
  • " *.js" is smallest, containing 0.05% of LOC.


*.ts4901 LOC (65%) 89 files
*.tsx1763 LOC (23%) 31 files
*.scss788 LOC (10%) 18 files
*.js4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*__test__.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
  • 131 files match defined criteria (16,524 LOC, 221.6% vs. main code):
    • 61 *.ts files (10,217 LOC)
    • 30 *.tsx files (3,322 LOC)
    • 28 *.snap files (2,890 LOC)
    • 12 *.js files (95 LOC)
  • " *.ts" is biggest, containing 61.83% of LOC.
  • " *.js" is smallest, containing 0.57% of LOC.


*.ts10217 LOC (61%) 61 files
*.tsx3322 LOC (20%) 30 files
*.snap2890 LOC (17%) 28 files
*.js95 LOC (<1%) 12 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 127 files match defined criteria (7,466 LOC, 100.1% vs. main code):
    • 25 *.jsx files (2,762 LOC)
    • 21 *.txt files (1,715 LOC)
    • 28 *.json files (968 LOC)
    • 17 *.md files (740 LOC)
    • 10 *.vue files (575 LOC)
    • 10 *.js files (281 LOC)
    • 8 *.tsx files (249 LOC)
    • 3 *.css files (117 LOC)
    • 1 *.scss files (26 LOC)
    • 2 *.html files (26 LOC)
    • 1 *.cjs files (6 LOC)
    • 1 *.svg files (1 LOC)
  • " *.jsx" is biggest, containing 36.99% of LOC.
  • " *.svg" is smallest, containing 0.01% of LOC.


*.jsx2762 LOC (36%) 25 files
*.txt1715 LOC (22%) 21 files
*.json968 LOC (12%) 28 files
*.md740 LOC (9%) 17 files
*.vue575 LOC (7%) 10 files
*.js281 LOC (3%) 10 files
*.tsx249 LOC (3%) 8 files
*.css117 LOC (1%) 3 files
*.scss26 LOC (<1%) 1 file
*.html26 LOC (<1%) 2 files
*.cjs6 LOC (<1%) 1 file
*.svg1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:45