apache / pekko-grpc
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
editorconfig
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.

main10959 LOC (56%) 257 files
test5233 LOC (26%) 78 files
generated615 LOC (3%) 6 files
build and deployment543 LOC (2%) 11 files
other2206 LOC (11%) 28 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 ".*".
  • 257 files match defined criteria (10,959 LOC, 100.0% vs. main code):
    • 147 *.scala files (6,520 LOC)
    • 33 *.java files (2,391 LOC)
    • 34 *.proto files (1,192 LOC)
    • 39 *.sbt files (458 LOC)
    • 2 *.xml files (210 LOC)
    • 2 *.groovy files (188 LOC)
  • " *.scala" is biggest, containing 59.49% of LOC.
  • " *.groovy" is smallest, containing 1.72% of LOC.


*.scala6520 LOC (59%) 147 files
*.java2391 LOC (21%) 33 files
*.proto1192 LOC (10%) 34 files
*.sbt458 LOC (4%) 39 files
*.xml210 LOC (1%) 2 files
*.groovy188 LOC (1%) 2 files
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 ".*[-]test[-].*".
  • 78 files match defined criteria (5,233 LOC, 47.8% vs. main code):
    • 50 *.scala files (3,167 LOC)
    • 15 *.java files (1,615 LOC)
    • 5 *.groovy files (335 LOC)
    • 6 *.proto files (105 LOC)
    • 2 *.sbt files (11 LOC)
  • " *.scala" is biggest, containing 60.52% of LOC.
  • " *.sbt" is smallest, containing 0.21% of LOC.


*.scala3167 LOC (60%) 50 files
*.java1615 LOC (30%) 15 files
*.groovy335 LOC (6%) 5 files
*.proto105 LOC (2%) 6 files
*.sbt11 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 .*".
  • 6 files match defined criteria (615 LOC, 5.6% vs. main code):
    • 4 *.scala files (426 LOC)
    • 2 *.java files (189 LOC)
  • " *.scala" is biggest, containing 69.27% of LOC.
  • " *.java" is smallest, containing 30.73% of LOC.


*.scala426 LOC (69%) 4 files
*.java189 LOC (30%) 2 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 11 files match defined criteria (543 LOC, 5.0% vs. main code):
    • 9 *.gradle files (330 LOC)
    • 2 *.xml files (213 LOC)
  • " *.gradle" is biggest, containing 60.77% of LOC.
  • " *.xml" is smallest, containing 39.23% of LOC.


*.gradle330 LOC (60%) 9 files
*.xml213 LOC (39%) 2 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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 28 files match defined criteria (2,206 LOC, 20.1% vs. main code):
    • 15 *.txt files (1,840 LOC)
    • 10 *.md files (362 LOC)
    • 3 *.properties files (4 LOC)
  • " *.txt" is biggest, containing 83.41% of LOC.
  • " *.properties" is smallest, containing 0.18% of LOC.


*.txt1840 LOC (83%) 15 files
*.md362 LOC (16%) 10 files
*.properties4 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:42