GoogleCloudPlatform / bq-backup-manager
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
tpl
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.

main7477 LOC (67%) 143 files
test1839 LOC (16%) 20 files
generated0 LOC (0%) 0 files
build and deployment664 LOC (5%) 19 files
other1106 LOC (9%) 5 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 143 files match defined criteria (7,477 LOC, 100.0% vs. main code):
    • 66 *.java files (4,538 LOC)
    • 63 *.tf files (2,516 LOC)
    • 12 *.tpl files (390 LOC)
    • 1 *.xml files (17 LOC)
    • 1 *.yaml files (16 LOC)
  • " *.java" is biggest, containing 60.69% of LOC.
  • " *.yaml" is smallest, containing 0.21% of LOC.


*.java4538 LOC (60%) 66 files
*.tf2516 LOC (33%) 63 files
*.tpl390 LOC (5%) 12 files
*.xml17 LOC (<1%) 1 file
*.yaml16 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 ".*_test[.].*".
  • 20 files match defined criteria (1,839 LOC, 24.6% vs. main code):
    • 19 *.java files (1,827 LOC)
    • 1 *.sh files (12 LOC)
  • " *.java" is biggest, containing 99.35% of LOC.
  • " *.sh" is smallest, containing 0.65% of LOC.


*.java1827 LOC (99%) 19 files
*.sh12 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 19 files match defined criteria (664 LOC, 8.9% vs. main code):
    • 7 *.xml files (500 LOC)
    • 12 *.sh files (164 LOC)
  • " *.xml" is biggest, containing 75.3% of LOC.
  • " *.sh" is smallest, containing 24.7% of LOC.


*.xml500 LOC (75%) 7 files
*.sh164 LOC (24%) 12 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 5 files match defined criteria (1,106 LOC, 14.8% vs. main code):
    • 2 *.md files (586 LOC)
    • 3 *.json files (520 LOC)
  • " *.md" is biggest, containing 52.98% of LOC.
  • " *.json" is smallest, containing 47.02% of LOC.


*.md586 LOC (52%) 2 files
*.json520 LOC (47%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:56