GoogleCloudPlatform / cloud-for-marketing
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
in
gs
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.

main24215 LOC (42%) 235 files
test0 LOC (0%) 0 files
generated11478 LOC (20%) 4 files
build and deployment1679 LOC (2%) 9 files
other19228 LOC (33%) 52 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
gs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 235 files match defined criteria (24,215 LOC, 100.0% vs. main code):
    • 158 *.js files (17,310 LOC)
    • 43 *.java files (2,364 LOC)
    • 7 *.py files (2,143 LOC)
    • 2 *.ipynb files (1,107 LOC)
    • 19 *.sql files (559 LOC)
    • 2 *.html files (453 LOC)
    • 2 *.in files (209 LOC)
    • 1 *.gs files (50 LOC)
    • 1 *.yaml files (20 LOC)
  • " *.js" is biggest, containing 71.48% of LOC.
  • " *.yaml" is smallest, containing 0.08% of LOC.


*.js17310 LOC (71%) 158 files
*.java2364 LOC (9%) 43 files
*.py2143 LOC (8%) 7 files
*.ipynb1107 LOC (4%) 2 files
*.sql559 LOC (2%) 19 files
*.html453 LOC (1%) 2 files
*.in209 LOC (<1%) 2 files
*.gs50 LOC (<1%) 1 file
*.yaml20 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".
  • 4 files match defined criteria (11,478 LOC, 47.4% vs. main code). All matches are in *.json files.


*.json11478 LOC (100%) 4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pom[.]xml".
  • 9 files match defined criteria (1,679 LOC, 6.9% vs. main code):
    • 8 *.sh files (1,263 LOC)
    • 1 *.xml files (416 LOC)
  • " *.sh" is biggest, containing 75.22% of LOC.
  • " *.xml" is smallest, containing 24.78% of LOC.


*.sh1263 LOC (75%) 8 files
*.xml416 LOC (24%) 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".
  • 52 files match defined criteria (19,228 LOC, 79.4% vs. main code):
    • 15 *.json files (11,885 LOC)
    • 9 *.txt files (4,435 LOC)
    • 28 *.md files (2,908 LOC)
  • " *.json" is biggest, containing 61.81% of LOC.
  • " *.md" is smallest, containing 15.12% of LOC.


*.json11885 LOC (61%) 15 files
*.txt4435 LOC (23%) 9 files
*.md2908 LOC (15%) 28 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:41