GoogleCloudPlatform / opentelemetry-operations-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
mod
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.

main2922 LOC (26%) 56 files
test4242 LOC (37%) 35 files
generated0 LOC (0%) 0 files
build and deployment615 LOC (5%) 12 files
other3412 LOC (30%) 98 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 ".*".
  • 56 files match defined criteria (2,922 LOC, 100.0% vs. main code):
    • 48 *.java files (2,774 LOC)
    • 8 *.yaml files (148 LOC)
  • " *.java" is biggest, containing 94.93% of LOC.
  • " *.yaml" is smallest, containing 5.07% of LOC.


*.java2774 LOC (94%) 48 files
*.yaml148 LOC (5%) 8 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/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 35 files match defined criteria (4,242 LOC, 145.2% vs. main code):
    • 33 *.java files (4,203 LOC)
    • 1 *.gradle files (30 LOC)
    • 1 *.sh files (9 LOC)
  • " *.java" is biggest, containing 99.08% of LOC.
  • " *.sh" is smallest, containing 0.21% of LOC.


*.java4203 LOC (99%) 33 files
*.gradle30 LOC (<1%) 1 file
*.sh9 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 ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]dockerfile".
  • 12 files match defined criteria (615 LOC, 21.0% vs. main code):
    • 10 *.gradle files (531 LOC)
    • 1 *.bat files (71 LOC)
    • 1 *.dockerfile files (13 LOC)
  • " *.gradle" is biggest, containing 86.34% of LOC.
  • " *.dockerfile" is smallest, containing 2.11% of LOC.


*.gradle531 LOC (86%) 10 files
*.bat71 LOC (11%) 1 file
*.dockerfile13 LOC (2%) 1 file
Other Code
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
  • 98 files match defined criteria (3,412 LOC, 116.8% vs. main code):
    • 24 *.md files (1,148 LOC)
    • 27 *.java files (980 LOC)
    • 14 *.gradle files (502 LOC)
    • 11 *.yaml files (337 LOC)
    • 1 *.mod files (194 LOC)
    • 4 *.sh files (102 LOC)
    • 1 *.bat files (71 LOC)
    • 2 *.xml files (39 LOC)
    • 13 *.properties files (31 LOC)
    • 1 *.go files (8 LOC)
  • " *.md" is biggest, containing 33.65% of LOC.
  • " *.go" is smallest, containing 0.23% of LOC.


*.md1148 LOC (33%) 24 files
*.java980 LOC (28%) 27 files
*.gradle502 LOC (14%) 14 files
*.yaml337 LOC (9%) 11 files
*.mod194 LOC (5%) 1 file
*.sh102 LOC (2%) 4 files
*.bat71 LOC (2%) 1 file
*.xml39 LOC (1%) 2 files
*.properties31 LOC (<1%) 13 files
*.go8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:20