apache / cocoon
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
xsl
properties
xslt
meta
xsd
mod
cgi
htaccess
xmi
cvsignore
project
cmd
dcl
wsdl
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.

main418363 LOC (81%) 4,832 files
test11748 LOC (2%) 307 files
generated0 LOC (0%) 0 files
build and deployment15251 LOC (2%) 281 files
other66214 LOC (12%) 817 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
xslt
mod
meta
cgi
dcl
wsdl
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 4832 files match defined criteria (418,363 LOC, 100.0% vs. main code):
    • 2,595 *.java files (282,535 LOC)
    • 1,183 *.xml files (47,895 LOC)
    • 497 *.js files (37,455 LOC)
    • 287 *.xsl files (28,488 LOC)
    • 88 *.html files (8,397 LOC)
    • 35 *.php files (4,774 LOC)
    • 71 *.css files (4,427 LOC)
    • 24 *.xslt files (1,956 LOC)
    • 3 *.mod files (508 LOC)
    • 21 *.meta files (408 LOC)
    • 10 *.xhtml files (398 LOC)
    • 2 *.cgi files (366 LOC)
    • 4 *.pl files (294 LOC)
    • 1 *.dcl files (177 LOC)
    • 2 *.sql files (103 LOC)
    • 2 *.jsp files (56 LOC)
    • 1 *.wsdl files (40 LOC)
    • 4 *.htm files (36 LOC)
    • 1 *.cfg files (27 LOC)
    • 1 *.groovy files (23 LOC)
  • " *.java" is biggest, containing 67.53% of LOC.
  • " *.groovy" is smallest, containing 0.01% of LOC.


*.java282535 LOC (67%) 2,595 files
*.xml47895 LOC (11%) 1,183 files
*.js37455 LOC (8%) 497 files
*.xsl28488 LOC (6%) 287 files
*.html8397 LOC (2%) 88 files
*.php4774 LOC (1%) 35 files
*.css4427 LOC (1%) 71 files
*.xslt1956 LOC (<1%) 24 files
*.mod508 LOC (<1%) 3 files
*.meta408 LOC (<1%) 21 files
*.xhtml398 LOC (<1%) 10 files
*.cgi366 LOC (<1%) 2 files
*.pl294 LOC (<1%) 4 files
*.dcl177 LOC (<1%) 1 file
*.sql103 LOC (<1%) 2 files
*.jsp56 LOC (<1%) 2 files
*.wsdl40 LOC (<1%) 1 file
*.htm36 LOC (<1%) 4 files
*.cfg27 LOC (<1%) 1 file
*.groovy23 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xsl
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[.].*".
  • 307 files match defined criteria (11,748 LOC, 2.8% vs. main code):
    • 160 *.java files (9,437 LOC)
    • 142 *.xml files (1,814 LOC)
    • 2 *.xsl files (392 LOC)
    • 1 *.html files (74 LOC)
    • 1 *.js files (27 LOC)
    • 1 *.sql files (4 LOC)
  • " *.java" is biggest, containing 80.33% of LOC.
  • " *.sql" is smallest, containing 0.03% of LOC.


*.java9437 LOC (80%) 160 files
*.xml1814 LOC (15%) 142 files
*.xsl392 LOC (3%) 2 files
*.html74 LOC (<1%) 1 file
*.js27 LOC (<1%) 1 file
*.sql4 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 ".*/build[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]cvsignore".
    • files with paths like ".*/assembly[.]xml".
  • 281 files match defined criteria (15,251 LOC, 3.6% vs. main code):
    • 275 *.xml files (15,104 LOC)
    • 5 *.sh files (111 LOC)
    • 1 *.bat files (36 LOC)
  • " *.xml" is biggest, containing 99.04% of LOC.
  • " *.bat" is smallest, containing 0.24% of LOC.


*.xml15104 LOC (99%) 275 files
*.sh111 LOC (<1%) 5 files
*.bat36 LOC (<1%) 1 file
Other Code
txt
xmi
properties
xsd
xsl
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/changes[.]xml".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[.]cvsignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]xmi".
    • files with paths like ".*/[.]htaccess".
  • 817 files match defined criteria (66,214 LOC, 15.8% vs. main code):
    • 556 *.txt files (49,816 LOC)
    • 2 *.xmi files (5,822 LOC)
    • 55 *.java files (3,425 LOC)
    • 123 *.xml files (2,571 LOC)
    • 56 *.properties files (2,133 LOC)
    • 13 *.xsd files (1,166 LOC)
    • 7 *.svg files (1,159 LOC)
    • 3 *.xsl files (87 LOC)
    • 1 *.js files (22 LOC)
    • 1 *.xslt files (13 LOC)
  • " *.txt" is biggest, containing 75.23% of LOC.
  • " *.xslt" is smallest, containing 0.02% of LOC.


*.txt49816 LOC (75%) 556 files
*.xmi5822 LOC (8%) 2 files
*.java3425 LOC (5%) 55 files
*.xml2571 LOC (3%) 123 files
*.properties2133 LOC (3%) 56 files
*.xsd1166 LOC (1%) 13 files
*.svg1159 LOC (1%) 7 files
*.xsl87 LOC (<1%) 3 files
*.js22 LOC (<1%) 1 file
*.xslt13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:19