apache / ofbiz-site
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
xsd
txt
htaccess
classpath
ini
project
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.

main43252 LOC (92%) 172 files
test0 LOC (0%) 0 files
generated871 LOC (1%) 1 file
build and deployment5 LOC (<1%) 1 file
other2737 LOC (5%) 7 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 172 files match defined criteria (43,252 LOC, 100.0% vs. main code):
    • 54 *.html files (18,464 LOC)
    • 64 *.php files (9,889 LOC)
    • 32 *.xsd files (8,685 LOC)
    • 16 *.css files (5,102 LOC)
    • 4 *.js files (940 LOC)
    • 2 *.rdf files (172 LOC)
  • " *.html" is biggest, containing 42.69% of LOC.
  • " *.rdf" is smallest, containing 0.4% of LOC.


*.html18464 LOC (42%) 54 files
*.php9889 LOC (22%) 64 files
*.xsd8685 LOC (20%) 32 files
*.css5102 LOC (11%) 16 files
*.js940 LOC (2%) 4 files
*.rdf172 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (871 LOC, 2.0% vs. main code). All matches are in *.xsd files.


*.xsd871 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (5 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh5 LOC (100%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]htaccess".
  • 7 files match defined criteria (2,737 LOC, 6.3% vs. main code):
    • 1 *.json files (1,829 LOC)
    • 1 *.svg files (788 LOC)
    • 2 *.txt files (57 LOC)
    • 2 *.md files (57 LOC)
    • 1 *.ini files (6 LOC)
  • " *.json" is biggest, containing 66.82% of LOC.
  • " *.ini" is smallest, containing 0.22% of LOC.


*.json1829 LOC (66%) 1 file
*.svg788 LOC (28%) 1 file
*.txt57 LOC (2%) 2 files
*.md57 LOC (2%) 2 files
*.ini6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:00