azure / azure-sdk-for-c
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
ino
cmd
gitattributes
editorconfig
cfg
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.

main25263 LOC (43%) 183 files
test15474 LOC (26%) 41 files
generated2786 LOC (4%) 1 file
build and deployment24 LOC (<1%) 1 file
other14885 LOC (25%) 100 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 ".*".
  • 183 files match defined criteria (25,263 LOC, 100.0% vs. main code):
    • 98 *.ps1 files (14,906 LOC)
    • 31 *.c files (6,873 LOC)
    • 39 *.h files (2,052 LOC)
    • 9 *.cmake files (690 LOC)
    • 1 *.psm1 files (263 LOC)
    • 1 *.css files (247 LOC)
    • 1 *.js files (196 LOC)
    • 3 *.cmd files (36 LOC)
  • " *.ps1" is biggest, containing 59% of LOC.
  • " *.cmd" is smallest, containing 0.14% of LOC.


*.ps114906 LOC (59%) 98 files
*.c6873 LOC (27%) 31 files
*.h2052 LOC (8%) 39 files
*.cmake690 LOC (2%) 9 files
*.psm1263 LOC (1%) 1 file
*.css247 LOC (<1%) 1 file
*.js196 LOC (<1%) 1 file
*.cmd36 LOC (<1%) 3 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 ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 41 files match defined criteria (15,474 LOC, 61.3% vs. main code):
    • 28 *.c files (14,686 LOC)
    • 5 *.ps1 files (686 LOC)
    • 8 *.h files (102 LOC)
  • " *.c" is biggest, containing 94.91% of LOC.
  • " *.h" is smallest, containing 0.66% of LOC.


*.c14686 LOC (94%) 28 files
*.ps1686 LOC (4%) 5 files
*.h102 LOC (<1%) 8 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,786 LOC, 11.0% vs. main code). All matches are in *.json files.


*.json2786 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (24 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh24 LOC (100%) 1 file
Other Code
txt
ino
cfg
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 ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 100 files match defined criteria (14,885 LOC, 58.9% vs. main code):
    • 19 *.c files (6,165 LOC)
    • 11 *.json files (3,172 LOC)
    • 24 *.md files (2,696 LOC)
    • 14 *.txt files (969 LOC)
    • 3 *.ino files (796 LOC)
    • 12 *.h files (350 LOC)
    • 7 *.ps1 files (293 LOC)
    • 2 *.cpp files (285 LOC)
    • 1 *.svg files (76 LOC)
    • 6 *.sh files (75 LOC)
    • 1 *.cfg files (8 LOC)
  • " *.c" is biggest, containing 41.42% of LOC.
  • " *.cfg" is smallest, containing 0.05% of LOC.


*.c6165 LOC (41%) 19 files
*.json3172 LOC (21%) 11 files
*.md2696 LOC (18%) 24 files
*.txt969 LOC (6%) 14 files
*.ino796 LOC (5%) 3 files
*.h350 LOC (2%) 12 files
*.ps1293 LOC (1%) 7 files
*.cpp285 LOC (1%) 2 files
*.svg76 LOC (<1%) 1 file
*.sh75 LOC (<1%) 6 files
*.cfg8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:48