apache / xmlgraphics-fop
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
xsl
txt
properties
xsd
afm
eps
ps
cmd
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.

main205263 LOC (60%) 1,740 files
test121517 LOC (35%) 1,228 files
generated510 LOC (<1%) 4 files
build and deployment2530 LOC (<1%) 15 files
other9509 LOC (2%) 127 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
xsl
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1740 files match defined criteria (205,263 LOC, 100.0% vs. main code):
    • 1,599 *.java files (176,164 LOC)
    • 47 *.xml files (21,372 LOC)
    • 2 *.xsd files (4,616 LOC)
    • 15 *.xsl files (2,130 LOC)
    • 75 *.html files (681 LOC)
    • 1 *.js files (272 LOC)
    • 1 *.cmd files (28 LOC)
  • " *.java" is biggest, containing 85.82% of LOC.
  • " *.cmd" is smallest, containing 0.01% of LOC.


*.java176164 LOC (85%) 1,599 files
*.xml21372 LOC (10%) 47 files
*.xsd4616 LOC (2%) 2 files
*.xsl2130 LOC (1%) 15 files
*.html681 LOC (<1%) 75 files
*.js272 LOC (<1%) 1 file
*.cmd28 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
afm
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 1228 files match defined criteria (121,517 LOC, 59.2% vs. main code):
    • 779 *.xml files (79,502 LOC)
    • 427 *.java files (40,287 LOC)
    • 6 *.afm files (900 LOC)
    • 13 *.xsl files (503 LOC)
    • 1 *.py files (316 LOC)
    • 1 *.html files (7 LOC)
    • 1 *.sh files (2 LOC)
  • " *.xml" is biggest, containing 65.42% of LOC.
  • " *.sh" is smallest, containing 0% of LOC.


*.xml79502 LOC (65%) 779 files
*.java40287 LOC (33%) 427 files
*.afm900 LOC (<1%) 6 files
*.xsl503 LOC (<1%) 13 files
*.py316 LOC (<1%) 1 file
*.html7 LOC (<1%) 1 file
*.sh2 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
eps
ps
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](ps|eps|pfa)".
  • 4 files match defined criteria (510 LOC, 0.2% vs. main code):
    • 2 *.eps files (442 LOC)
    • 2 *.ps files (68 LOC)
  • " *.eps" is biggest, containing 86.67% of LOC.
  • " *.ps" is smallest, containing 13.33% of LOC.


*.eps442 LOC (86%) 2 files
*.ps68 LOC (13%) 2 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 ".*[.]sh".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 15 files match defined criteria (2,530 LOC, 1.2% vs. main code):
    • 14 *.xml files (2,467 LOC)
    • 1 *.bat files (63 LOC)
  • " *.xml" is biggest, containing 97.51% of LOC.
  • " *.bat" is smallest, containing 2.49% of LOC.


*.xml2467 LOC (97%) 14 files
*.bat63 LOC (2%) 1 file
Other Code
txt
xsd
properties
xsl
cmd
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/[.]gitignore".
  • 127 files match defined criteria (9,509 LOC, 4.6% vs. main code):
    • 41 *.java files (3,013 LOC)
    • 11 *.xml files (2,681 LOC)
    • 30 *.txt files (2,013 LOC)
    • 22 *.svg files (560 LOC)
    • 6 *.xsd files (439 LOC)
    • 11 *.properties files (411 LOC)
    • 5 *.xsl files (340 LOC)
    • 1 *.cmd files (52 LOC)
  • " *.java" is biggest, containing 31.69% of LOC.
  • " *.cmd" is smallest, containing 0.55% of LOC.


*.java3013 LOC (31%) 41 files
*.xml2681 LOC (28%) 11 files
*.txt2013 LOC (21%) 30 files
*.svg560 LOC (5%) 22 files
*.xsd439 LOC (4%) 6 files
*.properties411 LOC (4%) 11 files
*.xsl340 LOC (3%) 5 files
*.cmd52 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 10:50