GoogleCloudPlatform / gcp-getting-started-lab-jp
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
mjs
patch
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.

main21216 LOC (32%) 314 files
test36 LOC (<1%) 3 files
generated15122 LOC (23%) 2 files
build and deployment375 LOC (<1%) 14 files
other27623 LOC (42%) 69 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 314 files match defined criteria (21,216 LOC, 100.0% vs. main code):
    • 10 *.ipynb files (6,716 LOC)
    • 140 *.tsx files (5,419 LOC)
    • 80 *.yaml files (5,053 LOC)
    • 33 *.ts files (1,772 LOC)
    • 32 *.py files (1,762 LOC)
    • 7 *.tf files (233 LOC)
    • 3 *.css files (168 LOC)
    • 5 *.js files (40 LOC)
    • 1 *.sql files (38 LOC)
    • 2 *.mjs files (10 LOC)
    • 1 *.html files (5 LOC)
  • " *.ipynb" is biggest, containing 31.66% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.ipynb6716 LOC (31%) 10 files
*.tsx5419 LOC (25%) 140 files
*.yaml5053 LOC (23%) 80 files
*.ts1772 LOC (8%) 33 files
*.py1762 LOC (8%) 32 files
*.tf233 LOC (1%) 7 files
*.css168 LOC (<1%) 3 files
*.js40 LOC (<1%) 5 files
*.sql38 LOC (<1%) 1 file
*.mjs10 LOC (<1%) 2 files
*.html5 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 ".*/test_.*".
  • 3 files match defined criteria (36 LOC, 0.2% vs. main code). All matches are in *.py files.


*.py36 LOC (100%) 3 files
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".
  • 2 files match defined criteria (15,122 LOC, 71.3% vs. main code). All matches are in *.json files.


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


*.sh375 LOC (100%) 14 files
Other Code
txt
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]patch".
  • 69 files match defined criteria (27,623 LOC, 130.2% vs. main code):
    • 14 *.json files (15,503 LOC)
    • 30 *.md files (6,924 LOC)
    • 24 *.txt files (5,162 LOC)
    • 1 *.patch files (34 LOC)
  • " *.json" is biggest, containing 56.12% of LOC.
  • " *.patch" is smallest, containing 0.12% of LOC.


*.json15503 LOC (56%) 14 files
*.md6924 LOC (25%) 30 files
*.txt5162 LOC (18%) 24 files
*.patch34 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:13