GoogleCloudPlatform / anthos-service-mesh-packages
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
bats
gitattributes
txt
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.

main1746 LOC (17%) 44 files
test2023 LOC (19%) 8 files
generated58 LOC (<1%) 1 file
build and deployment4957 LOC (48%) 27 files
other1437 LOC (14%) 59 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 ".*".
  • 44 files match defined criteria (1,746 LOC, 100.0% vs. main code). All matches are in *.yaml files.


*.yaml1746 LOC (100%) 44 files
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 ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 8 files match defined criteria (2,023 LOC, 115.9% vs. main code):
    • 5 *.bats files (881 LOC)
    • 2 *.sh files (728 LOC)
    • 1 *.bash files (414 LOC)
  • " *.bats" is biggest, containing 43.55% of LOC.
  • " *.bash" is smallest, containing 20.46% of LOC.


*.bats881 LOC (43%) 5 files
*.sh728 LOC (35%) 2 files
*.bash414 LOC (20%) 1 file
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 (58 LOC, 3.3% vs. main code). All matches are in *.json files.


*.json58 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 27 files match defined criteria (4,957 LOC, 283.9% vs. main code). All matches are in *.sh files.


*.sh4957 LOC (100%) 27 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • 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 ".*[.]txt".
  • 59 files match defined criteria (1,437 LOC, 82.3% vs. main code):
    • 50 *.yaml files (1,190 LOC)
    • 7 *.md files (182 LOC)
    • 2 *.json files (65 LOC)
  • " *.yaml" is biggest, containing 82.81% of LOC.
  • " *.json" is smallest, containing 4.52% of LOC.


*.yaml1190 LOC (82%) 50 files
*.md182 LOC (12%) 7 files
*.json65 LOC (4%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:17