elastic / elastic-charts
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
mdx
snap
txt
npmignore
gitattributes
editorconfig
npmrc
babelrc
ejs
jsonc
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.

main76055 LOC (55%) 1,093 files
test46625 LOC (33%) 230 files
generated0 LOC (0%) 0 files
build and deployment334 LOC (<1%) 6 files
other15089 LOC (10%) 38 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jsonc
ejs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1093 files match defined criteria (76,055 LOC, 100.0% vs. main code):
    • 545 *.ts files (41,767 LOC)
    • 479 *.tsx files (31,921 LOC)
    • 51 *.scss files (1,440 LOC)
    • 13 *.js files (415 LOC)
    • 1 *.jsonc files (406 LOC)
    • 2 *.html files (55 LOC)
    • 1 *.ejs files (35 LOC)
    • 1 *.yaml files (16 LOC)
  • " *.ts" is biggest, containing 54.92% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.ts41767 LOC (54%) 545 files
*.tsx31921 LOC (41%) 479 files
*.scss1440 LOC (1%) 51 files
*.js415 LOC (<1%) 13 files
*.jsonc406 LOC (<1%) 1 file
*.html55 LOC (<1%) 2 files
*.ejs35 LOC (<1%) 1 file
*.yaml16 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 ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 230 files match defined criteria (46,625 LOC, 61.3% vs. main code):
    • 176 *.ts files (32,644 LOC)
    • 10 *.snap files (9,147 LOC)
    • 37 *.tsx files (4,635 LOC)
    • 3 *.js files (137 LOC)
    • 4 *.sh files (62 LOC)
  • " *.ts" is biggest, containing 70.01% of LOC.
  • " *.sh" is smallest, containing 0.13% of LOC.


*.ts32644 LOC (70%) 176 files
*.snap9147 LOC (19%) 10 files
*.tsx4635 LOC (9%) 37 files
*.js137 LOC (<1%) 3 files
*.sh62 LOC (<1%) 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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (334 LOC, 0.4% vs. main code):
    • 3 *.js files (319 LOC)
    • 3 *.sh files (15 LOC)
  • " *.js" is biggest, containing 95.51% of LOC.
  • " *.sh" is smallest, containing 4.49% of LOC.


*.js319 LOC (95%) 3 files
*.sh15 LOC (4%) 3 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]prettierignore".
  • 38 files match defined criteria (15,089 LOC, 19.8% vs. main code):
    • 27 *.json files (12,865 LOC)
    • 7 *.md files (2,115 LOC)
    • 2 *.txt files (80 LOC)
    • 2 *.svg files (29 LOC)
  • " *.json" is biggest, containing 85.26% of LOC.
  • " *.svg" is smallest, containing 0.19% of LOC.


*.json12865 LOC (85%) 27 files
*.md2115 LOC (14%) 7 files
*.txt80 LOC (<1%) 2 files
*.svg29 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:47