azure / azure-vm-utils
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
spec
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.

main2176 LOC (46%) 28 files
test1729 LOC (37%) 7 files
generated0 LOC (0%) 0 files
build and deployment89 LOC (1%) 4 files
other644 LOC (13%) 11 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
spec
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 28 files match defined criteria (2,176 LOC, 100.0% vs. main code):
    • 3 *.py files (1,084 LOC)
    • 5 *.c files (476 LOC)
    • 5 *.spec files (238 LOC)
    • 8 *.cmake files (133 LOC)
    • 3 *.in files (132 LOC)
    • 4 *.h files (113 LOC)
  • " *.py" is biggest, containing 49.82% of LOC.
  • " *.h" is smallest, containing 5.19% of LOC.


*.py1084 LOC (49%) 3 files
*.c476 LOC (21%) 5 files
*.spec238 LOC (10%) 5 files
*.cmake133 LOC (6%) 8 files
*.in132 LOC (6%) 3 files
*.h113 LOC (5%) 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 ".*_tests[.].*".
    • files with paths like ".*/test_.*".
  • 7 files match defined criteria (1,729 LOC, 79.5% vs. main code):
    • 5 *.c files (1,040 LOC)
    • 1 *.py files (682 LOC)
    • 1 *.h files (7 LOC)
  • " *.c" is biggest, containing 60.15% of LOC.
  • " *.h" is smallest, containing 0.4% of LOC.


*.c1040 LOC (60%) 5 files
*.py682 LOC (39%) 1 file
*.h7 LOC (<1%) 1 file
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".
  • 4 files match defined criteria (89 LOC, 4.1% vs. main code). All matches are in *.sh files.


*.sh89 LOC (100%) 4 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 ".*/[.]gitignore".
  • 11 files match defined criteria (644 LOC, 29.6% vs. main code):
    • 7 *.md files (519 LOC)
    • 4 *.txt files (125 LOC)
  • " *.md" is biggest, containing 80.59% of LOC.
  • " *.txt" is smallest, containing 19.41% of LOC.


*.md519 LOC (80%) 7 files
*.txt125 LOC (19%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:03