apache / shiro-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
txt
htaccess
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.

main512641 LOC (80%) 2,118 files
test95457 LOC (14%) 395 files
generated4337 LOC (<1%) 49 files
build and deployment156 LOC (<1%) 1 file
other28196 LOC (4%) 1,612 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 ".*".
  • 2118 files match defined criteria (512,641 LOC, 100.0% vs. main code):
    • 1,811 *.html files (452,681 LOC)
    • 277 *.css files (48,682 LOC)
    • 4 *.js files (9,680 LOC)
    • 18 *.ftl files (1,014 LOC)
    • 3 *.yaml files (443 LOC)
    • 4 *.asciidoc files (81 LOC)
    • 1 *.java files (60 LOC)
  • " *.html" is biggest, containing 88.3% of LOC.
  • " *.java" is smallest, containing 0.01% of LOC.


*.html452681 LOC (88%) 1,811 files
*.css48682 LOC (9%) 277 files
*.js9680 LOC (1%) 4 files
*.ftl1014 LOC (<1%) 18 files
*.yaml443 LOC (<1%) 3 files
*.asciidoc81 LOC (<1%) 4 files
*.java60 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/testing[.].*".
  • 395 files match defined criteria (95,457 LOC, 18.6% vs. main code):
    • 345 *.html files (89,403 LOC)
    • 50 *.css files (6,054 LOC)
  • " *.html" is biggest, containing 93.66% of LOC.
  • " *.css" is smallest, containing 6.34% of LOC.


*.html89403 LOC (93%) 345 files
*.css6054 LOC (6%) 50 files
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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 49 files match defined criteria (4,337 LOC, 0.8% vs. main code):
    • 48 *.html files (3,936 LOC)
    • 1 *.rdf files (401 LOC)
  • " *.html" is biggest, containing 90.75% of LOC.
  • " *.rdf" is smallest, containing 9.25% of LOC.


*.html3936 LOC (90%) 48 files
*.rdf401 LOC (9%) 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (156 LOC, 0.0% vs. main code). All matches are in *.xml files.


*.xml156 LOC (100%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
  • 1612 files match defined criteria (28,196 LOC, 5.5% vs. main code):
    • 147 *.html files (12,022 LOC)
    • 133 *.adoc files (9,478 LOC)
    • 1,324 *.svg files (4,530 LOC)
    • 3 *.json files (1,892 LOC)
    • 2 *.md files (237 LOC)
    • 1 *.properties files (25 LOC)
    • 2 *.txt files (12 LOC)
  • " *.html" is biggest, containing 42.64% of LOC.
  • " *.txt" is smallest, containing 0.04% of LOC.


*.html12022 LOC (42%) 147 files
*.adoc9478 LOC (33%) 133 files
*.svg4530 LOC (16%) 1,324 files
*.json1892 LOC (6%) 3 files
*.md237 LOC (<1%) 2 files
*.properties25 LOC (<1%) 1 file
*.txt12 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:26