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.

main633869 LOC (89%) 3,083 files
test20129 LOC (2%) 147 files
generated177 LOC (<1%) 1 file
build and deployment1476 LOC (<1%) 13 files
other49951 LOC (7%) 889 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 ".*".
  • 3083 files match defined criteria (633,869 LOC, 100.0% vs. main code):
    • 1,013 *.xml files (279,106 LOC)
    • 1,011 *.java files (227,882 LOC)
    • 526 *.ftl files (62,953 LOC)
    • 404 *.groovy files (32,798 LOC)
    • 31 *.css files (14,487 LOC)
    • 28 *.xsd files (7,876 LOC)
    • 25 *.js files (4,312 LOC)
    • 11 *.less files (3,166 LOC)
    • 24 *.jsp files (522 LOC)
    • 3 *.adoc files (430 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 44.03% of LOC.
  • " *.xslt" is smallest, containing 0.01% of LOC.


*.xml279106 LOC (44%) 1,013 files
*.java227882 LOC (35%) 1,011 files
*.ftl62953 LOC (9%) 526 files
*.groovy32798 LOC (5%) 404 files
*.css14487 LOC (2%) 31 files
*.xsd7876 LOC (1%) 28 files
*.js4312 LOC (<1%) 25 files
*.less3166 LOC (<1%) 11 files
*.jsp522 LOC (<1%) 24 files
*.adoc430 LOC (<1%) 3 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[.].*".
  • 147 files match defined criteria (20,129 LOC, 3.2% vs. main code):
    • 79 *.java files (9,661 LOC)
    • 52 *.groovy files (5,975 LOC)
    • 15 *.xml files (4,463 LOC)
    • 1 *.clj files (30 LOC)
  • " *.java" is biggest, containing 48% of LOC.
  • " *.clj" is smallest, containing 0.15% of LOC.


*.java9661 LOC (47%) 79 files
*.groovy5975 LOC (29%) 52 files
*.xml4463 LOC (22%) 15 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 (177 LOC, 0.0% vs. main code). All matches are in *.json files.


*.json177 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 ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 13 files match defined criteria (1,476 LOC, 0.2% vs. main code):
    • 7 *.gradle files (1,069 LOC)
    • 4 *.sh files (305 LOC)
    • 2 *.bat files (102 LOC)
  • " *.gradle" is biggest, containing 72.43% of LOC.
  • " *.bat" is smallest, containing 6.91% of LOC.


*.gradle1069 LOC (72%) 7 files
*.sh305 LOC (20%) 4 files
*.bat102 LOC (6%) 2 files
Other Code
properties
tab
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]tab".
  • 889 files match defined criteria (49,951 LOC, 7.9% vs. main code):
    • 789 *.svg files (38,826 LOC)
    • 13 *.xml files (5,871 LOC)
    • 58 *.properties files (2,631 LOC)
    • 4 *.tab files (1,381 LOC)
    • 5 *.adoc files (690 LOC)
    • 12 *.md files (302 LOC)
    • 2 *.json files (200 LOC)
    • 1 *.yml files (28 LOC)
    • 2 *.sh files (17 LOC)
    • 3 *.txt files (5 LOC)
  • " *.svg" is biggest, containing 77.73% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.svg38826 LOC (77%) 789 files
*.xml5871 LOC (11%) 13 files
*.properties2631 LOC (5%) 58 files
*.tab1381 LOC (2%) 4 files
*.adoc690 LOC (1%) 5 files
*.md302 LOC (<1%) 12 files
*.json200 LOC (<1%) 2 files
*.yml28 LOC (<1%) 1 file
*.sh17 LOC (<1%) 2 files
*.txt5 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:16