GoogleCloudPlatform / cortex-marketing
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
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.

main56520 LOC (94%) 361 files
test32 LOC (<1%) 1 file
generated0 LOC (0%) 0 files
build and deployment478 LOC (<1%) 9 files
other2555 LOC (4%) 52 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 361 files match defined criteria (56,520 LOC, 100.0% vs. main code):
    • 126 *.yaml files (39,716 LOC)
    • 148 *.py files (10,506 LOC)
    • 86 *.sql files (6,203 LOC)
    • 1 *.jinja files (95 LOC)
  • " *.yaml" is biggest, containing 70.27% of LOC.
  • " *.jinja" is smallest, containing 0.17% of LOC.


*.yaml39716 LOC (70%) 126 files
*.py10506 LOC (18%) 148 files
*.sql6203 LOC (10%) 86 files
*.jinja95 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 ".*/test_.*".
  • 1 file matches defined criteria (32 LOC, 0.1% vs. main code). All matches are in *.py files.


*.py32 LOC (100%) 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".
  • 9 files match defined criteria (478 LOC, 0.8% vs. main code). All matches are in *.sh files.


*.sh478 LOC (100%) 9 files
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
  • 52 files match defined criteria (2,555 LOC, 4.5% vs. main code):
    • 31 *.sql files (2,302 LOC)
    • 12 *.ini files (112 LOC)
    • 1 *.json files (103 LOC)
    • 7 *.md files (27 LOC)
    • 1 *.txt files (11 LOC)
  • " *.sql" is biggest, containing 90.1% of LOC.
  • " *.txt" is smallest, containing 0.43% of LOC.


*.sql2302 LOC (90%) 31 files
*.ini112 LOC (4%) 12 files
*.json103 LOC (4%) 1 file
*.md27 LOC (1%) 7 files
*.txt11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:58