GoogleCloudPlatform / dialogflow-integrations
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
eslintignore
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.

main7721 LOC (23%) 74 files
test2584 LOC (7%) 23 files
generated9072 LOC (27%) 1 file
build and deployment0 LOC (0%) 0 files
other13142 LOC (40%) 72 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 ".*".
  • 74 files match defined criteria (7,721 LOC, 100.0% vs. main code):
    • 39 *.js files (3,820 LOC)
    • 13 *.ts files (1,385 LOC)
    • 2 *.ipynb files (1,287 LOC)
    • 13 *.tsx files (569 LOC)
    • 1 *.py files (398 LOC)
    • 2 *.css files (170 LOC)
    • 3 *.yaml files (69 LOC)
    • 1 *.html files (23 LOC)
  • " *.js" is biggest, containing 49.48% of LOC.
  • " *.html" is smallest, containing 0.3% of LOC.


*.js3820 LOC (49%) 39 files
*.ts1385 LOC (17%) 13 files
*.ipynb1287 LOC (16%) 2 files
*.tsx569 LOC (7%) 13 files
*.py398 LOC (5%) 1 file
*.css170 LOC (2%) 2 files
*.yaml69 LOC (<1%) 3 files
*.html23 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/test[.].*".
  • 23 files match defined criteria (2,584 LOC, 33.5% vs. main code):
    • 22 *.js files (2,523 LOC)
    • 1 *.ts files (61 LOC)
  • " *.js" is biggest, containing 97.64% of LOC.
  • " *.ts" is smallest, containing 2.36% of LOC.


*.js2523 LOC (97%) 22 files
*.ts61 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 (9,072 LOC, 117.5% vs. main code). All matches are in *.json files.


*.json9072 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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 72 files match defined criteria (13,142 LOC, 170.2% vs. main code):
    • 26 *.json files (9,734 LOC)
    • 32 *.md files (2,258 LOC)
    • 2 *.txt files (755 LOC)
    • 11 *.js files (216 LOC)
    • 1 *.svg files (179 LOC)
  • " *.json" is biggest, containing 74.07% of LOC.
  • " *.svg" is smallest, containing 1.36% of LOC.


*.json9734 LOC (74%) 26 files
*.md2258 LOC (17%) 32 files
*.txt755 LOC (5%) 2 files
*.js216 LOC (1%) 11 files
*.svg179 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:14