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

main42723 LOC (66%) 470 files
test11621 LOC (18%) 139 files
generated0 LOC (0%) 0 files
build and deployment1305 LOC (2%) 13 files
other8640 LOC (13%) 156 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 ".*".
  • 470 files match defined criteria (42,723 LOC, 100.0% vs. main code):
    • 379 *.java files (31,934 LOC)
    • 53 *.scala files (6,829 LOC)
    • 33 *.groovy files (3,652 LOC)
    • 1 *.yaml files (194 LOC)
    • 3 *.sql files (60 LOC)
    • 1 *.xml files (54 LOC)
  • " *.java" is biggest, containing 74.75% of LOC.
  • " *.xml" is smallest, containing 0.13% of LOC.


*.java31934 LOC (74%) 379 files
*.scala6829 LOC (15%) 53 files
*.groovy3652 LOC (8%) 33 files
*.yaml194 LOC (<1%) 1 file
*.sql60 LOC (<1%) 3 files
*.xml54 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 ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
  • 139 files match defined criteria (11,621 LOC, 27.2% vs. main code):
    • 120 *.java files (10,793 LOC)
    • 14 *.scala files (754 LOC)
    • 4 *.gradle files (70 LOC)
    • 1 *.xml files (4 LOC)
  • " *.java" is biggest, containing 92.87% of LOC.
  • " *.xml" is smallest, containing 0.03% of LOC.


*.java10793 LOC (92%) 120 files
*.scala754 LOC (6%) 14 files
*.gradle70 LOC (<1%) 4 files
*.xml4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 13 files match defined criteria (1,305 LOC, 3.1% vs. main code):
    • 9 *.gradle files (1,168 LOC)
    • 1 *.bat files (73 LOC)
    • 3 *.sh files (64 LOC)
  • " *.gradle" is biggest, containing 89.5% of LOC.
  • " *.sh" is smallest, containing 4.9% of LOC.


*.gradle1168 LOC (89%) 9 files
*.bat73 LOC (5%) 1 file
*.sh64 LOC (4%) 3 files
Other Code
txt
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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 156 files match defined criteria (8,640 LOC, 20.2% vs. main code):
    • 48 *.txt files (4,042 LOC)
    • 92 *.json files (4,007 LOC)
    • 2 *.md files (330 LOC)
    • 14 *.properties files (261 LOC)
  • " *.txt" is biggest, containing 46.78% of LOC.
  • " *.properties" is smallest, containing 3.02% of LOC.


*.txt4042 LOC (46%) 48 files
*.json4007 LOC (46%) 92 files
*.md330 LOC (3%) 2 files
*.properties261 LOC (3%) 14 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:38