apache / incubator-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.

main164907 LOC (43%) 1,366 files
test157636 LOC (41%) 1,218 files
generated56155 LOC (14%) 15 files
build and deployment185 LOC (<1%) 11 files
other1876 LOC (<1%) 18 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 ".*".
  • 1366 files match defined criteria (164,907 LOC, 100.0% vs. main code):
    • 1,299 *.scala files (160,540 LOC)
    • 40 *.java files (1,990 LOC)
    • 19 *.proto files (1,615 LOC)
    • 2 *.sbt files (594 LOC)
    • 1 *.yaml files (109 LOC)
    • 4 *.xml files (48 LOC)
    • 1 *.pl files (11 LOC)
  • " *.scala" is biggest, containing 97.35% of LOC.
  • " *.pl" is smallest, containing 0.01% of LOC.


*.scala160540 LOC (97%) 1,299 files
*.java1990 LOC (1%) 40 files
*.proto1615 LOC (<1%) 19 files
*.sbt594 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 ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
  • 1218 files match defined criteria (157,636 LOC, 95.6% vs. main code):
    • 978 *.scala files (133,940 LOC)
    • 219 *.java files (23,243 LOC)
    • 14 *.xml files (262 LOC)
    • 4 *.sh files (127 LOC)
    • 3 *.proto files (64 LOC)
  • " *.scala" is biggest, containing 84.97% of LOC.
  • " *.proto" is smallest, containing 0.04% of LOC.


*.scala133940 LOC (84%) 978 files
*.java23243 LOC (14%) 219 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 (56,155 LOC, 34.1% vs. main code). All matches are in *.java files.


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


*.sh185 LOC (100%) 11 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 18 files match defined criteria (1,876 LOC, 1.1% vs. main code):
    • 10 *.txt files (1,365 LOC)
    • 5 *.md files (490 LOC)
    • 3 *.properties files (21 LOC)
  • " *.txt" is biggest, containing 72.76% of LOC.
  • " *.properties" is smallest, containing 1.12% of LOC.


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


2023-08-11 02:34