GoogleCloudPlatform / datashare-toolkit
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
mod
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.

main21886 LOC (29%) 190 files
test879 LOC (1%) 13 files
generated22149 LOC (29%) 3 files
build and deployment724 LOC (<1%) 12 files
other28283 LOC (38%) 81 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 ".*".
  • 190 files match defined criteria (21,886 LOC, 100.0% vs. main code):
    • 58 *.js files (8,831 LOC)
    • 44 *.vue files (8,128 LOC)
    • 20 *.tf files (1,655 LOC)
    • 9 *.py files (854 LOC)
    • 3 *.jinja files (739 LOC)
    • 16 *.go files (663 LOC)
    • 27 *.yaml files (645 LOC)
    • 7 *.sql files (264 LOC)
    • 5 *.tfvars files (88 LOC)
    • 1 *.html files (19 LOC)
  • " *.js" is biggest, containing 40.35% of LOC.
  • " *.html" is smallest, containing 0.09% of LOC.


*.js8831 LOC (40%) 58 files
*.vue8128 LOC (37%) 44 files
*.tf1655 LOC (7%) 20 files
*.py854 LOC (3%) 9 files
*.jinja739 LOC (3%) 3 files
*.go663 LOC (3%) 16 files
*.yaml645 LOC (2%) 27 files
*.sql264 LOC (1%) 7 files
*.tfvars88 LOC (<1%) 5 files
*.html19 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 ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
  • 13 files match defined criteria (879 LOC, 4.0% vs. main code):
    • 10 *.js files (847 LOC)
    • 2 *.yaml files (29 LOC)
    • 1 *.sql files (3 LOC)
  • " *.js" is biggest, containing 96.36% of LOC.
  • " *.sql" is smallest, containing 0.34% of LOC.


*.js847 LOC (96%) 10 files
*.yaml29 LOC (3%) 2 files
*.sql3 LOC (<1%) 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".
  • 3 files match defined criteria (22,149 LOC, 101.2% vs. main code). All matches are in *.json files.


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


*.sh724 LOC (100%) 12 files
Other Code
txt
mod
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 ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
  • 81 files match defined criteria (28,283 LOC, 129.2% vs. main code):
    • 29 *.json files (24,687 LOC)
    • 39 *.md files (2,950 LOC)
    • 5 *.txt files (590 LOC)
    • 5 *.sql files (29 LOC)
    • 2 *.svg files (18 LOC)
    • 1 *.mod files (9 LOC)
  • " *.json" is biggest, containing 87.29% of LOC.
  • " *.mod" is smallest, containing 0.03% of LOC.


*.json24687 LOC (87%) 29 files
*.md2950 LOC (10%) 39 files
*.txt590 LOC (2%) 5 files
*.sql29 LOC (<1%) 5 files
*.svg18 LOC (<1%) 2 files
*.mod9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:15