apache / eventmesh
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
proto
mod
gitmodules
gitattributes
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.

main124927 LOC (80%) 1,663 files
test11405 LOC (7%) 220 files
generated7705 LOC (4%) 23 files
build and deployment2044 LOC (1%) 97 files
other8404 LOC (5%) 213 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 ".*".
  • 1663 files match defined criteria (124,927 LOC, 100.0% vs. main code):
    • 1,444 *.java files (80,214 LOC)
    • 17 *.c files (15,244 LOC)
    • 34 *.yaml files (12,830 LOC)
    • 84 *.go files (5,865 LOC)
    • 2 *.g4 files (3,673 LOC)
    • 22 *.h files (2,672 LOC)
    • 27 *.rs files (1,940 LOC)
    • 18 *.xml files (1,014 LOC)
    • 11 *.proto files (687 LOC)
    • 2 *.html files (570 LOC)
    • 1 *.sql files (144 LOC)
    • 1 *.toml files (74 LOC)
  • " *.java" is biggest, containing 64.21% of LOC.
  • " *.toml" is smallest, containing 0.06% of LOC.


*.java80214 LOC (64%) 1,444 files
*.c15244 LOC (12%) 17 files
*.yaml12830 LOC (10%) 34 files
*.go5865 LOC (4%) 84 files
*.g43673 LOC (2%) 2 files
*.h2672 LOC (2%) 22 files
*.rs1940 LOC (1%) 27 files
*.xml1014 LOC (<1%) 18 files
*.proto687 LOC (<1%) 11 files
*.html570 LOC (<1%) 2 files
*.sql144 LOC (<1%) 1 file
*.toml74 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 ".*/[Tt]ests/.*".
  • 220 files match defined criteria (11,405 LOC, 9.1% vs. main code):
    • 186 *.java files (9,523 LOC)
    • 31 *.go files (1,781 LOC)
    • 1 *.rs files (57 LOC)
    • 2 *.xml files (44 LOC)
  • " *.java" is biggest, containing 83.5% of LOC.
  • " *.xml" is smallest, containing 0.39% of LOC.


*.java9523 LOC (83%) 186 files
*.go1781 LOC (15%) 31 files
*.rs57 LOC (<1%) 1 file
*.xml44 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 23 files match defined criteria (7,705 LOC, 6.2% vs. main code). All matches are in *.java files.


*.java7705 LOC (100%) 23 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 97 files match defined criteria (2,044 LOC, 1.6% vs. main code):
    • 84 *.gradle files (1,848 LOC)
    • 12 *.sh files (125 LOC)
    • 1 *.bat files (71 LOC)
  • " *.gradle" is biggest, containing 90.41% of LOC.
  • " *.bat" is smallest, containing 3.47% of LOC.


*.gradle1848 LOC (90%) 84 files
*.sh125 LOC (6%) 12 files
*.bat71 LOC (3%) 1 file
Other Code
properties
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]dockerignore".
  • 213 files match defined criteria (8,404 LOC, 6.7% vs. main code):
    • 100 *.properties files (2,188 LOC)
    • 48 *.txt files (1,594 LOC)
    • 1 *.c files (1,398 LOC)
    • 31 *.java files (1,222 LOC)
    • 13 *.md files (817 LOC)
    • 11 *.go files (604 LOC)
    • 5 *.yaml files (326 LOC)
    • 2 *.rs files (138 LOC)
    • 2 *.mod files (117 LOC)
  • " *.properties" is biggest, containing 26.04% of LOC.
  • " *.mod" is smallest, containing 1.39% of LOC.


*.properties2188 LOC (26%) 100 files
*.txt1594 LOC (18%) 48 files
*.c1398 LOC (16%) 1 file
*.java1222 LOC (14%) 31 files
*.md817 LOC (9%) 13 files
*.go604 LOC (7%) 11 files
*.yaml326 LOC (3%) 5 files
*.rs138 LOC (1%) 2 files
*.mod117 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:58