apache / ofbiz-plugins
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
xsl
xsd
project
cfg
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.

main179633 LOC (89%) 1,154 files
test1015 LOC (<1%) 15 files
generated4214 LOC (2%) 3 files
build and deployment96 LOC (<1%) 9 files
other14734 LOC (7%) 94 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
xsd
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1154 files match defined criteria (179,633 LOC, 100.0% vs. main code):
    • 433 *.xml files (80,446 LOC)
    • 254 *.ftl files (28,748 LOC)
    • 140 *.java files (27,111 LOC)
    • 58 *.js files (17,170 LOC)
    • 53 *.css files (15,164 LOC)
    • 153 *.groovy files (7,562 LOC)
    • 27 *.html files (2,455 LOC)
    • 5 *.xsl files (504 LOC)
    • 1 *.py files (203 LOC)
    • 3 *.tsx files (119 LOC)
    • 24 *.jsp files (69 LOC)
    • 1 *.xsd files (69 LOC)
    • 1 *.ts files (10 LOC)
    • 1 *.cfg files (3 LOC)
  • " *.xml" is biggest, containing 44.78% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.xml80446 LOC (44%) 433 files
*.ftl28748 LOC (16%) 254 files
*.java27111 LOC (15%) 140 files
*.js17170 LOC (9%) 58 files
*.css15164 LOC (8%) 53 files
*.groovy7562 LOC (4%) 153 files
*.html2455 LOC (1%) 27 files
*.xsl504 LOC (<1%) 5 files
*.py203 LOC (<1%) 1 file
*.tsx119 LOC (<1%) 3 files
*.jsp69 LOC (<1%) 24 files
*.xsd69 LOC (<1%) 1 file
*.ts10 LOC (<1%) 1 file
*.cfg3 LOC (<1%) 1 file
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/.*".
  • 15 files match defined criteria (1,015 LOC, 0.6% vs. main code):
    • 11 *.xml files (672 LOC)
    • 2 *.java files (174 LOC)
    • 2 *.groovy files (169 LOC)
  • " *.xml" is biggest, containing 66.21% of LOC.
  • " *.groovy" is smallest, containing 16.65% of LOC.


*.xml672 LOC (66%) 11 files
*.java174 LOC (17%) 2 files
*.groovy169 LOC (16%) 2 files
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".
    • files with any line of content like "//[ ]*Generated by .*".
  • 3 files match defined criteria (4,214 LOC, 2.3% vs. main code):
    • 2 *.json files (4,165 LOC)
    • 1 *.js files (49 LOC)
  • " *.json" is biggest, containing 98.84% of LOC.
  • " *.js" is smallest, containing 1.16% of LOC.


*.json4165 LOC (98%) 2 files
*.js49 LOC (1%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
  • 9 files match defined criteria (96 LOC, 0.1% vs. main code). All matches are in *.gradle files.


*.gradle96 LOC (100%) 9 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 94 files match defined criteria (14,734 LOC, 8.2% vs. main code):
    • 56 *.txt files (9,665 LOC)
    • 9 *.json files (4,279 LOC)
    • 14 *.properties files (373 LOC)
    • 13 *.md files (253 LOC)
    • 2 *.adoc files (164 LOC)
  • " *.txt" is biggest, containing 65.6% of LOC.
  • " *.adoc" is smallest, containing 1.11% of LOC.


*.txt9665 LOC (65%) 56 files
*.json4279 LOC (29%) 9 files
*.properties373 LOC (2%) 14 files
*.md253 LOC (1%) 13 files
*.adoc164 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:17