apache / httpd
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
meta
fr
dsp
in
m4
xsl
txt
pro
lua
mk
ru
ps
wsf
sty
cocci
vbs
gdbinit
l
y
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.

main232353 LOC (81%) 604 files
test18913 LOC (6%) 186 files
generated15580 LOC (5%) 136 files
build and deployment705 LOC (<1%) 13 files
other17107 LOC (6%) 182 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
l
y
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 604 files match defined criteria (232,353 LOC, 100.0% vs. main code):
    • 325 *.c files (210,219 LOC)
    • 187 *.h files (14,521 LOC)
    • 62 *.in files (4,250 LOC)
    • 7 *.awk files (885 LOC)
    • 8 *.pl files (621 LOC)
    • 1 *.l files (452 LOC)
    • 5 *.inc files (438 LOC)
    • 2 *.d files (308 LOC)
    • 3 *.ksh files (283 LOC)
    • 1 *.y files (212 LOC)
    • 1 *.py files (94 LOC)
    • 1 *.perl files (46 LOC)
    • 1 *.cmake files (24 LOC)
  • " *.c" is biggest, containing 90.47% of LOC.
  • " *.cmake" is smallest, containing 0.01% of LOC.


*.c210219 LOC (90%) 325 files
*.h14521 LOC (6%) 187 files
*.in4250 LOC (1%) 62 files
*.awk885 LOC (<1%) 7 files
*.pl621 LOC (<1%) 8 files
*.l452 LOC (<1%) 1 file
*.inc438 LOC (<1%) 5 files
*.d308 LOC (<1%) 2 files
*.ksh283 LOC (<1%) 3 files
*.y212 LOC (<1%) 1 file
*.py94 LOC (<1%) 1 file
*.perl46 LOC (<1%) 1 file
*.cmake24 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
lua
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
  • 186 files match defined criteria (18,913 LOC, 8.1% vs. main code):
    • 126 *.py files (13,588 LOC)
    • 22 *.c files (4,103 LOC)
    • 4 *.sh files (602 LOC)
    • 11 *.lua files (302 LOC)
    • 11 *.html files (169 LOC)
    • 4 *.in files (47 LOC)
    • 4 *.h files (40 LOC)
    • 2 *.css files (36 LOC)
    • 1 *.js files (25 LOC)
    • 1 *.inc files (1 LOC)
  • " *.py" is biggest, containing 71.84% of LOC.
  • " *.inc" is smallest, containing 0.01% of LOC.


*.py13588 LOC (71%) 126 files
*.c4103 LOC (21%) 22 files
*.sh602 LOC (3%) 4 files
*.lua302 LOC (1%) 11 files
*.html169 LOC (<1%) 11 files
*.in47 LOC (<1%) 4 files
*.h40 LOC (<1%) 4 files
*.css36 LOC (<1%) 2 files
*.js25 LOC (<1%) 1 file
*.inc1 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
dsp
ps
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](ps|eps|pfa)".
    • files with paths like ".*[.]dsp" AND any line of content like ".*[#] Microsoft Developer Studio Generated Build File.*".
  • 136 files match defined criteria (15,580 LOC, 6.7% vs. main code):
    • 135 *.dsp files (14,469 LOC)
    • 1 *.ps files (1,111 LOC)
  • " *.dsp" is biggest, containing 92.87% of LOC.
  • " *.ps" is smallest, containing 7.13% of LOC.


*.dsp14469 LOC (92%) 135 files
*.ps1111 LOC (7%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
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 ".*[.]mk".
  • 13 files match defined criteria (705 LOC, 0.3% vs. main code):
    • 8 *.sh files (610 LOC)
    • 5 *.mk files (95 LOC)
  • " *.sh" is biggest, containing 86.52% of LOC.
  • " *.mk" is smallest, containing 13.48% of LOC.


*.sh610 LOC (86%) 8 files
*.mk95 LOC (13%) 5 files
Other Code
dsp
txt
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]dsp".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]indent[.]pro".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]fr".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
  • 182 files match defined criteria (17,107 LOC, 7.4% vs. main code):
    • 135 *.dsp files (14,469 LOC)
    • 27 *.txt files (1,214 LOC)
    • 5 *.c files (1,008 LOC)
    • 1 *.cmake files (242 LOC)
    • 2 *.md files (90 LOC)
    • 11 *.json files (81 LOC)
    • 1 *.in files (3 LOC)
  • " *.dsp" is biggest, containing 84.58% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.dsp14469 LOC (84%) 135 files
*.txt1214 LOC (7%) 27 files
*.c1008 LOC (5%) 5 files
*.cmake242 LOC (1%) 1 file
*.md90 LOC (<1%) 2 files
*.json81 LOC (<1%) 11 files
*.in3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:16