azure / azure-osconfig
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
gitattributes
in
clang-format
csproj
gitmodules
cmd
clang-tidy
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.

main41959 LOC (51%) 149 files
test14577 LOC (17%) 61 files
generated4 LOC (<1%) 1 file
build and deployment305 LOC (<1%) 6 files
other24528 LOC (30%) 242 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 149 files match defined criteria (41,959 LOC, 100.0% vs. main code):
    • 44 *.c files (27,345 LOC)
    • 42 *.cpp files (9,689 LOC)
    • 57 *.h files (4,607 LOC)
    • 2 *.py files (252 LOC)
    • 2 *.cmake files (52 LOC)
    • 1 *.cmd files (10 LOC)
    • 1 *.toml files (4 LOC)
  • " *.c" is biggest, containing 65.17% of LOC.
  • " *.toml" is smallest, containing 0.01% of LOC.


*.c27345 LOC (65%) 44 files
*.cpp9689 LOC (23%) 42 files
*.h4607 LOC (10%) 57 files
*.py252 LOC (<1%) 2 files
*.cmake52 LOC (<1%) 2 files
*.cmd10 LOC (<1%) 1 file
*.toml4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/e2e/.*".
  • 61 files match defined criteria (14,577 LOC, 34.7% vs. main code):
    • 33 *.cpp files (11,415 LOC)
    • 3 *.c files (1,151 LOC)
    • 5 *.sh files (861 LOC)
    • 6 *.cs files (703 LOC)
    • 5 *.h files (109 LOC)
    • 1 *.psm1 files (106 LOC)
    • 1 *.awk files (101 LOC)
    • 4 *.tf files (47 LOC)
    • 1 *.ps1 files (42 LOC)
    • 1 *.py files (24 LOC)
    • 1 *.csproj files (18 LOC)
  • " *.cpp" is biggest, containing 78.31% of LOC.
  • " *.csproj" is smallest, containing 0.12% of LOC.


*.cpp11415 LOC (78%) 33 files
*.c1151 LOC (7%) 3 files
*.sh861 LOC (5%) 5 files
*.cs703 LOC (4%) 6 files
*.h109 LOC (<1%) 5 files
*.psm1106 LOC (<1%) 1 file
*.awk101 LOC (<1%) 1 file
*.tf47 LOC (<1%) 4 files
*.ps142 LOC (<1%) 1 file
*.py24 LOC (<1%) 1 file
*.csproj18 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 1 file matches defined criteria (4 LOC, 0.0% vs. main code). All matches are in *.in files.


*.in4 LOC (100%) 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".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (305 LOC, 0.7% vs. main code). All matches are in *.sh files.


*.sh305 LOC (100%) 6 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 242 files match defined criteria (24,528 LOC, 58.5% vs. main code):
    • 132 *.json files (20,645 LOC)
    • 92 *.txt files (1,433 LOC)
    • 14 *.md files (1,313 LOC)
    • 3 *.cpp files (1,032 LOC)
    • 1 *.h files (105 LOC)
  • " *.json" is biggest, containing 84.17% of LOC.
  • " *.h" is smallest, containing 0.43% of LOC.


*.json20645 LOC (84%) 132 files
*.txt1433 LOC (5%) 92 files
*.md1313 LOC (5%) 14 files
*.cpp1032 LOC (4%) 3 files
*.h105 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:19