uber / nebula.gl
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
babelrc
txt
eslintignore
gitattributes
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.

main12400 LOC (49%) 138 files
test6938 LOC (27%) 43 files
generated0 LOC (0%) 0 files
build and deployment43 LOC (<1%) 2 files
other5878 LOC (23%) 80 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 138 files match defined criteria (12,400 LOC, 100.0% vs. main code):
    • 118 *.ts files (10,244 LOC)
    • 13 *.tsx files (1,858 LOC)
    • 7 *.js files (298 LOC)
  • " *.ts" is biggest, containing 82.61% of LOC.
  • " *.js" is smallest, containing 2.4% of LOC.


*.ts10244 LOC (82%) 118 files
*.tsx1858 LOC (14%) 13 files
*.js298 LOC (2%) 7 files
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 ".*[.]snap".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/vitest[.].*".
  • 43 files match defined criteria (6,938 LOC, 56.0% vs. main code):
    • 30 *.ts files (4,638 LOC)
    • 11 *.snap files (2,267 LOC)
    • 2 *.tsx files (33 LOC)
  • " *.ts" is biggest, containing 66.85% of LOC.
  • " *.tsx" is smallest, containing 0.48% of LOC.


*.ts4638 LOC (66%) 30 files
*.snap2267 LOC (32%) 11 files
*.tsx33 LOC (<1%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 2 files match defined criteria (43 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh43 LOC (100%) 2 files
Other Code
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 ".*/[.]prettierignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
  • 80 files match defined criteria (5,878 LOC, 47.4% vs. main code):
    • 19 *.js files (1,674 LOC)
    • 5 *.tsx files (1,389 LOC)
    • 10 *.md files (1,228 LOC)
    • 31 *.json files (1,221 LOC)
    • 2 *.txt files (189 LOC)
    • 7 *.svg files (83 LOC)
    • 2 *.ts files (56 LOC)
    • 2 *.html files (21 LOC)
    • 1 *.sh files (9 LOC)
    • 1 *.css files (8 LOC)
  • " *.js" is biggest, containing 28.48% of LOC.
  • " *.css" is smallest, containing 0.14% of LOC.


*.js1674 LOC (28%) 19 files
*.tsx1389 LOC (23%) 5 files
*.md1228 LOC (20%) 10 files
*.json1221 LOC (20%) 31 files
*.txt189 LOC (3%) 2 files
*.svg83 LOC (1%) 7 files
*.ts56 LOC (<1%) 2 files
*.html21 LOC (<1%) 2 files
*.sh9 LOC (<1%) 1 file
*.css8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-04-18 12:57