GoogleCloudPlatform / cloud-opensource-java
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
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.

main1902 LOC (27%) 43 files
test1078 LOC (15%) 13 files
generated0 LOC (0%) 0 files
build and deployment3006 LOC (43%) 44 files
other882 LOC (12%) 57 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 ".*".
  • 43 files match defined criteria (1,902 LOC, 100.0% vs. main code):
    • 9 *.java files (718 LOC)
    • 7 *.ftl files (512 LOC)
    • 3 *.tf files (287 LOC)
    • 1 *.css files (119 LOC)
    • 13 *.groovy files (105 LOC)
    • 1 *.ps1 files (86 LOC)
    • 1 *.xml files (44 LOC)
    • 6 *.cfg files (20 LOC)
    • 1 *.js files (7 LOC)
    • 1 *.tfvars files (4 LOC)
  • " *.java" is biggest, containing 37.75% of LOC.
  • " *.tfvars" is smallest, containing 0.21% of LOC.


*.java718 LOC (37%) 9 files
*.ftl512 LOC (26%) 7 files
*.tf287 LOC (15%) 3 files
*.css119 LOC (6%) 1 file
*.groovy105 LOC (5%) 13 files
*.ps186 LOC (4%) 1 file
*.xml44 LOC (2%) 1 file
*.cfg20 LOC (1%) 6 files
*.js7 LOC (<1%) 1 file
*.tfvars4 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 ".*[-]tests/.*".
  • 13 files match defined criteria (1,078 LOC, 56.7% vs. main code):
    • 7 *.java files (977 LOC)
    • 6 *.xml files (101 LOC)
  • " *.java" is biggest, containing 90.63% of LOC.
  • " *.xml" is smallest, containing 9.37% of LOC.


*.java977 LOC (90%) 7 files
*.xml101 LOC (9%) 6 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 ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 44 files match defined criteria (3,006 LOC, 158.0% vs. main code):
    • 24 *.xml files (2,468 LOC)
    • 14 *.sh files (357 LOC)
    • 4 *.gradle files (92 LOC)
    • 2 *.bat files (89 LOC)
  • " *.xml" is biggest, containing 82.1% of LOC.
  • " *.bat" is smallest, containing 2.96% of LOC.


*.xml2468 LOC (82%) 24 files
*.sh357 LOC (11%) 14 files
*.gradle92 LOC (3%) 4 files
*.bat89 LOC (2%) 2 files
Other Code
properties
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
  • 57 files match defined criteria (882 LOC, 46.4% vs. main code):
    • 37 *.md files (791 LOC)
    • 1 *.json files (40 LOC)
    • 14 *.properties files (31 LOC)
    • 4 *.txt files (11 LOC)
    • 1 *.java files (9 LOC)
  • " *.md" is biggest, containing 89.68% of LOC.
  • " *.java" is smallest, containing 1.02% of LOC.


*.md791 LOC (89%) 37 files
*.json40 LOC (4%) 1 file
*.properties31 LOC (3%) 14 files
*.txt11 LOC (1%) 4 files
*.java9 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:41