GoogleCloudPlatform / genai-for-developers
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
vscodeignore
properties
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.

main5090 LOC (36%) 66 files
test155 LOC (1%) 3 files
generated3311 LOC (23%) 1 file
build and deployment206 LOC (1%) 1 file
other5351 LOC (37%) 35 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 ".*".
  • 66 files match defined criteria (5,090 LOC, 100.0% vs. main code):
    • 35 *.py files (2,659 LOC)
    • 19 *.yaml files (2,110 LOC)
    • 3 *.ts files (142 LOC)
    • 3 *.tf files (54 LOC)
    • 1 *.jsx files (54 LOC)
    • 1 *.html files (28 LOC)
    • 3 *.js files (26 LOC)
    • 1 *.xml files (17 LOC)
  • " *.py" is biggest, containing 52.24% of LOC.
  • " *.xml" is smallest, containing 0.33% of LOC.


*.py2659 LOC (52%) 35 files
*.yaml2110 LOC (41%) 19 files
*.ts142 LOC (2%) 3 files
*.tf54 LOC (1%) 3 files
*.jsx54 LOC (1%) 1 file
*.html28 LOC (<1%) 1 file
*.js26 LOC (<1%) 3 files
*.xml17 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 3 files match defined criteria (155 LOC, 3.0% vs. main code). All matches are in *.py files.


*.py155 LOC (100%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (3,311 LOC, 65.0% vs. main code). All matches are in *.json files.


*.json3311 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 1 file matches defined criteria (206 LOC, 4.0% vs. main code). All matches are in *.xml files.


*.xml206 LOC (100%) 1 file
Other Code
txt
properties
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]vscodeignore".
    • files with paths like ".*/[Dd]ocumentation/.*".
  • 35 files match defined criteria (5,351 LOC, 105.1% vs. main code):
    • 5 *.json files (3,437 LOC)
    • 14 *.md files (961 LOC)
    • 8 *.java files (629 LOC)
    • 1 *.yaml files (189 LOC)
    • 1 *.xml files (67 LOC)
    • 5 *.txt files (55 LOC)
    • 1 *.properties files (13 LOC)
  • " *.json" is biggest, containing 64.23% of LOC.
  • " *.properties" is smallest, containing 0.24% of LOC.


*.json3437 LOC (64%) 5 files
*.md961 LOC (17%) 14 files
*.java629 LOC (11%) 8 files
*.yaml189 LOC (3%) 1 file
*.xml67 LOC (1%) 1 file
*.txt55 LOC (1%) 5 files
*.properties13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:00