apache / xmlgraphics-batik
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
mod
txt
xsl
in
policy
cgi
htaccess
gitattributes
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.

main193719 LOC (64%) 1,583 files
test20350 LOC (6%) 253 files
generated0 LOC (0%) 0 files
build and deployment4569 LOC (1%) 42 files
other81633 LOC (27%) 648 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mod
in
xsl
policy
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1583 files match defined criteria (193,719 LOC, 100.0% vs. main code):
    • 1,454 *.java files (175,996 LOC)
    • 34 *.xml files (10,365 LOC)
    • 46 *.mod files (4,885 LOC)
    • 6 *.in files (842 LOC)
    • 6 *.xsl files (623 LOC)
    • 29 *.html files (463 LOC)
    • 5 *.policy files (443 LOC)
    • 1 *.rdf files (74 LOC)
    • 1 *.cgi files (27 LOC)
    • 1 *.css files (1 LOC)
  • " *.java" is biggest, containing 90.85% of LOC.
  • " *.css" is smallest, containing 0% of LOC.


*.java175996 LOC (90%) 1,454 files
*.xml10365 LOC (5%) 34 files
*.mod4885 LOC (2%) 46 files
*.in842 LOC (<1%) 6 files
*.xsl623 LOC (<1%) 6 files
*.html463 LOC (<1%) 29 files
*.policy443 LOC (<1%) 5 files
*.rdf74 LOC (<1%) 1 file
*.cgi27 LOC (<1%) 1 file
*.css1 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test[-]resources/.*".
  • 253 files match defined criteria (20,350 LOC, 10.5% vs. main code):
    • 205 *.java files (15,982 LOC)
    • 36 *.xml files (3,951 LOC)
    • 7 *.js files (219 LOC)
    • 1 *.xsl files (119 LOC)
    • 4 *.css files (79 LOC)
  • " *.java" is biggest, containing 78.54% of LOC.
  • " *.css" is smallest, containing 0.39% of LOC.


*.java15982 LOC (78%) 205 files
*.xml3951 LOC (19%) 36 files
*.js219 LOC (1%) 7 files
*.xsl119 LOC (<1%) 1 file
*.css79 LOC (<1%) 4 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 ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 42 files match defined criteria (4,569 LOC, 2.4% vs. main code):
    • 36 *.xml files (4,372 LOC)
    • 4 *.bat files (141 LOC)
    • 2 *.sh files (56 LOC)
  • " *.xml" is biggest, containing 95.69% of LOC.
  • " *.sh" is smallest, containing 1.23% of LOC.


*.xml4372 LOC (95%) 36 files
*.bat141 LOC (3%) 4 files
*.sh56 LOC (1%) 2 files
Other Code
properties
txt
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 648 files match defined criteria (81,633 LOC, 42.1% vs. main code):
    • 540 *.svg files (74,644 LOC)
    • 52 *.properties files (3,411 LOC)
    • 23 *.txt files (1,805 LOC)
    • 8 *.js files (982 LOC)
    • 3 *.java files (315 LOC)
    • 16 *.css files (242 LOC)
    • 1 *.html files (81 LOC)
    • 2 *.xsl files (80 LOC)
    • 3 *.xml files (73 LOC)
  • " *.svg" is biggest, containing 91.44% of LOC.
  • " *.xml" is smallest, containing 0.09% of LOC.


*.svg74644 LOC (91%) 540 files
*.properties3411 LOC (4%) 52 files
*.txt1805 LOC (2%) 23 files
*.js982 LOC (1%) 8 files
*.java315 LOC (<1%) 3 files
*.css242 LOC (<1%) 16 files
*.html81 LOC (<1%) 1 file
*.xsl80 LOC (<1%) 2 files
*.xml73 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:20