elastic / elastic-otel-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
editorconfig
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.

main7568 LOC (42%) 131 files
test9112 LOC (51%) 62 files
generated0 LOC (0%) 0 files
build and deployment94 LOC (<1%) 2 files
other1048 LOC (5%) 25 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 ".*".
  • 131 files match defined criteria (7,568 LOC, 100.0% vs. main code):
    • 94 *.java files (5,683 LOC)
    • 28 *.kts files (1,164 LOC)
    • 4 *.cpp files (470 LOC)
    • 3 *.h files (109 LOC)
    • 1 *.toml files (78 LOC)
    • 1 *.yaml files (64 LOC)
  • " *.java" is biggest, containing 75.09% of LOC.
  • " *.yaml" is smallest, containing 0.85% of LOC.


*.java5683 LOC (75%) 94 files
*.kts1164 LOC (15%) 28 files
*.cpp470 LOC (6%) 4 files
*.h109 LOC (1%) 3 files
*.toml78 LOC (1%) 1 file
*.yaml64 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[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test[.].*".
  • 62 files match defined criteria (9,112 LOC, 120.4% vs. main code):
    • 52 *.java files (7,615 LOC)
    • 1 *.yaml files (1,281 LOC)
    • 5 *.kts files (106 LOC)
    • 1 *.gradle files (49 LOC)
    • 2 *.xml files (35 LOC)
    • 1 *.ftl files (26 LOC)
  • " *.java" is biggest, containing 83.57% of LOC.
  • " *.ftl" is smallest, containing 0.29% of LOC.


*.java7615 LOC (83%) 52 files
*.yaml1281 LOC (14%) 1 file
*.kts106 LOC (1%) 5 files
*.gradle49 LOC (<1%) 1 file
*.xml35 LOC (<1%) 2 files
*.ftl26 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]gradle".
  • 2 files match defined criteria (94 LOC, 1.2% vs. main code):
    • 1 *.bat files (73 LOC)
    • 1 *.sh files (21 LOC)
  • " *.bat" is biggest, containing 77.66% of LOC.
  • " *.sh" is smallest, containing 22.34% of LOC.


*.bat73 LOC (77%) 1 file
*.sh21 LOC (22%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 25 files match defined criteria (1,048 LOC, 13.8% vs. main code):
    • 1 *.xml files (324 LOC)
    • 9 *.md files (307 LOC)
    • 3 *.java files (221 LOC)
    • 1 *.bat files (71 LOC)
    • 3 *.json files (56 LOC)
    • 4 *.kts files (55 LOC)
    • 3 *.properties files (13 LOC)
    • 1 *.txt files (1 LOC)
  • " *.xml" is biggest, containing 30.92% of LOC.
  • " *.txt" is smallest, containing 0.1% of LOC.


*.xml324 LOC (30%) 1 file
*.md307 LOC (29%) 9 files
*.java221 LOC (21%) 3 files
*.bat71 LOC (6%) 1 file
*.json56 LOC (5%) 3 files
*.kts55 LOC (5%) 4 files
*.properties13 LOC (1%) 3 files
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:03