GoogleCloudPlatform / anthos-appconfig
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
bats
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.

main7123 LOC (59%) 127 files
test2597 LOC (21%) 35 files
generated0 LOC (0%) 0 files
build and deployment538 LOC (4%) 4 files
other1749 LOC (14%) 36 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 ".*".
  • 127 files match defined criteria (7,123 LOC, 100.0% vs. main code):
    • 95 *.yaml files (4,068 LOC)
    • 25 *.go files (2,903 LOC)
    • 6 *.tf files (137 LOC)
    • 1 *.tfvars files (15 LOC)
  • " *.yaml" is biggest, containing 57.11% of LOC.
  • " *.tfvars" is smallest, containing 0.21% of LOC.


*.yaml4068 LOC (57%) 95 files
*.go2903 LOC (40%) 25 files
*.tf137 LOC (1%) 6 files
*.tfvars15 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
bats
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 35 files match defined criteria (2,597 LOC, 36.5% vs. main code):
    • 16 *.go files (878 LOC)
    • 4 *.yaml files (745 LOC)
    • 11 *.py files (696 LOC)
    • 3 *.sh files (269 LOC)
    • 1 *.bats files (9 LOC)
  • " *.go" is biggest, containing 33.81% of LOC.
  • " *.bats" is smallest, containing 0.35% of LOC.


*.go878 LOC (33%) 16 files
*.yaml745 LOC (28%) 4 files
*.py696 LOC (26%) 11 files
*.sh269 LOC (10%) 3 files
*.bats9 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 (538 LOC, 7.6% vs. main code). All matches are in *.sh files.


*.sh538 LOC (100%) 4 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
  • 36 files match defined criteria (1,749 LOC, 24.6% vs. main code):
    • 13 *.yaml files (1,315 LOC)
    • 13 *.md files (291 LOC)
    • 5 *.txt files (77 LOC)
    • 2 *.mod files (25 LOC)
    • 2 *.json files (24 LOC)
    • 1 *.sh files (17 LOC)
  • " *.yaml" is biggest, containing 75.19% of LOC.
  • " *.sh" is smallest, containing 0.97% of LOC.


*.yaml1315 LOC (75%) 13 files
*.md291 LOC (16%) 13 files
*.txt77 LOC (4%) 5 files
*.mod25 LOC (1%) 2 files
*.json24 LOC (1%) 2 files
*.sh17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:13