apache / tomcat
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
xsl
launch
project
editorconfig
nsi
classpath
xslt
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.

main275355 LOC (59%) 1,931 files
test104570 LOC (22%) 1,133 files
generated231 LOC (<1%) 7 files
build and deployment4762 LOC (1%) 10 files
other74577 LOC (16%) 996 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
nsi
xsl
xsd
classpath
project
launch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1931 files match defined criteria (275,355 LOC, 100.0% vs. main code):
    • 1,802 *.java files (253,840 LOC)
    • 70 *.xml files (15,928 LOC)
    • 29 *.html files (2,084 LOC)
    • 1 *.nsi files (1,053 LOC)
    • 14 *.jsp files (998 LOC)
    • 3 *.css files (523 LOC)
    • 1 *.pl files (324 LOC)
    • 2 *.xsl files (312 LOC)
    • 3 *.xsd files (148 LOC)
    • 1 *.classpath files (38 LOC)
    • 1 *.yaml files (36 LOC)
    • 1 *.project files (31 LOC)
    • 2 *.launch files (26 LOC)
    • 1 *.h files (14 LOC)
  • " *.java" is biggest, containing 92.19% of LOC.
  • " *.h" is smallest, containing 0.01% of LOC.


*.java253840 LOC (92%) 1,802 files
*.xml15928 LOC (5%) 70 files
*.html2084 LOC (<1%) 29 files
*.nsi1053 LOC (<1%) 1 file
*.jsp998 LOC (<1%) 14 files
*.css523 LOC (<1%) 3 files
*.pl324 LOC (<1%) 1 file
*.xsl312 LOC (<1%) 2 files
*.xsd148 LOC (<1%) 3 files
*.classpath38 LOC (<1%) 1 file
*.yaml36 LOC (<1%) 1 file
*.project31 LOC (<1%) 1 file
*.launch26 LOC (<1%) 2 files
*.h14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xslt
xsd
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 ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 1133 files match defined criteria (104,570 LOC, 38.0% vs. main code):
    • 842 *.java files (100,899 LOC)
    • 251 *.jsp files (2,708 LOC)
    • 31 *.xml files (863 LOC)
    • 1 *.xslt files (66 LOC)
    • 7 *.html files (30 LOC)
    • 1 *.xsd files (4 LOC)
  • " *.java" is biggest, containing 96.49% of LOC.
  • " *.xsd" is smallest, containing 0% of LOC.


*.java100899 LOC (96%) 842 files
*.jsp2708 LOC (2%) 251 files
*.xml863 LOC (<1%) 31 files
*.xslt66 LOC (<1%) 1 file
*.html30 LOC (<1%) 7 files
*.xsd4 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 "//[ ]*Generated by .*".
  • 7 files match defined criteria (231 LOC, 0.1% vs. main code). All matches are in *.java files.


*.java231 LOC (100%) 7 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 10 files match defined criteria (4,762 LOC, 1.7% vs. main code):
    • 7 *.xml files (4,690 LOC)
    • 3 *.sh files (72 LOC)
  • " *.xml" is biggest, containing 98.49% of LOC.
  • " *.sh" is smallest, containing 1.51% of LOC.


*.xml4690 LOC (98%) 7 files
*.sh72 LOC (1%) 3 files
Other Code
properties
xsd
txt
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 ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]emos?/.*".
  • 996 files match defined criteria (74,577 LOC, 27.1% vs. main code):
    • 691 *.properties files (33,053 LOC)
    • 58 *.xsd files (28,151 LOC)
    • 76 *.java files (5,597 LOC)
    • 40 *.txt files (1,599 LOC)
    • 42 *.jsp files (1,423 LOC)
    • 53 *.html files (1,415 LOC)
    • 5 *.xhtml files (1,206 LOC)
    • 3 *.svg files (741 LOC)
    • 8 *.xml files (725 LOC)
    • 15 *.json files (372 LOC)
    • 5 *.md files (295 LOC)
  • " *.properties" is biggest, containing 44.32% of LOC.
  • " *.md" is smallest, containing 0.4% of LOC.


*.properties33053 LOC (44%) 691 files
*.xsd28151 LOC (37%) 58 files
*.java5597 LOC (7%) 76 files
*.txt1599 LOC (2%) 40 files
*.jsp1423 LOC (1%) 42 files
*.html1415 LOC (1%) 53 files
*.xhtml1206 LOC (1%) 5 files
*.svg741 LOC (<1%) 3 files
*.xml725 LOC (<1%) 8 files
*.json372 LOC (<1%) 15 files
*.md295 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:26