mozilla / moz-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
xliff
properties
txt
mjs
po
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.

main6594 LOC (29%) 77 files
test5278 LOC (23%) 36 files
generated4759 LOC (21%) 1 file
build and deployment0 LOC (0%) 0 files
other5600 LOC (25%) 14 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 77 files match defined criteria (6,594 LOC, 100.0% vs. main code):
    • 60 *.py files (5,403 LOC)
    • 14 *.ts files (1,091 LOC)
    • 2 *.toml files (91 LOC)
    • 1 *.mjs files (9 LOC)
  • " *.py" is biggest, containing 81.94% of LOC.
  • " *.mjs" is smallest, containing 0.14% of LOC.


*.py5403 LOC (81%) 60 files
*.ts1091 LOC (16%) 14 files
*.toml91 LOC (1%) 2 files
*.mjs9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xliff
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 36 files match defined criteria (5,278 LOC, 80.0% vs. main code):
    • 23 *.py files (4,559 LOC)
    • 6 *.ts files (431 LOC)
    • 4 *.xliff files (156 LOC)
    • 1 *.ftl files (104 LOC)
    • 1 *.xml files (27 LOC)
    • 1 *.inc files (1 LOC)
  • " *.py" is biggest, containing 86.38% of LOC.
  • " *.inc" is smallest, containing 0.02% of LOC.


*.py4559 LOC (86%) 23 files
*.ts431 LOC (8%) 6 files
*.xliff156 LOC (2%) 4 files
*.ftl104 LOC (1%) 1 file
*.xml27 LOC (<1%) 1 file
*.inc1 LOC (<1%) 1 file
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 (4,759 LOC, 72.2% vs. main code). All matches are in *.json files.


*.json4759 LOC (100%) 1 file
Other Code
properties
po
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]properties".
  • 14 files match defined criteria (5,600 LOC, 84.9% vs. main code):
    • 8 *.json files (5,178 LOC)
    • 3 *.md files (306 LOC)
    • 2 *.properties files (81 LOC)
    • 1 *.po files (35 LOC)
  • " *.json" is biggest, containing 92.46% of LOC.
  • " *.po" is smallest, containing 0.62% of LOC.


*.json5178 LOC (92%) 8 files
*.md306 LOC (5%) 3 files
*.properties81 LOC (1%) 2 files
*.po35 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:57