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.

main18855 LOC (75%) 624 files
test307 LOC (1%) 8 files
generated0 LOC (0%) 0 files
build and deployment2585 LOC (10%) 47 files
other3197 LOC (12%) 143 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 ".*".
  • 624 files match defined criteria (18,855 LOC, 100.0% vs. main code):
    • 152 *.java files (4,691 LOC)
    • 193 *.xml files (4,374 LOC)
    • 78 *.ftl files (3,654 LOC)
    • 166 *.jsp files (2,829 LOC)
    • 16 *.html files (2,345 LOC)
    • 9 *.css files (638 LOC)
    • 10 *.js files (324 LOC)
  • " *.java" is biggest, containing 24.88% of LOC.
  • " *.js" is smallest, containing 1.72% of LOC.


*.java4691 LOC (24%) 152 files
*.xml4374 LOC (23%) 193 files
*.ftl3654 LOC (19%) 78 files
*.jsp2829 LOC (15%) 166 files
*.html2345 LOC (12%) 16 files
*.css638 LOC (3%) 9 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/.*".
  • 8 files match defined criteria (307 LOC, 1.6% vs. main code):
    • 7 *.java files (293 LOC)
    • 1 *.xml files (14 LOC)
  • " *.java" is biggest, containing 95.44% of LOC.
  • " *.xml" is smallest, containing 4.56% of LOC.


*.java293 LOC (95%) 7 files
*.xml14 LOC (4%) 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,585 LOC, 13.7% vs. main code). All matches are in *.xml files.


*.xml2585 LOC (100%) 47 files
Other Code
txt
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 143 files match defined criteria (3,197 LOC, 17.0% vs. main code):
    • 43 *.java files (1,701 LOC)
    • 37 *.txt files (806 LOC)
    • 48 *.properties files (503 LOC)
    • 6 *.xml files (104 LOC)
    • 7 *.md files (59 LOC)
    • 1 *.ini files (23 LOC)
    • 1 *.json files (1 LOC)
  • " *.java" is biggest, containing 53.21% of LOC.
  • " *.json" is smallest, containing 0.03% of LOC.


*.java1701 LOC (53%) 43 files
*.txt806 LOC (25%) 37 files
*.properties503 LOC (15%) 48 files
*.xml104 LOC (3%) 6 files
*.md59 LOC (1%) 7 files
*.ini23 LOC (<1%) 1 file
*.json1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:01