uber / baseweb
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
npmrc
txt
npmignore
webmanifest
vscodeignore
mjs
eslintignore
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.

main80111 LOC (51%) 1,113 files
test44710 LOC (28%) 815 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other29430 LOC (19%) 729 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1113 files match defined criteria (80,111 LOC, 100.0% vs. main code):
    • 491 *.ts files (35,123 LOC)
    • 476 *.tsx files (31,255 LOC)
    • 115 *.jsx files (11,783 LOC)
    • 26 *.js files (1,871 LOC)
    • 1 *.mjs files (30 LOC)
    • 1 *.html files (20 LOC)
    • 1 *.webmanifest files (14 LOC)
    • 1 *.xml files (9 LOC)
    • 1 *.css files (6 LOC)
  • " *.ts" is biggest, containing 43.84% of LOC.
  • " *.css" is smallest, containing 0.01% of LOC.


*.ts35123 LOC (43%) 491 files
*.tsx31255 LOC (39%) 476 files
*.jsx11783 LOC (14%) 115 files
*.js1871 LOC (2%) 26 files
*.mjs30 LOC (<1%) 1 file
*.html20 LOC (<1%) 1 file
*.webmanifest14 LOC (<1%) 1 file
*.xml9 LOC (<1%) 1 file
*.css6 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 ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[.]snap".
  • 815 files match defined criteria (44,710 LOC, 55.8% vs. main code):
    • 666 *.tsx files (33,220 LOC)
    • 130 *.ts files (8,712 LOC)
    • 14 *.js files (2,604 LOC)
    • 5 *.snap files (174 LOC)
  • " *.tsx" is biggest, containing 74.3% of LOC.
  • " *.snap" is smallest, containing 0.39% of LOC.


*.tsx33220 LOC (74%) 666 files
*.ts8712 LOC (19%) 130 files
*.js2604 LOC (5%) 14 files
*.snap174 LOC (<1%) 5 files
Other Code
mdx
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]vscodeignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[Ee]xamples/.*".
  • 729 files match defined criteria (29,430 LOC, 36.7% vs. main code):
    • 471 *.tsx files (17,036 LOC)
    • 123 *.mdx files (10,079 LOC)
    • 32 *.json files (1,046 LOC)
    • 11 *.md files (627 LOC)
    • 91 *.svg files (604 LOC)
    • 1 *.txt files (38 LOC)
  • " *.tsx" is biggest, containing 57.89% of LOC.
  • " *.txt" is smallest, containing 0.13% of LOC.


*.tsx17036 LOC (57%) 471 files
*.mdx10079 LOC (34%) 123 files
*.json1046 LOC (3%) 32 files
*.md627 LOC (2%) 11 files
*.svg604 LOC (2%) 91 files
*.txt38 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-04-18 12:58