elastic / eui
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
mdx
txt
patch
eslintignore
npmignore
gitattributes
editorconfig
mjs
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.

main134249 LOC (46%) 2,143 files
test122688 LOC (42%) 772 files
generated0 LOC (0%) 0 files
build and deployment49 LOC (<1%) 2 files
other30808 LOC (10%) 573 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 ".*".
  • 2143 files match defined criteria (134,249 LOC, 100.0% vs. main code):
    • 1,250 *.tsx files (87,712 LOC)
    • 757 *.ts files (38,718 LOC)
    • 42 *.js files (4,343 LOC)
    • 90 *.scss files (3,205 LOC)
    • 1 *.yaml files (230 LOC)
    • 1 *.css files (16 LOC)
    • 1 *.html files (13 LOC)
    • 1 *.mjs files (12 LOC)
  • " *.tsx" is biggest, containing 65.34% of LOC.
  • " *.mjs" is smallest, containing 0.01% of LOC.


*.tsx87712 LOC (65%) 1,250 files
*.ts38718 LOC (28%) 757 files
*.js4343 LOC (3%) 42 files
*.scss3205 LOC (2%) 90 files
*.yaml230 LOC (<1%) 1 file
*.css16 LOC (<1%) 1 file
*.html13 LOC (<1%) 1 file
*.mjs12 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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 772 files match defined criteria (122,688 LOC, 91.4% vs. main code):
    • 286 *.snap files (64,863 LOC)
    • 373 *.tsx files (45,618 LOC)
    • 98 *.ts files (11,361 LOC)
    • 12 *.js files (715 LOC)
    • 3 *.jsx files (131 LOC)
  • " *.snap" is biggest, containing 52.87% of LOC.
  • " *.jsx" is smallest, containing 0.11% of LOC.


*.snap64863 LOC (52%) 286 files
*.tsx45618 LOC (37%) 373 files
*.ts11361 LOC (9%) 98 files
*.js715 LOC (<1%) 12 files
*.jsx131 LOC (<1%) 3 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (49 LOC, 0.0% vs. main code):
    • 1 *.js files (43 LOC)
    • 1 *.sh files (6 LOC)
  • " *.js" is biggest, containing 87.76% of LOC.
  • " *.sh" is smallest, containing 12.24% of LOC.


*.js43 LOC (87%) 1 file
*.sh6 LOC (12%) 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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]patch".
  • 573 files match defined criteria (30,808 LOC, 22.9% vs. main code):
    • 46 *.json files (15,449 LOC)
    • 71 *.md files (10,631 LOC)
    • 428 *.svg files (4,082 LOC)
    • 9 *.tsx files (433 LOC)
    • 6 *.txt files (108 LOC)
    • 13 *.ts files (105 LOC)
  • " *.json" is biggest, containing 50.15% of LOC.
  • " *.ts" is smallest, containing 0.34% of LOC.


*.json15449 LOC (50%) 46 files
*.md10631 LOC (34%) 71 files
*.svg4082 LOC (13%) 428 files
*.tsx433 LOC (1%) 9 files
*.txt108 LOC (<1%) 6 files
*.ts105 LOC (<1%) 13 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:44