elastic / opbeans-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
bats
gitmodules
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.

main938 LOC (66%) 26 files
test55 LOC (3%) 3 files
generated0 LOC (0%) 0 files
build and deployment160 LOC (11%) 2 files
other261 LOC (18%) 6 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 ".*".
  • 26 files match defined criteria (938 LOC, 100.0% vs. main code):
    • 21 *.java files (730 LOC)
    • 4 *.html files (196 LOC)
    • 1 *.xml files (12 LOC)
  • " *.java" is biggest, containing 77.83% of LOC.
  • " *.xml" is smallest, containing 1.28% of LOC.


*.java730 LOC (77%) 21 files
*.html196 LOC (20%) 4 files
*.xml12 LOC (1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
bats
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 3 files match defined criteria (55 LOC, 5.9% vs. main code):
    • 1 *.bats files (29 LOC)
    • 1 *.java files (22 LOC)
    • 1 *.bash files (4 LOC)
  • " *.bats" is biggest, containing 52.73% of LOC.
  • " *.bash" is smallest, containing 7.27% of LOC.


*.bats29 LOC (52%) 1 file
*.java22 LOC (40%) 1 file
*.bash4 LOC (7%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
  • 2 files match defined criteria (160 LOC, 17.1% vs. main code):
    • 1 *.xml files (128 LOC)
    • 1 *.sh files (32 LOC)
  • " *.xml" is biggest, containing 80% of LOC.
  • " *.sh" is smallest, containing 20% of LOC.


*.xml128 LOC (80%) 1 file
*.sh32 LOC (20%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 6 files match defined criteria (261 LOC, 27.8% vs. main code):
    • 1 *.txt files (169 LOC)
    • 2 *.md files (49 LOC)
    • 3 *.properties files (43 LOC)
  • " *.txt" is biggest, containing 64.75% of LOC.
  • " *.properties" is smallest, containing 16.48% of LOC.


*.txt169 LOC (64%) 1 file
*.md49 LOC (18%) 2 files
*.properties43 LOC (16%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:44