apache / ofbiz-framework
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
xsd
tab
txt
xslt
gitattributes
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.

main638164 LOC (90%) 3,110 files
test18275 LOC (2%) 130 files
generated163 LOC (<1%) 1 file
build and deployment1539 LOC (<1%) 18 files
other50527 LOC (7%) 892 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3110 files match defined criteria (638,164 LOC, 100.0% vs. main code):
    • 1,010 *.xml files (277,377 LOC)
    • 1,013 *.java files (229,323 LOC)
    • 526 *.ftl files (63,099 LOC)
    • 435 *.groovy files (37,542 LOC)
    • 31 *.css files (14,570 LOC)
    • 28 *.xsd files (8,005 LOC)
    • 25 *.js files (4,278 LOC)
    • 11 *.less files (3,111 LOC)
    • 24 *.jsp files (522 LOC)
    • 2 *.html files (233 LOC)
    • 2 *.rb files (38 LOC)
    • 1 *.ps1 files (34 LOC)
    • 2 *.xslt files (32 LOC)
  • " *.xml" is biggest, containing 43.46% of LOC.
  • " *.xslt" is smallest, containing 0.01% of LOC.


*.xml277377 LOC (43%) 1,010 files
*.java229323 LOC (35%) 1,013 files
*.ftl63099 LOC (9%) 526 files
*.groovy37542 LOC (5%) 435 files
*.css14570 LOC (2%) 31 files
*.xsd8005 LOC (1%) 28 files
*.js4278 LOC (<1%) 25 files
*.less3111 LOC (<1%) 11 files
*.jsp522 LOC (<1%) 24 files
*.html233 LOC (<1%) 2 files
*.rb38 LOC (<1%) 2 files
*.ps134 LOC (<1%) 1 file
*.xslt32 LOC (<1%) 2 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 ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
  • 130 files match defined criteria (18,275 LOC, 2.9% vs. main code):
    • 79 *.java files (9,949 LOC)
    • 15 *.xml files (4,461 LOC)
    • 35 *.groovy files (3,835 LOC)
    • 1 *.clj files (30 LOC)
  • " *.java" is biggest, containing 54.44% of LOC.
  • " *.clj" is smallest, containing 0.16% of LOC.


*.java9949 LOC (54%) 79 files
*.xml4461 LOC (24%) 15 files
*.groovy3835 LOC (20%) 35 files
*.clj30 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".
  • 1 file matches defined criteria (163 LOC, 0.0% vs. main code). All matches are in *.json files.


*.json163 LOC (100%) 1 file
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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 18 files match defined criteria (1,539 LOC, 0.2% vs. main code):
    • 8 *.gradle files (1,040 LOC)
    • 6 *.sh files (333 LOC)
    • 4 *.bat files (166 LOC)
  • " *.gradle" is biggest, containing 67.58% of LOC.
  • " *.bat" is smallest, containing 10.79% of LOC.


*.gradle1040 LOC (67%) 8 files
*.sh333 LOC (21%) 6 files
*.bat166 LOC (10%) 4 files
Other Code
properties
tab
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]tab".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]dockerignore".
  • 892 files match defined criteria (50,527 LOC, 7.9% vs. main code):
    • 789 *.svg files (38,826 LOC)
    • 13 *.xml files (5,888 LOC)
    • 58 *.properties files (2,676 LOC)
    • 10 *.adoc files (1,384 LOC)
    • 4 *.tab files (1,381 LOC)
    • 2 *.json files (189 LOC)
    • 11 *.md files (161 LOC)
    • 2 *.sh files (17 LOC)
    • 3 *.txt files (5 LOC)
  • " *.svg" is biggest, containing 76.84% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.svg38826 LOC (76%) 789 files
*.xml5888 LOC (11%) 13 files
*.properties2676 LOC (5%) 58 files
*.adoc1384 LOC (2%) 10 files
*.tab1381 LOC (2%) 4 files
*.json189 LOC (<1%) 2 files
*.md161 LOC (<1%) 11 files
*.sh17 LOC (<1%) 2 files
*.txt5 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:56