apache / tomee
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
txt
handlebars
policy
gitattributes
feature
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.

main348042 LOC (49%) 3,451 files
test187211 LOC (26%) 2,429 files
generated0 LOC (0%) 0 files
build and deployment28544 LOC (4%) 168 files
other137483 LOC (19%) 1,870 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
policy
handlebars
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3451 files match defined criteria (348,042 LOC, 100.0% vs. main code):
    • 3,276 *.java files (307,459 LOC)
    • 102 *.xml files (35,404 LOC)
    • 14 *.js files (1,854 LOC)
    • 26 *.groovy files (1,187 LOC)
    • 5 *.policy files (1,101 LOC)
    • 8 *.xhtml files (299 LOC)
    • 2 *.css files (233 LOC)
    • 6 *.jsp files (178 LOC)
    • 11 *.handlebars files (169 LOC)
    • 1 *.less files (158 LOC)
  • " *.java" is biggest, containing 88.34% of LOC.
  • " *.less" is smallest, containing 0.05% of LOC.


*.java307459 LOC (88%) 3,276 files
*.xml35404 LOC (10%) 102 files
*.js1854 LOC (<1%) 14 files
*.groovy1187 LOC (<1%) 26 files
*.policy1101 LOC (<1%) 5 files
*.xhtml299 LOC (<1%) 8 files
*.css233 LOC (<1%) 2 files
*.jsp178 LOC (<1%) 6 files
*.handlebars169 LOC (<1%) 11 files
*.less158 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/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
  • 2429 files match defined criteria (187,211 LOC, 53.8% vs. main code):
    • 2,130 *.java files (154,084 LOC)
    • 284 *.xml files (32,811 LOC)
    • 4 *.groovy files (210 LOC)
    • 3 *.jsp files (61 LOC)
    • 4 *.xhtml files (27 LOC)
    • 2 *.sql files (14 LOC)
    • 1 *.js files (3 LOC)
    • 1 *.html files (1 LOC)
  • " *.java" is biggest, containing 82.3% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java154084 LOC (82%) 2,130 files
*.xml32811 LOC (17%) 284 files
*.groovy210 LOC (<1%) 4 files
*.jsp61 LOC (<1%) 3 files
*.xhtml27 LOC (<1%) 4 files
*.sql14 LOC (<1%) 2 files
*.js3 LOC (<1%) 1 file
*.html1 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 168 files match defined criteria (28,544 LOC, 8.2% vs. main code):
    • 150 *.xml files (27,577 LOC)
    • 9 *.bat files (691 LOC)
    • 9 *.sh files (276 LOC)
  • " *.xml" is biggest, containing 96.61% of LOC.
  • " *.sh" is smallest, containing 0.97% of LOC.


*.xml27577 LOC (96%) 150 files
*.bat691 LOC (2%) 9 files
*.sh276 LOC (<1%) 9 files
Other Code
xsd
properties
txt
handlebars
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/resources/.*[.]xsd".
  • 1870 files match defined criteria (137,483 LOC, 39.5% vs. main code):
    • 304 *.adoc files (55,508 LOC)
    • 828 *.java files (27,177 LOC)
    • 486 *.xml files (21,083 LOC)
    • 12 *.css files (12,922 LOC)
    • 30 *.xsd files (10,628 LOC)
    • 106 *.properties files (6,598 LOC)
    • 15 *.txt files (677 LOC)
    • 15 *.js files (643 LOC)
    • 23 *.jsp files (599 LOC)
    • 2 *.md files (428 LOC)
    • 10 *.json files (326 LOC)
    • 6 *.html files (265 LOC)
    • 1 *.yaml files (135 LOC)
    • 6 *.handlebars files (119 LOC)
    • 4 *.bat files (104 LOC)
    • 4 *.groovy files (85 LOC)
    • 2 *.scala files (50 LOC)
    • 2 *.xhtml files (37 LOC)
    • 1 *.less files (36 LOC)
    • 8 *.sql files (23 LOC)
    • 2 *.sh files (13 LOC)
    • 1 *.sbt files (12 LOC)
    • 1 *.pl files (11 LOC)
    • 1 *.feature files (4 LOC)
  • " *.adoc" is biggest, containing 40.37% of LOC.
  • " *.feature" is smallest, containing 0% of LOC.


*.adoc55508 LOC (40%) 304 files
*.java27177 LOC (19%) 828 files
*.xml21083 LOC (15%) 486 files
*.css12922 LOC (9%) 12 files
*.xsd10628 LOC (7%) 30 files
*.properties6598 LOC (4%) 106 files
*.txt677 LOC (<1%) 15 files
*.js643 LOC (<1%) 15 files
*.jsp599 LOC (<1%) 23 files
*.md428 LOC (<1%) 2 files
*.json326 LOC (<1%) 10 files
*.html265 LOC (<1%) 6 files
*.yaml135 LOC (<1%) 1 file
*.handlebars119 LOC (<1%) 6 files
*.bat104 LOC (<1%) 4 files
*.groovy85 LOC (<1%) 4 files
*.scala50 LOC (<1%) 2 files
*.xhtml37 LOC (<1%) 2 files
*.less36 LOC (<1%) 1 file
*.sql23 LOC (<1%) 8 files
*.sh13 LOC (<1%) 2 files
*.sbt12 LOC (<1%) 1 file
*.pl11 LOC (<1%) 1 file
*.feature4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:32