GoogleCloudPlatform / youtube-classroom-mooc
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
webmanifest
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.

main3027 LOC (25%) 80 files
test126 LOC (1%) 4 files
generated3999 LOC (34%) 1 file
build and deployment103 LOC (<1%) 1 file
other4422 LOC (37%) 21 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 80 files match defined criteria (3,027 LOC, 100.0% vs. main code):
    • 30 *.tsx files (1,317 LOC)
    • 17 *.js files (966 LOC)
    • 16 *.yaml files (316 LOC)
    • 3 *.html files (203 LOC)
    • 3 *.py files (92 LOC)
    • 8 *.ts files (91 LOC)
    • 1 *.css files (38 LOC)
    • 1 *.toml files (3 LOC)
    • 1 *.webmanifest files (1 LOC)
  • " *.tsx" is biggest, containing 43.51% of LOC.
  • " *.webmanifest" is smallest, containing 0.03% of LOC.


*.tsx1317 LOC (43%) 30 files
*.js966 LOC (31%) 17 files
*.yaml316 LOC (10%) 16 files
*.html203 LOC (6%) 3 files
*.py92 LOC (3%) 3 files
*.ts91 LOC (3%) 8 files
*.css38 LOC (1%) 1 file
*.toml3 LOC (<1%) 1 file
*.webmanifest1 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
  • 4 files match defined criteria (126 LOC, 4.2% vs. main code):
    • 2 *.tsx files (80 LOC)
    • 1 *.ts files (29 LOC)
    • 1 *.js files (17 LOC)
  • " *.tsx" is biggest, containing 63.49% of LOC.
  • " *.js" is smallest, containing 13.49% of LOC.


*.tsx80 LOC (63%) 2 files
*.ts29 LOC (23%) 1 file
*.js17 LOC (13%) 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 (3,999 LOC, 132.1% vs. main code). All matches are in *.json files.


*.json3999 LOC (100%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (103 LOC, 3.4% vs. main code). All matches are in *.sh files.


*.sh103 LOC (100%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]dockerignore".
  • 21 files match defined criteria (4,422 LOC, 146.1% vs. main code):
    • 13 *.json files (4,236 LOC)
    • 2 *.md files (160 LOC)
    • 5 *.properties files (22 LOC)
    • 1 *.txt files (4 LOC)
  • " *.json" is biggest, containing 95.79% of LOC.
  • " *.txt" is smallest, containing 0.09% of LOC.


*.json4236 LOC (95%) 13 files
*.md160 LOC (3%) 2 files
*.properties22 LOC (<1%) 5 files
*.txt4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:49