GoogleCloudPlatform / firebase-extensions
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
gitattributes
txt
editorconfig
eslintignore
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.

main14837 LOC (9%) 195 files
test10667 LOC (6%) 124 files
generated61712 LOC (40%) 8 files
build and deployment302 LOC (<1%) 8 files
other65560 LOC (42%) 141 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 ".*".
  • 195 files match defined criteria (14,837 LOC, 100.0% vs. main code):
    • 170 *.ts files (10,053 LOC)
    • 17 *.yaml files (4,285 LOC)
    • 7 *.java files (498 LOC)
    • 1 *.js files (1 LOC)
  • " *.ts" is biggest, containing 67.76% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.ts10053 LOC (67%) 170 files
*.yaml4285 LOC (28%) 17 files
*.java498 LOC (3%) 7 files
*.js1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*__tests__.*".
    • 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_\- ]+/.*".
  • 124 files match defined criteria (10,667 LOC, 71.9% vs. main code):
    • 105 *.ts files (10,315 LOC)
    • 19 *.js files (352 LOC)
  • " *.ts" is biggest, containing 96.7% of LOC.
  • " *.js" is smallest, containing 3.3% of LOC.


*.ts10315 LOC (96%) 105 files
*.js352 LOC (3%) 19 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 8 files match defined criteria (61,712 LOC, 415.9% vs. main code). All matches are in *.json files.


*.json61712 LOC (100%) 8 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 8 files match defined criteria (302 LOC, 2.0% vs. main code):
    • 7 *.sh files (193 LOC)
    • 1 *.xml files (109 LOC)
  • " *.sh" is biggest, containing 63.91% of LOC.
  • " *.xml" is smallest, containing 36.09% of LOC.


*.sh193 LOC (63%) 7 files
*.xml109 LOC (36%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
  • 141 files match defined criteria (65,560 LOC, 441.9% vs. main code):
    • 70 *.json files (62,898 LOC)
    • 71 *.md files (2,662 LOC)
  • " *.json" is biggest, containing 95.94% of LOC.
  • " *.md" is smallest, containing 4.06% of LOC.


*.json62898 LOC (95%) 70 files
*.md2662 LOC (4%) 71 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:39