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

main9458 LOC (77%) 187 files
test542 LOC (4%) 10 files
generated0 LOC (0%) 0 files
build and deployment1013 LOC (8%) 17 files
other1190 LOC (9%) 44 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 ".*".
  • 187 files match defined criteria (9,458 LOC, 100.0% vs. main code):
    • 79 *.scala files (4,514 LOC)
    • 48 *.java files (3,762 LOC)
    • 30 *.sbt files (542 LOC)
    • 22 *.xml files (359 LOC)
    • 2 *.yml files (149 LOC)
    • 6 *.proto files (132 LOC)
  • " *.scala" is biggest, containing 47.73% of LOC.
  • " *.proto" is smallest, containing 1.4% of LOC.


*.scala4514 LOC (47%) 79 files
*.java3762 LOC (39%) 48 files
*.sbt542 LOC (5%) 30 files
*.xml359 LOC (3%) 22 files
*.yml149 LOC (1%) 2 files
*.proto132 LOC (1%) 6 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 ".*/test_.*".
  • 10 files match defined criteria (542 LOC, 5.7% vs. main code):
    • 3 *.java files (332 LOC)
    • 2 *.sh files (100 LOC)
    • 1 *.scala files (70 LOC)
    • 4 *.xml files (40 LOC)
  • " *.java" is biggest, containing 61.25% of LOC.
  • " *.xml" is smallest, containing 7.38% of LOC.


*.java332 LOC (61%) 3 files
*.sh100 LOC (18%) 2 files
*.scala70 LOC (12%) 1 file
*.xml40 LOC (7%) 4 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 ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 17 files match defined criteria (1,013 LOC, 10.7% vs. main code):
    • 9 *.xml files (773 LOC)
    • 6 *.sh files (186 LOC)
    • 2 *.yml files (54 LOC)
  • " *.xml" is biggest, containing 76.31% of LOC.
  • " *.yml" is smallest, containing 5.33% of LOC.


*.xml773 LOC (76%) 9 files
*.sh186 LOC (18%) 6 files
*.yml54 LOC (5%) 2 files
Other Code
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 ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 44 files match defined criteria (1,190 LOC, 12.6% vs. main code):
    • 24 *.md files (1,080 LOC)
    • 2 *.java files (74 LOC)
    • 2 *.json files (20 LOC)
    • 16 *.properties files (16 LOC)
  • " *.md" is biggest, containing 90.76% of LOC.
  • " *.properties" is smallest, containing 1.34% of LOC.


*.md1080 LOC (90%) 24 files
*.java74 LOC (6%) 2 files
*.json20 LOC (1%) 2 files
*.properties16 LOC (1%) 16 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:35