apache / trafficserver-libswoc
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
txt
in
clang-format
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.

main17730 LOC (63%) 59 files
test5914 LOC (21%) 15 files
generated0 LOC (0%) 0 files
build and deployment584 LOC (2%) 8 files
other3547 LOC (12%) 25 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 ".*".
  • 59 files match defined criteria (17,730 LOC, 100.0% vs. main code):
    • 29 *.h files (11,389 LOC)
    • 24 *.cc files (6,196 LOC)
    • 2 *.py files (105 LOC)
    • 2 *.in files (20 LOC)
    • 2 *.cmake files (20 LOC)
  • " *.h" is biggest, containing 64.24% of LOC.
  • " *.cmake" is smallest, containing 0.11% of LOC.


*.h11389 LOC (64%) 29 files
*.cc6196 LOC (34%) 24 files
*.py105 LOC (<1%) 2 files
*.in20 LOC (<1%) 2 files
*.cmake20 LOC (<1%) 2 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 ".*/test_.*".
  • 15 files match defined criteria (5,914 LOC, 33.4% vs. main code). All matches are in *.cc files.


*.cc5914 LOC (100%) 15 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 8 files match defined criteria (584 LOC, 3.3% vs. main code). All matches are in *.sh files.


*.sh584 LOC (100%) 8 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 25 files match defined criteria (3,547 LOC, 20.0% vs. main code):
    • 18 *.rst files (3,293 LOC)
    • 6 *.txt files (247 LOC)
    • 1 *.md files (7 LOC)
  • " *.rst" is biggest, containing 92.84% of LOC.
  • " *.md" is smallest, containing 0.2% of LOC.


*.rst3293 LOC (92%) 18 files
*.txt247 LOC (6%) 6 files
*.md7 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:56