apache / sling-samples
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
mbox
hbs
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.

main4444 LOC (30%) 114 files
test2677 LOC (18%) 24 files
generated0 LOC (0%) 0 files
build and deployment2201 LOC (14%) 20 files
other5473 LOC (36%) 355 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 114 files match defined criteria (4,444 LOC, 100.0% vs. main code):
    • 60 *.java files (2,621 LOC)
    • 24 *.html files (669 LOC)
    • 15 *.jsp files (469 LOC)
    • 2 *.xml files (334 LOC)
    • 8 *.css files (260 LOC)
    • 5 *.js files (91 LOC)
  • " *.java" is biggest, containing 58.98% of LOC.
  • " *.js" is smallest, containing 2.05% of LOC.


*.java2621 LOC (58%) 60 files
*.html669 LOC (15%) 24 files
*.jsp469 LOC (10%) 15 files
*.xml334 LOC (7%) 2 files
*.css260 LOC (5%) 8 files
*.js91 LOC (2%) 5 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mbox
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 24 files match defined criteria (2,677 LOC, 60.2% vs. main code):
    • 22 *.java files (1,632 LOC)
    • 2 *.mbox files (1,045 LOC)
  • " *.java" is biggest, containing 60.96% of LOC.
  • " *.mbox" is smallest, containing 39.04% of LOC.


*.java1632 LOC (60%) 22 files
*.mbox1045 LOC (39%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 20 files match defined criteria (2,201 LOC, 49.5% vs. main code). All matches are in *.xml files.


*.xml2201 LOC (100%) 20 files
Other Code
txt
hbs
properties
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 ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
  • 355 files match defined criteria (5,473 LOC, 123.2% vs. main code):
    • 53 *.java files (2,051 LOC)
    • 252 *.json files (1,408 LOC)
    • 13 *.txt files (1,135 LOC)
    • 23 *.md files (532 LOC)
    • 3 *.hbs files (126 LOC)
    • 3 *.gql files (109 LOC)
    • 7 *.jsp files (83 LOC)
    • 1 *.properties files (29 LOC)
  • " *.java" is biggest, containing 37.47% of LOC.
  • " *.properties" is smallest, containing 0.53% of LOC.


*.java2051 LOC (37%) 53 files
*.json1408 LOC (25%) 252 files
*.txt1135 LOC (20%) 13 files
*.md532 LOC (9%) 23 files
*.hbs126 LOC (2%) 3 files
*.gql109 LOC (1%) 3 files
*.jsp83 LOC (1%) 7 files
*.properties29 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:02