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.

main263791 LOC (11%) 1,282 files
test0 LOC (0%) 0 files
generated2042473 LOC (87%) 11,409 files
build and deployment432 LOC (<1%) 10 files
other24194 LOC (1%) 229 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 ".*".
  • 1282 files match defined criteria (263,791 LOC, 100.0% vs. main code):
    • 984 *.html files (236,866 LOC)
    • 167 *.css files (16,058 LOC)
    • 101 *.js files (8,640 LOC)
    • 20 *.tpl files (1,122 LOC)
    • 2 *.xml files (679 LOC)
    • 2 *.pm files (309 LOC)
    • 4 *.groovy files (94 LOC)
    • 1 *.xsl files (17 LOC)
    • 1 *.cgi files (6 LOC)
  • " *.html" is biggest, containing 89.79% of LOC.
  • " *.cgi" is smallest, containing 0% of LOC.


*.html236866 LOC (89%) 984 files
*.css16058 LOC (6%) 167 files
*.js8640 LOC (3%) 101 files
*.tpl1122 LOC (<1%) 20 files
*.xml679 LOC (<1%) 2 files
*.pm309 LOC (<1%) 2 files
*.groovy94 LOC (<1%) 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 paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 11409 files match defined criteria (2,042,473 LOC, 774.3% vs. main code):
    • 11,408 *.html files (2,042,391 LOC)
    • 1 *.xsd files (82 LOC)
  • " *.html" is biggest, containing 100% of LOC.
  • " *.xsd" is smallest, containing 0% of LOC.


*.html2042391 LOC (99%) 11,408 files
*.xsd82 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 10 files match defined criteria (432 LOC, 0.2% vs. main code):
    • 9 *.sh files (244 LOC)
    • 1 *.xml files (188 LOC)
  • " *.sh" is biggest, containing 56.48% of LOC.
  • " *.xml" is smallest, containing 43.52% of LOC.


*.sh244 LOC (56%) 9 files
*.xml188 LOC (43%) 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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]htaccess".
  • 229 files match defined criteria (24,194 LOC, 9.2% vs. main code):
    • 192 *.md files (18,548 LOC)
    • 32 *.svg files (5,509 LOC)
    • 2 *.java files (97 LOC)
    • 1 *.properties files (34 LOC)
    • 2 *.txt files (6 LOC)
  • " *.md" is biggest, containing 76.66% of LOC.
  • " *.txt" is smallest, containing 0.02% of LOC.


*.md18548 LOC (76%) 192 files
*.svg5509 LOC (22%) 32 files
*.java97 LOC (<1%) 2 files
*.properties34 LOC (<1%) 1 file
*.txt6 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:33