apache / struts-examples
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
ini
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.

main17544 LOC (76%) 559 files
test148 LOC (<1%) 5 files
generated0 LOC (0%) 0 files
build and deployment2193 LOC (9%) 47 files
other3067 LOC (13%) 141 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 559 files match defined criteria (17,544 LOC, 100.0% vs. main code):
    • 141 *.java files (4,452 LOC)
    • 75 *.ftl files (3,641 LOC)
    • 165 *.xml files (3,409 LOC)
    • 139 *.jsp files (2,694 LOC)
    • 21 *.html files (2,393 LOC)
    • 8 *.css files (631 LOC)
    • 10 *.js files (324 LOC)
  • " *.java" is biggest, containing 25.38% of LOC.
  • " *.js" is smallest, containing 1.85% of LOC.


*.java4452 LOC (25%) 141 files
*.ftl3641 LOC (20%) 75 files
*.xml3409 LOC (19%) 165 files
*.jsp2694 LOC (15%) 139 files
*.html2393 LOC (13%) 21 files
*.css631 LOC (3%) 8 files
*.js324 LOC (1%) 10 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/.*".
  • 5 files match defined criteria (148 LOC, 0.8% vs. main code):
    • 4 *.java files (134 LOC)
    • 1 *.xml files (14 LOC)
  • " *.java" is biggest, containing 90.54% of LOC.
  • " *.xml" is smallest, containing 9.46% of LOC.


*.java134 LOC (90%) 4 files
*.xml14 LOC (9%) 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".
  • 47 files match defined criteria (2,193 LOC, 12.5% vs. main code). All matches are in *.xml files.


*.xml2193 LOC (100%) 47 files
Other Code
txt
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]json".
  • 141 files match defined criteria (3,067 LOC, 17.5% vs. main code):
    • 44 *.java files (1,736 LOC)
    • 31 *.txt files (625 LOC)
    • 50 *.properties files (513 LOC)
    • 6 *.xml files (104 LOC)
    • 8 *.md files (65 LOC)
    • 1 *.ini files (23 LOC)
    • 1 *.json files (1 LOC)
  • " *.java" is biggest, containing 56.6% of LOC.
  • " *.json" is smallest, containing 0.03% of LOC.


*.java1736 LOC (56%) 44 files
*.txt625 LOC (20%) 31 files
*.properties513 LOC (16%) 50 files
*.xml104 LOC (3%) 6 files
*.md65 LOC (2%) 8 files
*.ini23 LOC (<1%) 1 file
*.json1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:40