GoogleCloudPlatform / contact-center-ai-samples
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
svelte
hcl
npmrc
ini
prettierignore
postcss
jsonc
eslintignore
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.

main12301 LOC (32%) 116 files
test4507 LOC (11%) 33 files
generated9746 LOC (25%) 5 files
build and deployment727 LOC (1%) 20 files
other10830 LOC (28%) 49 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
svelte
postcss
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 116 files match defined criteria (12,301 LOC, 100.0% vs. main code):
    • 32 *.js files (4,506 LOC)
    • 45 *.py files (4,464 LOC)
    • 20 *.tf files (2,249 LOC)
    • 1 *.tfstate files (457 LOC)
    • 5 *.svelte files (331 LOC)
    • 4 *.html files (144 LOC)
    • 2 *.css files (72 LOC)
    • 2 *.cjs files (36 LOC)
    • 2 *.toml files (25 LOC)
    • 1 *.postcss files (11 LOC)
    • 2 *.ts files (6 LOC)
  • " *.js" is biggest, containing 36.63% of LOC.
  • " *.ts" is smallest, containing 0.05% of LOC.


*.js4506 LOC (36%) 32 files
*.py4464 LOC (36%) 45 files
*.tf2249 LOC (18%) 20 files
*.tfstate457 LOC (3%) 1 file
*.svelte331 LOC (2%) 5 files
*.html144 LOC (1%) 4 files
*.css72 LOC (<1%) 2 files
*.cjs36 LOC (<1%) 2 files
*.toml25 LOC (<1%) 2 files
*.postcss11 LOC (<1%) 1 file
*.ts6 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 ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_tests[.].*".
  • 33 files match defined criteria (4,507 LOC, 36.6% vs. main code):
    • 30 *.py files (4,484 LOC)
    • 1 *.js files (13 LOC)
    • 2 *.sh files (10 LOC)
  • " *.py" is biggest, containing 99.49% of LOC.
  • " *.sh" is smallest, containing 0.22% of LOC.


*.py4484 LOC (99%) 30 files
*.js13 LOC (<1%) 1 file
*.sh10 LOC (<1%) 2 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".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 5 files match defined criteria (9,746 LOC, 79.2% vs. main code):
    • 3 *.json files (9,479 LOC)
    • 2 *.html files (267 LOC)
  • " *.json" is biggest, containing 97.26% of LOC.
  • " *.html" is smallest, containing 2.74% of LOC.


*.json9479 LOC (97%) 3 files
*.html267 LOC (2%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 20 files match defined criteria (727 LOC, 5.9% vs. main code). All matches are in *.sh files.


*.sh727 LOC (100%) 20 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]svg".
    • 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 ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
  • 49 files match defined criteria (10,830 LOC, 88.0% vs. main code):
    • 16 *.json files (9,789 LOC)
    • 14 *.md files (750 LOC)
    • 15 *.txt files (270 LOC)
    • 1 *.ini files (18 LOC)
    • 3 *.svg files (3 LOC)
  • " *.json" is biggest, containing 90.39% of LOC.
  • " *.svg" is smallest, containing 0.03% of LOC.


*.json9789 LOC (90%) 16 files
*.md750 LOC (6%) 14 files
*.txt270 LOC (2%) 15 files
*.ini18 LOC (<1%) 1 file
*.svg3 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:44