azure / confidential-computing-cvm-guest-attestation
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
vcxproj
proj
nuspec
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.

main16401 LOC (87%) 159 files
test173 LOC (<1%) 3 files
generated0 LOC (0%) 0 files
build and deployment244 LOC (1%) 9 files
other1866 LOC (9%) 34 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
vcxproj
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 159 files match defined criteria (16,401 LOC, 100.0% vs. main code):
    • 62 *.cpp files (10,948 LOC)
    • 73 *.h files (2,891 LOC)
    • 7 *.vcxproj files (1,225 LOC)
    • 6 *.ps1 files (735 LOC)
    • 1 *.py files (502 LOC)
    • 4 *.cmake files (43 LOC)
    • 5 *.proj files (29 LOC)
    • 1 *.yaml files (28 LOC)
  • " *.cpp" is biggest, containing 66.75% of LOC.
  • " *.yaml" is smallest, containing 0.17% of LOC.


*.cpp10948 LOC (66%) 62 files
*.h2891 LOC (17%) 73 files
*.vcxproj1225 LOC (7%) 7 files
*.ps1735 LOC (4%) 6 files
*.py502 LOC (3%) 1 file
*.cmake43 LOC (<1%) 4 files
*.proj29 LOC (<1%) 5 files
*.yaml28 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 ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test[.].*".
  • 3 files match defined criteria (173 LOC, 1.1% vs. main code):
    • 2 *.cpp files (143 LOC)
    • 1 *.sh files (30 LOC)
  • " *.cpp" is biggest, containing 82.66% of LOC.
  • " *.sh" is smallest, containing 17.34% of LOC.


*.cpp143 LOC (82%) 2 files
*.sh30 LOC (17%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
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".
    • files with paths like ".*[.]nuspec".
  • 9 files match defined criteria (244 LOC, 1.5% vs. main code):
    • 7 *.sh files (211 LOC)
    • 2 *.nuspec files (33 LOC)
  • " *.sh" is biggest, containing 86.48% of LOC.
  • " *.nuspec" is smallest, containing 13.52% of LOC.


*.sh211 LOC (86%) 7 files
*.nuspec33 LOC (13%) 2 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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
  • 34 files match defined criteria (1,866 LOC, 11.4% vs. main code):
    • 12 *.md files (654 LOC)
    • 2 *.json files (649 LOC)
    • 20 *.txt files (563 LOC)
  • " *.md" is biggest, containing 35.05% of LOC.
  • " *.txt" is smallest, containing 30.17% of LOC.


*.md654 LOC (35%) 12 files
*.json649 LOC (34%) 2 files
*.txt563 LOC (30%) 20 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:31