apache / directory-server
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
properties
in
plist
nsi
xsd
spec
launch
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.

main95835 LOC (49%) 895 files
test87348 LOC (44%) 413 files
generated0 LOC (0%) 0 files
build and deployment9537 LOC (4%) 69 files
other2229 LOC (1%) 63 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
nsi
spec
launch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 895 files match defined criteria (95,835 LOC, 100.0% vs. main code):
    • 842 *.java files (93,529 LOC)
    • 13 *.in files (1,178 LOC)
    • 1 *.nsi files (539 LOC)
    • 36 *.xml files (414 LOC)
    • 1 *.spec files (89 LOC)
    • 1 *.rdf files (67 LOC)
    • 1 *.launch files (19 LOC)
  • " *.java" is biggest, containing 97.59% of LOC.
  • " *.launch" is smallest, containing 0.02% of LOC.


*.java93529 LOC (97%) 842 files
*.in1178 LOC (1%) 13 files
*.nsi539 LOC (<1%) 1 file
*.xml414 LOC (<1%) 36 files
*.spec89 LOC (<1%) 1 file
*.rdf67 LOC (<1%) 1 file
*.launch19 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 ".*[-]tests/.*".
  • 413 files match defined criteria (87,348 LOC, 91.1% vs. main code):
    • 406 *.java files (87,157 LOC)
    • 3 *.xml files (98 LOC)
    • 4 *.sh files (93 LOC)
  • " *.java" is biggest, containing 99.78% of LOC.
  • " *.sh" is smallest, containing 0.11% of LOC.


*.java87157 LOC (99%) 406 files
*.xml98 LOC (<1%) 3 files
*.sh93 LOC (<1%) 4 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 69 files match defined criteria (9,537 LOC, 10.0% vs. main code):
    • 60 *.xml files (9,197 LOC)
    • 6 *.sh files (240 LOC)
    • 3 *.bat files (100 LOC)
  • " *.xml" is biggest, containing 96.43% of LOC.
  • " *.bat" is smallest, containing 1.05% of LOC.


*.xml9197 LOC (96%) 60 files
*.sh240 LOC (2%) 6 files
*.bat100 LOC (1%) 3 files
Other Code
properties
xsd
plist
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/resources/.*[.]xsd".
  • 63 files match defined criteria (2,229 LOC, 2.3% vs. main code):
    • 44 *.properties files (1,609 LOC)
    • 1 *.xsd files (239 LOC)
    • 2 *.md files (223 LOC)
    • 14 *.xml files (101 LOC)
    • 2 *.plist files (57 LOC)
  • " *.properties" is biggest, containing 72.18% of LOC.
  • " *.plist" is smallest, containing 2.56% of LOC.


*.properties1609 LOC (72%) 44 files
*.xsd239 LOC (10%) 1 file
*.md223 LOC (10%) 2 files
*.xml101 LOC (4%) 14 files
*.plist57 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:19