apache / openjpa
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
txt
xsd
xsl
policy
mysql
db2
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.

main286097 LOC (54%) 1,795 files
test218028 LOC (41%) 3,207 files
generated247 LOC (<1%) 6 files
build and deployment6954 LOC (1%) 58 files
other8942 LOC (1%) 88 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1795 files match defined criteria (286,097 LOC, 100.0% vs. main code):
    • 1,626 *.java files (234,132 LOC)
    • 83 *.xml files (47,727 LOC)
    • 12 *.sql files (1,594 LOC)
    • 54 *.html files (939 LOC)
    • 9 *.jsp files (691 LOC)
    • 4 *.css files (554 LOC)
    • 3 *.xsl files (270 LOC)
    • 2 *.py files (160 LOC)
    • 1 *.js files (29 LOC)
    • 1 *.groovy files (1 LOC)
  • " *.java" is biggest, containing 81.84% of LOC.
  • " *.groovy" is smallest, containing 0% of LOC.


*.java234132 LOC (81%) 1,626 files
*.xml47727 LOC (16%) 83 files
*.sql1594 LOC (<1%) 12 files
*.html939 LOC (<1%) 54 files
*.jsp691 LOC (<1%) 9 files
*.css554 LOC (<1%) 4 files
*.xsl270 LOC (<1%) 3 files
*.py160 LOC (<1%) 2 files
*.js29 LOC (<1%) 1 file
*.groovy1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
policy
db2
mysql
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]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 3207 files match defined criteria (218,028 LOC, 76.2% vs. main code):
    • 3,059 *.java files (211,398 LOC)
    • 131 *.xml files (5,384 LOC)
    • 1 *.js files (654 LOC)
    • 1 *.html files (187 LOC)
    • 1 *.css files (163 LOC)
    • 2 *.policy files (100 LOC)
    • 9 *.sql files (78 LOC)
    • 1 *.db2 files (37 LOC)
    • 1 *.bat files (22 LOC)
    • 1 *.mysql files (5 LOC)
  • " *.java" is biggest, containing 96.96% of LOC.
  • " *.mysql" is smallest, containing 0% of LOC.


*.java211398 LOC (96%) 3,059 files
*.xml5384 LOC (2%) 131 files
*.js654 LOC (<1%) 1 file
*.html187 LOC (<1%) 1 file
*.css163 LOC (<1%) 1 file
*.policy100 LOC (<1%) 2 files
*.sql78 LOC (<1%) 9 files
*.db237 LOC (<1%) 1 file
*.bat22 LOC (<1%) 1 file
*.mysql5 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 "// This file was generated .*".
  • 6 files match defined criteria (247 LOC, 0.1% vs. main code). All matches are in *.java files.


*.java247 LOC (100%) 6 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 ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
  • 58 files match defined criteria (6,954 LOC, 2.4% vs. main code):
    • 53 *.xml files (6,799 LOC)
    • 5 *.bat files (155 LOC)
  • " *.xml" is biggest, containing 97.77% of LOC.
  • " *.bat" is smallest, containing 2.23% of LOC.


*.xml6799 LOC (97%) 53 files
*.bat155 LOC (2%) 5 files
Other Code
properties
txt
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[Ee]xamples/.*".
  • 88 files match defined criteria (8,942 LOC, 3.1% vs. main code):
    • 61 *.properties files (5,199 LOC)
    • 10 *.txt files (1,455 LOC)
    • 3 *.xsd files (1,349 LOC)
    • 7 *.java files (475 LOC)
    • 3 *.adoc files (215 LOC)
    • 2 *.html files (160 LOC)
    • 2 *.xml files (89 LOC)
  • " *.properties" is biggest, containing 58.14% of LOC.
  • " *.xml" is smallest, containing 1% of LOC.


*.properties5199 LOC (58%) 61 files
*.txt1455 LOC (16%) 10 files
*.xsd1349 LOC (15%) 3 files
*.java475 LOC (5%) 7 files
*.adoc215 LOC (2%) 3 files
*.html160 LOC (1%) 2 files
*.xml89 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:17