mozilla / glean_parser
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
jinja2
txt
editorconfig
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.

main7119 LOC (45%) 46 files
test7871 LOC (50%) 76 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other554 LOC (3%) 4 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jinja2
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 46 files match defined criteria (7,119 LOC, 100.0% vs. main code):
    • 24 *.py files (3,610 LOC)
    • 14 *.jinja2 files (1,969 LOC)
    • 7 *.yaml files (1,472 LOC)
    • 1 *.toml files (68 LOC)
  • " *.py" is biggest, containing 50.71% of LOC.
  • " *.toml" is smallest, containing 0.96% of LOC.


*.py3610 LOC (50%) 24 files
*.jinja21969 LOC (27%) 14 files
*.yaml1472 LOC (20%) 7 files
*.toml68 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 ".*/test[.].*".
  • 76 files match defined criteria (7,871 LOC, 110.6% vs. main code):
    • 22 *.py files (3,984 LOC)
    • 47 *.yaml files (2,462 LOC)
    • 3 *.rs files (681 LOC)
    • 3 *.go files (644 LOC)
    • 1 *.rb files (100 LOC)
  • " *.py" is biggest, containing 50.62% of LOC.
  • " *.rb" is smallest, containing 1.27% of LOC.


*.py3984 LOC (50%) 22 files
*.yaml2462 LOC (31%) 47 files
*.rs681 LOC (8%) 3 files
*.go644 LOC (8%) 3 files
*.rb100 LOC (1%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 4 files match defined criteria (554 LOC, 7.8% vs. main code):
    • 3 *.md files (544 LOC)
    • 1 *.json files (10 LOC)
  • " *.md" is biggest, containing 98.19% of LOC.
  • " *.json" is smallest, containing 1.81% of LOC.


*.md544 LOC (98%) 3 files
*.json10 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:48