GoogleCloudPlatform / netd
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
mod
in
txt
asc
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.

main3071 LOC (38%) 26 files
test991 LOC (12%) 10 files
generated0 LOC (0%) 0 files
build and deployment3188 LOC (40%) 55 files
other715 LOC (8%) 8 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 ".*".
  • 26 files match defined criteria (3,071 LOC, 100.0% vs. main code):
    • 22 *.go files (2,601 LOC)
    • 1 *.yaml files (244 LOC)
    • 1 *.c files (152 LOC)
    • 2 *.in files (74 LOC)
  • " *.go" is biggest, containing 84.7% of LOC.
  • " *.in" is smallest, containing 2.41% of LOC.


*.go2601 LOC (84%) 22 files
*.yaml244 LOC (7%) 1 file
*.c152 LOC (4%) 1 file
*.in74 LOC (2%) 2 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 ".*_test[.].*".
  • 10 files match defined criteria (991 LOC, 32.3% vs. main code):
    • 8 *.go files (879 LOC)
    • 2 *.sh files (112 LOC)
  • " *.go" is biggest, containing 88.7% of LOC.
  • " *.sh" is smallest, containing 11.3% of LOC.


*.go879 LOC (88%) 8 files
*.sh112 LOC (11%) 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".
  • 55 files match defined criteria (3,188 LOC, 103.8% vs. main code). All matches are in *.sh files.


*.sh3188 LOC (100%) 55 files
Other Code
mod
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 ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
  • 8 files match defined criteria (715 LOC, 23.3% vs. main code):
    • 3 *.mod files (526 LOC)
    • 4 *.md files (168 LOC)
    • 1 *.json files (21 LOC)
  • " *.mod" is biggest, containing 73.57% of LOC.
  • " *.json" is smallest, containing 2.94% of LOC.


*.mod526 LOC (73%) 3 files
*.md168 LOC (23%) 4 files
*.json21 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:41