apache / ratis
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
proto
txt
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.

main41421 LOC (56%) 419 files
test20788 LOC (28%) 210 files
generated0 LOC (0%) 0 files
build and deployment3364 LOC (4%) 40 files
other7327 LOC (10%) 81 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 ".*".
  • 419 files match defined criteria (41,421 LOC, 100.0% vs. main code):
    • 405 *.java files (40,034 LOC)
    • 7 *.proto files (894 LOC)
    • 6 *.xml files (470 LOC)
    • 1 *.toml files (23 LOC)
  • " *.java" is biggest, containing 96.65% of LOC.
  • " *.toml" is smallest, containing 0.06% of LOC.


*.java40034 LOC (96%) 405 files
*.proto894 LOC (2%) 7 files
*.xml470 LOC (1%) 6 files
*.toml23 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[.].*".
  • 210 files match defined criteria (20,788 LOC, 50.2% vs. main code):
    • 207 *.java files (20,695 LOC)
    • 3 *.sh files (93 LOC)
  • " *.java" is biggest, containing 99.55% of LOC.
  • " *.sh" is smallest, containing 0.45% of LOC.


*.java20695 LOC (99%) 207 files
*.sh93 LOC (<1%) 3 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 40 files match defined criteria (3,364 LOC, 8.1% vs. main code):
    • 21 *.xml files (2,809 LOC)
    • 18 *.sh files (511 LOC)
    • 1 *.yaml files (44 LOC)
  • " *.xml" is biggest, containing 83.5% of LOC.
  • " *.yaml" is smallest, containing 1.31% of LOC.


*.xml2809 LOC (83%) 21 files
*.sh511 LOC (15%) 18 files
*.yaml44 LOC (1%) 1 file
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 81 files match defined criteria (7,327 LOC, 17.7% vs. main code):
    • 51 *.java files (4,533 LOC)
    • 17 *.md files (2,111 LOC)
    • 2 *.svg files (370 LOC)
    • 9 *.properties files (214 LOC)
    • 1 *.xml files (66 LOC)
    • 1 *.sh files (33 LOC)
  • " *.java" is biggest, containing 61.87% of LOC.
  • " *.sh" is smallest, containing 0.45% of LOC.


*.java4533 LOC (61%) 51 files
*.md2111 LOC (28%) 17 files
*.svg370 LOC (5%) 2 files
*.properties214 LOC (2%) 9 files
*.xml66 LOC (<1%) 1 file
*.sh33 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:08