GoogleCloudPlatform / storage-sdrs
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
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.

main8958 LOC (68%) 142 files
test2711 LOC (20%) 30 files
generated0 LOC (0%) 0 files
build and deployment331 LOC (2%) 4 files
other1009 LOC (7%) 18 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 ".*".
  • 142 files match defined criteria (8,958 LOC, 100.0% vs. main code):
    • 113 *.java files (7,125 LOC)
    • 7 *.yaml files (607 LOC)
    • 7 *.py files (423 LOC)
    • 5 *.jinja files (362 LOC)
    • 4 *.sql files (186 LOC)
    • 3 *.avsc files (161 LOC)
    • 3 *.xml files (94 LOC)
  • " *.java" is biggest, containing 79.54% of LOC.
  • " *.xml" is smallest, containing 1.05% of LOC.


*.java7125 LOC (79%) 113 files
*.yaml607 LOC (6%) 7 files
*.py423 LOC (4%) 7 files
*.jinja362 LOC (4%) 5 files
*.sql186 LOC (2%) 4 files
*.avsc161 LOC (1%) 3 files
*.xml94 LOC (1%) 3 files
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/.*".
  • 30 files match defined criteria (2,711 LOC, 30.3% vs. main code). All matches are in *.java files.


*.java2711 LOC (100%) 30 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 4 files match defined criteria (331 LOC, 3.7% vs. main code):
    • 1 *.xml files (238 LOC)
    • 3 *.sh files (93 LOC)
  • " *.xml" is biggest, containing 71.9% of LOC.
  • " *.sh" is smallest, containing 28.1% of LOC.


*.xml238 LOC (71%) 1 file
*.sh93 LOC (28%) 3 files
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
  • 18 files match defined criteria (1,009 LOC, 11.3% vs. main code):
    • 13 *.md files (974 LOC)
    • 5 *.txt files (35 LOC)
  • " *.md" is biggest, containing 96.53% of LOC.
  • " *.txt" is smallest, containing 3.47% of LOC.


*.md974 LOC (96%) 13 files
*.txt35 LOC (3%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:42