GoogleCloudPlatform / application-integration-management-toolkit
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
mod
tpl
pub
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.

main13002 LOC (56%) 139 files
test112 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment56 LOC (<1%) 1 file
other9767 LOC (42%) 67 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 139 files match defined criteria (13,002 LOC, 100.0% vs. main code):
    • 137 *.go files (12,926 LOC)
    • 1 *.yaml files (72 LOC)
    • 1 *.pub files (4 LOC)
  • " *.go" is biggest, containing 99.42% of LOC.
  • " *.pub" is smallest, containing 0.03% of LOC.


*.go12926 LOC (99%) 137 files
*.yaml72 LOC (<1%) 1 file
*.pub4 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[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 2 files match defined criteria (112 LOC, 0.9% vs. main code). All matches are in *.go files.


*.go112 LOC (100%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (56 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh56 LOC (100%) 1 file
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 67 files match defined criteria (9,767 LOC, 75.1% vs. main code):
    • 6 *.txt files (7,653 LOC)
    • 43 *.json files (1,648 LOC)
    • 4 *.md files (278 LOC)
    • 7 *.mod files (96 LOC)
    • 3 *.yaml files (85 LOC)
    • 3 *.sh files (4 LOC)
    • 1 *.jsonnet files (3 LOC)
  • " *.txt" is biggest, containing 78.36% of LOC.
  • " *.jsonnet" is smallest, containing 0.03% of LOC.


*.txt7653 LOC (78%) 6 files
*.json1648 LOC (16%) 43 files
*.md278 LOC (2%) 4 files
*.mod96 LOC (<1%) 7 files
*.yaml85 LOC (<1%) 3 files
*.sh4 LOC (<1%) 3 files
*.jsonnet3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:54