GoogleCloudPlatform / enterprise-knowledge-solution
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
in
mod
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.

main6648 LOC (39%) 112 files
test319 LOC (1%) 5 files
generated0 LOC (0%) 0 files
build and deployment556 LOC (3%) 14 files
other9477 LOC (55%) 36 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 ".*".
  • 112 files match defined criteria (6,648 LOC, 100.0% vs. main code):
    • 39 *.py files (3,915 LOC)
    • 55 *.tf files (2,428 LOC)
    • 3 *.yaml files (120 LOC)
    • 6 *.toml files (113 LOC)
    • 9 *.in files (72 LOC)
  • " *.py" is biggest, containing 58.89% of LOC.
  • " *.in" is smallest, containing 1.08% of LOC.


*.py3915 LOC (58%) 39 files
*.tf2428 LOC (36%) 55 files
*.yaml120 LOC (1%) 3 files
*.toml113 LOC (1%) 6 files
*.in72 LOC (1%) 9 files
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_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 5 files match defined criteria (319 LOC, 4.8% vs. main code):
    • 2 *.go files (155 LOC)
    • 1 *.py files (155 LOC)
    • 2 *.sh files (9 LOC)
  • " *.go" is biggest, containing 48.59% of LOC.
  • " *.sh" is smallest, containing 2.82% of LOC.


*.go155 LOC (48%) 2 files
*.py155 LOC (48%) 1 file
*.sh9 LOC (2%) 2 files
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".
  • 14 files match defined criteria (556 LOC, 8.4% vs. main code). All matches are in *.sh files.


*.sh556 LOC (100%) 14 files
Other Code
txt
mod
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
  • 36 files match defined criteria (9,477 LOC, 142.6% vs. main code):
    • 19 *.txt files (8,741 LOC)
    • 15 *.md files (583 LOC)
    • 1 *.mod files (126 LOC)
    • 1 *.json files (27 LOC)
  • " *.txt" is biggest, containing 92.23% of LOC.
  • " *.json" is smallest, containing 0.28% of LOC.


*.txt8741 LOC (92%) 19 files
*.md583 LOC (6%) 15 files
*.mod126 LOC (1%) 1 file
*.json27 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:06