apache / streams-examples
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
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.

main477 LOC (6%) 17 files
test685 LOC (9%) 13 files
generated236 LOC (3%) 4 files
build and deployment2831 LOC (38%) 10 files
other3053 LOC (41%) 63 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 17 files match defined criteria (477 LOC, 100.0% vs. main code):
    • 7 *.java files (351 LOC)
    • 10 *.xml files (126 LOC)
  • " *.java" is biggest, containing 73.58% of LOC.
  • " *.xml" is smallest, containing 26.42% of LOC.


*.java351 LOC (73%) 7 files
*.xml126 LOC (26%) 10 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/.*".
  • 13 files match defined criteria (685 LOC, 143.6% vs. main code):
    • 9 *.java files (603 LOC)
    • 4 *.xml files (82 LOC)
  • " *.java" is biggest, containing 88.03% of LOC.
  • " *.xml" is smallest, containing 11.97% of LOC.


*.java603 LOC (88%) 9 files
*.xml82 LOC (11%) 4 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 .*".
  • 4 files match defined criteria (236 LOC, 49.5% vs. main code). All matches are in *.svg files.


*.svg236 LOC (100%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 10 files match defined criteria (2,831 LOC, 593.5% vs. main code). All matches are in *.xml files.


*.xml2831 LOC (100%) 10 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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 63 files match defined criteria (3,053 LOC, 640.0% vs. main code):
    • 2 *.txt files (1,001 LOC)
    • 10 *.scala files (807 LOC)
    • 28 *.md files (577 LOC)
    • 17 *.json files (384 LOC)
    • 4 *.svg files (236 LOC)
    • 2 *.properties files (48 LOC)
  • " *.txt" is biggest, containing 32.79% of LOC.
  • " *.properties" is smallest, containing 1.57% of LOC.


*.txt1001 LOC (32%) 2 files
*.scala807 LOC (26%) 10 files
*.md577 LOC (18%) 28 files
*.json384 LOC (12%) 17 files
*.svg236 LOC (7%) 4 files
*.properties48 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:30