apache / shiro
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
ini
properties
txt
cmd
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.

main28194 LOC (46%) 583 files
test20340 LOC (33%) 348 files
generated0 LOC (0%) 0 files
build and deployment3935 LOC (6%) 35 files
other7690 LOC (12%) 203 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 ".*".
  • 583 files match defined criteria (28,194 LOC, 100.0% vs. main code):
    • 570 *.java files (27,730 LOC)
    • 11 *.xml files (317 LOC)
    • 1 *.rdf files (132 LOC)
    • 1 *.groovy files (15 LOC)
  • " *.java" is biggest, containing 98.35% of LOC.
  • " *.groovy" is smallest, containing 0.05% of LOC.


*.java27730 LOC (98%) 570 files
*.xml317 LOC (1%) 11 files
*.rdf132 LOC (<1%) 1 file
*.groovy15 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]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 348 files match defined criteria (20,340 LOC, 72.1% vs. main code):
    • 194 *.java files (11,816 LOC)
    • 93 *.groovy files (6,133 LOC)
    • 37 *.xml files (1,778 LOC)
    • 10 *.jsp files (272 LOC)
    • 11 *.xhtml files (259 LOC)
    • 2 *.css files (50 LOC)
    • 1 *.sh files (32 LOC)
  • " *.java" is biggest, containing 58.09% of LOC.
  • " *.sh" is smallest, containing 0.16% of LOC.


*.java11816 LOC (58%) 194 files
*.groovy6133 LOC (30%) 93 files
*.xml1778 LOC (8%) 37 files
*.jsp272 LOC (1%) 10 files
*.xhtml259 LOC (1%) 11 files
*.css50 LOC (<1%) 2 files
*.sh32 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 35 files match defined criteria (3,935 LOC, 14.0% vs. main code). All matches are in *.xml files.


*.xml3935 LOC (100%) 35 files
Other Code
ini
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]json".
  • 203 files match defined criteria (7,690 LOC, 27.3% vs. main code):
    • 77 *.java files (3,041 LOC)
    • 37 *.xml files (2,079 LOC)
    • 32 *.jsp files (827 LOC)
    • 20 *.ini files (770 LOC)
    • 10 *.html files (308 LOC)
    • 6 *.css files (202 LOC)
    • 8 *.properties files (188 LOC)
    • 10 *.md files (182 LOC)
    • 1 *.json files (51 LOC)
    • 1 *.adoc files (28 LOC)
    • 1 *.txt files (14 LOC)
  • " *.java" is biggest, containing 39.54% of LOC.
  • " *.txt" is smallest, containing 0.18% of LOC.


*.java3041 LOC (39%) 77 files
*.xml2079 LOC (27%) 37 files
*.jsp827 LOC (10%) 32 files
*.ini770 LOC (10%) 20 files
*.html308 LOC (4%) 10 files
*.css202 LOC (2%) 6 files
*.properties188 LOC (2%) 8 files
*.md182 LOC (2%) 10 files
*.json51 LOC (<1%) 1 file
*.adoc28 LOC (<1%) 1 file
*.txt14 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:21