mozilla / fxa-content-server-l10n
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
po
txt
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.

main187693 LOC (56%) 503 files
test0 LOC (0%) 0 files
generated1638 LOC (<1%) 1 file
build and deployment145 LOC (<1%) 2 files
other144228 LOC (43%) 175 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 ".*".
  • 503 files match defined criteria (187,693 LOC, 100.0% vs. main code):
    • 500 *.ftl files (187,639 LOC)
    • 1 *.py files (29 LOC)
    • 2 *.js files (25 LOC)
  • " *.ftl" is biggest, containing 99.97% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.ftl187639 LOC (99%) 500 files
*.py29 LOC (<1%) 1 file
*.js25 LOC (<1%) 2 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".
  • 1 file matches defined criteria (1,638 LOC, 0.9% vs. main code). All matches are in *.json files.


*.json1638 LOC (100%) 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".
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (145 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh145 LOC (100%) 2 files
Other Code
po
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]po".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
  • 175 files match defined criteria (144,228 LOC, 76.8% vs. main code):
    • 170 *.po files (142,532 LOC)
    • 2 *.json files (1,661 LOC)
    • 3 *.md files (35 LOC)
  • " *.po" is biggest, containing 98.82% of LOC.
  • " *.md" is smallest, containing 0.02% of LOC.


*.po142532 LOC (98%) 170 files
*.json1661 LOC (1%) 2 files
*.md35 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:42