apache / jspwiki
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
properties
policy
ddl
webmanifest
plist
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.

main86418 LOC (61%) 1,000 files
test20356 LOC (14%) 234 files
generated0 LOC (0%) 0 files
build and deployment2986 LOC (2%) 30 files
other31064 LOC (22%) 425 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
policy
ddl
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1000 files match defined criteria (86,418 LOC, 100.0% vs. main code):
    • 571 *.java files (40,812 LOC)
    • 81 *.js files (10,304 LOC)
    • 117 *.jsp files (9,686 LOC)
    • 120 *.less files (8,532 LOC)
    • 16 *.css files (5,646 LOC)
    • 32 *.xml files (5,550 LOC)
    • 56 *.html files (5,329 LOC)
    • 4 *.policy files (334 LOC)
    • 2 *.ddl files (173 LOC)
    • 1 *.webmanifest files (52 LOC)
  • " *.java" is biggest, containing 47.23% of LOC.
  • " *.webmanifest" is smallest, containing 0.06% of LOC.


*.java40812 LOC (47%) 571 files
*.js10304 LOC (11%) 81 files
*.jsp9686 LOC (11%) 117 files
*.less8532 LOC (9%) 120 files
*.css5646 LOC (6%) 16 files
*.xml5550 LOC (6%) 32 files
*.html5329 LOC (6%) 56 files
*.policy334 LOC (<1%) 4 files
*.ddl173 LOC (<1%) 2 files
*.webmanifest52 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
ddl
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]tests/.*".
  • 234 files match defined criteria (20,356 LOC, 23.6% vs. main code):
    • 180 *.java files (17,304 LOC)
    • 25 *.xml files (1,648 LOC)
    • 24 *.html files (938 LOC)
    • 2 *.ddl files (176 LOC)
    • 1 *.sql files (166 LOC)
    • 2 *.policy files (124 LOC)
  • " *.java" is biggest, containing 85.01% of LOC.
  • " *.policy" is smallest, containing 0.61% of LOC.


*.java17304 LOC (85%) 180 files
*.xml1648 LOC (8%) 25 files
*.html938 LOC (4%) 24 files
*.ddl176 LOC (<1%) 2 files
*.sql166 LOC (<1%) 1 file
*.policy124 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/build[.]xml".
  • 30 files match defined criteria (2,986 LOC, 3.5% vs. main code):
    • 28 *.xml files (2,954 LOC)
    • 1 *.bat files (24 LOC)
    • 1 *.sh files (8 LOC)
  • " *.xml" is biggest, containing 98.93% of LOC.
  • " *.sh" is smallest, containing 0.27% of LOC.


*.xml2954 LOC (98%) 28 files
*.bat24 LOC (<1%) 1 file
*.sh8 LOC (<1%) 1 file
Other Code
txt
properties
plist
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]plist".
  • 425 files match defined criteria (31,064 LOC, 35.9% vs. main code):
    • 363 *.txt files (17,020 LOC)
    • 55 *.properties files (11,508 LOC)
    • 5 *.md files (2,455 LOC)
    • 1 *.plist files (63 LOC)
    • 1 *.json files (18 LOC)
  • " *.txt" is biggest, containing 54.79% of LOC.
  • " *.json" is smallest, containing 0.06% of LOC.


*.txt17020 LOC (54%) 363 files
*.properties11508 LOC (37%) 55 files
*.md2455 LOC (7%) 5 files
*.plist63 LOC (<1%) 1 file
*.json18 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:15