apache / pekko
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
proto
txt
properties
htaccess
gitattributes
st
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.

main168588 LOC (43%) 1,405 files
test163383 LOC (42%) 1,258 files
generated51932 LOC (13%) 15 files
build and deployment64 LOC (<1%) 2 files
other1888 LOC (<1%) 19 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 ".*".
  • 1405 files match defined criteria (168,588 LOC, 100.0% vs. main code):
    • 1,337 *.scala files (164,209 LOC)
    • 41 *.java files (1,997 LOC)
    • 19 *.proto files (1,615 LOC)
    • 2 *.sbt files (599 LOC)
    • 1 *.yaml files (109 LOC)
    • 4 *.xml files (48 LOC)
    • 1 *.pl files (11 LOC)
  • " *.scala" is biggest, containing 97.4% of LOC.
  • " *.pl" is smallest, containing 0.01% of LOC.


*.scala164209 LOC (97%) 1,337 files
*.java1997 LOC (1%) 41 files
*.proto1615 LOC (<1%) 19 files
*.sbt599 LOC (<1%) 2 files
*.yaml109 LOC (<1%) 1 file
*.xml48 LOC (<1%) 4 files
*.pl11 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/testing[.].*".
  • 1258 files match defined criteria (163,383 LOC, 96.9% vs. main code):
    • 1,010 *.scala files (138,533 LOC)
    • 227 *.java files (24,397 LOC)
    • 14 *.xml files (262 LOC)
    • 4 *.sh files (127 LOC)
    • 3 *.proto files (64 LOC)
  • " *.scala" is biggest, containing 84.79% of LOC.
  • " *.proto" is smallest, containing 0.04% of LOC.


*.scala138533 LOC (84%) 1,010 files
*.java24397 LOC (14%) 227 files
*.xml262 LOC (<1%) 14 files
*.sh127 LOC (<1%) 4 files
*.proto64 LOC (<1%) 3 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 .*".
  • 15 files match defined criteria (51,932 LOC, 30.8% vs. main code). All matches are in *.java files.


*.java51932 LOC (100%) 15 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (64 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh64 LOC (100%) 2 files
Other Code
txt
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]htaccess".
  • 19 files match defined criteria (1,888 LOC, 1.1% vs. main code):
    • 10 *.txt files (1,365 LOC)
    • 6 *.md files (502 LOC)
    • 3 *.properties files (21 LOC)
  • " *.txt" is biggest, containing 72.3% of LOC.
  • " *.properties" is smallest, containing 1.11% of LOC.


*.txt1365 LOC (72%) 10 files
*.md502 LOC (26%) 6 files
*.properties21 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:43