apache / streampipes
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
mod
properties
eslintignore
prettierignore
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.

main162420 LOC (77%) 3,453 files
test15234 LOC (7%) 304 files
generated4258 LOC (2%) 2 files
build and deployment8015 LOC (3%) 102 files
other18880 LOC (9%) 270 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 ".*".
  • 3453 files match defined criteria (162,420 LOC, 100.0% vs. main code):
    • 2,023 *.java files (92,015 LOC)
    • 694 *.ts files (40,133 LOC)
    • 343 *.html files (19,818 LOC)
    • 280 *.scss files (5,848 LOC)
    • 29 *.go files (1,951 LOC)
    • 54 *.py files (1,431 LOC)
    • 14 *.yaml files (604 LOC)
    • 3 *.js files (266 LOC)
    • 8 *.xml files (224 LOC)
    • 1 *.toml files (126 LOC)
    • 4 *.sql files (4 LOC)
  • " *.java" is biggest, containing 56.65% of LOC.
  • " *.sql" is smallest, containing 0% of LOC.


*.java92015 LOC (56%) 2,023 files
*.ts40133 LOC (24%) 694 files
*.html19818 LOC (12%) 343 files
*.scss5848 LOC (3%) 280 files
*.go1951 LOC (1%) 29 files
*.py1431 LOC (<1%) 54 files
*.yaml604 LOC (<1%) 14 files
*.js266 LOC (<1%) 3 files
*.xml224 LOC (<1%) 8 files
*.toml126 LOC (<1%) 1 file
*.sql4 LOC (<1%) 4 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[-].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
  • 304 files match defined criteria (15,234 LOC, 9.4% vs. main code):
    • 204 *.java files (10,233 LOC)
    • 71 *.ts files (2,932 LOC)
    • 15 *.py files (1,378 LOC)
    • 5 *.go files (313 LOC)
    • 4 *.xml files (226 LOC)
    • 3 *.js files (118 LOC)
    • 2 *.sh files (34 LOC)
  • " *.java" is biggest, containing 67.17% of LOC.
  • " *.sh" is smallest, containing 0.22% of LOC.


*.java10233 LOC (67%) 204 files
*.ts2932 LOC (19%) 71 files
*.py1378 LOC (9%) 15 files
*.go313 LOC (2%) 5 files
*.xml226 LOC (1%) 4 files
*.js118 LOC (<1%) 3 files
*.sh34 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 using .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (4,258 LOC, 2.6% vs. main code). All matches are in *.ts files.


*.ts4258 LOC (100%) 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
  • 102 files match defined criteria (8,015 LOC, 4.9% vs. main code):
    • 94 *.xml files (7,395 LOC)
    • 8 *.sh files (620 LOC)
  • " *.xml" is biggest, containing 92.26% of LOC.
  • " *.sh" is smallest, containing 7.74% of LOC.


*.xml7395 LOC (92%) 94 files
*.sh620 LOC (7%) 8 files
Other Code
properties
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
  • 270 files match defined criteria (18,880 LOC, 11.6% vs. main code):
    • 192 *.md files (9,877 LOC)
    • 68 *.json files (8,644 LOC)
    • 1 *.xml files (221 LOC)
    • 2 *.properties files (46 LOC)
    • 2 *.mod files (38 LOC)
    • 4 *.txt files (30 LOC)
    • 1 *.go files (24 LOC)
  • " *.md" is biggest, containing 52.31% of LOC.
  • " *.go" is smallest, containing 0.13% of LOC.


*.md9877 LOC (52%) 192 files
*.json8644 LOC (45%) 68 files
*.xml221 LOC (1%) 1 file
*.properties46 LOC (<1%) 2 files
*.mod38 LOC (<1%) 2 files
*.txt30 LOC (<1%) 4 files
*.go24 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:35