apache / apr
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
dsp
m4
in
txt
editorconfig
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.

main95277 LOC (72%) 459 files
test24501 LOC (18%) 110 files
generated5092 LOC (3%) 19 files
build and deployment355 LOC (<1%) 6 files
other5970 LOC (4%) 24 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 459 files match defined criteria (95,277 LOC, 100.0% vs. main code):
    • 284 *.c files (78,082 LOC)
    • 145 *.h files (10,055 LOC)
    • 11 *.in files (4,456 LOC)
    • 4 *.pl files (816 LOC)
    • 5 *.py files (793 LOC)
    • 4 *.inc files (576 LOC)
    • 5 *.awk files (453 LOC)
    • 1 *.cmake files (46 LOC)
  • " *.c" is biggest, containing 81.95% of LOC.
  • " *.cmake" is smallest, containing 0.05% of LOC.


*.c78082 LOC (81%) 284 files
*.h10055 LOC (10%) 145 files
*.in4456 LOC (4%) 11 files
*.pl816 LOC (<1%) 4 files
*.py793 LOC (<1%) 5 files
*.inc576 LOC (<1%) 4 files
*.awk453 LOC (<1%) 5 files
*.cmake46 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
  • 110 files match defined criteria (24,501 LOC, 25.7% vs. main code):
    • 97 *.c files (23,853 LOC)
    • 9 *.h files (392 LOC)
    • 2 *.in files (210 LOC)
    • 1 *.xml files (36 LOC)
    • 1 *.bat files (10 LOC)
  • " *.c" is biggest, containing 97.36% of LOC.
  • " *.bat" is smallest, containing 0.04% of LOC.


*.c23853 LOC (97%) 97 files
*.h392 LOC (1%) 9 files
*.in210 LOC (<1%) 2 files
*.xml36 LOC (<1%) 1 file
*.bat10 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
dsp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]dsp" AND any line of content like ".*[#] Microsoft Developer Studio Generated Build File.*".
  • 19 files match defined criteria (5,092 LOC, 5.3% vs. main code). All matches are in *.dsp files.


*.dsp5092 LOC (100%) 19 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 ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 6 files match defined criteria (355 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh355 LOC (100%) 6 files
Other Code
dsp
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]dsp".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
  • 24 files match defined criteria (5,970 LOC, 6.3% vs. main code):
    • 19 *.dsp files (5,092 LOC)
    • 3 *.txt files (725 LOC)
    • 1 *.cmake files (90 LOC)
    • 1 *.json files (63 LOC)
  • " *.dsp" is biggest, containing 85.29% of LOC.
  • " *.json" is smallest, containing 1.06% of LOC.


*.dsp5092 LOC (85%) 19 files
*.txt725 LOC (12%) 3 files
*.cmake90 LOC (1%) 1 file
*.json63 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:15