GoogleCloudPlatform / core-solution-services
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
plist
storyboard
properties
mod
cfg
babelrc
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.

main52642 LOC (74%) 574 files
test8715 LOC (12%) 65 files
generated0 LOC (0%) 0 files
build and deployment761 LOC (1%) 27 files
other8824 LOC (12%) 323 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 ".*".
  • 574 files match defined criteria (52,642 LOC, 100.0% vs. main code):
    • 235 *.py files (21,053 LOC)
    • 51 *.dart files (10,585 LOC)
    • 19 *.ipynb files (8,919 LOC)
    • 78 *.tsx files (4,466 LOC)
    • 55 *.tf files (2,641 LOC)
    • 86 *.yaml files (2,425 LOC)
    • 26 *.ts files (1,640 LOC)
    • 2 *.go files (462 LOC)
    • 3 *.html files (201 LOC)
    • 1 *.css files (121 LOC)
    • 8 *.tfvars files (59 LOC)
    • 2 *.swift files (32 LOC)
    • 4 *.xml files (26 LOC)
    • 1 *.cfg files (5 LOC)
    • 1 *.kt files (4 LOC)
    • 1 *.toml files (2 LOC)
    • 1 *.h files (1 LOC)
  • " *.py" is biggest, containing 39.99% of LOC.
  • " *.h" is smallest, containing 0% of LOC.


*.py21053 LOC (39%) 235 files
*.dart10585 LOC (20%) 51 files
*.ipynb8919 LOC (16%) 19 files
*.tsx4466 LOC (8%) 78 files
*.tf2641 LOC (5%) 55 files
*.yaml2425 LOC (4%) 86 files
*.ts1640 LOC (3%) 26 files
*.go462 LOC (<1%) 2 files
*.html201 LOC (<1%) 3 files
*.css121 LOC (<1%) 1 file
*.tfvars59 LOC (<1%) 8 files
*.swift32 LOC (<1%) 2 files
*.xml26 LOC (<1%) 4 files
*.cfg5 LOC (<1%) 1 file
*.kt4 LOC (<1%) 1 file
*.toml2 LOC (<1%) 1 file
*.h1 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 ".*/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_\- ]+/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/e2e/.*".
  • 65 files match defined criteria (8,715 LOC, 16.6% vs. main code):
    • 55 *.py files (7,535 LOC)
    • 1 *.ipynb files (837 LOC)
    • 1 *.go files (121 LOC)
    • 4 *.tsx files (103 LOC)
    • 2 *.sh files (57 LOC)
    • 1 *.js files (33 LOC)
    • 1 *.ts files (29 LOC)
  • " *.py" is biggest, containing 86.46% of LOC.
  • " *.ts" is smallest, containing 0.33% of LOC.


*.py7535 LOC (86%) 55 files
*.ipynb837 LOC (9%) 1 file
*.go121 LOC (1%) 1 file
*.tsx103 LOC (1%) 4 files
*.sh57 LOC (<1%) 2 files
*.js33 LOC (<1%) 1 file
*.ts29 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 27 files match defined criteria (761 LOC, 1.4% vs. main code):
    • 21 *.sh files (602 LOC)
    • 3 *.gradle files (109 LOC)
    • 3 *.xml files (50 LOC)
  • " *.sh" is biggest, containing 79.11% of LOC.
  • " *.xml" is smallest, containing 6.57% of LOC.


*.sh602 LOC (79%) 21 files
*.gradle109 LOC (14%) 3 files
*.xml50 LOC (6%) 3 files
Other Code
txt
plist
mod
storyboard
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
  • 323 files match defined criteria (8,824 LOC, 16.8% vs. main code):
    • 273 *.json files (6,059 LOC)
    • 18 *.md files (2,272 LOC)
    • 23 *.txt files (221 LOC)
    • 5 *.plist files (134 LOC)
    • 1 *.mod files (73 LOC)
    • 2 *.storyboard files (61 LOC)
    • 1 *.properties files (4 LOC)
  • " *.json" is biggest, containing 68.67% of LOC.
  • " *.properties" is smallest, containing 0.05% of LOC.


*.json6059 LOC (68%) 273 files
*.md2272 LOC (25%) 18 files
*.txt221 LOC (2%) 23 files
*.plist134 LOC (1%) 5 files
*.mod73 LOC (<1%) 1 file
*.storyboard61 LOC (<1%) 2 files
*.properties4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:58