elastic / elasticsearch-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
txt
properties
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.

main428386 LOC (95%) 3,650 files
test13766 LOC (3%) 123 files
generated0 LOC (0%) 0 files
build and deployment70 LOC (<1%) 1 file
other5308 LOC (1%) 94 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 ".*".
  • 3650 files match defined criteria (428,386 LOC, 100.0% vs. main code):
    • 3,642 *.java files (424,730 LOC)
    • 1 *.html files (3,236 LOC)
    • 6 *.kts files (361 LOC)
    • 1 *.yaml files (59 LOC)
  • " *.java" is biggest, containing 99.15% of LOC.
  • " *.yaml" is smallest, containing 0.01% of LOC.


*.java424730 LOC (99%) 3,642 files
*.html3236 LOC (<1%) 1 file
*.kts361 LOC (<1%) 6 files
*.yaml59 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_.*".
  • 123 files match defined criteria (13,766 LOC, 3.2% vs. main code):
    • 122 *.java files (13,694 LOC)
    • 1 *.bash files (72 LOC)
  • " *.java" is biggest, containing 99.48% of LOC.
  • " *.bash" is smallest, containing 0.52% of LOC.


*.java13694 LOC (99%) 122 files
*.bash72 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 ".*[.]bat".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (70 LOC, 0.0% vs. main code). All matches are in *.bat files.


*.bat70 LOC (100%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]ocumentation/.*".
  • 94 files match defined criteria (5,308 LOC, 1.2% vs. main code):
    • 55 *.java files (3,184 LOC)
    • 13 *.json files (1,511 LOC)
    • 8 *.txt files (199 LOC)
    • 5 *.md files (115 LOC)
    • 5 *.gradle files (86 LOC)
    • 1 *.bat files (71 LOC)
    • 2 *.xml files (64 LOC)
    • 3 *.properties files (36 LOC)
    • 1 *.yaml files (29 LOC)
    • 1 *.kts files (13 LOC)
  • " *.java" is biggest, containing 59.98% of LOC.
  • " *.kts" is smallest, containing 0.24% of LOC.


*.java3184 LOC (59%) 55 files
*.json1511 LOC (28%) 13 files
*.txt199 LOC (3%) 8 files
*.md115 LOC (2%) 5 files
*.gradle86 LOC (1%) 5 files
*.bat71 LOC (1%) 1 file
*.xml64 LOC (1%) 2 files
*.properties36 LOC (<1%) 3 files
*.yaml29 LOC (<1%) 1 file
*.kts13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:56