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

main10790 LOC (57%) 248 files
test5054 LOC (27%) 78 files
generated616 LOC (3%) 6 files
build and deployment648 LOC (3%) 13 files
other1502 LOC (8%) 42 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 ".*".
  • 248 files match defined criteria (10,790 LOC, 100.0% vs. main code):
    • 142 *.scala files (6,491 LOC)
    • 31 *.java files (2,307 LOC)
    • 34 *.proto files (1,191 LOC)
    • 37 *.sbt files (403 LOC)
    • 2 *.xml files (210 LOC)
    • 2 *.groovy files (188 LOC)
  • " *.scala" is biggest, containing 60.16% of LOC.
  • " *.groovy" is smallest, containing 1.74% of LOC.


*.scala6491 LOC (60%) 142 files
*.java2307 LOC (21%) 31 files
*.proto1191 LOC (11%) 34 files
*.sbt403 LOC (3%) 37 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 ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
  • 78 files match defined criteria (5,054 LOC, 46.8% vs. main code):
    • 50 *.scala files (3,104 LOC)
    • 15 *.java files (1,468 LOC)
    • 5 *.groovy files (335 LOC)
    • 6 *.proto files (136 LOC)
    • 2 *.sbt files (11 LOC)
  • " *.scala" is biggest, containing 61.42% of LOC.
  • " *.sbt" is smallest, containing 0.22% of LOC.


*.scala3104 LOC (61%) 50 files
*.java1468 LOC (29%) 15 files
*.groovy335 LOC (6%) 5 files
*.proto136 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 (616 LOC, 5.7% vs. main code):
    • 4 *.scala files (427 LOC)
    • 2 *.java files (189 LOC)
  • " *.scala" is biggest, containing 69.32% of LOC.
  • " *.java" is smallest, containing 30.68% of LOC.


*.scala427 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 13 files match defined criteria (648 LOC, 6.0% vs. main code):
    • 9 *.gradle files (313 LOC)
    • 2 *.xml files (213 LOC)
    • 2 *.bat files (122 LOC)
  • " *.gradle" is biggest, containing 48.3% of LOC.
  • " *.bat" is smallest, containing 18.83% of LOC.


*.gradle313 LOC (48%) 9 files
*.xml213 LOC (32%) 2 files
*.bat122 LOC (18%) 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 ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 42 files match defined criteria (1,502 LOC, 13.9% vs. main code):
    • 13 *.txt files (1,128 LOC)
    • 9 *.md files (353 LOC)
    • 20 *.properties files (21 LOC)
  • " *.txt" is biggest, containing 75.1% of LOC.
  • " *.properties" is smallest, containing 1.4% of LOC.


*.txt1128 LOC (75%) 13 files
*.md353 LOC (23%) 9 files
*.properties21 LOC (1%) 20 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:35