mozilla / bigquery-etl
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
ini
txt
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.

main252454 LOC (78%) 4,708 files
test42188 LOC (13%) 539 files
generated0 LOC (0%) 0 files
build and deployment148 LOC (<1%) 7 files
other28398 LOC (8%) 242 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 ".*".
  • 4708 files match defined criteria (252,454 LOC, 100.0% vs. main code):
    • 1,925 *.sql files (117,474 LOC)
    • 2,510 *.yaml files (101,280 LOC)
    • 232 *.py files (30,404 LOC)
    • 16 *.toml files (2,205 LOC)
    • 22 *.jinja files (951 LOC)
    • 2 *.js files (80 LOC)
    • 1 *.in files (60 LOC)
  • " *.sql" is biggest, containing 46.53% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.sql117474 LOC (46%) 1,925 files
*.yaml101280 LOC (40%) 2,510 files
*.py30404 LOC (12%) 232 files
*.toml2205 LOC (<1%) 16 files
*.jinja951 LOC (<1%) 22 files
*.js80 LOC (<1%) 2 files
*.in60 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]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/testing[.].*".
  • 539 files match defined criteria (42,188 LOC, 16.7% vs. main code):
    • 390 *.yaml files (24,745 LOC)
    • 67 *.py files (14,078 LOC)
    • 72 *.sql files (3,051 LOC)
    • 9 *.jinja files (274 LOC)
    • 1 *.sh files (40 LOC)
  • " *.yaml" is biggest, containing 58.65% of LOC.
  • " *.sh" is smallest, containing 0.09% of LOC.


*.yaml24745 LOC (58%) 390 files
*.py14078 LOC (33%) 67 files
*.sql3051 LOC (7%) 72 files
*.jinja274 LOC (<1%) 9 files
*.sh40 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".
  • 7 files match defined criteria (148 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh148 LOC (100%) 7 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
  • 242 files match defined criteria (28,398 LOC, 11.2% vs. main code):
    • 75 *.json files (24,640 LOC)
    • 1 *.txt files (2,535 LOC)
    • 156 *.md files (1,137 LOC)
    • 8 *.sql files (57 LOC)
    • 2 *.ini files (29 LOC)
  • " *.json" is biggest, containing 86.77% of LOC.
  • " *.ini" is smallest, containing 0.1% of LOC.


*.json24640 LOC (86%) 75 files
*.txt2535 LOC (8%) 1 file
*.md1137 LOC (4%) 156 files
*.sql57 LOC (<1%) 8 files
*.ini29 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:50