apache / sling-org-apache-sling-app-cms
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
webmanifest
tpl
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.

main16874 LOC (27%) 457 files
test5485 LOC (8%) 76 files
generated7786 LOC (12%) 3 files
build and deployment2060 LOC (3%) 18 files
other29963 LOC (48%) 327 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 457 files match defined criteria (16,874 LOC, 100.0% vs. main code):
    • 199 *.java files (9,528 LOC)
    • 209 *.jsp files (4,120 LOC)
    • 20 *.js files (1,622 LOC)
    • 6 *.scss files (589 LOC)
    • 7 *.yaml files (281 LOC)
    • 1 *.css files (262 LOC)
    • 5 *.xml files (206 LOC)
    • 8 *.html files (172 LOC)
    • 1 *.tpl files (73 LOC)
    • 1 *.webmanifest files (21 LOC)
  • " *.java" is biggest, containing 56.47% of LOC.
  • " *.webmanifest" is smallest, containing 0.12% of LOC.


*.java9528 LOC (56%) 199 files
*.jsp4120 LOC (24%) 209 files
*.js1622 LOC (9%) 20 files
*.scss589 LOC (3%) 6 files
*.yaml281 LOC (1%) 7 files
*.css262 LOC (1%) 1 file
*.xml206 LOC (1%) 5 files
*.html172 LOC (1%) 8 files
*.tpl73 LOC (<1%) 1 file
*.webmanifest21 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 76 files match defined criteria (5,485 LOC, 32.5% vs. main code):
    • 65 *.java files (4,647 LOC)
    • 10 *.js files (821 LOC)
    • 1 *.yaml files (17 LOC)
  • " *.java" is biggest, containing 84.72% of LOC.
  • " *.yaml" is smallest, containing 0.31% of LOC.


*.java4647 LOC (84%) 65 files
*.js821 LOC (14%) 10 files
*.yaml17 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 paths like ".*/package[-]lock[.]json".
  • 3 files match defined criteria (7,786 LOC, 46.1% vs. main code). All matches are in *.json files.


*.json7786 LOC (100%) 3 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 18 files match defined criteria (2,060 LOC, 12.2% vs. main code):
    • 10 *.xml files (1,853 LOC)
    • 7 *.sh files (176 LOC)
    • 1 *.yml files (31 LOC)
  • " *.xml" is biggest, containing 89.95% of LOC.
  • " *.yml" is smallest, containing 1.5% of LOC.


*.xml1853 LOC (89%) 10 files
*.sh176 LOC (8%) 7 files
*.yml31 LOC (1%) 1 file
Other Code
txt
properties
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 ".*[.]svg".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 327 files match defined criteria (29,963 LOC, 177.6% vs. main code):
    • 309 *.json files (29,040 LOC)
    • 9 *.txt files (360 LOC)
    • 1 *.svg files (225 LOC)
    • 2 *.properties files (209 LOC)
    • 6 *.md files (129 LOC)
  • " *.json" is biggest, containing 96.92% of LOC.
  • " *.md" is smallest, containing 0.43% of LOC.


*.json29040 LOC (96%) 309 files
*.txt360 LOC (1%) 9 files
*.svg225 LOC (<1%) 1 file
*.properties209 LOC (<1%) 2 files
*.md129 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:17