apache / incubator-kie-kogito-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
properties
cmd
txt
ini
proto
http
wsdl
tpl
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.

main28600 LOC (22%) 452 files
test10135 LOC (8%) 230 files
generated9494 LOC (7%) 2 files
build and deployment23413 LOC (18%) 217 files
other54743 LOC (43%) 817 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
wsdl
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 452 files match defined criteria (28,600 LOC, 100.0% vs. main code):
    • 316 *.java files (10,963 LOC)
    • 18 *.xml files (9,651 LOC)
    • 18 *.html files (2,888 LOC)
    • 57 *.yaml files (2,083 LOC)
    • 12 *.js files (1,725 LOC)
    • 1 *.py files (332 LOC)
    • 6 *.tsx files (320 LOC)
    • 3 *.proto files (174 LOC)
    • 9 *.sql files (168 LOC)
    • 1 *.wsdl files (110 LOC)
    • 9 *.ts files (97 LOC)
    • 1 *.tpl files (57 LOC)
    • 1 *.scss files (32 LOC)
  • " *.java" is biggest, containing 38.33% of LOC.
  • " *.scss" is smallest, containing 0.11% of LOC.


*.java10963 LOC (38%) 316 files
*.xml9651 LOC (33%) 18 files
*.html2888 LOC (10%) 18 files
*.yaml2083 LOC (7%) 57 files
*.js1725 LOC (6%) 12 files
*.py332 LOC (1%) 1 file
*.tsx320 LOC (1%) 6 files
*.proto174 LOC (<1%) 3 files
*.sql168 LOC (<1%) 9 files
*.wsdl110 LOC (<1%) 1 file
*.ts97 LOC (<1%) 9 files
*.tpl57 LOC (<1%) 1 file
*.scss32 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
http
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
  • 230 files match defined criteria (10,135 LOC, 35.4% vs. main code):
    • 204 *.java files (9,257 LOC)
    • 10 *.yaml files (494 LOC)
    • 4 *.js files (217 LOC)
    • 11 *.xml files (129 LOC)
    • 1 *.http files (38 LOC)
  • " *.java" is biggest, containing 91.34% of LOC.
  • " *.http" is smallest, containing 0.37% of LOC.


*.java9257 LOC (91%) 204 files
*.yaml494 LOC (4%) 10 files
*.js217 LOC (2%) 4 files
*.xml129 LOC (1%) 11 files
*.http38 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (9,494 LOC, 33.2% vs. main code). All matches are in *.json files.


*.json9494 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/jenkins/.*[.]groovy".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 217 files match defined criteria (23,413 LOC, 81.9% vs. main code):
    • 189 *.xml files (22,621 LOC)
    • 27 *.sh files (762 LOC)
    • 1 *.yaml files (30 LOC)
  • " *.xml" is biggest, containing 96.62% of LOC.
  • " *.yaml" is smallest, containing 0.13% of LOC.


*.xml22621 LOC (96%) 189 files
*.sh762 LOC (3%) 27 files
*.yaml30 LOC (<1%) 1 file
Other Code
properties
txt
ini
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 ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
  • 817 files match defined criteria (54,743 LOC, 191.4% vs. main code):
    • 182 *.md files (18,584 LOC)
    • 167 *.json files (18,518 LOC)
    • 217 *.java files (10,036 LOC)
    • 241 *.properties files (6,504 LOC)
    • 5 *.txt files (1,085 LOC)
    • 4 *.ini files (12 LOC)
    • 1 *.svg files (4 LOC)
  • " *.md" is biggest, containing 33.95% of LOC.
  • " *.svg" is smallest, containing 0.01% of LOC.


*.md18584 LOC (33%) 182 files
*.json18518 LOC (33%) 167 files
*.java10036 LOC (18%) 217 files
*.properties6504 LOC (11%) 241 files
*.txt1085 LOC (1%) 5 files
*.ini12 LOC (<1%) 4 files
*.svg4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:51