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.

main73769 LOC (49%) 1,071 files
test40011 LOC (26%) 756 files
generated0 LOC (0%) 0 files
build and deployment8163 LOC (5%) 1 file
other27369 LOC (18%) 672 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 ".*".
  • 1071 files match defined criteria (73,769 LOC, 100.0% vs. main code):
    • 463 *.ts files (30,840 LOC)
    • 463 *.tsx files (29,318 LOC)
    • 114 *.jsx files (11,661 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 41.81% of LOC.
  • " *.css" is smallest, containing 0.01% of LOC.


*.ts30840 LOC (41%) 463 files
*.tsx29318 LOC (39%) 463 files
*.jsx11661 LOC (15%) 114 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 ".*/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 ".*/[Tt]est/.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/__mocks?__/.*".
  • 756 files match defined criteria (40,011 LOC, 54.2% vs. main code):
    • 611 *.tsx files (28,835 LOC)
    • 126 *.ts files (8,398 LOC)
    • 14 *.js files (2,604 LOC)
    • 5 *.snap files (174 LOC)
  • " *.tsx" is biggest, containing 72.07% of LOC.
  • " *.snap" is smallest, containing 0.43% of LOC.


*.tsx28835 LOC (72%) 611 files
*.ts8398 LOC (20%) 126 files
*.js2604 LOC (6%) 14 files
*.snap174 LOC (<1%) 5 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 1 file matches defined criteria (8,163 LOC, 11.1% vs. main code). All matches are in *.yaml files.


*.yaml8163 LOC (100%) 1 file
Other Code
mdx
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]vscodeignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]txt".
  • 672 files match defined criteria (27,369 LOC, 37.1% vs. main code):
    • 426 *.tsx files (15,510 LOC)
    • 113 *.mdx files (9,575 LOC)
    • 30 *.json files (1,015 LOC)
    • 11 *.md files (627 LOC)
    • 91 *.svg files (604 LOC)
    • 1 *.txt files (38 LOC)
  • " *.tsx" is biggest, containing 56.67% of LOC.
  • " *.txt" is smallest, containing 0.14% of LOC.


*.tsx15510 LOC (56%) 426 files
*.mdx9575 LOC (34%) 113 files
*.json1015 LOC (3%) 30 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.


2024-04-03 14:38