GoogleCloudPlatform / spring-cloud-gcp
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
cfg
proto
in
cmd
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.

main149734 LOC (71%) 1,416 files
test43773 LOC (20%) 422 files
generated0 LOC (0%) 0 files
build and deployment9992 LOC (4%) 211 files
other7082 LOC (3%) 224 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 ".*".
  • 1416 files match defined criteria (149,734 LOC, 100.0% vs. main code):
    • 1,365 *.java files (148,008 LOC)
    • 22 *.html files (1,231 LOC)
    • 1 *.bzl files (126 LOC)
    • 5 *.kt files (106 LOC)
    • 2 *.css files (81 LOC)
    • 5 *.xml files (62 LOC)
    • 1 *.py files (51 LOC)
    • 9 *.sql files (39 LOC)
    • 5 *.yaml files (21 LOC)
    • 1 *.ftl files (9 LOC)
  • " *.java" is biggest, containing 98.85% of LOC.
  • " *.ftl" is smallest, containing 0.01% of LOC.


*.java148008 LOC (98%) 1,365 files
*.html1231 LOC (<1%) 22 files
*.bzl126 LOC (<1%) 1 file
*.kt106 LOC (<1%) 5 files
*.css81 LOC (<1%) 2 files
*.xml62 LOC (<1%) 5 files
*.py51 LOC (<1%) 1 file
*.sql39 LOC (<1%) 9 files
*.yaml21 LOC (<1%) 5 files
*.ftl9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
  • 422 files match defined criteria (43,773 LOC, 29.2% vs. main code):
    • 377 *.java files (42,824 LOC)
    • 40 *.xml files (514 LOC)
    • 2 *.proto files (288 LOC)
    • 2 *.yaml files (97 LOC)
    • 1 *.kt files (50 LOC)
  • " *.java" is biggest, containing 97.83% of LOC.
  • " *.kt" is smallest, containing 0.11% of LOC.


*.java42824 LOC (97%) 377 files
*.xml514 LOC (1%) 40 files
*.proto288 LOC (<1%) 2 files
*.yaml97 LOC (<1%) 2 files
*.kt50 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".
  • 211 files match defined criteria (9,992 LOC, 6.7% vs. main code):
    • 204 *.xml files (9,420 LOC)
    • 7 *.sh files (572 LOC)
  • " *.xml" is biggest, containing 94.28% of LOC.
  • " *.sh" is smallest, containing 5.72% of LOC.


*.xml9420 LOC (94%) 204 files
*.sh572 LOC (5%) 7 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/asciidoc/.*".
  • 224 files match defined criteria (7,082 LOC, 4.7% vs. main code):
    • 115 *.json files (3,764 LOC)
    • 6 *.md files (1,568 LOC)
    • 37 *.adoc files (1,384 LOC)
    • 59 *.properties files (277 LOC)
    • 2 *.xml files (50 LOC)
    • 5 *.txt files (39 LOC)
  • " *.json" is biggest, containing 53.15% of LOC.
  • " *.txt" is smallest, containing 0.55% of LOC.


*.json3764 LOC (53%) 115 files
*.md1568 LOC (22%) 6 files
*.adoc1384 LOC (19%) 37 files
*.properties277 LOC (3%) 59 files
*.xml50 LOC (<1%) 2 files
*.txt39 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:23