apache / ozhera
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
proto
gitmodules
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.

main168306 LOC (85%) 1,608 files
test9541 LOC (4%) 112 files
generated0 LOC (0%) 0 files
build and deployment7891 LOC (4%) 73 files
other11227 LOC (5%) 145 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1608 files match defined criteria (168,306 LOC, 100.0% vs. main code):
    • 1,480 *.java files (97,503 LOC)
    • 43 *.ftl files (56,418 LOC)
    • 51 *.xml files (8,733 LOC)
    • 23 *.yaml files (2,961 LOC)
    • 8 *.sql files (2,473 LOC)
    • 1 *.htm files (138 LOC)
    • 2 *.proto files (80 LOC)
  • " *.java" is biggest, containing 57.93% of LOC.
  • " *.proto" is smallest, containing 0.05% of LOC.


*.java97503 LOC (57%) 1,480 files
*.ftl56418 LOC (33%) 43 files
*.xml8733 LOC (5%) 51 files
*.yaml2961 LOC (1%) 23 files
*.sql2473 LOC (1%) 8 files
*.htm138 LOC (<1%) 1 file
*.proto80 LOC (<1%) 2 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[-].*".
  • 112 files match defined criteria (9,541 LOC, 5.7% vs. main code):
    • 1 *.ftl files (5,269 LOC)
    • 111 *.java files (4,272 LOC)
  • " *.ftl" is biggest, containing 55.22% of LOC.
  • " *.java" is smallest, containing 44.78% of LOC.


*.ftl5269 LOC (55%) 1 file
*.java4272 LOC (44%) 111 files
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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/assembly[.]xml".
  • 73 files match defined criteria (7,891 LOC, 4.7% vs. main code):
    • 64 *.xml files (7,667 LOC)
    • 9 *.sh files (224 LOC)
  • " *.xml" is biggest, containing 97.16% of LOC.
  • " *.sh" is smallest, containing 2.84% of LOC.


*.xml7667 LOC (97%) 64 files
*.sh224 LOC (2%) 9 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 ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
  • 145 files match defined criteria (11,227 LOC, 6.7% vs. main code):
    • 28 *.txt files (4,732 LOC)
    • 48 *.md files (4,142 LOC)
    • 49 *.properties files (1,709 LOC)
    • 16 *.java files (516 LOC)
    • 4 *.json files (128 LOC)
  • " *.txt" is biggest, containing 42.15% of LOC.
  • " *.json" is smallest, containing 1.14% of LOC.


*.txt4732 LOC (42%) 28 files
*.md4142 LOC (36%) 48 files
*.properties1709 LOC (15%) 49 files
*.java516 LOC (4%) 16 files
*.json128 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:54