mozilla / klaatu
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
feature
ini
txt
desktop
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.

main570 LOC (9%) 12 files
test4464 LOC (73%) 47 files
generated0 LOC (0%) 0 files
build and deployment12 LOC (<1%) 2 files
other1008 LOC (16%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
desktop
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 12 files match defined criteria (570 LOC, 100.0% vs. main code):
    • 7 *.py files (367 LOC)
    • 1 *.desktop files (105 LOC)
    • 1 *.toml files (48 LOC)
    • 2 *.js files (41 LOC)
    • 1 *.ps1 files (9 LOC)
  • " *.py" is biggest, containing 64.39% of LOC.
  • " *.ps1" is smallest, containing 1.58% of LOC.


*.py367 LOC (64%) 7 files
*.desktop105 LOC (18%) 1 file
*.toml48 LOC (8%) 1 file
*.js41 LOC (7%) 2 files
*.ps19 LOC (1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*_tests[.].*".
  • 47 files match defined criteria (4,464 LOC, 783.2% vs. main code):
    • 30 *.py files (2,048 LOC)
    • 3 *.html files (1,831 LOC)
    • 6 *.feature files (211 LOC)
    • 2 *.kt files (149 LOC)
    • 1 *.swift files (105 LOC)
    • 2 *.yaml files (57 LOC)
    • 2 *.sh files (38 LOC)
    • 1 *.toml files (25 LOC)
  • " *.py" is biggest, containing 45.88% of LOC.
  • " *.toml" is smallest, containing 0.56% of LOC.


*.py2048 LOC (45%) 30 files
*.html1831 LOC (41%) 3 files
*.feature211 LOC (4%) 6 files
*.kt149 LOC (3%) 2 files
*.swift105 LOC (2%) 1 file
*.yaml57 LOC (1%) 2 files
*.sh38 LOC (<1%) 2 files
*.toml25 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (12 LOC, 2.1% vs. main code). All matches are in *.sh files.


*.sh12 LOC (100%) 2 files
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 12 files match defined criteria (1,008 LOC, 176.8% vs. main code):
    • 3 *.json files (838 LOC)
    • 5 *.ini files (85 LOC)
    • 2 *.md files (83 LOC)
    • 2 *.txt files (2 LOC)
  • " *.json" is biggest, containing 83.13% of LOC.
  • " *.txt" is smallest, containing 0.2% of LOC.


*.json838 LOC (83%) 3 files
*.ini85 LOC (8%) 5 files
*.md83 LOC (8%) 2 files
*.txt2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:49