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.

main75892 LOC (52%) 1,081 files
test41435 LOC (28%) 772 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other28395 LOC (19%) 693 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 ".*".
  • 1081 files match defined criteria (75,892 LOC, 100.0% vs. main code):
    • 468 *.ts files (32,058 LOC)
    • 467 *.tsx files (30,113 LOC)
    • 115 *.jsx files (11,771 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 42.24% of LOC.
  • " *.css" is smallest, containing 0.01% of LOC.


*.ts32058 LOC (42%) 468 files
*.tsx30113 LOC (39%) 467 files
*.jsx11771 LOC (15%) 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 ".*__tests__.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 772 files match defined criteria (41,435 LOC, 54.6% vs. main code):
    • 623 *.tsx files (29,945 LOC)
    • 130 *.ts files (8,712 LOC)
    • 14 *.js files (2,604 LOC)
    • 5 *.snap files (174 LOC)
  • " *.tsx" is biggest, containing 72.27% of LOC.
  • " *.snap" is smallest, containing 0.42% of LOC.


*.tsx29945 LOC (72%) 623 files
*.ts8712 LOC (21%) 130 files
*.js2604 LOC (6%) 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 ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]vscodeignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]mdx".
  • 693 files match defined criteria (28,395 LOC, 37.4% vs. main code):
    • 441 *.tsx files (16,300 LOC)
    • 118 *.mdx files (9,798 LOC)
    • 31 *.json files (1,027 LOC)
    • 11 *.md files (628 LOC)
    • 91 *.svg files (604 LOC)
    • 1 *.txt files (38 LOC)
  • " *.tsx" is biggest, containing 57.4% of LOC.
  • " *.txt" is smallest, containing 0.13% of LOC.


*.tsx16300 LOC (57%) 441 files
*.mdx9798 LOC (34%) 118 files
*.json1027 LOC (3%) 31 files
*.md628 LOC (2%) 11 files
*.svg604 LOC (2%) 91 files
*.txt38 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 07:36