azure / azure-c-shared-utility
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
cmd
gitattributes
targets
nuspec
csproj
gitmodules
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.

main48966 LOC (45%) 277 files
test49765 LOC (45%) 164 files
generated0 LOC (0%) 0 files
build and deployment372 LOC (<1%) 18 files
other9219 LOC (8%) 147 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 277 files match defined criteria (48,966 LOC, 100.0% vs. main code):
    • 105 *.c files (32,891 LOC)
    • 130 *.h files (8,932 LOC)
    • 21 *.cpp files (5,177 LOC)
    • 6 *.cmake files (967 LOC)
    • 8 *.cs files (553 LOC)
    • 6 *.cmd files (334 LOC)
    • 1 *.targets files (112 LOC)
  • " *.c" is biggest, containing 67.17% of LOC.
  • " *.targets" is smallest, containing 0.23% of LOC.


*.c32891 LOC (67%) 105 files
*.h8932 LOC (18%) 130 files
*.cpp5177 LOC (10%) 21 files
*.cmake967 LOC (1%) 6 files
*.cs553 LOC (1%) 8 files
*.cmd334 LOC (<1%) 6 files
*.targets112 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 ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
  • 164 files match defined criteria (49,765 LOC, 101.6% vs. main code):
    • 143 *.c files (49,056 LOC)
    • 18 *.h files (665 LOC)
    • 2 *.sh files (43 LOC)
    • 1 *.cpp files (1 LOC)
  • " *.c" is biggest, containing 98.58% of LOC.
  • " *.cpp" is smallest, containing 0% of LOC.


*.c49056 LOC (98%) 143 files
*.h665 LOC (1%) 18 files
*.sh43 LOC (<1%) 2 files
*.cpp1 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]nuspec".
  • 18 files match defined criteria (372 LOC, 0.8% vs. main code):
    • 16 *.sh files (278 LOC)
    • 1 *.csproj files (61 LOC)
    • 1 *.nuspec files (33 LOC)
  • " *.sh" is biggest, containing 74.73% of LOC.
  • " *.nuspec" is smallest, containing 8.87% of LOC.


*.sh278 LOC (74%) 16 files
*.csproj61 LOC (16%) 1 file
*.nuspec33 LOC (8%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 147 files match defined criteria (9,219 LOC, 18.8% vs. main code):
    • 62 *.md files (6,846 LOC)
    • 82 *.txt files (2,115 LOC)
    • 3 *.c files (258 LOC)
  • " *.md" is biggest, containing 74.26% of LOC.
  • " *.c" is smallest, containing 2.8% of LOC.


*.md6846 LOC (74%) 62 files
*.txt2115 LOC (22%) 82 files
*.c258 LOC (2%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:13