GoogleCloudPlatform / professional-services-data-validator
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
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.

main6623 LOC (23%) 40 files
test18861 LOC (65%) 68 files
generated0 LOC (0%) 0 files
build and deployment41 LOC (<1%) 4 files
other3060 LOC (10%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 40 files match defined criteria (6,623 LOC, 100.0% vs. main code):
    • 34 *.py files (6,424 LOC)
    • 2 *.yaml files (166 LOC)
    • 3 *.tf files (31 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.py" is biggest, containing 97% of LOC.
  • " *.cfg" is smallest, containing 0.03% of LOC.


*.py6424 LOC (96%) 34 files
*.yaml166 LOC (2%) 2 files
*.tf31 LOC (<1%) 3 files
*.cfg2 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_.*".
  • 68 files match defined criteria (18,861 LOC, 284.8% vs. main code):
    • 52 *.py files (13,016 LOC)
    • 15 *.sql files (5,835 LOC)
    • 1 *.sh files (10 LOC)
  • " *.py" is biggest, containing 69.01% of LOC.
  • " *.sh" is smallest, containing 0.05% of LOC.


*.py13016 LOC (69%) 52 files
*.sql5835 LOC (30%) 15 files
*.sh10 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".
  • 4 files match defined criteria (41 LOC, 0.6% vs. main code). All matches are in *.sh files.


*.sh41 LOC (100%) 4 files
Other Code
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
  • 53 files match defined criteria (3,060 LOC, 46.2% vs. main code):
    • 19 *.md files (2,345 LOC)
    • 7 *.py files (237 LOC)
    • 9 *.sh files (196 LOC)
    • 1 *.json files (142 LOC)
    • 14 *.sql files (122 LOC)
    • 2 *.yaml files (16 LOC)
    • 1 *.txt files (2 LOC)
  • " *.md" is biggest, containing 76.63% of LOC.
  • " *.txt" is smallest, containing 0.07% of LOC.


*.md2345 LOC (76%) 19 files
*.py237 LOC (7%) 7 files
*.sh196 LOC (6%) 9 files
*.json142 LOC (4%) 1 file
*.sql122 LOC (3%) 14 files
*.yaml16 LOC (<1%) 2 files
*.txt2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:21