azure / Project-Cerberus
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
cfg
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.

main104831 LOC (22%) 923 files
test355198 LOC (76%) 496 files
generated0 LOC (0%) 0 files
build and deployment2235 LOC (<1%) 7 files
other727 LOC (<1%) 13 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 923 files match defined criteria (104,831 LOC, 100.0% vs. main code):
    • 288 *.c files (74,233 LOC)
    • 601 *.h files (25,594 LOC)
    • 11 *.py files (3,764 LOC)
    • 16 *.cmake files (504 LOC)
    • 6 *.xml files (439 LOC)
    • 1 *.cfg files (297 LOC)
  • " *.c" is biggest, containing 70.81% of LOC.
  • " *.cfg" is smallest, containing 0.28% of LOC.


*.c74233 LOC (70%) 288 files
*.h25594 LOC (24%) 601 files
*.py3764 LOC (3%) 11 files
*.cmake504 LOC (<1%) 16 files
*.xml439 LOC (<1%) 6 files
*.cfg297 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 ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
  • 496 files match defined criteria (355,198 LOC, 338.8% vs. main code):
    • 329 *.c files (350,345 LOC)
    • 146 *.h files (3,483 LOC)
    • 19 *.xml files (1,021 LOC)
    • 2 *.py files (349 LOC)
  • " *.c" is biggest, containing 98.63% of LOC.
  • " *.py" is smallest, containing 0.1% of LOC.


*.c350345 LOC (98%) 329 files
*.h3483 LOC (<1%) 146 files
*.xml1021 LOC (<1%) 19 files
*.py349 LOC (<1%) 2 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".
  • 7 files match defined criteria (2,235 LOC, 2.1% vs. main code). All matches are in *.sh files.


*.sh2235 LOC (100%) 7 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 13 files match defined criteria (727 LOC, 0.7% vs. main code):
    • 6 *.txt files (295 LOC)
    • 2 *.json files (221 LOC)
    • 5 *.md files (211 LOC)
  • " *.txt" is biggest, containing 40.58% of LOC.
  • " *.md" is smallest, containing 29.02% of LOC.


*.txt295 LOC (40%) 6 files
*.json221 LOC (30%) 2 files
*.md211 LOC (29%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:59