GoogleCloudPlatform / document-intake-accelerator
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
properties
txt
cfg
pb
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.

main15324 LOC (68%) 314 files
test2575 LOC (11%) 44 files
generated0 LOC (0%) 0 files
build and deployment404 LOC (1%) 9 files
other3965 LOC (17%) 119 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 314 files match defined criteria (15,324 LOC, 100.0% vs. main code):
    • 120 *.py files (6,321 LOC)
    • 20 *.js files (3,400 LOC)
    • 129 *.yaml files (3,079 LOC)
    • 32 *.tf files (1,755 LOC)
    • 10 *.css files (713 LOC)
    • 2 *.html files (51 LOC)
    • 1 *.cfg files (5 LOC)
  • " *.py" is biggest, containing 41.25% of LOC.
  • " *.cfg" is smallest, containing 0.03% of LOC.


*.py6321 LOC (41%) 120 files
*.js3400 LOC (22%) 20 files
*.yaml3079 LOC (20%) 129 files
*.tf1755 LOC (11%) 32 files
*.css713 LOC (4%) 10 files
*.html51 LOC (<1%) 2 files
*.cfg5 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_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*_tests[.].*".
  • 44 files match defined criteria (2,575 LOC, 16.8% vs. main code):
    • 43 *.py files (2,570 LOC)
    • 1 *.js files (5 LOC)
  • " *.py" is biggest, containing 99.81% of LOC.
  • " *.js" is smallest, containing 0.19% of LOC.


*.py2570 LOC (99%) 43 files
*.js5 LOC (<1%) 1 file
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".
  • 9 files match defined criteria (404 LOC, 2.6% vs. main code). All matches are in *.sh files.


*.sh404 LOC (100%) 9 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
  • 119 files match defined criteria (3,965 LOC, 25.9% vs. main code):
    • 40 *.json files (3,090 LOC)
    • 5 *.md files (469 LOC)
    • 24 *.txt files (273 LOC)
    • 46 *.properties files (129 LOC)
    • 4 *.svg files (4 LOC)
  • " *.json" is biggest, containing 77.93% of LOC.
  • " *.svg" is smallest, containing 0.1% of LOC.


*.json3090 LOC (77%) 40 files
*.md469 LOC (11%) 5 files
*.txt273 LOC (6%) 24 files
*.properties129 LOC (3%) 46 files
*.svg4 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:49