apache / struts-sandbox
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
txt
xsd
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.

main88021 LOC (72%) 1,250 files
test21154 LOC (17%) 209 files
generated0 LOC (0%) 0 files
build and deployment1787 LOC (1%) 22 files
other10200 LOC (8%) 167 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
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1250 files match defined criteria (88,021 LOC, 100.0% vs. main code):
    • 891 *.java files (54,484 LOC)
    • 192 *.jsp files (24,584 LOC)
    • 121 *.xml files (6,283 LOC)
    • 7 *.js files (1,195 LOC)
    • 21 *.ftl files (629 LOC)
    • 2 *.xsd files (307 LOC)
    • 6 *.css files (247 LOC)
    • 2 *.xsl files (205 LOC)
    • 8 *.html files (87 LOC)
  • " *.java" is biggest, containing 61.9% of LOC.
  • " *.html" is smallest, containing 0.1% of LOC.


*.java54484 LOC (61%) 891 files
*.jsp24584 LOC (27%) 192 files
*.xml6283 LOC (7%) 121 files
*.js1195 LOC (1%) 7 files
*.ftl629 LOC (<1%) 21 files
*.xsd307 LOC (<1%) 2 files
*.css247 LOC (<1%) 6 files
*.xsl205 LOC (<1%) 2 files
*.html87 LOC (<1%) 8 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 209 files match defined criteria (21,154 LOC, 24.0% vs. main code):
    • 187 *.java files (20,509 LOC)
    • 16 *.xml files (450 LOC)
    • 6 *.js files (195 LOC)
  • " *.java" is biggest, containing 96.95% of LOC.
  • " *.js" is smallest, containing 0.92% of LOC.


*.java20509 LOC (96%) 187 files
*.xml450 LOC (2%) 16 files
*.js195 LOC (<1%) 6 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 ".*/build[.]xml".
  • 22 files match defined criteria (1,787 LOC, 2.0% vs. main code). All matches are in *.xml files.


*.xml1787 LOC (100%) 22 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Ee]xamples/.*".
  • 167 files match defined criteria (10,200 LOC, 11.6% vs. main code):
    • 37 *.txt files (2,804 LOC)
    • 18 *.java files (2,778 LOC)
    • 10 *.js files (2,047 LOC)
    • 58 *.properties files (1,755 LOC)
    • 28 *.jsp files (525 LOC)
    • 15 *.xml files (263 LOC)
    • 1 *.html files (28 LOC)
  • " *.txt" is biggest, containing 27.49% of LOC.
  • " *.html" is smallest, containing 0.27% of LOC.


*.txt2804 LOC (27%) 37 files
*.java2778 LOC (27%) 18 files
*.js2047 LOC (20%) 10 files
*.properties1755 LOC (17%) 58 files
*.jsp525 LOC (5%) 28 files
*.xml263 LOC (2%) 15 files
*.html28 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 10:57