mozilla / blurts-server
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
txt
patch
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.

main104114 LOC (82%) 1,241 files
test19897 LOC (15%) 99 files
generated0 LOC (0%) 0 files
build and deployment23 LOC (<1%) 1 file
other1727 LOC (1%) 62 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 ".*".
  • 1241 files match defined criteria (104,114 LOC, 100.0% vs. main code):
    • 571 *.ftl files (46,507 LOC)
    • 263 *.tsx files (31,461 LOC)
    • 201 *.ts files (14,559 LOC)
    • 107 *.scss files (8,081 LOC)
    • 91 *.js files (2,554 LOC)
    • 4 *.yaml files (860 LOC)
    • 1 *.css files (48 LOC)
    • 2 *.toml files (26 LOC)
    • 1 *.cjs files (18 LOC)
  • " *.ftl" is biggest, containing 44.67% of LOC.
  • " *.cjs" is smallest, containing 0.02% of LOC.


*.ftl46507 LOC (44%) 571 files
*.tsx31461 LOC (30%) 263 files
*.ts14559 LOC (13%) 201 files
*.scss8081 LOC (7%) 107 files
*.js2554 LOC (2%) 91 files
*.yaml860 LOC (<1%) 4 files
*.css48 LOC (<1%) 1 file
*.toml26 LOC (<1%) 2 files
*.cjs18 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 ".*[-]test[-].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[.]spec[.]ts".
  • 99 files match defined criteria (19,897 LOC, 19.1% vs. main code):
    • 38 *.tsx files (11,635 LOC)
    • 60 *.ts files (8,223 LOC)
    • 1 *.cjs files (39 LOC)
  • " *.tsx" is biggest, containing 58.48% of LOC.
  • " *.cjs" is smallest, containing 0.2% of LOC.


*.tsx11635 LOC (58%) 38 files
*.ts8223 LOC (41%) 60 files
*.cjs39 LOC (<1%) 1 file
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 ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 1 file matches defined criteria (23 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh23 LOC (100%) 1 file
Other Code
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]patch".
  • 62 files match defined criteria (1,727 LOC, 1.7% vs. main code):
    • 5 *.json files (1,095 LOC)
    • 52 *.svg files (415 LOC)
    • 3 *.md files (198 LOC)
    • 1 *.patch files (18 LOC)
    • 1 *.txt files (1 LOC)
  • " *.json" is biggest, containing 63.4% of LOC.
  • " *.txt" is smallest, containing 0.06% of LOC.


*.json1095 LOC (63%) 5 files
*.svg415 LOC (24%) 52 files
*.md198 LOC (11%) 3 files
*.patch18 LOC (1%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:46