apache / struts-archive
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
resx
csproj
ascx
xsl
ashx
as
aspx
asax
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.

main145705 LOC (36%) 1,735 files
test9404 LOC (2%) 169 files
generated225452 LOC (56%) 705 files
build and deployment8608 LOC (2%) 29 files
other7364 LOC (1%) 195 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
as
ashx
aspx
ascx
asax
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1735 files match defined criteria (145,705 LOC, 100.0% vs. main code):
    • 379 *.js files (49,123 LOC)
    • 380 *.xml files (42,672 LOC)
    • 402 *.java files (24,183 LOC)
    • 246 *.jsp files (10,404 LOC)
    • 110 *.cs files (6,299 LOC)
    • 83 *.html files (5,477 LOC)
    • 76 *.css files (4,254 LOC)
    • 24 *.ftl files (1,456 LOC)
    • 9 *.xsl files (569 LOC)
    • 4 *.as files (557 LOC)
    • 4 *.ashx files (458 LOC)
    • 3 *.aspx files (97 LOC)
    • 10 *.ascx files (95 LOC)
    • 2 *.sql files (50 LOC)
    • 1 *.htm files (9 LOC)
    • 2 *.asax files (2 LOC)
  • " *.js" is biggest, containing 33.71% of LOC.
  • " *.asax" is smallest, containing 0% of LOC.


*.js49123 LOC (33%) 379 files
*.xml42672 LOC (29%) 380 files
*.java24183 LOC (16%) 402 files
*.jsp10404 LOC (7%) 246 files
*.cs6299 LOC (4%) 110 files
*.html5477 LOC (3%) 83 files
*.css4254 LOC (2%) 76 files
*.ftl1456 LOC (<1%) 24 files
*.xsl569 LOC (<1%) 9 files
*.as557 LOC (<1%) 4 files
*.ashx458 LOC (<1%) 4 files
*.aspx97 LOC (<1%) 3 files
*.ascx95 LOC (<1%) 10 files
*.sql50 LOC (<1%) 2 files
*.htm9 LOC (<1%) 1 file
*.asax2 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests[-].*".
  • 169 files match defined criteria (9,404 LOC, 6.5% vs. main code):
    • 83 *.java files (4,925 LOC)
    • 26 *.xml files (2,051 LOC)
    • 34 *.cs files (1,384 LOC)
    • 4 *.csproj files (634 LOC)
    • 22 *.jsp files (410 LOC)
  • " *.java" is biggest, containing 52.37% of LOC.
  • " *.jsp" is smallest, containing 4.36% of LOC.


*.java4925 LOC (52%) 83 files
*.xml2051 LOC (21%) 26 files
*.cs1384 LOC (14%) 34 files
*.csproj634 LOC (6%) 4 files
*.jsp410 LOC (4%) 22 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 705 files match defined criteria (225,452 LOC, 154.7% vs. main code). All matches are in *.html files.


*.html225452 LOC (100%) 705 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]csproj".
  • 29 files match defined criteria (8,608 LOC, 5.9% vs. main code):
    • 8 *.csproj files (7,344 LOC)
    • 16 *.xml files (1,249 LOC)
    • 5 *.bat files (15 LOC)
  • " *.csproj" is biggest, containing 85.32% of LOC.
  • " *.bat" is smallest, containing 0.17% of LOC.


*.csproj7344 LOC (85%) 8 files
*.xml1249 LOC (14%) 16 files
*.bat15 LOC (<1%) 5 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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/COPYRIGHT[.][a-z0-9]+".
    • files with paths like ".*/[Dd]ocumentation/.*".
  • 195 files match defined criteria (7,364 LOC, 5.1% vs. main code):
    • 65 *.txt files (3,251 LOC)
    • 78 *.properties files (3,045 LOC)
    • 46 *.jsp files (911 LOC)
    • 5 *.xml files (146 LOC)
    • 1 *.svg files (11 LOC)
  • " *.txt" is biggest, containing 44.15% of LOC.
  • " *.svg" is smallest, containing 0.15% of LOC.


*.txt3251 LOC (44%) 65 files
*.properties3045 LOC (41%) 78 files
*.jsp911 LOC (12%) 46 files
*.xml146 LOC (1%) 5 files
*.svg11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:40