apache / santuario-xml-security-java
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
xsd
cvsignore
properties
p8
xsl
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.

main41834 LOC (30%) 393 files
test78712 LOC (56%) 738 files
generated3252 LOC (2%) 1 file
build and deployment652 LOC (<1%) 2 files
other14795 LOC (10%) 230 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 393 files match defined criteria (41,834 LOC, 100.0% vs. main code):
    • 387 *.java files (39,968 LOC)
    • 3 *.xml files (1,170 LOC)
    • 3 *.xsd files (696 LOC)
  • " *.java" is biggest, containing 95.54% of LOC.
  • " *.xsd" is smallest, containing 1.66% of LOC.


*.java39968 LOC (95%) 387 files
*.xml1170 LOC (2%) 3 files
*.xsd696 LOC (1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xsl
p8
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 738 files match defined criteria (78,712 LOC, 188.2% vs. main code):
    • 230 *.java files (36,882 LOC)
    • 448 *.xml files (24,833 LOC)
    • 48 *.html files (16,734 LOC)
    • 5 *.sh files (185 LOC)
    • 3 *.xsl files (61 LOC)
    • 4 *.p8 files (17 LOC)
  • " *.java" is biggest, containing 46.86% of LOC.
  • " *.p8" is smallest, containing 0.02% of LOC.


*.java36882 LOC (46%) 230 files
*.xml24833 LOC (31%) 448 files
*.html16734 LOC (21%) 48 files
*.sh185 LOC (<1%) 5 files
*.xsl61 LOC (<1%) 3 files
*.p817 LOC (<1%) 4 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (3,252 LOC, 7.8% vs. main code). All matches are in *.html files.


*.html3252 LOC (100%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]cvsignore".
  • 2 files match defined criteria (652 LOC, 1.6% vs. main code):
    • 1 *.xml files (609 LOC)
    • 1 *.sh files (43 LOC)
  • " *.xml" is biggest, containing 93.4% of LOC.
  • " *.sh" is smallest, containing 6.6% of LOC.


*.xml609 LOC (93%) 1 file
*.sh43 LOC (6%) 1 file
Other Code
txt
xsd
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]cvsignore".
    • files with paths like ".*/resources/.*[.]xsd".
  • 230 files match defined criteria (14,795 LOC, 35.4% vs. main code):
    • 206 *.txt files (13,385 LOC)
    • 9 *.xsd files (806 LOC)
    • 5 *.properties files (412 LOC)
    • 7 *.xml files (160 LOC)
    • 2 *.md files (31 LOC)
    • 1 *.bat files (1 LOC)
  • " *.txt" is biggest, containing 90.47% of LOC.
  • " *.bat" is smallest, containing 0.01% of LOC.


*.txt13385 LOC (90%) 206 files
*.xsd806 LOC (5%) 9 files
*.properties412 LOC (2%) 5 files
*.xml160 LOC (1%) 7 files
*.md31 LOC (<1%) 2 files
*.bat1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 01:46