apache / sling-site
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
tpl
txt
cgi
htaccess
xsd
xsl
properties
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.

main2534 LOC (8%) 34 files
test0 LOC (0%) 0 files
generated82 LOC (<1%) 1 file
build and deployment476 LOC (1%) 10 files
other25757 LOC (89%) 232 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
xsl
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 34 files match defined criteria (2,534 LOC, 100.0% vs. main code):
    • 20 *.tpl files (1,173 LOC)
    • 2 *.xml files (679 LOC)
    • 2 *.pm files (309 LOC)
    • 1 *.css files (129 LOC)
    • 3 *.html files (127 LOC)
    • 4 *.groovy files (94 LOC)
    • 1 *.xsl files (17 LOC)
    • 1 *.cgi files (6 LOC)
  • " *.tpl" is biggest, containing 46.29% of LOC.
  • " *.cgi" is smallest, containing 0.24% of LOC.


*.tpl1173 LOC (46%) 20 files
*.xml679 LOC (26%) 2 files
*.pm309 LOC (12%) 2 files
*.css129 LOC (5%) 1 file
*.html127 LOC (5%) 3 files
*.groovy94 LOC (3%) 4 files
*.xsl17 LOC (<1%) 1 file
*.cgi6 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (82 LOC, 3.2% vs. main code). All matches are in *.xsd files.


*.xsd82 LOC (100%) 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".
    • files with paths like ".*[.]sh".
  • 10 files match defined criteria (476 LOC, 18.8% vs. main code):
    • 9 *.sh files (244 LOC)
    • 1 *.xml files (232 LOC)
  • " *.sh" is biggest, containing 51.26% of LOC.
  • " *.xml" is smallest, containing 48.74% of LOC.


*.sh244 LOC (51%) 9 files
*.xml232 LOC (48%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
  • 232 files match defined criteria (25,757 LOC, 1016.5% vs. main code):
    • 194 *.md files (20,091 LOC)
    • 32 *.svg files (5,509 LOC)
    • 2 *.java files (97 LOC)
    • 1 *.properties files (34 LOC)
    • 1 *.json files (20 LOC)
    • 2 *.txt files (6 LOC)
  • " *.md" is biggest, containing 78% of LOC.
  • " *.txt" is smallest, containing 0.02% of LOC.


*.md20091 LOC (78%) 194 files
*.svg5509 LOC (21%) 32 files
*.java97 LOC (<1%) 2 files
*.properties34 LOC (<1%) 1 file
*.json20 LOC (<1%) 1 file
*.txt6 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:58