GoogleCloudPlatform / khi
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
sass
glsl
mk
gtpl
bashrc
mod
txt
mjs
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.

main41291 LOC (57%) 577 files
test27728 LOC (38%) 257 files
generated1253 LOC (1%) 1 file
build and deployment107 LOC (<1%) 6 files
other1781 LOC (2%) 13 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
sass
glsl
gtpl
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 577 files match defined criteria (41,291 LOC, 100.0% vs. main code):
    • 322 *.go files (21,871 LOC)
    • 164 *.ts files (14,922 LOC)
    • 41 *.sass files (2,145 LOC)
    • 39 *.html files (1,831 LOC)
    • 8 *.glsl files (314 LOC)
    • 2 *.gtpl files (179 LOC)
    • 1 *.mjs files (29 LOC)
  • " *.go" is biggest, containing 52.97% of LOC.
  • " *.mjs" is smallest, containing 0.07% of LOC.


*.go21871 LOC (52%) 322 files
*.ts14922 LOC (36%) 164 files
*.sass2145 LOC (5%) 41 files
*.html1831 LOC (4%) 39 files
*.glsl314 LOC (<1%) 8 files
*.gtpl179 LOC (<1%) 2 files
*.mjs29 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[-]test[-].*".
  • 257 files match defined criteria (27,728 LOC, 67.2% vs. main code):
    • 165 *.go files (19,101 LOC)
    • 63 *.ts files (6,277 LOC)
    • 27 *.yaml files (2,284 LOC)
    • 1 *.js files (51 LOC)
    • 1 *.mk files (15 LOC)
  • " *.go" is biggest, containing 68.89% of LOC.
  • " *.mk" is smallest, containing 0.05% of LOC.


*.go19101 LOC (68%) 165 files
*.ts6277 LOC (22%) 63 files
*.yaml2284 LOC (8%) 27 files
*.js51 LOC (<1%) 1 file
*.mk15 LOC (<1%) 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 (1,253 LOC, 3.0% vs. main code). All matches are in *.json files.


*.json1253 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/package[.]json".
  • 6 files match defined criteria (107 LOC, 0.3% vs. main code):
    • 3 *.mk files (65 LOC)
    • 3 *.sh files (42 LOC)
  • " *.mk" is biggest, containing 60.75% of LOC.
  • " *.sh" is smallest, containing 39.25% of LOC.


*.mk65 LOC (60%) 3 files
*.sh42 LOC (39%) 3 files
Other Code
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
  • 13 files match defined criteria (1,781 LOC, 4.3% vs. main code):
    • 8 *.json files (1,458 LOC)
    • 4 *.md files (236 LOC)
    • 1 *.mod files (87 LOC)
  • " *.json" is biggest, containing 81.86% of LOC.
  • " *.mod" is smallest, containing 4.88% of LOC.


*.json1458 LOC (81%) 8 files
*.md236 LOC (13%) 4 files
*.mod87 LOC (4%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:10