mozilla / nucleus
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
ini
in
cfg
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.

main2105 LOC (15%) 60 files
test453 LOC (3%) 8 files
generated4543 LOC (33%) 1 file
build and deployment77 LOC (<1%) 2 files
other6577 LOC (47%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 60 files match defined criteria (2,105 LOC, 100.0% vs. main code):
    • 43 *.py files (1,556 LOC)
    • 1 *.jsx files (171 LOC)
    • 8 *.html files (164 LOC)
    • 3 *.js files (96 LOC)
    • 1 *.css files (43 LOC)
    • 2 *.in files (38 LOC)
    • 1 *.toml files (26 LOC)
    • 1 *.cfg files (11 LOC)
  • " *.py" is biggest, containing 73.92% of LOC.
  • " *.cfg" is smallest, containing 0.52% of LOC.


*.py1556 LOC (73%) 43 files
*.jsx171 LOC (8%) 1 file
*.html164 LOC (7%) 8 files
*.js96 LOC (4%) 3 files
*.css43 LOC (2%) 1 file
*.in38 LOC (1%) 2 files
*.toml26 LOC (1%) 1 file
*.cfg11 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
  • 8 files match defined criteria (453 LOC, 21.5% vs. main code). All matches are in *.py files.


*.py453 LOC (100%) 8 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 (4,543 LOC, 215.8% vs. main code). All matches are in *.json files.


*.json4543 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 ".*[.]sh".
    • files with paths like ".*/jenkins/.*[.]groovy".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (77 LOC, 3.7% vs. main code). All matches are in *.groovy files.


*.groovy77 LOC (100%) 2 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 10 files match defined criteria (6,577 LOC, 312.4% vs. main code):
    • 5 *.json files (4,834 LOC)
    • 2 *.txt files (1,452 LOC)
    • 1 *.ini files (179 LOC)
    • 2 *.md files (112 LOC)
  • " *.json" is biggest, containing 73.5% of LOC.
  • " *.md" is smallest, containing 1.7% of LOC.


*.json4834 LOC (73%) 5 files
*.txt1452 LOC (22%) 2 files
*.ini179 LOC (2%) 1 file
*.md112 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:40