apache / incubator-kie-drools
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
xsd
policy
hbs
proto
xsl
project
classpath
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.

main416795 LOC (47%) 5,925 files
test353123 LOC (40%) 2,929 files
generated15881 LOC (1%) 32 files
build and deployment18643 LOC (2%) 209 files
other76907 LOC (8%) 626 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
proto
hbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 5925 files match defined criteria (416,795 LOC, 100.0% vs. main code):
    • 5,823 *.java files (405,699 LOC)
    • 7 *.g files (5,438 LOC)
    • 6 *.g4 files (3,014 LOC)
    • 38 *.xml files (824 LOC)
    • 2 *.xsl files (471 LOC)
    • 2 *.proto files (469 LOC)
    • 1 *.js files (222 LOC)
    • 11 *.htm files (172 LOC)
    • 4 *.css files (166 LOC)
    • 22 *.html files (118 LOC)
    • 1 *.ftl files (81 LOC)
    • 4 *.yaml files (78 LOC)
    • 4 *.hbs files (43 LOC)
  • " *.java" is biggest, containing 97.34% of LOC.
  • " *.hbs" is smallest, containing 0.01% of LOC.


*.java405699 LOC (97%) 5,823 files
*.g5438 LOC (1%) 7 files
*.g43014 LOC (<1%) 6 files
*.xml824 LOC (<1%) 38 files
*.xsl471 LOC (<1%) 2 files
*.proto469 LOC (<1%) 2 files
*.js222 LOC (<1%) 1 file
*.htm172 LOC (<1%) 11 files
*.css166 LOC (<1%) 4 files
*.html118 LOC (<1%) 22 files
*.ftl81 LOC (<1%) 1 file
*.yaml78 LOC (<1%) 4 files
*.hbs43 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
policy
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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
  • 2929 files match defined criteria (353,123 LOC, 84.7% vs. main code):
    • 2,709 *.java files (342,900 LOC)
    • 210 *.xml files (9,020 LOC)
    • 2 *.g files (1,041 LOC)
    • 5 *.policy files (114 LOC)
    • 2 *.yaml files (26 LOC)
    • 1 *.rb files (22 LOC)
  • " *.java" is biggest, containing 97.1% of LOC.
  • " *.rb" is smallest, containing 0.01% of LOC.


*.java342900 LOC (97%) 2,709 files
*.xml9020 LOC (2%) 210 files
*.g1041 LOC (<1%) 2 files
*.policy114 LOC (<1%) 5 files
*.yaml26 LOC (<1%) 2 files
*.rb22 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 any line of content like "//[ ]*Generated by .*".
    • files with any line of content like "// This file was generated .*".
    • files with paths like ".*/package[-]lock[.]json".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 32 files match defined criteria (15,881 LOC, 3.8% vs. main code):
    • 26 *.svg files (6,249 LOC)
    • 1 *.json files (5,512 LOC)
    • 5 *.java files (4,120 LOC)
  • " *.svg" is biggest, containing 39.35% of LOC.
  • " *.java" is smallest, containing 25.94% of LOC.


*.svg6249 LOC (39%) 26 files
*.json5512 LOC (34%) 1 file
*.java4120 LOC (25%) 5 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/jenkins/.*[.]groovy".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 209 files match defined criteria (18,643 LOC, 4.5% vs. main code):
    • 205 *.xml files (18,446 LOC)
    • 3 *.sh files (124 LOC)
    • 1 *.bat files (73 LOC)
  • " *.xml" is biggest, containing 98.94% of LOC.
  • " *.bat" is smallest, containing 0.39% of LOC.


*.xml18446 LOC (98%) 205 files
*.sh124 LOC (<1%) 3 files
*.bat73 LOC (<1%) 1 file
Other Code
txt
properties
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]svg".
  • 626 files match defined criteria (76,907 LOC, 18.5% vs. main code):
    • 126 *.svg files (35,158 LOC)
    • 175 *.adoc files (21,211 LOC)
    • 18 *.json files (10,058 LOC)
    • 113 *.java files (4,582 LOC)
    • 39 *.md files (2,229 LOC)
    • 95 *.txt files (1,522 LOC)
    • 53 *.properties files (1,507 LOC)
    • 7 *.xsd files (640 LOC)
  • " *.svg" is biggest, containing 45.71% of LOC.
  • " *.xsd" is smallest, containing 0.83% of LOC.


*.svg35158 LOC (45%) 126 files
*.adoc21211 LOC (27%) 175 files
*.json10058 LOC (13%) 18 files
*.java4582 LOC (5%) 113 files
*.md2229 LOC (2%) 39 files
*.txt1522 LOC (1%) 95 files
*.properties1507 LOC (1%) 53 files
*.xsd640 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:27