mozilla / version-control-tools
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
t
txt
wsgi
patch
in
cfg
ini
properties
editorconfig
arcconfig
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.

main36162 LOC (48%) 339 files
test33401 LOC (44%) 245 files
generated0 LOC (0%) 0 files
build and deployment209 LOC (<1%) 6 files
other5505 LOC (7%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
wsgi
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 339 files match defined criteria (36,162 LOC, 100.0% vs. main code):
    • 259 *.py files (33,411 LOC)
    • 3 *.css files (925 LOC)
    • 13 *.tf files (782 LOC)
    • 2 *.js files (659 LOC)
    • 37 *.wsgi files (185 LOC)
    • 17 *.in files (147 LOC)
    • 7 *.cfg files (36 LOC)
    • 1 *.xml files (17 LOC)
  • " *.py" is biggest, containing 92.39% of LOC.
  • " *.xml" is smallest, containing 0.05% of LOC.


*.py33411 LOC (92%) 259 files
*.css925 LOC (2%) 3 files
*.tf782 LOC (2%) 13 files
*.js659 LOC (1%) 2 files
*.wsgi185 LOC (<1%) 37 files
*.in147 LOC (<1%) 17 files
*.cfg36 LOC (<1%) 7 files
*.xml17 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
t
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 ".*/[Tt]est/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 245 files match defined criteria (33,401 LOC, 92.4% vs. main code):
    • 191 *.t files (25,048 LOC)
    • 45 *.py files (7,812 LOC)
    • 9 *.sh files (541 LOC)
  • " *.t" is biggest, containing 74.99% of LOC.
  • " *.sh" is smallest, containing 1.62% of LOC.


*.t25048 LOC (74%) 191 files
*.py7812 LOC (23%) 45 files
*.sh541 LOC (1%) 9 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 6 files match defined criteria (209 LOC, 0.6% vs. main code). All matches are in *.sh files.


*.sh209 LOC (100%) 6 files
Other Code
txt
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
  • 61 files match defined criteria (5,505 LOC, 15.2% vs. main code):
    • 38 *.txt files (4,381 LOC)
    • 7 *.rst files (562 LOC)
    • 5 *.md files (167 LOC)
    • 4 *.json files (166 LOC)
    • 4 *.ini files (155 LOC)
    • 2 *.properties files (52 LOC)
    • 1 *.svg files (22 LOC)
  • " *.txt" is biggest, containing 79.58% of LOC.
  • " *.svg" is smallest, containing 0.4% of LOC.


*.txt4381 LOC (79%) 38 files
*.rst562 LOC (10%) 7 files
*.md167 LOC (3%) 5 files
*.json166 LOC (3%) 4 files
*.ini155 LOC (2%) 4 files
*.properties52 LOC (<1%) 2 files
*.svg22 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:42