apache / tapestry4
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
prefs
cvsignore
as
xsl
phtml
project
classpath
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.

main160805 LOC (75%) 2,200 files
test44831 LOC (21%) 640 files
generated148 LOC (<1%) 22 files
build and deployment2048 LOC (<1%) 14 files
other5007 LOC (2%) 181 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
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2200 files match defined criteria (160,805 LOC, 100.0% vs. main code):
    • 1,273 *.java files (66,446 LOC)
    • 372 *.js files (50,624 LOC)
    • 226 *.xml files (32,845 LOC)
    • 259 *.html files (5,582 LOC)
    • 60 *.css files (3,900 LOC)
    • 2 *.xsl files (774 LOC)
    • 4 *.as files (557 LOC)
    • 2 *.sql files (36 LOC)
    • 1 *.rdf files (34 LOC)
    • 1 *.rb files (7 LOC)
  • " *.java" is biggest, containing 41.32% of LOC.
  • " *.rb" is smallest, containing 0% of LOC.


*.java66446 LOC (41%) 1,273 files
*.js50624 LOC (31%) 372 files
*.xml32845 LOC (20%) 226 files
*.html5582 LOC (3%) 259 files
*.css3900 LOC (2%) 60 files
*.xsl774 LOC (<1%) 2 files
*.as557 LOC (<1%) 4 files
*.sql36 LOC (<1%) 2 files
*.rdf34 LOC (<1%) 1 file
*.rb7 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
phtml
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 640 files match defined criteria (44,831 LOC, 27.9% vs. main code):
    • 478 *.java files (42,751 LOC)
    • 132 *.html files (1,527 LOC)
    • 9 *.js files (305 LOC)
    • 19 *.xml files (242 LOC)
    • 1 *.phtml files (5 LOC)
    • 1 *.css files (1 LOC)
  • " *.java" is biggest, containing 95.36% of LOC.
  • " *.css" is smallest, containing 0% of LOC.


*.java42751 LOC (95%) 478 files
*.html1527 LOC (3%) 132 files
*.js305 LOC (<1%) 9 files
*.xml242 LOC (<1%) 19 files
*.phtml5 LOC (<1%) 1 file
*.css1 LOC (<1%) 1 file
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 .*".
  • 22 files match defined criteria (148 LOC, 0.1% vs. main code). All matches are in *.html files.


*.html148 LOC (100%) 22 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 ".*[.]cvsignore".
    • files with paths like ".*/build[.]xml".
  • 14 files match defined criteria (2,048 LOC, 1.3% vs. main code). All matches are in *.xml files.


*.xml2048 LOC (100%) 14 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]cvsignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
  • 181 files match defined criteria (5,007 LOC, 3.1% vs. main code):
    • 130 *.properties files (2,711 LOC)
    • 17 *.java files (1,155 LOC)
    • 30 *.txt files (1,076 LOC)
    • 2 *.svg files (41 LOC)
    • 2 *.html files (24 LOC)
  • " *.properties" is biggest, containing 54.14% of LOC.
  • " *.html" is smallest, containing 0.48% of LOC.


*.properties2711 LOC (54%) 130 files
*.java1155 LOC (23%) 17 files
*.txt1076 LOC (21%) 30 files
*.svg41 LOC (<1%) 2 files
*.html24 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 10:36