mozilla / gcp-ingestion
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
lua
properties
prettierignore
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.

main11724 LOC (42%) 131 files
test12135 LOC (44%) 133 files
generated0 LOC (0%) 0 files
build and deployment709 LOC (2%) 4 files
other2974 LOC (10%) 45 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 131 files match defined criteria (11,724 LOC, 100.0% vs. main code):
    • 118 *.java files (10,588 LOC)
    • 10 *.py files (1,089 LOC)
    • 1 *.in files (31 LOC)
    • 1 *.yaml files (13 LOC)
    • 1 *.html files (3 LOC)
  • " *.java" is biggest, containing 90.31% of LOC.
  • " *.html" is smallest, containing 0.03% of LOC.


*.java10588 LOC (90%) 118 files
*.py1089 LOC (9%) 10 files
*.in31 LOC (<1%) 1 file
*.yaml13 LOC (<1%) 1 file
*.html3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
lua
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/.*".
  • 133 files match defined criteria (12,135 LOC, 103.5% vs. main code):
    • 91 *.java files (9,776 LOC)
    • 39 *.py files (2,324 LOC)
    • 1 *.xml files (16 LOC)
    • 1 *.yaml files (13 LOC)
    • 1 *.lua files (6 LOC)
  • " *.java" is biggest, containing 80.56% of LOC.
  • " *.lua" is smallest, containing 0.05% of LOC.


*.java9776 LOC (80%) 91 files
*.py2324 LOC (19%) 39 files
*.xml16 LOC (<1%) 1 file
*.yaml13 LOC (<1%) 1 file
*.lua6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/assembly[.]xml".
  • 4 files match defined criteria (709 LOC, 6.0% vs. main code). All matches are in *.xml files.


*.xml709 LOC (100%) 4 files
Other Code
txt
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]prettierignore".
  • 45 files match defined criteria (2,974 LOC, 25.4% vs. main code):
    • 8 *.xml files (1,280 LOC)
    • 4 *.txt files (1,225 LOC)
    • 26 *.json files (400 LOC)
    • 5 *.md files (45 LOC)
    • 1 *.ini files (23 LOC)
    • 1 *.properties files (1 LOC)
  • " *.xml" is biggest, containing 43.04% of LOC.
  • " *.properties" is smallest, containing 0.03% of LOC.


*.xml1280 LOC (43%) 8 files
*.txt1225 LOC (41%) 4 files
*.json400 LOC (13%) 26 files
*.md45 LOC (1%) 5 files
*.ini23 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:48