apache / bloodhound
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
po
txt
cfg
rss
ini
in
cgi
fcgi
wsgi
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.

main343394 LOC (91%) 643 files
test23918 LOC (6%) 170 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other7664 LOC (2%) 74 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
po
rss
cfg
cgi
fcgi
cmd
wsgi
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 643 files match defined criteria (343,394 LOC, 100.0% vs. main code):
    • 108 *.po files (271,996 LOC)
    • 259 *.py files (44,604 LOC)
    • 187 *.html files (16,747 LOC)
    • 25 *.css files (6,162 LOC)
    • 27 *.js files (2,804 LOC)
    • 7 *.sls files (360 LOC)
    • 8 *.rss files (232 LOC)
    • 10 *.cfg files (214 LOC)
    • 2 *.cgi files (80 LOC)
    • 2 *.fcgi files (80 LOC)
    • 1 *.cmd files (68 LOC)
    • 2 *.xml files (20 LOC)
    • 1 *.wsgi files (14 LOC)
    • 4 *.in files (13 LOC)
  • " *.po" is biggest, containing 79.21% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.po271996 LOC (79%) 108 files
*.py44604 LOC (12%) 259 files
*.html16747 LOC (4%) 187 files
*.css6162 LOC (1%) 25 files
*.js2804 LOC (<1%) 27 files
*.sls360 LOC (<1%) 7 files
*.rss232 LOC (<1%) 8 files
*.cfg214 LOC (<1%) 10 files
*.cgi80 LOC (<1%) 2 files
*.fcgi80 LOC (<1%) 2 files
*.cmd68 LOC (<1%) 1 file
*.xml20 LOC (<1%) 2 files
*.wsgi14 LOC (<1%) 1 file
*.in13 LOC (<1%) 4 files
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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 170 files match defined criteria (23,918 LOC, 7.0% vs. main code):
    • 168 *.py files (23,755 LOC)
    • 2 *.html files (163 LOC)
  • " *.py" is biggest, containing 99.32% of LOC.
  • " *.html" is smallest, containing 0.68% of LOC.


*.py23755 LOC (99%) 168 files
*.html163 LOC (<1%) 2 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 74 files match defined criteria (7,664 LOC, 2.2% vs. main code):
    • 31 *.txt files (5,756 LOC)
    • 35 *.rst files (1,525 LOC)
    • 8 *.ini files (383 LOC)
  • " *.txt" is biggest, containing 75.1% of LOC.
  • " *.ini" is smallest, containing 5% of LOC.


*.txt5756 LOC (75%) 31 files
*.rst1525 LOC (19%) 35 files
*.ini383 LOC (4%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:33