GoogleCloudPlatform / customer-experience-modernization
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
jsonl
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.

main43227 LOC (85%) 335 files
test2350 LOC (4%) 107 files
generated6 LOC (<1%) 1 file
build and deployment0 LOC (0%) 0 files
other4693 LOC (9%) 37 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 ".*".
  • 335 files match defined criteria (43,227 LOC, 100.0% vs. main code):
    • 67 *.scss files (12,989 LOC)
    • 122 *.ts files (12,043 LOC)
    • 51 *.py files (9,006 LOC)
    • 74 *.html files (5,477 LOC)
    • 15 *.css files (1,860 LOC)
    • 3 *.ipynb files (1,418 LOC)
    • 1 *.toml files (414 LOC)
    • 2 *.yaml files (20 LOC)
  • " *.scss" is biggest, containing 30.05% of LOC.
  • " *.yaml" is smallest, containing 0.05% of LOC.


*.scss12989 LOC (30%) 67 files
*.ts12043 LOC (27%) 122 files
*.py9006 LOC (20%) 51 files
*.html5477 LOC (12%) 74 files
*.css1860 LOC (4%) 15 files
*.ipynb1418 LOC (3%) 3 files
*.toml414 LOC (<1%) 1 file
*.yaml20 LOC (<1%) 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 ".*[.]spec[.]ts".
    • files with paths like ".*/test_.*".
  • 107 files match defined criteria (2,350 LOC, 5.4% vs. main code):
    • 106 *.ts files (2,297 LOC)
    • 1 *.py files (53 LOC)
  • " *.ts" is biggest, containing 97.74% of LOC.
  • " *.py" is smallest, containing 2.26% of LOC.


*.ts2297 LOC (97%) 106 files
*.py53 LOC (2%) 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 (6 LOC, 0.0% vs. main code). All matches are in *.json files.


*.json6 LOC (100%) 1 file
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 37 files match defined criteria (4,693 LOC, 10.9% vs. main code):
    • 18 *.json files (3,834 LOC)
    • 5 *.md files (712 LOC)
    • 11 *.svg files (75 LOC)
    • 3 *.txt files (72 LOC)
  • " *.json" is biggest, containing 81.7% of LOC.
  • " *.txt" is smallest, containing 1.53% of LOC.


*.json3834 LOC (81%) 18 files
*.md712 LOC (15%) 5 files
*.svg75 LOC (1%) 11 files
*.txt72 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:01