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

main9896 LOC (41%) 107 files
test5487 LOC (23%) 32 files
generated5531 LOC (23%) 1 file
build and deployment18 LOC (<1%) 3 files
other2737 LOC (11%) 39 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 ".*".
  • 107 files match defined criteria (9,896 LOC, 100.0% vs. main code):
    • 96 *.scala files (9,164 LOC)
    • 1 *.java files (324 LOC)
    • 2 *.sbt files (191 LOC)
    • 1 *.yaml files (91 LOC)
    • 4 *.xml files (78 LOC)
    • 1 *.proto files (45 LOC)
    • 2 *.sql files (3 LOC)
  • " *.scala" is biggest, containing 92.6% of LOC.
  • " *.sql" is smallest, containing 0.03% of LOC.


*.scala9164 LOC (92%) 96 files
*.java324 LOC (3%) 1 file
*.sbt191 LOC (1%) 2 files
*.yaml91 LOC (<1%) 1 file
*.xml78 LOC (<1%) 4 files
*.proto45 LOC (<1%) 1 file
*.sql3 LOC (<1%) 2 files
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 ".*[-]tests[-].*".
  • 32 files match defined criteria (5,487 LOC, 55.4% vs. main code):
    • 24 *.scala files (4,771 LOC)
    • 3 *.java files (627 LOC)
    • 5 *.xml files (89 LOC)
  • " *.scala" is biggest, containing 86.95% of LOC.
  • " *.xml" is smallest, containing 1.62% of LOC.


*.scala4771 LOC (86%) 24 files
*.java627 LOC (11%) 3 files
*.xml89 LOC (1%) 5 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 .*".
  • 1 file matches defined criteria (5,531 LOC, 55.9% vs. main code). All matches are in *.java files.


*.java5531 LOC (100%) 1 file
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 ".*/docker[-]compose[.]yml".
  • 3 files match defined criteria (18 LOC, 0.2% vs. main code):
    • 2 *.sh files (12 LOC)
    • 1 *.yml files (6 LOC)
  • " *.sh" is biggest, containing 66.67% of LOC.
  • " *.yml" is smallest, containing 33.33% of LOC.


*.sh12 LOC (66%) 2 files
*.yml6 LOC (33%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
  • 39 files match defined criteria (2,737 LOC, 27.7% vs. main code):
    • 25 *.java files (2,547 LOC)
    • 6 *.sql files (126 LOC)
    • 3 *.xml files (54 LOC)
    • 2 *.scala files (4 LOC)
    • 1 *.md files (4 LOC)
    • 1 *.txt files (1 LOC)
    • 1 *.properties files (1 LOC)
  • " *.java" is biggest, containing 93.06% of LOC.
  • " *.properties" is smallest, containing 0.04% of LOC.


*.java2547 LOC (93%) 25 files
*.sql126 LOC (4%) 6 files
*.xml54 LOC (1%) 3 files
*.scala4 LOC (<1%) 2 files
*.md4 LOC (<1%) 1 file
*.txt1 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:35