apache / sling-whiteboard
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
feature
properties
lua
editorconfig
vscodeignore
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.

main23648 LOC (30%) 409 files
test8686 LOC (11%) 132 files
generated13087 LOC (17%) 6 files
build and deployment8068 LOC (10%) 79 files
other23161 LOC (30%) 618 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 409 files match defined criteria (23,648 LOC, 100.0% vs. main code):
    • 341 *.java files (21,508 LOC)
    • 14 *.js files (992 LOC)
    • 26 *.html files (343 LOC)
    • 1 *.yaml files (261 LOC)
    • 10 *.xml files (143 LOC)
    • 3 *.ts files (130 LOC)
    • 1 *.jsp files (125 LOC)
    • 8 *.groovy files (89 LOC)
    • 3 *.lua files (38 LOC)
    • 2 *.css files (19 LOC)
  • " *.java" is biggest, containing 90.95% of LOC.
  • " *.css" is smallest, containing 0.08% of LOC.


*.java21508 LOC (90%) 341 files
*.js992 LOC (4%) 14 files
*.html343 LOC (1%) 26 files
*.yaml261 LOC (1%) 1 file
*.xml143 LOC (<1%) 10 files
*.ts130 LOC (<1%) 3 files
*.jsp125 LOC (<1%) 1 file
*.groovy89 LOC (<1%) 8 files
*.lua38 LOC (<1%) 3 files
*.css19 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/test[.].*".
  • 132 files match defined criteria (8,686 LOC, 36.7% vs. main code):
    • 102 *.java files (6,635 LOC)
    • 2 *.html files (791 LOC)
    • 12 *.feature files (570 LOC)
    • 7 *.js files (421 LOC)
    • 3 *.ts files (163 LOC)
    • 5 *.xml files (71 LOC)
    • 1 *.scala files (35 LOC)
  • " *.java" is biggest, containing 76.39% of LOC.
  • " *.scala" is smallest, containing 0.4% of LOC.


*.java6635 LOC (76%) 102 files
*.html791 LOC (9%) 2 files
*.feature570 LOC (6%) 12 files
*.js421 LOC (4%) 7 files
*.ts163 LOC (1%) 3 files
*.xml71 LOC (<1%) 5 files
*.scala35 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".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 6 files match defined criteria (13,087 LOC, 55.3% vs. main code). All matches are in *.json files.


*.json13087 LOC (100%) 6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 79 files match defined criteria (8,068 LOC, 34.1% vs. main code):
    • 69 *.xml files (7,882 LOC)
    • 10 *.sh files (186 LOC)
  • " *.xml" is biggest, containing 97.69% of LOC.
  • " *.sh" is smallest, containing 2.31% of LOC.


*.xml7882 LOC (97%) 69 files
*.sh186 LOC (2%) 10 files
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]vscodeignore".
  • 618 files match defined criteria (23,161 LOC, 97.9% vs. main code):
    • 487 *.json files (19,262 LOC)
    • 87 *.md files (2,018 LOC)
    • 14 *.txt files (640 LOC)
    • 16 *.java files (470 LOC)
    • 3 *.adoc files (432 LOC)
    • 9 *.properties files (208 LOC)
    • 1 *.css files (77 LOC)
    • 1 *.xml files (54 LOC)
  • " *.json" is biggest, containing 83.17% of LOC.
  • " *.xml" is smallest, containing 0.23% of LOC.


*.json19262 LOC (83%) 487 files
*.md2018 LOC (8%) 87 files
*.txt640 LOC (2%) 14 files
*.java470 LOC (2%) 16 files
*.adoc432 LOC (1%) 3 files
*.properties208 LOC (<1%) 9 files
*.css77 LOC (<1%) 1 file
*.xml54 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:20